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

Method MyCustomWidget

examples/CustomWidget.cpp:47–53  ·  view source on GitHub ↗

The widget constructor is usually protected so it can only be created through the Create() method.

Source from the content-addressed store, hash-verified

45 // The widget constructor is usually protected so it
46 // can only be created through the Create() method.
47 MyCustomWidget() :
48 m_generator( m_random_device() ),
49 m_distribution( -5, 5 ),
50 m_color_distribution( 0, 255 )
51 {
52
53 }
54
55 // InvalidateImpl is called by SFGUI whenever something happens
56 // that might make the widget look different. It returns an

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected