#include <wx/aui/auibar.h>
Inheritance diagram for wxAuiToolBarArt:wxAuiToolBarArt is part of the wxAUI class framework and is the base class defining the interface for rendering wxAuiToolBar.
It is an abstract base class and its concrete wxAuiGenericToolBarArt and wxAuiMSWToolBarArt subclasses provide the implementations used by default under all non-MSW platforms and under MSW respectively.
See also wxAuiToolBar and wxAUI Overview.
Public Member Functions | |
| wxAuiToolBarArt () | |
| virtual wxAuiToolBarArt * | Clone ()=0 |
| virtual void | SetFlags (unsigned int flags)=0 |
| virtual unsigned int | GetFlags ()=0 |
| virtual void | SetFont (const wxFont &font)=0 |
| virtual wxFont | GetFont ()=0 |
| virtual void | SetTextOrientation (int orientation)=0 |
| virtual int | GetTextOrientation ()=0 |
| virtual void | SetTextDirection (wxAuiTextDirection direction) |
| Set the text direction for rendering text. | |
| virtual wxAuiTextDirection | GetTextDirection () const |
| Return the direction used for rendering text. | |
| virtual void | DrawBackground (wxDC &dc, wxWindow *wnd, const wxRect &rect)=0 |
| virtual void | DrawPlainBackground (wxDC &dc, wxWindow *wnd, const wxRect &rect)=0 |
| virtual void | DrawLabel (wxDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item, const wxRect &rect)=0 |
| virtual void | DrawButton (wxDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item, const wxRect &rect)=0 |
| virtual void | DrawDropDownButton (wxDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item, const wxRect &rect)=0 |
| virtual void | DrawControlLabel (wxDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item, const wxRect &rect)=0 |
| virtual void | DrawSeparator (wxDC &dc, wxWindow *wnd, const wxRect &rect)=0 |
| virtual void | DrawGripper (wxDC &dc, wxWindow *wnd, const wxRect &rect)=0 |
| virtual void | DrawOverflowButton (wxDC &dc, wxWindow *wnd, const wxRect &rect, int state)=0 |
| virtual wxSize | GetLabelSize (wxReadOnlyDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item)=0 |
| Return the size of the label for the given item. | |
| virtual wxSize | GetToolSize (wxReadOnlyDC &dc, wxWindow *wnd, const wxAuiToolBarItem &item)=0 |
| Return the size of the given item. | |
| virtual int | GetElementSizeForWindow (int elementId, const wxWindow *window) |
| Get the element size scaled by the DPI of the given window. | |
| virtual int | GetElementSize (int elementId)=0 |
| Returns the size of the given element in DIPs. | |
| virtual void | SetElementSize (int elementId, int size)=0 |
| Sets the size of the given element in DIPs. | |
| virtual int | ShowDropDown (wxWindow *wnd, const wxAuiToolBarItemArray &items)=0 |
| Show a drop down menu with the given items. | |
| wxAuiToolBarArt::wxAuiToolBarArt | ( | ) |
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
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 | One of wxAuiToolBarArtSetting elements. |
Implemented in wxAuiDefaultToolBarArt.
|
virtual |
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 | One of wxAuiToolBarArtSetting elements. |
| window | A valid window, typically wxAuiToolBar itself. |
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Return the size of the label for the given item.
Note that the type of dc was wxDC until wxWidgets 3.3.0, where it was changed to wxReadOnlyDC as this function doesn't modify the DC contents.
Implemented in wxAuiDefaultToolBarArt.
|
virtual |
Return the direction used for rendering text.
Always returns wxAuiTextDirection::LeftToRight in the base class.
Reimplemented in wxAuiGenericToolBarArt, and wxAuiMSWToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Return the size of the given item.
Note that the type of dc was wxDC until wxWidgets 3.3.0, where it was changed to wxReadOnlyDC as this function doesn't modify the DC contents.
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
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 wxWindow::FromDIP() for the size argument passed to this function.
| elementId | One of wxAuiToolBarArtSetting elements. |
| size | The size of the element in DIPs. |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
virtual |
Set the text direction for rendering text.
Does nothing in the base class, override this function to support vertical text rendering.
Reimplemented in wxAuiGenericToolBarArt, and wxAuiMSWToolBarArt.
|
pure virtual |
Implemented in wxAuiDefaultToolBarArt.
|
pure virtual |
Show a drop down menu with the given items.
Implemented in wxAuiDefaultToolBarArt.