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

Method Create

src/SFGUI/RadioButton.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace sfg {
5
6RadioButton::Ptr RadioButton::Create( const sf::String& label, RadioButtonGroup::Ptr group ) {
7 auto widget = Ptr( new RadioButton );
8
9 widget->SetLabel( label );
10
11 if( group ) {
12 widget->SetGroup( group );
13 }
14 else {
15 widget->SetGroup( RadioButtonGroup::Create() );
16 }
17
18 return widget;
19}
20
21RadioButtonGroup::Ptr RadioButton::GetGroup() const {
22 return m_group;

Callers

nothing calls this directly

Calls 2

SetGroupMethod · 0.80
SetLabelMethod · 0.45

Tested by

no test coverage detected