-
Notifications
You must be signed in to change notification settings - Fork 1
Menus
realonepiecefreak edited this page Nov 1, 2024
·
8 revisions
A simple menu bar.
-
Items
: A list ofMenuBarItem
-
Font
: The font used for all texts in this menu bar; Can be overwritten in certainMenuBarItem
-
Height
: The absolute height in pixels for this menu bar
-
Update
: Updates and renders the menu bar each frame
A single item in a menu bar, ContextMenu, or MenuBarMenu.
Has to be derived from, to create an item with content.
-
Id
: Protected; The unique ID of the menu bar item; Is used directly in Dear ImGui, where applicable -
Height
: Abstract; The absolute height in pixels for this menu bar item -
Enabled
: Virtual; If the menu bar item is active and processes events
-
Update
: Updates and renders the menu bar item each frame -
UpdateInternal
: Protected; Abstract; Renders the menu bar item on every frame -
UpdateEventsInternal
: Protected; Abstract; Executes key command events on every frame -
ApplyStyles
: Protected; Virtual; Pushes Dear ImGui styles, colors, and fonts for the menu bar item; Is called directly beforeUpdateInternal
-
RemoveStyles
: Protected; Virtual; Pops Dear ImGui styles, colors, and fonts for the menu bar item; Is called directly afterUpdateInternal
A menu bar at the top of the application.
A menu bar item representing a button.
-
Text
: The localizable text on the button -
Font
: The font for the localizable text -
KeyAction
: TheKeyCommand
to invoke theClicked
event
-
Clicked
: For when the button was clicked
A menu bar item representing a checkbox with right-side text.
-
Text
: The localizable text on the checkbox -
Font
: The font for the localizable text -
Checked
: If the checkbox is checked; Invokes theCheckChanged
event
-
CheckChanged
: For when the checkbox was changed
A menu bar item representing a sub menu bar.
-
Text
: The localizable text on the sub menu bar -
Font
: The font used for all texts in this sub menu bar; Can be overwritten in certainMenuBarItem
-
Padding
: the padding between the sub menu bar border and localizable text -
Items
: A list ofMenuBarItem
A menu bar item representing a radio button menu.
-
Text
: The localizable text on the radio button menu -
Font
: The font for the localizable text -
CheckItems
: A list ofMenuBarCheckBox
representing the radio options -
SelectedItem
: The currently selected item, ornull
;
-
SelectedItemChanged
: For when an item was selected
A menu bar item representing a splitter.
A context menu on some components.
Opens on right-click.
-
Items
: A list ofMenuBarItem