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

Method SetGroup

src/SFGUI/RadioButton.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void RadioButton::SetGroup( RadioButtonGroup::Ptr group ) {
26 auto weak_this = std::weak_ptr<RadioButton>( std::static_pointer_cast<RadioButton>( shared_from_this() ) );
27
28 if( m_group ) {
29 m_group->GetMembers().erase( weak_this );
30 }
31
32 m_group = group;
33
34 if( m_group ) {
35 m_group->GetMembers().insert( weak_this );
36 }
37}
38
39void RadioButton::SetActive( bool active ) {
40 if( active && m_group ) {

Callers 1

CreateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected