Class: Toybox::WatchUi::AnimationResource

Inherits:
Lang::Object show all

Overview

A representation of an animation resource.

AnimationResource objects are returned by the loadResource() method.

Since:

  • 3.1.0

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, weak

Instance Method Details

getFrameRateToybox::Lang::Number

Get the target frame rate of an animation resource.

Returns:

Since:

  • 3.1.0


16229
16230
# File 'Monkeybrains.rb', line 16229

def getFrameRate()
end

getHeightToybox::Lang::Number

Get the height of an animation resource.

Returns:

Since:

  • 3.1.0


16217
16218
# File 'Monkeybrains.rb', line 16217

def getHeight()
end

getNumberOfFramesToybox::Lang::Number

Get the number of frames of an animation resource.

Returns:

Since:

  • 3.1.0


16235
16236
# File 'Monkeybrains.rb', line 16235

def getNumberOfFrames()
end

getWidthToybox::Lang::Number

Get the width of an animation resource.

Returns:

Since:

  • 3.1.0


16223
16224
# File 'Monkeybrains.rb', line 16223

def getWidth()
end

toStringToybox::Lang::String

Get info about an animation resource as a String.

The info String is formatted as “Animation X x Y” where “X” is the width of the animation and “Y” is the height.

Returns:

Since:

  • 3.1.0


16245
16246
# File 'Monkeybrains.rb', line 16245

def toString()
end