- label.SetAnchorPoint( AnchorPoint::CENTER );
- label.SetParentOrigin( ParentOrigin::CENTER );
-
- Toolkit::TextLabel textLabel = Toolkit::TextLabel::DownCast( label );
- if( textLabel )
- {
- textLabel.SetProperty( Toolkit::TextLabel::Property::HORIZONTAL_ALIGNMENT, "CENTER" );
- textLabel.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "CENTER" );
- textLabel.SetProperty( Toolkit::TextLabel::Property::MULTI_LINE, true );
- }
-
- ConfigureSizeNegotiation();
- }
-}
-
-void PushButton::OnButtonImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnSelectedImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnBackgroundImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnSelectedBackgroundImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnDisabledImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnDisabledSelectedImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnDisabledBackgroundImageSet()
-{
- ConfigureSizeNegotiation();
- RelayoutRequest();
-}
-
-void PushButton::OnSizeSet( const Vector3& targetSize )
-{
- if( targetSize != mSize )