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

Method SetStyle

src/SFGUI/Window.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Window::SetStyle( char style ) {
79 m_style = style;
80
81 // Make sure dragging and resizing operations are cancelled.
82 m_dragging = false;
83 m_resizing = false;
84
85 RequestResize();
86 Invalidate();
87
88 if( GetChild() ) {
89 GetChild()->SetAllocation( GetClientRect() );
90 }
91}
92
93char Window::GetStyle() const {
94 return m_style;

Callers 2

mainFunction · 0.80
OnToggleTitlebarClickMethod · 0.80

Calls 1

SetAllocationMethod · 0.80

Tested by 1

OnToggleTitlebarClickMethod · 0.64