wxAuiDockArt
A dock art provider provides all drawing functionality to the wxAui dock manager.
This allows the dock manager to have a plugable look-and-feel.
There are two ways to use a custom dock art manager:
- Simply override the default settings using these functions:
- Override the drawing functions to draw your own graphics, using these functions:
Finally, set your new art provider using set_art_provider(). Don't forget to setup a wxAuiTabArt
provider if you're using any wxAuiNotebook controls.
Functions/Procedures
- proc dockart_drawbackground_id( atom dockArt, atom rid )
- proc dockart_drawborder_id( atom dockArt, atom rid )
- proc dockart_drawcaption_id( atom dockArt, atom rid )
- proc dockart_drawgripper_id( atom dockArt, atom rid )
- proc dockart_drawpanebutton_id( atom dockArt, atom rid )
- proc dockart_drawsash_id( atom dockArt, atom rid )
- func get_dockart_colour( atom dockArt, atom id )
- func get_dockart_font( atom dockArt, atom id )
- func get_dockart_metric( atom dockArt, atom id )
- proc set_dockart_colour( atom dockArt, atom id, atom colour )
- proc set_dockart_font( atom dockArt, atom id, atom font )
- proc set_dockart_metric( atom dockArt, atom id, atom new_val )
Supertopics
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawBackground routine id. To unset, pass -1 for rid.
Your DrawBackground procedure should take 4 parameters:
- atom dc
- atom window
- integer orientation
- sequence rect (x, y, width, height)
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawBorder routine id. To unset, pass -1 for rid.
Your DrawBorder procedure should take 4 parameters:
- atom dc
- atom window
- sequence rect (x, y, width, height)
- atom pane ( wxAuiPaneInfo )
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawCaption routine id. To unset, pass -1 for rid.
Your DrawCaption procedure should take 5 parameters:
- atom dc
- atom window
- sequence text
- sequence rect (x, y, width, height)
- atom pane ( wxAuiPaneInfo )
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawGripper routine id. To unset, pass -1 for rid.
Your DrawGripper procedure should take 4 parameters:
- atom dc
- atom window
- sequence rect (x, y, width, height)
- atom pane ( wxAuiPaneInfo )
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawPaneButton routine id. To unset, pass -1 for rid.
Your DrawPaneButton procedure should take 6 parameters:
- atom dc
- atom window
- integer button
- integer button_state
- sequence rect (x, y, width, height)
- atom pane ( wxAuiPaneInfo )
wxAuiDockArt
Category:
wxAuiDockArt
Sets the DrawSash routine id. To unset, pass -1 for rid.
Your DrawSash procedure should take 4 parameters:
- atom dc
- atom window
- integer orientation
- sequence rect (x, y, width, height)
wxAuiDockArt
Category:
wxAuiDockArt
Get the colour of a certain setting.
id can be one of the following values:
- wxAUI_DOCKART_BACKGROUND_COLOUR
- wxAUI_DOCKART_SASH_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR
- wxAUI_DOCKART_BORDER_COLOUR
- wxAUI_DOCKART_GRIPPER_COLOUR
wxAuiDockArt
Category:
wxAuiDockArt
Get a font setting.
id should always be wxAUI_DOCKART_CAPTION_FONT.
wxAuiDockArt
Category:
wxAuiDockArt
Get the value of a certain setting.
id can be one of the following values:
- wxAUI_DOCKART_SASH_SIZE
- wxAUI_DOCKART_CAPTION_SIZE
- wxAUI_DOCKART_GRIPPER_SIZE
- wxAUI_DOCKART_PANE_BORDER_SIZE
- wxAUI_DOCKART_PANE_BUTTON_SIZE
wxAuiDockArt
Category:
wxAuiDockArt
Set a certain setting with the value colour.
id can be one of the following values:
- wxAUI_DOCKART_BACKGROUND_COLOUR
- wxAUI_DOCKART_SASH_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR
- wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR
- wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR
- wxAUI_DOCKART_BORDER_COLOUR
- wxAUI_DOCKART_GRIPPER_COLOUR
wxAuiDockArt
Category:
wxAuiDockArt
Set a font setting.
id should always be wxAUI_DOCKART_CAPTION_FONT.
wxAuiDockArt
Category:
wxAuiDockArt
Set a certain setting with the value new_val.
id can be one of the following values:
- wxAUI_DOCKART_SASH_SIZE
- wxAUI_DOCKART_CAPTION_SIZE
- wxAUI_DOCKART_GRIPPER_SIZE
- wxAUI_DOCKART_PANE_BORDER_SIZE
- wxAUI_DOCKART_PANE_BUTTON_SIZE