C# Class GrayIris.Utilities.UI.Controls.YaTabDrawerBase

Describes the contract for classes that can draw the tabs for a YaTabControl.
Inheritance: System.ComponentModel.Component
ファイルを表示 Open project: realistschuckle/yet-another-tab-control

Public Methods

Method Description
DrawTab ( Color foreColor, Color backColor, Color highlightColor, Color shadowColor, Color borderColor, Color hoverColor, bool active, bool mouseOver, DockStyle dock, Graphics graphics, SizeF tabSize, bool isNewTab ) : void

Draws a tab for a YaTabControl.

The Graphics should get translated so that the relative coordinate (0,0) is where the tab should get drawn.

SupportsTabDockStyle ( DockStyle dock ) : bool

Checks if dock is supported by this tab drawer.

Method Details

DrawTab() public abstract method

Draws a tab for a YaTabControl.
The Graphics should get translated so that the relative coordinate (0,0) is where the tab should get drawn.
public abstract DrawTab ( Color foreColor, Color backColor, Color highlightColor, Color shadowColor, Color borderColor, Color hoverColor, bool active, bool mouseOver, DockStyle dock, Graphics graphics, SizeF tabSize, bool isNewTab ) : void
foreColor Color The foreground of the tab.
backColor Color The background of the tab.
highlightColor Color The highlight of the tab.
shadowColor Color The shadow of the tab.
borderColor Color The used as the border color for the .
hoverColor Color The used when hovering over the .
active bool Flag to instruct the drawer to draw the active tab.
mouseOver bool Flag to indicate the cursor is over the tab getting drawn.
dock DockStyle The to inform the tab drawer how to draw highlights and shadows, if applicable.
graphics System.Drawing.Graphics The on which to draw the tab.
tabSize System.Drawing.SizeF The of the tab.
isNewTab bool
return void

SupportsTabDockStyle() public abstract method

Checks if dock is supported by this tab drawer.
public abstract SupportsTabDockStyle ( DockStyle dock ) : bool
dock DockStyle The to check for support.
return bool