![]() |
Gorgon Game Engine
|
Interface for LineProviders. More...
Public Member Functions | |
ILineProvider (Orientation orientation) | |
virtual RectangularAnimation & | CreateEnd () const =0 |
Creates a start animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateMiddle () const =0 |
Creates a start animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateStart () const =0 |
Creates a start animation without controller. This function should always return an animation. More... | |
virtual Orientation | GetOrientation () const |
Returns the orientation of the line provider. More... | |
virtual bool | GetTiling () const |
Returns if the middle part will be tiled. More... | |
virtual ILineProvider & | MoveOutProvider () override=0 |
This function moves this animation provider into a new provider. More... | |
virtual void | SetOrientation (Orientation value) |
Changes the orientation of the provider. More... | |
virtual void | SetTiling (bool value) |
Sets whether the middle part would be tiled. More... | |
![]() | |
virtual RectangularAnimation & | CreateAnimation (bool create=true) const override=0 |
This function should create and animation and depending on the create parameter, it should create its own timer. More... | |
virtual RectangularAnimation & | CreateAnimation (Gorgon::Animation::ControllerBase &timer) const override=0 |
This function should create a new animation with the given controller and if owner parameter is set to true, it should assume ownership of the controller. More... | |
int | GetHeight () const |
virtual Geometry::Size | GetSize () const =0 |
int | GetWidth () const |
![]() | |
virtual | ~AnimationProvider () |
![]() | |
virtual | ~Provider () |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
using | AnimationType = RectangularAnimation |
![]() | |
using | AnimationType = Animation |
![]() | |
using | AnimationType = Base |
Interface for LineProviders.
ILineProvider | ( | Orientation | orientation | ) |
|
pure virtual |
Creates a start animation without controller. This function should always return an animation.
Implemented in Line, and basic_LineProvider< A_ >.
|
pure virtual |
Creates a start animation without controller. This function should always return an animation.
Implemented in Line, and basic_LineProvider< A_ >.
|
pure virtual |
Creates a start animation without controller. This function should always return an animation.
Implemented in Line, and basic_LineProvider< A_ >.
|
virtual |
Returns the orientation of the line provider.
Reimplemented in Line.
|
virtual |
Returns if the middle part will be tiled.
Reimplemented in Line.
|
overridepure virtual |
This function moves this animation provider into a new provider.
Ownership of this new object belongs to the caller and this object could be destroyed safely.
Implements RectangularAnimationProvider.
Implemented in Line, and basic_LineProvider< A_ >.
|
virtual |
Changes the orientation of the provider.
Instances will require redrawing before this change is reflected.
Reimplemented in Line.
|
virtual |
Sets whether the middle part would be tiled.
If set to false it will be stretched to fit the given area. Instances will require redrawing before this change is reflected. Tiling is recommended for all applications.
Reimplemented in Line.