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


14825
14826
# File 'Monkeybrains.rb', line 14825

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

Instance Method Details

getIconToybox::WatchUi::Drawable

Get IconMenuItem icon.

Returns:

Since:

  • 3.0.0


14838
14839
# File 'Monkeybrains.rb', line 14838

def getIcon()
end

setIcon(icon) ⇒ Object

Set the IconMenuItem icon.

Parameters:

Since:

  • 3.0.0


14832
14833
# File 'Monkeybrains.rb', line 14832

def setIcon(icon)
end