示例#1
0
 protected override void DrawContents(object canvas)
 {
     if (m_imageObject != null)
     {
         m_imageObject.Draw(canvas);
     }
     base.DrawContents(canvas);
 }
示例#2
0
 public override void Draw()
 {
     if (isBlock)
     {
         onBlock.Draw();
     }
     else
     {
         offBlock.Draw();
     }
 }
示例#3
0
        protected override void DrawContents(object canvas)
        {
            base.DrawContents(canvas);

            if (m_label != null)
            {
                m_label.Draw(canvas);
            }

            if (IsFocused)
            {
                m_cursor.Draw(canvas);
            }
        }
示例#4
0
        protected override void DrawContents(object canvas)
        {
            base.DrawContents(canvas);

            if (m_labels != null)
            {
                foreach (LabelObject label in m_labels)
                {
                    label.Draw(canvas);
                }
            }

            if (IsFocused)
            {
                m_cursor.Draw(canvas);
            }
        }