Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
TransitionSlideInL Class Reference

TransitionSlideInL: Slide in the incoming scene from the left border. More...

#include <Transition.h>

Inherits TransitionScene, and TransitionEaseScene.

Inherited by TransitionSlideInB, TransitionSlideInR, and TransitionSlideInT.

Public Member Functions

ActionInterval * easeActionWithAction (ActionInterval *action) override
 Returns the Ease action that will be performed on a linear action.
virtual ActionInterval * action ()
 Returns the action that will be performed by the incoming and outgoing scene.
void onEnter () override
 Event callback that is invoked every time when Node enters the 'stage'.
Public Member Functions inherited from TransitionScene
void finish ()
 Called after a transition finishes.
void hideOutShowIn ()
 Used by some transitions to hide the outer scene.
void draw (const SceneRenderState &state, const Mat4 &transform, uint32_t flags) override
 Override this method to draw your own node.
void onExit () override
 Event callback that is invoked every time the Node leaves the 'stage'.
void cleanup () override
 Stops all running actions and schedulers.
bool initWithDuration (float t, Scene *scene)
 initializes a transition with duration and incoming scene
Public Member Functions inherited from TransitionEaseScene
virtual ~TransitionEaseScene ()
 Constructor.

Static Public Member Functions

static TransitionSlideInL * create (float t, Scene *scene)
 Creates a transition with duration and incoming scene.
Static Public Member Functions inherited from TransitionScene
static TransitionScene * create (float t, Scene *scene)
 Creates a base transition with duration and incoming scene.

Additional Inherited Members

Public Types inherited from TransitionScene
enum class  Orientation { LEFT_OVER = 0 , RIGHT_OVER = 1 , UP_OVER = 0 , DOWN_OVER = 1 }
 Orientation Type used by some transitions. More...

Detailed Description

TransitionSlideInL: Slide in the incoming scene from the left border.

Member Function Documentation

◆ create()

TransitionSlideInL * create ( float t,
Scene * scene )
static

Creates a transition with duration and incoming scene.

Parameters
tDuration time, in seconds.
sceneA given scene.
Returns
A autoreleased TransitionSlideInL object.

◆ easeActionWithAction()

ActionInterval * easeActionWithAction ( ActionInterval * action)
overridevirtual

Returns the Ease action that will be performed on a linear action.

Since
v0.8.2
Parameters
actionA given interval action.
Returns
The Ease action that will be performed on a linear action.

Implements TransitionEaseScene.

◆ action()

virtual ActionInterval * action ( )
virtual

Returns the action that will be performed by the incoming and outgoing scene.

Returns
The action that will be performed by the incoming and outgoing scene.

Reimplemented in TransitionSlideInB, TransitionSlideInR, and TransitionSlideInT.

◆ onEnter()

void onEnter ( )
overridevirtual

Event callback that is invoked every time when Node enters the 'stage'.

If the Node enters the 'stage' with a transition, this event is called when the transition starts. During onEnter you can't access a "sister/brother" node. If you override onEnter, you shall call its parent's one, e.g., Node::onEnter(). @lua NA

Reimplemented from TransitionScene.


The documentation for this class was generated from the following file:
  • Transition.h