wx.aui.AuiToolBarArt¶ wx.aui.AuiToolBarArt is part of the AUI class framework and is the base class defining the interface for rendering wx.aui.AuiToolBar.
It is an abstract base class and its concrete AuiGenericToolBarArt and AuiMSWToolBarArt subclasses provide the implementations used by default under all non-MSW platforms and under MSW respectively.
See also wx.aui.AuiToolBar and AUI Overview.
Class Hierarchy¶
Inheritance diagram for class AuiToolBarArt:
Known Subclasses¶wx.aui.AuiDefaultToolBarArt, AuiGenericToolBarArt
Methods Summary¶Returns the size of the given element in DIPs. |
|
Get the element size scaled by the |
|
Return the size of the label for the given item. |
|
Return the direction used for rendering text. |
|
Return the size of the given item. |
|
Sets the size of the given element in DIPs. |
|
Set the text direction for rendering text. |
|
Properties Summary¶See |
|
See |
Class API¶Possible constructors:
AuiToolBarArt() -> None
AuiToolBarArt is part of the AUI class framework and is the base
class defining the interface for rendering AuiToolBar.
None
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
None
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
None
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
None
dc (wx.DC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
rect (wx.Rect)
None
Returns the size of the given element in DIPs.
This function is typically more convenient to override, as it can just return the same value as was passed to SetElementSize , but it shouldn’t usually be called, use GetElementSizeForWindow instead.
elementId (int) – One of wx.aui.AuiToolBarArtSetting elements.
int
The size of the element in DIPs.
Get the element size scaled by the DPI of the given window.
This function should be used to get the size of the element in pixels.
The default version delegates to GetElementSize , override this function if a different behaviour (e.g. to use some smarter algorithm for scaling instead of just multiplying by the DPI factor) is needed.
elementId (int) – One of wx.aui.AuiToolBarArtSetting elements.
window (wx.Window) – A valid window, typically wx.aui.AuiToolBar itself.
int
The size of the element in pixels.
Added in version 4.3/wxWidgets-3.3.0.
See also
int
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.
dc (wx.ReadOnlyDC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
Size
Return the direction used for rendering text.
Always returns wx.aui.AuiTextDirection.LeftToRight in the base class.
Added in version 4.3/wxWidgets-3.3.2.
int
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.
dc (wx.ReadOnlyDC)
wnd (wx.Window)
item (wx.aui.AuiToolBarItem)
Size
Sets the size of the given element in DIPs.
Note that this function takes the size in DPI-independent pixels and this size will be scaled by the factor depending on the DPI being actually used by GetElementSizeForWindow . In particular, do not use wx.Window.FromDIP for the size argument passed to this function.
elementId (int) – One of wx.aui.AuiToolBarArtSetting elements.
size (int) – The size of the element in DIPs.
None
flags (int)
None
Set the text direction for rendering text.
Does nothing in the base class, override this function to support vertical text rendering.
direction (AuiTextDirection)
None
Added in version 4.3/wxWidgets-3.3.2.
orientation (int)
None
wnd (wx.Window)
items (AuiToolBarItemArray)
int
See GetTextDirection and SetTextDirection
See GetTextOrientation and SetTextOrientation