Gives one popup the app's normal spacing. More...
#include <canvas_menu.h>
Public Member Functions | |
| PopupStyleScope () | |
| ~PopupStyleScope () | |
| PopupStyleScope (const PopupStyleScope &)=delete | |
| PopupStyleScope & | operator= (const PopupStyleScope &)=delete |
Private Attributes | |
| int | pushed_ = 0 |
Gives one popup the app's normal spacing.
Canvases draw inside gui::BeginNoPadding() (WindowPadding and FramePadding 0), and a popup begun there inherits that: ImGui copies WindowPadding into the popup window at Begin time. Construct this BEFORE ImGui::BeginPopup* and keep it alive until after EndPopup. It pushes, for each spacing var, the value in effect before the first PushStyleVar still on the stack (the theme's value), so it is a no-op outside a zero-padding region.
Definition at line 305 of file canvas_menu.h.
| yaze::gui::PopupStyleScope::PopupStyleScope | ( | ) |
Definition at line 35 of file canvas_menu.cc.
References yaze::gui::BaseStyleVarVec2(), and pushed_.

| yaze::gui::PopupStyleScope::~PopupStyleScope | ( | ) |
Definition at line 45 of file canvas_menu.cc.
References pushed_.
|
delete |
|
delete |
|
private |
Definition at line 313 of file canvas_menu.h.
Referenced by PopupStyleScope(), and ~PopupStyleScope().