MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetFontMeasurer

Method SetFontMeasurer

trinity/Sprite2d/Tr2Sprite2dTextObject.cpp:113–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void Tr2Sprite2dTextObject::SetFontMeasurer( Tr2FontMeasurer* m )
114{
115 if( m != m_fontMeasurer )
116 {
117 if( m_fontMeasurer )
118 {
119 m_fontMeasurer->UnregisterForChangeNotification( this );
120 }
121
122 m_fontMeasurer = m;
123
124 if( m_fontMeasurer )
125 {
126 m_fontMeasurer->RegisterForChangeNotification( this );
127 }
128
129 SetDirty();
130 }
131}
132
133bool Tr2Sprite2dTextObject::IsAuxMouseover()
134{

Callers

nothing calls this directly

Tested by

no test coverage detected