RAII for fixed-position panels (activity bar, side panel, status bar). More...
#include <style_guard.h>
Public Member Functions | |
| FixedPanel (const char *name, const ImVec2 &pos, const ImVec2 &size, const StyledWindowConfig &config, ImGuiWindowFlags extra_flags=0) | |
| operator bool () const | |
| FixedPanel (const FixedPanel &)=delete | |
| FixedPanel & | operator= (const FixedPanel &)=delete |
Private Attributes | |
| std::optional< StyledWindow > | window_ |
RAII for fixed-position panels (activity bar, side panel, status bar).
Handles NoTitleBar | NoResize | NoMove | NoCollapse | NoDocking + pos/size automatically.
Usage: FixedPanel panel("##SidePanel", pos, size, {.bg = bg, .padding = {12, 12}}); if (panel) { // draw contents }
Definition at line 198 of file style_guard.h.
|
inline |
Definition at line 200 of file style_guard.h.
References window_.
|
delete |
|
inlineexplicit |
Definition at line 215 of file style_guard.h.
References window_.
|
delete |
|
private |
Definition at line 223 of file style_guard.h.
Referenced by FixedPanel(), and operator bool().