__init__ |
|
Clone |
Create a new art provider which is a clone of this one. |
DrawButtonBarBackground |
Draw the background for a RibbonButtonBar control. |
DrawButtonBarButton |
Draw a single button for a RibbonButtonBar control. |
DrawGalleryBackground |
Draw the background and chrome for a RibbonGallery control. |
DrawGalleryButton |
|
DrawGalleryItemBackground |
Draw the background of a single item in a RibbonGallery control. |
DrawMinimisedPanel |
Draw a minimised ribbon panel. |
DrawPageBackground |
Draw the background of a ribbon page. |
DrawPanelBackground |
Draw the background and chrome for a ribbon panel. |
DrawPartialPanelBackground |
|
DrawScrollButton |
Draw a ribbon-style scroll button. |
DrawTab |
Draw a single tab in the tab region of a ribbon bar. |
DrawTabCtrlBackground |
Draw the background of the tab region of a ribbon bar. |
DrawTabSeparator |
Draw a separator between two tabs in a ribbon bar. |
DrawTool |
Draw a single tool (for a RibbonToolBar control). |
DrawToolBarBackground |
Draw the background for a RibbonToolBar control. |
DrawToolGroupBackground |
Draw the background for a group of tools on a RibbonToolBar control. |
GetBarTabWidth |
Calculate the ideal and minimum width (in pixels) of a tab in a ribbon bar. |
GetColour |
Get the value of a certain colour setting. |
GetPanelClientSize |
Calculate the client size of a panel for a given overall size. |
GetPanelExtButtonArea |
Retrieve the extension button area rectangle. |
GetPanelSize |
Calculate the size of a panel for a given client size. |
GetScrollButtonMinimumSize |
Calculate the minimum size (in pixels) of a scroll button. |
GetTabCtrlHeight |
Calculate the height (in pixels) of the tab region of a ribbon bar. |
SetColour |
Set the value of a certain colour setting to the value. |
SetColourScheme |
Set all applicable colour settings from a few base colours. |
SetFont |
Set the value of a certain font setting to the value. |
RibbonAUIArtProvider
(RibbonMSWArtProvider)¶__init__
(self)¶Clone
(self)¶Create a new art provider which is a clone of this one.
DrawButtonBarBackground
(self, dc, wnd, rect)¶Draw the background for a RibbonButtonBar
control.
Parameters: |
|
---|
DrawButtonBarButton
(self, dc, wnd, rect, kind, state, label, bitmap_large, bitmap_small)¶Draw a single button for a RibbonButtonBar
control.
Parameters: |
|
---|
DrawGalleryBackground
(self, dc, wnd, rect)¶Draw the background and chrome for a RibbonGallery
control.
This should draw the border, brackground, scroll buttons, extension button, and any other UI elements which are not attached to a specific gallery item.
Parameters: |
|
---|
DrawGalleryButton
(self, dc, rect, state, bitmaps)¶DrawGalleryItemBackground
(self, dc, wnd, rect, item)¶Draw the background of a single item in a RibbonGallery
control.
This is painted on top of a gallery background, and behind the items bitmap.
Unlike DrawButtonBarButton
and DrawTool
, it is not expected to draw the
item bitmap - that is done by the gallery control itself.
Parameters: |
|
---|
DrawMinimisedPanel
(self, dc, wnd, rect, bitmap)¶Draw a minimised ribbon panel.
Parameters: |
|
---|
DrawPageBackground
(self, dc, wnd, rect)¶Draw the background of a ribbon page.
Parameters: |
|
---|
See also
RibbonMSWArtProvider.GetPageBackgroundRedrawArea()
DrawPanelBackground
(self, dc, wnd, rect)¶Draw the background and chrome for a ribbon panel.
This should draw the border, background, label, and any other items of a panel
which are outside the client area of a panel. Note that when a panel is
minimised, this function is not called - only DrawMinimisedPanel
is called,
so a background should be explicitly painted by that if required.
Parameters: |
|
---|
DrawPartialPanelBackground
(self, dc, wnd, rect)¶DrawScrollButton
(self, dc, wnd, rect, style)¶Draw a ribbon-style scroll button.
Parameters: |
|
---|
DrawTab
(self, dc, wnd, tab)¶Draw a single tab in the tab region of a ribbon bar.
Parameters: |
|
---|
DrawTabCtrlBackground
(self, dc, wnd, rect)¶Draw the background of the tab region of a ribbon bar.
Parameters: |
|
---|
DrawTabSeparator
(self, dc, wnd, rect, visibility)¶Draw a separator between two tabs in a ribbon bar.
Parameters: |
|
---|
DrawTool
(self, dc, wnd, rect, bitmap, kind, state)¶Draw a single tool (for a RibbonToolBar
control).
Parameters: |
|
---|
DrawToolBarBackground
(self, dc, wnd, rect)¶Draw the background for a RibbonToolBar
control.
Parameters: |
|
---|
DrawToolGroupBackground
(self, dc, wnd, rect)¶Draw the background for a group of tools on a RibbonToolBar
control.
Parameters: |
|
---|
GetBarTabWidth
(self, dc, wnd, label, bitmap, ideal=None, small_begin_need_separator=None, small_must_have_separator=None, minimum=None)¶Calculate the ideal and minimum width (in pixels) of a tab in a ribbon bar.
Parameters: |
|
---|
GetColour
(self, id)¶Get the value of a certain colour setting.
can be one of the colour values of RibbonArtSetting.
Parameters: | id – the colour id. |
---|
GetPanelClientSize
(self, dc, wnd, size, client_offset=None)¶Calculate the client size of a panel for a given overall size.
This should act as the inverse to GetPanelSize
, and decrement the given size
by enough to fit the panel label and other chrome.
Parameters: |
|
---|
See also
GetPanelExtButtonArea
(self, dc, wnd, rect)¶Retrieve the extension button area rectangle.
Parameters: |
|
---|
GetPanelSize
(self, dc, wnd, client_size, client_offset=None)¶Calculate the size of a panel for a given client size.
This should increment the given size by enough to fit the panel label and other chrome.
Parameters: |
|
---|
See also
GetScrollButtonMinimumSize
(self, dc, wnd, style)¶Calculate the minimum size (in pixels) of a scroll button.
Parameters: |
|
---|
GetTabCtrlHeight
(self, dc, wnd, pages)¶Calculate the height (in pixels) of the tab region of a ribbon bar.
Note that as the tab region can contain scroll buttons, the height should be greater than or equal to the minimum height for a tab scroll button.
Parameters: |
|
---|
SetColour
(self, id, colour)¶Set the value of a certain colour setting to the value.
can be one of the colour values of RibbonArtSetting, though not all colour settings will have an affect on every art provider.
Parameters: |
|
---|
See also
SetColourScheme
(self, primary, secondary, tertiary)¶Set all applicable colour settings from a few base colours.
Uses any or all of the three given colours to create a colour scheme, and then sets all colour settings which are relevant to the art provider using that scheme. Note that some art providers may not use the tertiary colour for anything, and some may not use the secondary colour either.
Parameters: |
|
---|
See also
SetColour
, RibbonMSWArtProvider.GetColourScheme()
SetFont
(self, id, font)¶Set the value of a certain font setting to the value.
can be one of the font values of RibbonArtSetting.
Parameters: |
|
---|