Class: Toybox::WatchUi::Layer

Inherits:
Lang::Object show all

Overview

A representation of View Layer that will be drawn (bitblit) by system onto the screen during screen update, which include regular View update (onUpdate/onPartialUpdate) as well as animation playback if supported.

Since:

  • 3.1.0

Direct Known Subclasses

AnimationLayer

Direct Known Subclasses

AnimationLayer

Instance Method Summary collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(options) ⇒ Layer

Create a layer with inital options.

Parameters:

Options Hash (options):

Since:

  • 3.1.0


16176
16177
# File 'Monkeybrains.rb', line 16176

def initialize(options)
end

Instance Method Details

getDcObject

Get the Graphics.Dc to draw on.

Since:

  • 3.1.0


16181
16182
# File 'Monkeybrains.rb', line 16181

def getDc()
end

getIdToybox::Lang::Number

Layer identifier, can be null

Returns:

Since:

  • 3.1.0


16187
16188
# File 'Monkeybrains.rb', line 16187

def getId()
end

getXToybox::Lang::Number

Get X-axis absolute draw offset relative to the screen origin

Returns:

Since:

  • 3.1.0


16193
16194
# File 'Monkeybrains.rb', line 16193

def getX()
end

getYToybox::Lang::Number

Get Y-axis absolute draw offset relative to the screen origin

Returns:

Since:

  • 3.1.0


16205
16206
# File 'Monkeybrains.rb', line 16205

def getY()
end

isVisibleToybox::Lang::Boolean

Returns true if the layer is visible otherwise false

Returns:

Since:

  • 3.1.0


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

def isVisible()
end

setLocation(x, y) ⇒ Object

Set draw offset relative to the screen origin

Parameters:

Since:

  • 3.1.0


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

def setLocation(x, y)
end

setVisible(visible) ⇒ Object

Set visibility of the layer, if the layer hasn't been added to a view, or the view isn't on top of view stack, the value will be saved.

Parameters:

Since:

  • 3.1.0


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

def setVisible(visible)
end

setX(x) ⇒ Object

Set X-axis absolute draw offset relative to the screen origin

Parameters:

Since:

  • 3.1.0


16199
16200
# File 'Monkeybrains.rb', line 16199

def setX(x)
end

setY(y) ⇒ Object

Set Y-axis absolute draw offset relative to the screen origin

Parameters:

Since:

  • 3.1.0


16211
16212
# File 'Monkeybrains.rb', line 16211

def setY(y)
end