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

RAII scope that enables automatic widget registration. More...

#include <widget_auto_register.h>

Collaboration diagram for yaze::gui::AutoWidgetScope:

Public Member Functions

 AutoWidgetScope (const std::string &name)
 
 ~AutoWidgetScope ()
 
std::string GetPath () const
 

Private Attributes

WidgetIdScope scope_
 
std::string name_
 

Detailed Description

RAII scope that enables automatic widget registration.

Creates a widget ID scope and enables auto-registration for all widgets created within this scope. Combines WidgetIdScope with automatic metadata capture.

Definition at line 41 of file widget_auto_register.h.

Constructor & Destructor Documentation

◆ AutoWidgetScope()

yaze::gui::AutoWidgetScope::AutoWidgetScope ( const std::string &  name)
explicit

Definition at line 15 of file widget_auto_register.cc.

References yaze::gui::g_auto_scope_stack_.

◆ ~AutoWidgetScope()

yaze::gui::AutoWidgetScope::~AutoWidgetScope ( )

Definition at line 20 of file widget_auto_register.cc.

References yaze::gui::g_auto_scope_stack_.

Member Function Documentation

◆ GetPath()

std::string yaze::gui::AutoWidgetScope::GetPath ( ) const
inline

Definition at line 47 of file widget_auto_register.h.

References yaze::gui::WidgetIdScope::GetFullPath(), and scope_.

Here is the call graph for this function:

Member Data Documentation

◆ scope_

WidgetIdScope yaze::gui::AutoWidgetScope::scope_
private

Definition at line 50 of file widget_auto_register.h.

Referenced by GetPath().

◆ name_

std::string yaze::gui::AutoWidgetScope::name_
private

Definition at line 51 of file widget_auto_register.h.


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