Class: Toybox::WatchUi::IconMenuItem

Inherits:
MenuItem show all

Overview

A representation of an icon item in a Menu2.

An IconMenuItem is a element of a Menu2 View that represents one of the options in the menu. An IconMenuItem has an icon displayed on the left or right of the menu item labels.

An IconMenuItem can be added to a Menu2 using the addItem() method.

See Also:

Since:

  • 3.0.0

Constant Summary

Constants inherited from MenuItem

MenuItem::MENU_ITEM_LABEL_ALIGN_LEFT, MenuItem::MENU_ITEM_LABEL_ALIGN_RIGHT

Instance Method Summary collapse

Methods inherited from MenuItem

getId, getLabel, getSubLabel, setLabel, setSubLabel

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Constructor Details

initialize(label, subLabel, identifier, icon, options) ⇒ IconMenuItem

Returns a new instance of IconMenuItem

Parameters:

Options Hash (options):

Since:

  • 3.0.0


13451
13452
# File 'Monkeybrains.rb', line 13451

def initialize(label, subLabel, identifier, icon, options)
end

Instance Method Details

getIconToybox::WatchUi::Drawable

Get IconMenuItem icon.

Returns:

Since:

  • 3.0.0


13464
13465
# File 'Monkeybrains.rb', line 13464

def getIcon()
end

setIcon(icon) ⇒ Object

Set the IconMenuItem icon.

Parameters:

Since:

  • 3.0.0


13458
13459
# File 'Monkeybrains.rb', line 13458

def setIcon(icon)
end