phoenix_title 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 Class Hierarchy

Inheritance diagram for class AuiDefaultToolBarArt:

method_summary Methods Summary

__init__

Clone

DrawBackground

DrawButton

DrawControlLabel

DrawDropDownButton

DrawGripper

DrawLabel

DrawOverflowButton

DrawPlainBackground

DrawSeparator

GetElementSize

Return the size of the element.

GetFlags

GetFont

GetLabelSize

Return the size of the label for the given item.

GetTextOrientation

GetToolSize

Return the size of the given item.

SetElementSize

Change the size of the element.

SetFlags

SetFont

SetTextOrientation

ShowDropDown


property_summary Properties Summary

Flags

See GetFlags and SetFlags

Font

See GetFont and SetFont

TextOrientation

See GetTextOrientation and SetTextOrientation


api Class API

class wx.aui.AuiDefaultToolBarArt(AuiToolBarArt)

Possible constructors:

AuiDefaultToolBarArt() -> None

AuiDefaultToolBarArt is part of the AUI class framework.


Methods

__init__(self)
Return type:

None



Clone(self)
Return type:

wx.aui.AuiToolBarArt



DrawBackground(self, dc, wnd, rect)
Parameters:
Return type:

None



DrawButton(self, dc, wnd, item, rect)
Parameters:
Return type:

None



DrawControlLabel(self, dc, wnd, item, rect)
Parameters:
Return type:

None



DrawDropDownButton(self, dc, wnd, item, rect)
Parameters:
Return type:

None



DrawGripper(self, dc, wnd, rect)
Parameters:
Return type:

None



DrawLabel(self, dc, wnd, item, rect)
Parameters:
Return type:

None



DrawOverflowButton(self, dc, wnd, rect, state)
Parameters:
Return type:

None



DrawPlainBackground(self, dc, wnd, rect)
Parameters:
Return type:

None



DrawSeparator(self, dc, wnd, rect)
Parameters:
Return type:

None



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



GetFont(self)
Return type:

Font



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:
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:
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 GetElementSize and used by GetElementSizeForWindow .

As for the base class function, size is in DIPs, not pixels, so wx.Window.FromDIP should not be used for it.

Parameters:
  • elementId (int)

  • size (int)

Return type:

None



SetFlags(self, flags)
Parameters:

flags (int)

Return type:

None



SetFont(self, font)
Parameters:

font (wx.Font)

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

Flags

See GetFlags and SetFlags



Font

See GetFont and SetFont



TextOrientation

See GetTextOrientation and SetTextOrientation