⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
ResizeBy Class Reference

Resize a Node object by a size. More...

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

void update (float time) override
bool initWithDuration (float duration, const Vec2 &deltaSize)
 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.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static ResizeBycreate (float duration, const Vec2 &deltaSize)
 Creates the action.

Detailed Description

Resize a Node object by a size.

Works on all nodes where setContentSize is effective. But it's mostly useful for nodes where 9-slice is enabled

Member Function Documentation

◆ create()

ResizeBy * create ( float duration,
const Vec2 & deltaSize )
static

Creates the action.

Parameters
durationDuration time, in seconds.
deltaSizeThe delta size.
Returns
An autoreleased ResizeBy object.

◆ update()

void update ( float time)
override
Parameters
timein seconds

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