Gorgon Game Engine
RectangularAnimationProvider Class Referenceabstract

This class provides rectangular animations. More...

Inheritance diagram for RectangularAnimationProvider:
[legend]

Public Types

using AnimationType = RectangularAnimation
 
- Public Types inherited from AnimationProvider
using AnimationType = Animation
 
- Public Types inherited from Provider
using AnimationType = Base
 

Public Member Functions

virtual RectangularAnimationCreateAnimation (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 RectangularAnimationCreateAnimation (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 RectangularAnimationProviderMoveOutProvider () override=0
 This function moves this animation provider into a new provider. More...
 
- Public Member Functions inherited from AnimationProvider
virtual ~AnimationProvider ()
 
- Public Member Functions inherited from Provider
virtual ~Provider ()
 Virtual destructor. More...
 

Detailed Description

This class provides rectangular animations.

Member Typedef Documentation

◆ AnimationType

Member Function Documentation

◆ CreateAnimation() [1/2]

virtual RectangularAnimation& CreateAnimation ( bool  create = true) const
overridepure virtual

This function should create and animation and depending on the create parameter, it should create its own timer.

Implements AnimationProvider.

Implemented in BlankImage, Bitmap, ImageProvider, DiscreteAnimationProvider, TintedObject, StackedObject, ScalableObject, Rectangle, MaskedObject, Line, basic_RectangleProvider< A_ >, basic_LineProvider< A_ >, EmptyImage, and basic_StorageInjection< Graphics::DiscreteAnimationProvider >.

◆ CreateAnimation() [2/2]

virtual RectangularAnimation& CreateAnimation ( Gorgon::Animation::ControllerBase timer) const
overridepure virtual

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.

Implements AnimationProvider.

Implemented in DiscreteAnimationProvider, TintedObject, StackedObject, ScalableObject, Rectangle, MaskedObject, Line, basic_RectangleProvider< A_ >, basic_LineProvider< A_ >, EmptyImage, basic_StorageInjection< Graphics::DiscreteAnimationProvider >, BlankImage, Bitmap, and ImageProvider.

◆ GetHeight()

int GetHeight ( ) const

◆ GetSize()

◆ GetWidth()

int GetWidth ( ) const

◆ MoveOutProvider()

virtual RectangularAnimationProvider& MoveOutProvider ( )
overridepure virtual

The documentation for this class was generated from the following file: