void UILabel::SetFontParms( const VRMenuFontParms &parms ) { FontParms = parms; VRMenuObject * object = GetMenuObject(); if ( object != NULL ) { object->SetFontParms( parms ); } }
void UILabel::SetFontScale( float const scale ) { VRMenuObject * object = GetMenuObject(); assert( object ); FontParms.Scale = scale; object->SetFontParms( FontParms ); }
void UILabel::SetVerticalAlign( const VerticalJustification vert ) { FontParms.AlignVert = vert; VRMenuObject * object = GetMenuObject(); if ( object != NULL ) { object->SetFontParms( FontParms ); CalculateTextOffset(); } }
void UILabel::SetHorizontalAlign( const HorizontalJustification horiz ) { FontParms.AlignHoriz = horiz; VRMenuObject * object = GetMenuObject(); if ( object != NULL ) { object->SetFontParms( FontParms ); CalculateTextOffset(); } }