Class: $.DividerCustomMenuItem

Inherits:
WatchUi.CustomMenuItem show all

Overview

Custom menu item that has the height of the item as the label

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _itemHeight as Lang.Number

Instance Method Details

draw(dc as Graphics.Dc) as Void

Draw the menu item with the item height as the label

Parameters:

  • dc —

    Device context

getHeight() as Lang.Number

Get the height of the menu item

Returns:

  • The height of the menu item

initialize(idx as Lang.Number, heightFactor as Lang.Number)

Constructor

Parameters:

  • idx —

    Item index

  • heightFactor —

    Height factor to be multiplied by the index to get the item height


Generated Oct 20, 2026, 8:20:47 AM