Class: $.CustomItem

Inherits:
WatchUi.CustomMenuItem show all

Overview

This is the custom item drawable. It draws the label it is initialized with at the center of the region

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _label as Lang.String

Instance Method Details

draw(dc as Graphics.Dc) as Void

Draw the item string at the center of the item.

Parameters:

  • dc —

    Device context

getLabel() as Lang.String

Get the item label

Returns:

  • The label

initialize(id as Lang.Symbol, text as Lang.String)

Constructor

Parameters:

  • id —

    The identifier for this item

  • text —

    Text to display


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