GSDL::UI::Dropdown
Inherits GSDL::UI::Container < GSDL::UI::Element < Reference < Object
Constructors
new(options : Array(String), initial_index : Int32 = 0, width : Int32 = FitContent, height : Int32 = 32, x : Int32 = 0, y : Int32 = 0, anchor : Anchor = Anchor::TopLeft, header_background_color : Color | String = "#1e1e24", list_background_color : Color | String = "#121214", hover_background_color : Color | String = "#4f46e5", text_color : Color | String = "#f4f4f5", on_change : Proc(String, Int32, Nil) | Nil = nil, padding : SpacingInput = 0, margin : SpacingInput = 0, flex : UInt8 = 0_u8)
Sourcenew(*args, **kwargs)
Sourcenew(*args, **kwargs, &)
SourceInstance methods
draw(draw : Draw)
Sourceheader_background_color
Sourceheader_background_color=(header_background_color : Color)
Sourceheight
Sourcehover_background_color
Sourcehover_background_color=(hover_background_color : Color)
Sourcelayout!
Sourcelist_background_color
Sourcelist_background_color=(list_background_color : Color)
Sourceon_change
Sourceopened?
Sourceoptions
Sourceselected_index
Sourceselected_option
Sourcetext_color
Sourcetext_color=(text_color : Color)
Sourcewidth
Source