コード例 #1
0
 public void SetTextPadding(TextPadding padding)
 {
     m_PaddingLeft   = padding.left;
     m_PaddingRight  = padding.right;
     m_PaddingTop    = padding.top;
     m_PaddingBottom = padding.bottom;
     UpdatePadding();
 }
コード例 #2
0
 public virtual void Copy(LabelStyle label)
 {
     m_Show             = label.m_Show;
     m_Position         = label.m_Position;
     m_Offset           = label.m_Offset;
     m_Rotate           = label.m_Rotate;
     m_Distance         = label.m_Distance;
     m_Formatter        = label.m_Formatter;
     m_Width            = label.m_Width;
     m_Height           = label.m_Height;
     m_NumericFormatter = label.m_NumericFormatter;
     m_AutoOffset       = label.m_AutoOffset;
     m_Icon.Copy(label.m_Icon);
     m_Background.Copy(label.m_Background);
     m_TextPadding = label.m_TextPadding;
     m_TextStyle.Copy(label.m_TextStyle);
 }