private static void PaintDockMarkerButtonContent(DockMarkerButton button, Graphics graphics, bool hover)
        {
            switch (button.Type)
            {
            case DockResult.Top:
                PaintDockMarkerTopButton(graphics, button.Bounds, hover);
                break;

            case DockResult.DocumentTop:
                PaintDockMarkerDocumentTopButton(graphics, button.Bounds, hover);
                break;

            case DockResult.Left:
                PaintDockMarkerLeftButton(graphics, button.Bounds, hover);
                break;

            case DockResult.DocumentLeft:
                PaintDockMarkerDocumentLeftButton(graphics, button.Bounds, hover);
                break;

            case DockResult.Fill:
                PaintDockMarkerFillButton(graphics, button.Bounds, hover);
                break;

            case DockResult.Right:
                PaintDockMarkerRightButton(graphics, button.Bounds, hover);
                break;

            case DockResult.DocumentRight:
                PaintDockMarkerDocumentRightButton(graphics, button.Bounds, hover);
                break;

            case DockResult.Bottom:
                PaintDockMarkerBottomButton(graphics, button.Bounds, hover);
                break;

            case DockResult.DocumentBottom:
                PaintDockMarkerDocumentBottomButton(graphics, button.Bounds, hover);
                break;
            }
        }
Beispiel #2
0
 public abstract void RenderDockMarkerButton(DockMarkerButton button, Graphics graphics, bool hover);
 private static void PaintDockMarkerButtonContent(DockMarkerButton button, Graphics graphics, bool hover)
 {
     switch(button.Type)
     {
         case DockResult.Top:
             PaintDockMarkerTopButton(graphics, button.Bounds, hover);
             break;
         case DockResult.DocumentTop:
             PaintDockMarkerDocumentTopButton(graphics, button.Bounds, hover);
             break;
         case DockResult.Left:
             PaintDockMarkerLeftButton(graphics, button.Bounds, hover);
             break;
         case DockResult.DocumentLeft:
             PaintDockMarkerDocumentLeftButton(graphics, button.Bounds, hover);
             break;
         case DockResult.Fill:
             PaintDockMarkerFillButton(graphics, button.Bounds, hover);
             break;
         case DockResult.Right:
             PaintDockMarkerRightButton(graphics, button.Bounds, hover);
             break;
         case DockResult.DocumentRight:
             PaintDockMarkerDocumentRightButton(graphics, button.Bounds, hover);
             break;
         case DockResult.Bottom:
             PaintDockMarkerBottomButton(graphics, button.Bounds, hover);
             break;
         case DockResult.DocumentBottom:
             PaintDockMarkerDocumentBottomButton(graphics, button.Bounds, hover);
             break;
     }
 }
 public override void RenderDockMarkerButton(DockMarkerButton button, Graphics graphics, bool hover)
 {
     PaintDockMarkerButtonBackground(graphics, button.Bounds, hover);
     PaintDockMarkerButtonContent(button, graphics, hover);
 }
Beispiel #5
0
 public abstract void RenderDockMarkerButton(DockMarkerButton button, Graphics graphics, bool hover);
 public override void RenderDockMarkerButton(DockMarkerButton button, Graphics graphics, bool hover)
 {
     PaintDockMarkerButtonBackground(graphics, button.Bounds, hover);
     PaintDockMarkerButtonContent(button, graphics, hover);
 }