yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::PopupStyleScope Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ PopupStyleScope() [1/2]

yaze::gui::PopupStyleScope::PopupStyleScope ( )

Definition at line 35 of file canvas_menu.cc.

References yaze::gui::BaseStyleVarVec2(), and pushed_.

Here is the call graph for this function:

◆ ~PopupStyleScope()

yaze::gui::PopupStyleScope::~PopupStyleScope ( )

Definition at line 45 of file canvas_menu.cc.

References pushed_.

◆ PopupStyleScope() [2/2]

yaze::gui::PopupStyleScope::PopupStyleScope ( const PopupStyleScope & )
delete

Member Function Documentation

◆ operator=()

PopupStyleScope & yaze::gui::PopupStyleScope::operator= ( const PopupStyleScope & )
delete

Member Data Documentation

◆ pushed_

int yaze::gui::PopupStyleScope::pushed_ = 0
private

Definition at line 313 of file canvas_menu.h.

Referenced by PopupStyleScope(), and ~PopupStyleScope().


The documentation for this class was generated from the following files: