Contents Up Previous Next

cbBarHintsPlugin

This class intercepts bar-decoration and sizing events, and draws 3D hints around fixed and flexible bars, similar to those in Microsoft DevStudio 6.x

Derived from

cbPluginBase

Include files

<wx/fl/barhintspl.h>

Data structures

Members

cbBarHintsPlugin::cbBarHintsPlugin
cbBarHintsPlugin::~cbBarHintsPlugin
cbBarHintsPlugin::CreateBoxes
cbBarHintsPlugin::DoDrawHint
cbBarHintsPlugin::Draw3DBox
cbBarHintsPlugin::DrawCloseBox
cbBarHintsPlugin::DrawCollapseBox
cbBarHintsPlugin::DrawGrooves
cbBarHintsPlugin::ExcludeHints
cbBarHintsPlugin::GetHintsLayout
cbBarHintsPlugin::HitTestHints
cbBarHintsPlugin::OnDrawBarDecorations
cbBarHintsPlugin::OnInitPlugin
cbBarHintsPlugin::OnLeftDown
cbBarHintsPlugin::OnLeftUp
cbBarHintsPlugin::OnMotion
cbBarHintsPlugin::OnSizeBarWindow
cbBarHintsPlugin::SetGrooveCount


cbBarHintsPlugin::cbBarHintsPlugin

cbBarHintsPlugin()

Default constructor.

cbBarHintsPlugin(wxFrameLayout* pLayout, int paneMask = wxALL_PANES)

Constructor, taking parent frame and pane mask flag.


cbBarHintsPlugin::~cbBarHintsPlugin

~cbBarHintsPlugin()

Destructor.


cbBarHintsPlugin::CreateBoxes

void CreateBoxes()

Helper function: creates close and collapse boxes.


cbBarHintsPlugin::DoDrawHint

void DoDrawHint(wxDC& dc, wxRect& rect, int pos, int boxOfs, int grooveOfs, bool isFixed)

Helper function: draws a hint.


cbBarHintsPlugin::Draw3DBox

void Draw3DBox(wxDC& dc, const wxPoint& pos, bool pressed)

Helper function: draws a 3D box.


cbBarHintsPlugin::DrawCloseBox

void DrawCloseBox(wxDC& dc, const wxPoint& pos, bool pressed)

Helper function: draws a close box.


cbBarHintsPlugin::DrawCollapseBox

void DrawCollapseBox(wxDC& dc, const wxPoint& pos, bool atLeft, bool disabled, bool pressed)

Helper function: draws a collapse box.


cbBarHintsPlugin::DrawGrooves

void DrawGrooves(wxDC& dc, const wxPoint& pos, int length)

Helper function: draws grooves.


cbBarHintsPlugin::ExcludeHints

void ExcludeHints(wxRect& rect, cbBarInfo& info)

Helper function.


cbBarHintsPlugin::GetHintsLayout

void GetHintsLayout(wxRect& rect, cbBarInfo& info, int& boxOfs, int& grooveOfs, int& pos)

Helper function: gets the layout of a hint.


cbBarHintsPlugin::HitTestHints

int HitTestHints(cbBarInfo& info, const wxPoint& pos)

Helper function: returns information about the hint under the given position.


cbBarHintsPlugin::OnDrawBarDecorations

void OnDrawBarDecorations(cbDrawBarDecorEvent& event)

Handles a plugin event.


cbBarHintsPlugin::OnInitPlugin

void OnInitPlugin()

Called to initialize this plugin.


cbBarHintsPlugin::OnLeftDown

void OnLeftDown(cbLeftDownEvent& event)

Handles a plugin event.


cbBarHintsPlugin::OnLeftUp

void OnLeftUp(cbLeftUpEvent& event)

Handles a plugin event.


cbBarHintsPlugin::OnMotion

void OnMotion(cbMotionEvent& event)

Handles a plugin event.


cbBarHintsPlugin::OnSizeBarWindow

void OnSizeBarWindow(cbSizeBarWndEvent& event)

Handles a plugin event.


cbBarHintsPlugin::SetGrooveCount

void SetGrooveCount(int nGrooves)

Set the number of grooves to be shown in the pane.