Class: $.CustomWrapItem

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

var _textColor as Graphics.ColorValue

Instance Method Details

draw(dc as Graphics.Dc) as Void

Draw the item string at the center of the item.

Parameters:

  • dc —

    Device Context

initialize(id as Lang.Symbol, label as Lang.String, textColor as Graphics.ColorValue)

Constructor

Parameters:

  • id —

    The identifier for this item

  • label —

    Text to display

  • textColor —

    Color of the text


Generated Jun 9, 2026, 8:45:48 AM