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

Method SetClass

src/SFGUI/Widget.cpp:614–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612}
613
614void Widget::SetClass( const std::string& cls ) {
615 if( cls.empty() ) {
616 return;
617 }
618
619 if( !m_class_id ) {
620 m_class_id.reset( new ClassId );
621 }
622
623 m_class_id->class_ = cls;
624
625 Refresh();
626}
627
628std::string Widget::GetClass() const {
629 if( !m_class_id ) {

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected