|
FuncDoodle
|
Enumerations | |
| enum class | ButtonRowResult { None , Primary , Secondary , Tertiary } |
| Identifies which button was pressed in a button row. More... | |
Functions | |
| void | SetupDefaultLayout () |
| Sets up the default ImGui layout in-case there's no user-defined one. | |
| float | ButtonWidth (const char *label) |
| Returns the width needed to render a button with the given label. | |
| void | AlignButtonsRight (float totalWidth) |
| Right-aligns the next row of buttons within the current content region. | |
| bool | EnterPressed () |
| Returns true when Enter or keypad Enter is pressed this frame. | |
| bool | EscPressed () |
| Returns true when Escape is pressed this frame. | |
| ButtonRowResult | ConfirmButtons (const char *primary, const char *secondary, const char *tertiary=nullptr) |
| Renders CONFIRM buttons for popups. | |
| ButtonRowResult | OkCancelButtons () |
| Renders an OK/Cancel button row. | |
| ButtonRowResult | YesNoButtons () |
| Renders a Yes/No button row. | |
| ButtonRowResult | YesNoCancelButtons () |
| Renders a Yes/No/Cancel button row. | |
| ButtonRowResult | CloseOkButtons () |
| Renders an OK/Close button row. | |
| ButtonRowResult | ExportCloseButtons () |
| Renders an Export/Close button row. | |
| bool | SingleButtonRow (const char *label) |
| Renders a single right-aligned button. | |
| bool | OkButton () |
| Renders a single OK button. | |
| bool | CloseButton () |
| Renders a single Close button. | |
| ImGuiKey | GetAnyReleasedKey () |
| Returns the first non-modifier key released this frame. | |
| const char * | GetUsername () |
| Small util function for fetching the current users' username. Used for filling out the animation author field by default. | |
Variables | |
| constexpr char | s_DefaultLayout [] |
|
strong |
|
inline |
Right-aligns the next row of buttons within the current content region.
| totalWidth | Total width of the button row. |
|
inline |
Returns the width needed to render a button with the given label.
| label | Button text. |
|
inline |
Renders a single Close button.
|
inline |
Renders an OK/Close button row.
|
inline |
Renders CONFIRM buttons for popups.
| primary | Label for the primary action button. |
| secondary | Label for the secondary action button. |
| tertiary | Optional label for the tertiary action button. |
|
inline |
Returns true when Enter or keypad Enter is pressed this frame.
|
inline |
Returns true when Escape is pressed this frame.
|
inline |
Renders an Export/Close button row.
|
inline |
Returns the first non-modifier key released this frame.
|
inline |
Small util function for fetching the current users' username. Used for filling out the animation author field by default.
|
inline |
Renders a single OK button.
|
inline |
Renders an OK/Cancel button row.
|
inline |
Sets up the default ImGui layout in-case there's no user-defined one.
|
inline |
Renders a single right-aligned button.
| label | Button label. |
|
inline |
Renders a Yes/No button row.
|
inline |
Renders a Yes/No/Cancel button row.
|
inlineconstexpr |