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

Method SetId

src/SFGUI/Widget.cpp:592–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void Widget::SetId( const std::string& id ) {
593 if( id.empty() ) {
594 return;
595 }
596
597 if( !m_class_id ) {
598 m_class_id.reset( new ClassId );
599 }
600
601 m_class_id->id = id;
602
603 Refresh();
604}
605
606std::string Widget::GetId() const {
607 if( !m_class_id ) {

Callers 3

RunMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

emptyMethod · 0.80

Tested by 1

RunMethod · 0.64