Base class for the FlatMenu renderers. This class implements the common methods of all the renderers.
__init__ | Default class constructor. |
ConvertToBitmap | Convert the given image to a bitmap, optionally overlaying an alpha channel to it. |
DrawBitmapShadow | Draws a shadow using background bitmap. |
DrawButton | Draws a button. |
DrawLeftMargin | Draws the menu left margin. |
DrawMenu | Draws the menu. |
DrawMenuBar | Draws everything for FlatMenuBar. |
DrawMenuBarBackground | Draws the menu bar background colour according to the menubar.GetBackgroundColour |
DrawMenuBarButton | Draws the highlight on a FlatMenuBar. |
DrawMenuButton | Draws the highlight on a FlatMenu |
DrawMenuItem | Draws the menu item. |
DrawScrollButton | Draws the scroll button |
DrawSeparator | Draws a separator inside a FlatMenu. |
DrawToolBarBg | Draws the toolbar background |
DrawToolbarSeparator | Draws a separator inside the toolbar in FlatMenuBar. |
GetColoursAccordingToState | Returns a wx.Colour according to the menu item state. |
SetMenuBarHighlightColour | Set the colour to highlight focus on the menu bar. |
SetMenuHighlightColour | Set the colour to highlight focus on the menu. |
Base class for the FlatMenu renderers. This class implements the common methods of all the renderers.
Default class constructor.
Convert the given image to a bitmap, optionally overlaying an alpha channel to it.
Parameters: |
|
---|
Draws a shadow using background bitmap.
Parameters: |
|
---|
Draws a button.
Parameters: |
|
---|
Draws the menu left margin.
Parameters: |
|
---|
Draws the menu.
Parameters: |
---|
Draws everything for FlatMenuBar.
Parameters: |
|
---|
Draws the menu bar background colour according to the menubar.GetBackgroundColour
Parameters: |
---|
Draws the highlight on a FlatMenuBar.
Parameters: |
---|
Draws the highlight on a FlatMenu
Parameters: |
---|
Draws the menu item.
Parameters: |
|
---|
Draws the scroll button
Parameters: |
---|
Draws a separator inside a FlatMenu.
Parameters: |
|
---|
Draws the toolbar background
Parameters: |
---|
Draws a separator inside the toolbar in FlatMenuBar.
Parameters: |
---|
Returns a wx.Colour according to the menu item state.
Parameters: | state (integer) – one of the following bits:
|
---|
Set the colour to highlight focus on the menu bar.
Parameters: | colour – a valid instance of wx.Colour. |
---|
Set the colour to highlight focus on the menu.
Parameters: | colour – a valid instance of wx.Colour. |
---|