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 SetArtProvider to make use this new tab art.
__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. |
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.
Draws a button on the tab or on the tab area, depending on the button identifier.
Parameters: |
---|
Draws the focus rectangle on a tab.
Parameters: |
|
---|
Draws a single tab.
Parameters: |
|
---|
Returns the tab art flags.
See also
SetAGWFlags for a list of possible return values.
Returns the best tab control size.
Parameters: |
|
---|
Returns the tab size for the given caption, bitmap and button state.
Parameters: |
|
---|
Sets the tab art flags.
Parameters: | agwFlags – a combination of the following values:
|
---|
Sets a new base colour.
Parameters: | base_colour – an instance of wx.Colour. |
---|
Sets a custom bitmap for the close, left, right and window list buttons.
Parameters: |
|
---|
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. |
---|
Sets the font for calculating text measurements.
Parameters: | font – a wx.Font object. |
---|
Sets the normal font for drawing tab labels.
Parameters: | font – a wx.Font object. |
---|
Sets the selected tab font for drawing tab labels.
Parameters: | font – a wx.Font object. |
---|
Sets the tab sizing information.
Parameters: |
|
---|