wx.aui.AuiDefaultToolBarArt¶
wx.aui.AuiDefaultToolBarArt is part of the AUI class framework.
See also wx.aui.AuiToolBarArt , wx.aui.AuiToolBar and AUI Overview.
Class Hierarchy¶
Methods Summary¶
Return the size of the element. |
|
Return the size of the label for the given item. |
|
Return the size of the given item. |
|
Change the size of the element. |
|
Properties Summary¶
See |
Class API¶
- class wx.aui.AuiDefaultToolBarArt(AuiToolBarArt)¶
Possible constructors:
AuiDefaultToolBarArt() -> None
AuiDefaultToolBarArt is part of the
AUIclass framework.
Methods¶
- __init__(self)¶
- Return type:
None
- Clone(self)¶
- Return type:
- DrawBackground(self, dc, wnd, rect)¶
- DrawButton(self, dc, wnd, item, rect)¶
- Parameters:
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
- Return type:
None
- DrawControlLabel(self, dc, wnd, item, rect)¶
- Parameters:
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
- Return type:
None
- DrawDropDownButton(self, dc, wnd, item, rect)¶
- Parameters:
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
- Return type:
None
- DrawGripper(self, dc, wnd, rect)¶
- DrawLabel(self, dc, wnd, item, rect)¶
- Parameters:
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
- Return type:
None
- DrawOverflowButton(self, dc, wnd, rect, state)¶
- DrawPlainBackground(self, dc, wnd, rect)¶
- DrawSeparator(self, dc, wnd, rect)¶
- GetElementSize(self, elementId)¶
Return the size of the element.
Implement the base class pure virtual function by returning the default element size or the last value passed to
SetElementSize.- Parameters:
elementId (int)
- Return type:
int
- GetFlags(self)¶
- Return type:
int
- GetLabelSize(self, dc, wnd, item)¶
Return the size of the label for the given item.
Note that the type of dc was wx.DC until wxWidgets 3.3.0, where it was changed to wx.ReadOnlyDC as this function doesn’t modify the DC contents.
- Parameters:
dc (wx.ReadOnlyDC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
- Return type:
Size
- GetTextOrientation(self)¶
- Return type:
int
- GetToolSize(self, dc, wnd, item)¶
Return the size of the given item.
Note that the type of dc was wx.DC until wxWidgets 3.3.0, where it was changed to wx.ReadOnlyDC as this function doesn’t modify the DC contents.
- Parameters:
dc (wx.ReadOnlyDC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
- Return type:
Size
- SetElementSize(self, elementId, size)¶
Change the size of the element.
Implements the base class pure virtual function by storing the value to be returned by
GetElementSizeand used byGetElementSizeForWindow.As for the base class function, size is in DIPs, not pixels, so
wx.Window.FromDIPshould not be used for it.- Parameters:
elementId (int)
size (int)
- Return type:
None
- SetFlags(self, flags)¶
- Parameters:
flags (int)
- Return type:
None
- SetTextOrientation(self, orientation)¶
- Parameters:
orientation (int)
- Return type:
None
- ShowDropDown(self, wnd, items)¶
- Parameters:
wnd (wx.Window)
items (AuiToolBarItemArray)
- Return type:
int
Properties¶
- TextOrientation¶
See
GetTextOrientationandSetTextOrientation