wxauidockartwxauidockart is part of the wxaui class framework. see also wxaui overview. dock art provider code - a dock provider provides all drawing functionality to the wxaui dock manager. this allows the dock manager to have a plugable look-and-feel. by default, a wxauimanager uses an instance of this class called wxauidefaultdockart which provides bitmap art and a colour scheme that is adapted to the major platforms' look. you can either derive from that class to alter its behaviour or write a completely new dock art class. call wxauimanager::setartprovider to make use this new dock art. derived from no base class include files <wx/aui/dockart.h> see also data structures
enum wxauipanedockartsetting { wxaui_dockart_sash_size = 0, wxaui_dockart_caption_size = 1, wxaui_dockart_gripper_size = 2, wxaui_dockart_pane_border_size = 3, wxaui_dockart_pane_button_size = 4, wxaui_dockart_background_colour = 5, wxaui_dockart_sash_colour = 6, wxaui_dockart_active_caption_colour = 7, wxaui_dockart_active_caption_gradient_colour = 8, wxaui_dockart_inactive_caption_colour = 9, wxaui_dockart_inactive_caption_gradient_colour = 10, wxaui_dockart_active_caption_text_colour = 11, wxaui_dockart_inactive_caption_text_colour = 12, wxaui_dockart_border_colour = 13, wxaui_dockart_gripper_colour = 14, wxaui_dockart_caption_font = 15, wxaui_dockart_gradient_type = 16 } enum wxauipanedockartgradients wxaui_gradient_none = 0, wxaui_gradient_vertical = 1, wxaui_gradient_horizontal = 2
enum wxauipanebuttonstate { wxaui_button_state_normal = 0, wxaui_button_state_hover = 1, wxaui_button_state_pressed = 2 } enum wxauibuttonid wxaui_button_close = 101, wxaui_button_maximize_restore = 102, wxaui_button_minimize = 103, wxaui_button_pin = 104, wxaui_button_options = 105, wxaui_button_windowlist = 106, wxaui_button_left = 107, wxaui_button_right = 108, wxaui_button_up = 109, wxaui_button_down = 110, wxaui_button_custom1 = 201, wxaui_button_custom2 = 202, wxaui_button_custom3 = 203 ;
wxauidockart::wxauidockart
wxauidockart::wxauidockartwxauidockart() constructor.
wxauidockart::~wxauidockart~wxauidockart() destructor.
wxauidockart::drawbackgroundvirtual void drawbackground(wxdc& dc, wxwindow* window, int orientation, const wxrect& rect) draws a background.
wxauidockart::drawbordervirtual void drawborder(wxdc& dc, wxwindow* window, const wxrect& rect, wxauipaneinfo& pane) draws a border.
wxauidockart::drawcaptionvirtual void drawcaption(wxdc& dc, wxwindow* window, const wxstring& text, const wxrect& rect, wxauipaneinfo& pane) draws a caption.
wxauidockart::drawgrippervirtual void drawgripper(wxdc& dc, wxwindow* window, const wxrect& rect, wxauipaneinfo& pane) draws a gripper.
wxauidockart::drawpanebuttonvirtual void drawpanebutton(wxdc& dc, wxwindow* window, int button, int button_state, const wxrect& rect, wxauipaneinfo& pane) draws a button in the pane's title bar. button can be one of the values of wxauibuttonid. button_state can be one of the values of wxauipanebuttonstate.
wxauidockart::drawsashvirtual void drawsash(wxdc& dc, wxwindow* window, int orientation, const wxrect& rect) draws a sash between two windows.
wxauidockart::getcolorvirtual wxcolour getcolor(int id) the same as getcolour.
wxauidockart::getcolourvirtual wxcolour getcolour(int id) get the colour of a certain setting. id can be one of the colour values of wxauipanedockartsetting.
wxauidockart::getfontvirtual wxfont getfont(int id) get a font setting.
wxauidockart::getmetricvirtual int getmetric(int id) get the value of a certain setting. id can be one of the size values of wxauipanedockartsetting.
wxauidockart::setcolorvirtual void setcolor(int id, const wxcolour& color) the same as setcolour.
wxauidockart::setcolourvirtual void setcolour(int id, const wxcolor& colour) set a certain setting with the value colour. id can be one of the colour values of wxauipanedockartsetting.
wxauidockart::setfontvirtual void setfont(int id, const wxfont& font) set a font setting.
wxauidockart::setmetricvirtual void setmetric(int id, int new_val) set a certain setting with the value new_val. id can be one of the size values of wxauipanedockartsetting.
|