imguiCollapse

Define a new collapsable element.

bool
imguiCollapse
(
const(char)[] label
,
const(char)[] subtext
,,,)

Parameters

label const(char)[]

The text that will be displayed as the item.

subtext const(char)[]

Additional text displayed on the right of the label.

checkState bool*

A pointer to a variable which holds the current state of the collapsable element.

enabled Enabled

Set whether the element can be pressed.

colorScheme ColorScheme

Optionally override the current default color scheme when creating this element.

Return Value

Type: bool

true if the collapsable element is enabled and was pressed. Note that pressing a collapsable element implies pressing and releasing the left mouse button while over the collapsable element.

Meta