MCPcopy Create free account
hub / github.com/SpartanJ/eepp / setClasses

Method setClasses

src/eepp/ui/uiwidget.cpp:1067–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067UIWidget* UIWidget::setClasses( const std::vector<std::string>& classes ) {
1068 if ( mClasses != classes ) {
1069 mClasses = classes;
1070
1071 if ( !isSceneNodeLoading() && !isLoadingState() ) {
1072 getUISceneNode()->invalidateStyle( this );
1073 getUISceneNode()->invalidateStyleState( this );
1074 }
1075
1076 onClassChange();
1077 }
1078 return this;
1079}
1080
1081UIWidget* UIWidget::addClass( const std::string& cls ) {
1082 if ( !cls.empty() && !hasClass( cls ) ) {

Callers 4

onClassChangeMethod · 0.80
onClassChangeMethod · 0.80
scheduledUpdateMethod · 0.80
insertTextureMethod · 0.80

Calls 2

invalidateStyleMethod · 0.80
invalidateStyleStateMethod · 0.80

Tested by

no test coverage detected