RAII scope that enables automatic widget registration. More...
#include <widget_auto_register.h>
Public Member Functions | |
AutoWidgetScope (const std::string &name) | |
~AutoWidgetScope () | |
std::string | GetPath () const |
Private Attributes | |
WidgetIdScope | scope_ |
std::string | name_ |
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.
|
explicit |
Definition at line 15 of file widget_auto_register.cc.
References yaze::gui::g_auto_scope_stack_.
yaze::gui::AutoWidgetScope::~AutoWidgetScope | ( | ) |
Definition at line 20 of file widget_auto_register.cc.
References yaze::gui::g_auto_scope_stack_.
|
inline |
Definition at line 47 of file widget_auto_register.h.
References yaze::gui::WidgetIdScope::GetFullPath(), and scope_.
|
private |
Definition at line 50 of file widget_auto_register.h.
Referenced by GetPath().
|
private |
Definition at line 51 of file widget_auto_register.h.