Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
ResizeTo Class Reference

Resize a Node object to the final size by modifying it's 'size' attribute. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

bool initWithDuration (float duration, const Vec2 &final_size)
 initializes the action
 
- Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
 
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
 
virtual void step (float dt) override
 
bool initWithDuration (float d)
 initializes the action
 

Static Public Member Functions

static ResizeTocreate (float duration, const Vec2 &final_size)
 Creates the action.
 

Detailed Description

Resize a Node object to the final size by modifying it's 'size' attribute.

Member Function Documentation

◆ create()

static ResizeTo * create ( float duration,
const Vec2 & final_size )
static

Creates the action.

Resize a Node object to the final size by modifying it's 'size' attribute. Works on all nodes where setContentSize is effective. But it's mostly useful for nodes where 9-slice is enabled

Parameters
durationDuration time, in seconds.
final_sizeThe target size to reach
Returns
An autoreleased RotateTo object.

◆ initWithDuration()

bool initWithDuration ( float duration,
const Vec2 & final_size )

initializes the action

Parameters
durationin seconds
final_sizein Vec2 type

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