struct

Phosphor::PopupItem

Inherits Struct < Value < Object

One selectable entry in a PopupMenuMock.

Style fields are already-resolved Style values — never theme names; the Widget layer is the only place that touches the theme.

Constructors

new(label : String, style : Style = Style.default, disabled_style : Style = Style.new.dim, disabled : Bool = false)
Source

Instance methods

clone
Source
copy_with(label _label = @label, style _style = @style, disabled_style _disabled_style = @disabled_style, disabled _disabled = @disabled)
Source
disabled
disabled_style
label
style