Tab art provider code - a tab provider provides all drawing functionality to the AuiNotebook
.
This allows the AuiNotebook
to have a plugable look-and-feel.
By default, a AuiNotebook
uses an instance of this class called
AuiDefaultTabArt
which provides bitmap art and a colour scheme that is adapted to the major platforms’
look. You can either derive from that class to alter its behaviour or write a
completely new tab art class. Call AuiNotebook.SetArtProvider()
to make use this
new tab art.
wx.lib.agw.aui.tabart.ChromeTabArt
, wx.lib.agw.aui.tabart.FF2TabArt
, wx.lib.agw.aui.tabart.VC71TabArt
, wx.lib.agw.aui.tabart.VC8TabArt
__init__ |
Default class constructor. |
Clone |
Clones the art object. |
DrawBackground |
Draws the tab area background. |
DrawButton |
Draws a button on the tab or on the tab area, depending on the button identifier. |
DrawFocusRectangle |
Draws the focus rectangle on a tab. |
DrawTab |
Draws a single tab. |
GetAGWFlags |
Returns the tab art flags. |
GetBestTabCtrlSize |
Returns the best tab control size. |
GetIndentSize |
Returns the tabs indent size. |
GetMeasuringFont |
Returns the font for calculating text measurements. |
GetNormalFont |
Returns the normal font for drawing tab labels. |
GetSelectedFont |
Returns the selected tab font for drawing tab labels. |
GetTabSize |
Returns the tab size for the given caption, bitmap and button state. |
SetAGWFlags |
Sets the tab art flags. |
SetBaseColour |
Sets a new base colour. |
SetCustomButton |
Sets a custom bitmap for the close, left, right and window list buttons. |
SetDefaultColours |
Sets the default colours, which are calculated from the given base colour. |
SetMeasuringFont |
Sets the font for calculating text measurements. |
SetNormalFont |
Sets the normal font for drawing tab labels. |
SetSelectedFont |
Sets the selected tab font for drawing tab labels. |
SetSizingInfo |
Sets the tab sizing information. |
ShowDropDown |
Shows the drop-down window menu on the tab area. |
AuiDefaultTabArt
(object)¶Tab art provider code - a tab provider provides all drawing functionality to the AuiNotebook
.
This allows the AuiNotebook
to have a plugable look-and-feel.
By default, a AuiNotebook
uses an instance of this class called
AuiDefaultTabArt
which provides bitmap art and a colour scheme that is adapted to the major platforms’
look. You can either derive from that class to alter its behaviour or write a
completely new tab art class. Call AuiNotebook.SetArtProvider()
to make use this
new tab art.
__init__
(self)¶Default class constructor.
Clone
(self)¶Clones the art object.
DrawBackground
(self, dc, wnd, rect)¶Draws the tab area background.
Parameters: |
---|
DrawButton
(self, dc, wnd, in_rect, button, orientation)¶Draws a button on the tab or on the tab area, depending on the button identifier.
Parameters: |
---|
DrawFocusRectangle
(self, dc, page, wnd, draw_text, text_offset, bitmap_offset, drawn_tab_yoff, drawn_tab_height, textx, texty)¶Draws the focus rectangle on a tab.
Parameters: |
|
---|
DrawTab
(self, dc, wnd, page, in_rect, close_button_state, paint_control=False)¶Draws a single tab.
Parameters: |
|
---|
GetAGWFlags
(self)¶Returns the tab art flags.
See also
SetAGWFlags
for a list of possible return values.
GetBestTabCtrlSize
(self, wnd, pages, required_bmp_size)¶Returns the best tab control size.
Parameters: |
---|
GetIndentSize
(self)¶Returns the tabs indent size.
GetMeasuringFont
(self)¶Returns the font for calculating text measurements.
GetNormalFont
(self)¶Returns the normal font for drawing tab labels.
GetSelectedFont
(self)¶Returns the selected tab font for drawing tab labels.
GetTabSize
(self, dc, wnd, caption, bitmap, active, close_button_state, control=None)¶Returns the tab size for the given caption, bitmap and button state.
Parameters: |
|
---|
SetAGWFlags
(self, agwFlags)¶Sets the tab art flags.
Parameters: | agwFlags (integer) – a combination of the following values:
|
---|
SetBaseColour
(self, base_colour)¶Sets a new base colour.
Parameters: | base_colour – an instance of wx.Colour . |
---|
SetCustomButton
(self, bitmap_id, button_state, bmp)¶Sets a custom bitmap for the close, left, right and window list buttons.
Parameters: |
|
---|
SetDefaultColours
(self, base_colour=None)¶Sets the default colours, which are calculated from the given base colour.
Parameters: | base_colour – an instance of wx.Colour . If defaulted to None , a colour
is generated accordingly to the platform and theme. |
---|
SetMeasuringFont
(self, font)¶Sets the font for calculating text measurements.
Parameters: | font (wx.Font) – the new font to use to measure tab labels text extents. |
---|
SetNormalFont
(self, font)¶Sets the normal font for drawing tab labels.
Parameters: | font (wx.Font) – the new font to use to draw tab labels in their normal, un-selected state. |
---|
SetSelectedFont
(self, font)¶Sets the selected tab font for drawing tab labels.
Parameters: | font (wx.Font) – the new font to use to draw tab labels in their selected state. |
---|
SetSizingInfo
(self, tab_ctrl_size, tab_count, minMaxTabWidth)¶Sets the tab sizing information.
Parameters: |
|
---|