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


16149
16150
# File 'Monkeybrains.rb', line 16149

def initialize(options)
end

Instance Method Details

getDcObject

Get the Graphics.Dc to draw on.

Since:

  • 3.1.0


16154
16155
# File 'Monkeybrains.rb', line 16154

def getDc()
end

getIdToybox::Lang::Number

Layer identifier, can be null

Returns:

Since:

  • 3.1.0


16160
16161
# File 'Monkeybrains.rb', line 16160

def getId()
end

getXToybox::Lang::Number

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

Returns:

Since:

  • 3.1.0


16166
16167
# File 'Monkeybrains.rb', line 16166

def getX()
end

getYToybox::Lang::Number

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

Returns:

Since:

  • 3.1.0


16178
16179
# File 'Monkeybrains.rb', line 16178

def getY()
end

isVisibleToybox::Lang::Boolean

Returns true if the layer is visible otherwise false

Returns:

Since:

  • 3.1.0


16196
16197
# File 'Monkeybrains.rb', line 16196

def isVisible()
end

setLocation(x, y) ⇒ Object

Set draw offset relative to the screen origin

Parameters:

Since:

  • 3.1.0


16191
16192
# File 'Monkeybrains.rb', line 16191

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


16203
16204
# File 'Monkeybrains.rb', line 16203

def setVisible(visible)
end

setX(x) ⇒ Object

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

Parameters:

Since:

  • 3.1.0


16172
16173
# File 'Monkeybrains.rb', line 16172

def setX(x)
end

setY(y) ⇒ Object

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

Parameters:

Since:

  • 3.1.0


16184
16185
# File 'Monkeybrains.rb', line 16184

def setY(y)
end