MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Widget

Method Widget

src/SFGUI/Widget.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49Signal::SignalID Widget::OnText = 0;
50
51Widget::Widget() :
52 m_hierarchy_level( 0 ),
53 m_z_order( 0 ),
54 m_invalidated( true ),
55 m_parent_notified( false ),
56 m_state( State::NORMAL ),
57 m_mouse_button_down( false ),
58 m_mouse_in( false ),
59 m_visible( true )
60{
61 m_viewport = Renderer::Get().GetDefaultViewport();
62
63 // Register this as a root widget initially.
64 root_widgets.push_back( this );
65}
66
67Widget::~Widget() {
68 if( !m_parent.lock() ) {

Callers

nothing calls this directly

Calls 1

GetDefaultViewportMethod · 0.80

Tested by

no test coverage detected