imguiCollapse

Define a new collapsable element.

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

Parameters

label
Type: const(char)[]

The text that will be displayed as the item.

subtext
Type: const(char)[]

Additional text displayed on the right of the label.

checkState
Type: bool*

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

enabled
Type: Enabled

Set whether the element can be pressed.

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