The widget constructor is usually protected so it can only be created through the Create() method.
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected