Contents Up Previous Next

cbBarDragPlugin

Plugin class implementing bar dragging.

Derived from

cbPluginBase

Include files

<wx/fl/bardragpl.h>

Data structures

Members

cbBarDragPlugin::cbBarDragPlugin
cbBarDragPlugin::~cbBarDragPlugin
cbBarDragPlugin::AdjustHintRect
cbBarDragPlugin::CalcOnScreenDims
cbBarDragPlugin::ClipPosInFrame
cbBarDragPlugin::ClipRectInFrame
cbBarDragPlugin::DoDrawHintRect
cbBarDragPlugin::DrawHintRect
cbBarDragPlugin::EraseHintRect
cbBarDragPlugin::FinishTracking
cbBarDragPlugin::GetBarHeightInPane
cbBarDragPlugin::GetBarWidthInPane
cbBarDragPlugin::GetDistanceToPane
cbBarDragPlugin::HitTestPanes
cbBarDragPlugin::HitsPane
cbBarDragPlugin::IsInClientArea
cbBarDragPlugin::IsInOtherPane
cbBarDragPlugin::OnDrawHintRect
cbBarDragPlugin::OnLButtonDown
cbBarDragPlugin::OnLButtonUp
cbBarDragPlugin::OnLDblClick
cbBarDragPlugin::OnMouseMove
cbBarDragPlugin::OnStartBarDragging
cbBarDragPlugin::RectToScr
cbBarDragPlugin::ShowHint
cbBarDragPlugin::StartTracking
cbBarDragPlugin::StickToPane
cbBarDragPlugin::UnstickFromPane


cbBarDragPlugin::cbBarDragPlugin

cbBarDragPlugin()

Default constructor.

cbBarDragPlugin(wxFrameLayout* pPanel, int paneMask = wxALL_PANES)

Constructor taking a parent frame, and flag. See cbPluginBase.


cbBarDragPlugin::~cbBarDragPlugin

~cbBarDragPlugin()

Destructor.


cbBarDragPlugin::AdjustHintRect

void AdjustHintRect(wxPoint& mousePos)

the thicker rectangle is drawn using hatched brush, the default border width for this rectangle is 8 pix. Internal implementation function.


cbBarDragPlugin::CalcOnScreenDims

void CalcOnScreenDims(wxRect& rect)

Internal implementation function.


cbBarDragPlugin::ClipPosInFrame

void ClipPosInFrame(wxPoint& pos)

Internal implementation function.


cbBarDragPlugin::ClipRectInFrame

void ClipRectInFrame(wxRect& rect)

Internal implementation function.


cbBarDragPlugin::DoDrawHintRect

void DoDrawHintRect(wxRect& rect, bool isInClientRect)

Internal implementation function. Draw the hint rectangle.


cbBarDragPlugin::DrawHintRect

void DrawHintRect(wxRect& rect, bool isInClientRect)

Internal implementation function. Draw the visual hint while dragging.


cbBarDragPlugin::EraseHintRect

void EraseHintRect(wxRect& rect, bool isInClientRect)

Internal implementation function. Erase the visual hint while dragging.


cbBarDragPlugin::FinishTracking

void FinishTracking()

Internal implementation function. Stop showing the visual hint while dragging.


cbBarDragPlugin::GetBarHeightInPane

int GetBarHeightInPane(cbDockPane* pPane)

Internal implementation function.


cbBarDragPlugin::GetBarWidthInPane

int GetBarWidthInPane(cbDockPane* pPane)

Internal implementation function.


cbBarDragPlugin::GetDistanceToPane

int GetDistanceToPane(cbDockPane* pPane, wxPoint& mousePos)

Internal implementation function.


cbBarDragPlugin::HitTestPanes

cbDockPane* HitTestPanes(wxRect& rect)

Internal implementation function. Finds the pane under the specified rectangle.

cbDockPane* HitTestPanes(wxPoint& pos)

Internal implementation function. Finds the pane under the specified point.


cbBarDragPlugin::HitsPane

bool HitsPane(cbDockPane* pPane, wxRect& rect)

Internal implementation function.


cbBarDragPlugin::IsInClientArea

bool IsInClientArea(wxPoint& mousePos)

Internal implementation function.

bool IsInClientArea(wxRect& rect)

Internal implementation function.


cbBarDragPlugin::IsInOtherPane

bool IsInOtherPane(wxPoint& mousePos)

Internal implementation function.


cbBarDragPlugin::OnDrawHintRect

void OnDrawHintRect(cbDrawHintRectEvent& event)

Handles event, which originates from itself.


cbBarDragPlugin::OnLButtonDown

void OnLButtonDown(cbLeftDownEvent& event)

Handler for plugin event.


cbBarDragPlugin::OnLButtonUp

void OnLButtonUp(cbLeftUpEvent& event)

Handler for plugin event.


cbBarDragPlugin::OnLDblClick

void OnLDblClick(cbLeftDClickEvent& event)

Handler for plugin event.


cbBarDragPlugin::OnMouseMove

void OnMouseMove(cbMotionEvent& event)

Handler for plugin event.


cbBarDragPlugin::OnStartBarDragging

void OnStartBarDragging(cbStartBarDraggingEvent& event)

Handler for plugin event.


cbBarDragPlugin::RectToScr

void RectToScr(wxRect& frameRect, wxRect& scrRect)

Internal implementation function. Converts the given rectangle from window to screen coordinates.


cbBarDragPlugin::ShowHint

void ShowHint(bool prevWasInClient)

Internal implementation function. Show the hint; called within OnMouseMove.


cbBarDragPlugin::StartTracking

void StartTracking()

on-screen hint-tracking related methods Internal implementation function. Start showing a visual hint while dragging.


cbBarDragPlugin::StickToPane

void StickToPane(cbDockPane* pPane, wxPoint& mousePos)

Internal implementation function.


cbBarDragPlugin::UnstickFromPane

void UnstickFromPane(cbDockPane* pPane, wxPoint& mousePos)

Internal implementation function.