|
FuncDoodle
|
Small helper utilities for ImGui UI construction in FuncDoodle. More...
Go to the source code of this file.
Namespaces | |
| namespace | ImUtil |
| Helper utilities for building ImGui-based UI components. | |
| namespace | FuncDoodle |
| The FuncDoodle C++ namespace. | |
| namespace | FuncDoodle::ImUtil |
Enumerations | |
| enum class | FuncDoodle::ImUtil::ButtonRowResult { FuncDoodle::ImUtil::None , FuncDoodle::ImUtil::Primary , FuncDoodle::ImUtil::Secondary , FuncDoodle::ImUtil::Tertiary } |
| Identifies which button was pressed in a button row. More... | |
Functions | |
| void | FuncDoodle::ImUtil::SetupDefaultLayout () |
| Sets up the default ImGui layout in-case there's no user-defined one. | |
| float | FuncDoodle::ImUtil::ButtonWidth (const char *label) |
| Returns the width needed to render a button with the given label. | |
| void | FuncDoodle::ImUtil::AlignButtonsRight (float totalWidth) |
| Right-aligns the next row of buttons within the current content region. | |
| bool | FuncDoodle::ImUtil::EnterPressed () |
| Returns true when Enter or keypad Enter is pressed this frame. | |
| bool | FuncDoodle::ImUtil::EscPressed () |
| Returns true when Escape is pressed this frame. | |
| ButtonRowResult | FuncDoodle::ImUtil::ConfirmButtons (const char *primary, const char *secondary, const char *tertiary=nullptr) |
| Renders CONFIRM buttons for popups. | |
| ButtonRowResult | FuncDoodle::ImUtil::OkCancelButtons () |
| Renders an OK/Cancel button row. | |
| ButtonRowResult | FuncDoodle::ImUtil::YesNoButtons () |
| Renders a Yes/No button row. | |
| ButtonRowResult | FuncDoodle::ImUtil::YesNoCancelButtons () |
| Renders a Yes/No/Cancel button row. | |
| ButtonRowResult | FuncDoodle::ImUtil::CloseOkButtons () |
| Renders an OK/Close button row. | |
| ButtonRowResult | FuncDoodle::ImUtil::ExportCloseButtons () |
| Renders an Export/Close button row. | |
| bool | FuncDoodle::ImUtil::SingleButtonRow (const char *label) |
| Renders a single right-aligned button. | |
| bool | FuncDoodle::ImUtil::OkButton () |
| Renders a single OK button. | |
| bool | FuncDoodle::ImUtil::CloseButton () |
| Renders a single Close button. | |
| ImGuiKey | FuncDoodle::ImUtil::GetAnyReleasedKey () |
| Returns the first non-modifier key released this frame. | |
| const char * | FuncDoodle::ImUtil::GetUsername () |
| Small util function for fetching the current users' username. Used for filling out the animation author field by default. | |
Variables | |
| constexpr char | FuncDoodle::ImUtil::s_DefaultLayout [] |
Small helper utilities for ImGui UI construction in FuncDoodle.
Provides convenience functions for:
These functions are lightweight wrappers around ImGui to reduce UI boilerplate.