Example #1
0
 public override void Draw()
 {
     DrawX.DrawFilledRect(Area, BackGroundColor);
     if (HasFocus)
     {
         DrawX.DrawShapeOutline(Area, BorderColor);
     }
     Font.Draw(DrawString, Position + 1f, TextColor, Alignment.TopLeft, -5);
 }
Example #2
0
 public static void Draw(string str, Font font, Point pos, Color color, Alignment alignment = Alignment.Top | Alignment.Left, int depth = 0)
 {
     font.Draw(str, pos, color, alignment, depth);
 }
Example #3
0
 public static void Draw(string str, Font font, Point pos, Color color, CombinedAlignment alignment = CombinedAlignment.TopLeft, int depth = 0)
 {
     font.Draw(str, pos, color, alignment, depth);
 }