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


16256
16257
# File 'Monkeybrains.rb', line 16256

def getFrameRate()
end

getHeightToybox::Lang::Number

Get the height of an animation resource.

Returns:

Since:

  • 3.1.0


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

def getHeight()
end

getNumberOfFramesToybox::Lang::Number

Get the number of frames of an animation resource.

Returns:

Since:

  • 3.1.0


16262
16263
# File 'Monkeybrains.rb', line 16262

def getNumberOfFrames()
end

getWidthToybox::Lang::Number

Get the width of an animation resource.

Returns:

Since:

  • 3.1.0


16250
16251
# File 'Monkeybrains.rb', line 16250

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


16272
16273
# File 'Monkeybrains.rb', line 16272

def toString()
end