Contents Up Previous Next

cbPaneDrawPlugin

Simple but all-in-one plugin implementation. Resembles the look and feel of to MFC control-bars. The class handles painting of the pane and the items in it; it generates bar/layout customization events, when the user right-clicks the bar/pane. Hooking an instance of this and row-layout plugins for each pane would be enough for the frame layout to function properly (they are plugged in automatically by the wxFrameLayout class).

Derived from

cbPluginBase

Include files

<wx/fl/panedrawpl.h>

Data structures

Members

cbPaneDrawPlugin::cbPaneDrawPlugin
cbPaneDrawPlugin::~cbPaneDrawPlugin
cbPaneDrawPlugin::Clone
cbPaneDrawPlugin::DrawBarInnerShadeRect
cbPaneDrawPlugin::DrawDraggedHandle
cbPaneDrawPlugin::DrawLowerRowHandle
cbPaneDrawPlugin::DrawLowerRowShades
cbPaneDrawPlugin::DrawPaneShade
cbPaneDrawPlugin::DrawPaneShadeForRow
cbPaneDrawPlugin::DrawShade
cbPaneDrawPlugin::DrawShade1
cbPaneDrawPlugin::DrawUpperRowHandle
cbPaneDrawPlugin::DrawUpperRowShades
cbPaneDrawPlugin::OnDrawBarDecorations
cbPaneDrawPlugin::OnDrawBarHandles
cbPaneDrawPlugin::OnDrawPaneBackground
cbPaneDrawPlugin::OnDrawPaneDecorations
cbPaneDrawPlugin::OnDrawRowBackground
cbPaneDrawPlugin::OnDrawRowDecorations
cbPaneDrawPlugin::OnDrawRowHandles
cbPaneDrawPlugin::OnFinishDrawInArea
cbPaneDrawPlugin::OnLButtonDown
cbPaneDrawPlugin::OnLButtonUp
cbPaneDrawPlugin::OnLDblClick
cbPaneDrawPlugin::OnMouseMove
cbPaneDrawPlugin::OnRButtonUp
cbPaneDrawPlugin::OnSizeBarWindow
cbPaneDrawPlugin::OnStartDrawInArea
cbPaneDrawPlugin::SetDarkPixel
cbPaneDrawPlugin::SetLightPixel


cbPaneDrawPlugin::cbPaneDrawPlugin

cbPaneDrawPlugin(wxFrameLayout* pPanel, int paneMask = wxALL_PANES)

Constructor taking frame layout pane and a pane mask.

cbPaneDrawPlugin()

Default constructor.


cbPaneDrawPlugin::~cbPaneDrawPlugin

~cbPaneDrawPlugin()

Destructor.


cbPaneDrawPlugin::Clone

cbPluginBase* Clone()

Clone function, returning a new instance of this class.


cbPaneDrawPlugin::DrawBarInnerShadeRect

void DrawBarInnerShadeRect(cbBarInfo* pBar, wxDC& dc)

Internal helper: draws the inner bar shading.


cbPaneDrawPlugin::DrawDraggedHandle

void DrawDraggedHandle(const wxPoint& pos, cbDockPane& pane)

Internal helper: draws the dragged handle.


cbPaneDrawPlugin::DrawLowerRowHandle

void DrawLowerRowHandle(cbRowInfo* pRow, wxDC& dc)

Internal helper: draws the lower row handle.


cbPaneDrawPlugin::DrawLowerRowShades

void DrawLowerRowShades(cbRowInfo* pRow, wxDC& dc, int level)

Internal helper: draws the lower row shading.


cbPaneDrawPlugin::DrawPaneShade

void DrawPaneShade(wxDC& dc, int alignment)

Internal helper: draws the pane shading.


cbPaneDrawPlugin::DrawPaneShadeForRow

void DrawPaneShadeForRow(cbRowInfo* pRow, wxDC& dc)

Internal helper: draws the pane shading for a row.


cbPaneDrawPlugin::DrawShade

void DrawShade(int level, wxRect& rect, int alignment, wxDC& dc)

Internal helper: draws shading.


cbPaneDrawPlugin::DrawShade1

void DrawShade1(int level, wxRect& rect, int alignment, wxDC& dc)

Internal helper: draws shading.


cbPaneDrawPlugin::DrawUpperRowHandle

void DrawUpperRowHandle(cbRowInfo* pRow, wxDC& dc)

Internal helper: draws the upper row handle.


cbPaneDrawPlugin::DrawUpperRowShades

void DrawUpperRowShades(cbRowInfo* pRow, wxDC& dc, int level)

Internal helper: draws the upper row shading.


cbPaneDrawPlugin::OnDrawBarDecorations

void OnDrawBarDecorations(cbDrawBarDecorEvent& event)

Handler for draw bar decorations events.


cbPaneDrawPlugin::OnDrawBarHandles

void OnDrawBarHandles(cbDrawBarHandlesEvent& event)

Handler for draw bar handles events.


cbPaneDrawPlugin::OnDrawPaneBackground

void OnDrawPaneBackground(cbDrawPaneBkGroundEvent& event)

Handler for draw pane background events.


cbPaneDrawPlugin::OnDrawPaneDecorations

void OnDrawPaneDecorations(cbDrawPaneDecorEvent& event)

Handler for draw pane decoration events.


cbPaneDrawPlugin::OnDrawRowBackground

void OnDrawRowBackground(cbDrawRowBkGroundEvent& event)

Handler for draw row background events.


cbPaneDrawPlugin::OnDrawRowDecorations

void OnDrawRowDecorations(cbDrawRowDecorEvent& event)

Handler for draw row decoration events.


cbPaneDrawPlugin::OnDrawRowHandles

void OnDrawRowHandles(cbDrawRowHandlesEvent& event)

Handler for draw row handles events.


cbPaneDrawPlugin::OnFinishDrawInArea

void OnFinishDrawInArea(cbFinishDrawInAreaEvent& event)

Handler for finish draw in area events.


cbPaneDrawPlugin::OnLButtonDown

void OnLButtonDown(cbLeftDownEvent& event)

Handler for left mouse button down events.


cbPaneDrawPlugin::OnLButtonUp

void OnLButtonUp(cbLeftUpEvent& event)

Handler for left mouse button up events.


cbPaneDrawPlugin::OnLDblClick

void OnLDblClick(cbLeftDClickEvent& event)

Handler for left double-click mouse button down events.


cbPaneDrawPlugin::OnMouseMove

void OnMouseMove(cbMotionEvent& event)

Handler for mouse move events.


cbPaneDrawPlugin::OnRButtonUp

void OnRButtonUp(cbRightUpEvent& event)

Handler for right mouse button up events.


cbPaneDrawPlugin::OnSizeBarWindow

void OnSizeBarWindow(cbSizeBarWndEvent& event)

Handler for bar size events.


cbPaneDrawPlugin::OnStartDrawInArea

void OnStartDrawInArea(cbStartDrawInAreaEvent& event)

Handler for start draw in area events.


cbPaneDrawPlugin::SetDarkPixel

void SetDarkPixel(int x, int y, wxDC& dc)

Internal helper: sets a dark pixel at the given location.


cbPaneDrawPlugin::SetLightPixel

void SetLightPixel(int x, int y, wxDC& dc)

Internal helper: sets a light pixel at the given location.