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

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
 
FixedPaneloperator= (const FixedPanel &)=delete
 

Private Attributes

std::optional< StyledWindowwindow_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FixedPanel() [1/2]

yaze::gui::FixedPanel::FixedPanel ( const char * name,
const ImVec2 & pos,
const ImVec2 & size,
const StyledWindowConfig & config,
ImGuiWindowFlags extra_flags = 0 )
inline

Definition at line 200 of file style_guard.h.

References window_.

◆ FixedPanel() [2/2]

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

Member Function Documentation

◆ operator bool()

yaze::gui::FixedPanel::operator bool ( ) const
inlineexplicit

Definition at line 215 of file style_guard.h.

References window_.

◆ operator=()

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

Member Data Documentation

◆ window_

std::optional<StyledWindow> yaze::gui::FixedPanel::window_
private

Definition at line 223 of file style_guard.h.

Referenced by FixedPanel(), and operator bool().


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