/// <summary> /// Draws a push button in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="buttonRect">The Rectangle that represents the dimensions /// of the button</param> /// <param name="state">A PushButtonStates value that specifies the /// state to draw the button in</param> public static void DrawButton(Graphics g, Rectangle buttonRect, PushButtonStates state) { ThemeManager.DrawButton(g, buttonRect, buttonRect, state); }
/// <summary> /// Draws the background image defined by the visual style for the specified control part /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="windowClass">The class of the part to draw</param> /// <param name="part">The part to draw</param> /// <param name="partState">The state of the part to draw</param> /// <param name="drawRect">The Rectangle in which the part is drawn</param> public static void DrawThemeBackground(Graphics g, string windowClass, int part, int partState, Rectangle drawRect) { // ThemeManager.DrawThemeBackground(g, windowClass, part, partState, drawRect, drawRect); }
/// <summary> /// Draws an UpDown's up and down buttons in the specified state, on the specified /// graphics surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="upButtonRect">The Rectangle that represents the dimensions /// of the up button</param> /// <param name="upButtonState">An UpDownStates value that specifies the /// state to draw the up button in</param> /// <param name="downButtonRect">The Rectangle that represents the dimensions /// of the down button</param> /// <param name="downButtonState">An UpDownStates value that specifies the /// state to draw the down button in</param> public static void DrawUpDownButtons(Graphics g, Rectangle upButtonRect, UpDownStates upButtonState, Rectangle downButtonRect, UpDownStates downButtonState) { ThemeManager.DrawUpDownButtons(g, upButtonRect, upButtonRect, upButtonState, downButtonRect, downButtonRect, downButtonState); }
/// <summary> /// Draws an UpDown's up and down buttons in the specified state, on the specified /// graphics surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="upButtonRect">The Rectangle that represents the dimensions /// of the up button</param> /// <param name="upButtonClipRect">The Rectangle that represents the clipping area /// for the up button</param> /// <param name="upButtonState">An UpDownStates value that specifies the /// state to draw the up button in</param> /// <param name="downButtonRect">The Rectangle that represents the dimensions /// of the down button</param> /// <param name="downButtonClipRect">The Rectangle that represents the clipping area /// for the down button</param> /// <param name="downButtonState">An UpDownStates value that specifies the /// state to draw the down button in</param> public static void DrawUpDownButtons(Graphics g, Rectangle upButtonRect, Rectangle upButtonClipRect, UpDownStates upButtonState, Rectangle downButtonRect, Rectangle downButtonClipRect, UpDownStates downButtonState) { if (g == null) { return; } if (upButtonRect.Width > 0 && upButtonRect.Height > 0 && upButtonClipRect.Width > 0 && upButtonClipRect.Height > 0) { if (ThemeManager.VisualStylesEnabled) { ThemeManager.DrawThemeBackground(g, ThemeClasses.UpDown, (int)UpDownParts.Up, (int)upButtonState, upButtonRect, upButtonClipRect); } else { ControlPaint.DrawScrollButton(g, upButtonRect, ScrollButton.Up, ThemeManager.ConvertUpDownStateToButtonState(upButtonState)); } } if (downButtonRect.Width > 0 && downButtonRect.Height > 0 && downButtonClipRect.Width > 0 && downButtonClipRect.Height > 0) { if (ThemeManager.VisualStylesEnabled) { ThemeManager.DrawThemeBackground(g, ThemeClasses.UpDown, (int)UpDownParts.Down, (int)downButtonState, downButtonRect, downButtonClipRect); } else { ControlPaint.DrawScrollButton(g, downButtonRect, ScrollButton.Down, ThemeManager.ConvertUpDownStateToButtonState(downButtonState)); } } }
/// <summary> /// Draws a TabPage body on the specified graphics surface, and within the /// specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="tabRect">The Rectangle that represents the dimensions /// of the TabPage body</param> internal static void DrawTabPageBody(Graphics g, Rectangle tabRect) { ThemeManager.DrawTabPageBody(g, tabRect, tabRect); }
/// <summary> /// Draws a TextBox in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="textRect">The Rectangle that represents the dimensions /// of the TextBox</param> /// <param name="state">A TextBoxStates value that specifies the /// state to draw the TextBox in</param> public static void DrawTextBox(Graphics g, Rectangle textRect, TextBoxStates state) { ThemeManager.DrawTextBox(g, textRect, textRect, state); }
/// <summary> /// Draws a RadioButton in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="checkRect">The Rectangle that represents the dimensions /// of the RadioButton</param> /// <param name="state">A RadioButtonStates value that specifies the /// state to draw the RadioButton in</param> public static void DrawRadioButton(Graphics g, Rectangle checkRect, RadioButtonStates state) { ThemeManager.DrawRadioButton(g, checkRect, checkRect, state); }
/// <summary> /// Draws the ProgressBar's chunks on the specified graphics surface, and within /// the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="drawRect">The Rectangle that represents the dimensions /// of the ProgressBar</param> public static void DrawProgressBarChunks(Graphics g, Rectangle drawRect) { ThemeManager.DrawProgressBarChunks(g, drawRect, drawRect); }
/// <summary> /// Draws a combobox button in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="buttonRect">The Rectangle that represents the dimensions /// of the combobox button</param> /// <param name="state">A ComboBoxStates value that specifies the /// state to draw the combobox button in</param> public static void DrawComboBoxButton(Graphics g, Rectangle buttonRect, ComboBoxStates state) { ThemeManager.DrawComboBoxButton(g, buttonRect, buttonRect, state); }
/// <summary> /// Draws a column header in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="headerRect">The Rectangle that represents the dimensions /// of the column header</param> /// <param name="state">A ColumnHeaderStates value that specifies the /// state to draw the column header in</param> public static void DrawColumnHeader(Graphics g, Rectangle headerRect, ColumnHeaderStates state) { ThemeManager.DrawColumnHeader(g, headerRect, headerRect, state); }
/// <summary> /// Draws a check box in the specified state, on the specified graphics /// surface, and within the specified bounds /// </summary> /// <param name="g">The Graphics to draw on</param> /// <param name="checkRect">The Rectangle that represents the dimensions /// of the check box</param> /// <param name="state">A CheckBoxStates value that specifies the /// state to draw the check box in</param> public static void DrawCheck(Graphics g, Rectangle checkRect, CheckBoxStates state) { ThemeManager.DrawCheck(g, checkRect, checkRect, state); }