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


14852
14853
# File 'Monkeybrains.rb', line 14852

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

Instance Method Details

getIconToybox::WatchUi::Drawable

Get IconMenuItem icon.

Returns:

Since:

  • 3.0.0


14865
14866
# File 'Monkeybrains.rb', line 14865

def getIcon()
end

setIcon(icon) ⇒ Object

Set the IconMenuItem icon.

Parameters:

Since:

  • 3.0.0


14859
14860
# File 'Monkeybrains.rb', line 14859

def setIcon(icon)
end