예제 #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);
 }
예제 #2
0
 public override void Draw()
 {
     DrawX.DrawFilledRect(ScrollbarRect, BackgroundColor, Depth);
     DrawX.DrawFilledRect(SliderRect, Dragging ? SliderColorDragging : Hovering ? SliderColorHovering : SliderColor, Depth);
 }