![]() |
Gorgon Game Engine
|
Interface for RectangleProviders. More...
Public Member Functions | |
IRectangleProvider () | |
virtual RectangularAnimation & | CreateBL () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateBM () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateBR () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateML () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateMM () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateMR () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateTL () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateTM () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual RectangularAnimation & | CreateTR () const =0 |
Creates an animation without controller. This function should always return an animation. More... | |
virtual bool | GetCenterTiling () const |
Returns if the middle part will be tiled. More... | |
virtual bool | GetSideTiling () const |
Returns if the middle part will be tiled. More... | |
virtual IRectangleProvider & | MoveOutProvider () override=0 |
This function moves this animation provider into a new provider. More... | |
virtual void | SetCenterTiling (bool value) |
Sets whether the middle part would be tiled. More... | |
virtual void | SetSideTiling (bool value) |
Sets whether the side parts (tm, ml, mr, bm) 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 RectangleProviders.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
pure virtual |
Creates an animation without controller. This function should always return an animation.
Implemented in Rectangle, and basic_RectangleProvider< A_ >.
|
virtual |
Returns if the middle part will be tiled.
Reimplemented in Rectangle.
|
virtual |
Returns if the middle part will be tiled.
Reimplemented in Rectangle.
|
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 Rectangle, and basic_RectangleProvider< A_ >.
|
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. This effects both dimensions. Tiling is recommended for all applications.
Reimplemented in Rectangle.
|
virtual |
Sets whether the side parts (tm, ml, mr, bm) 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 Rectangle.