Plugin class implementing bar dragging.
Derived from
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()
Default constructor.
cbBarDragPlugin(wxFrameLayout* pPanel, int paneMask = wxALL_PANES)
Constructor taking a parent frame, and flag. See cbPluginBase.
~cbBarDragPlugin()
Destructor.
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.
void CalcOnScreenDims(wxRect& rect)
Internal implementation function.
void ClipPosInFrame(wxPoint& pos)
Internal implementation function.
void ClipRectInFrame(wxRect& rect)
Internal implementation function.
void DoDrawHintRect(wxRect& rect, bool isInClientRect)
Internal implementation function. Draw the hint rectangle.
void DrawHintRect(wxRect& rect, bool isInClientRect)
Internal implementation function. Draw the visual hint while dragging.
void EraseHintRect(wxRect& rect, bool isInClientRect)
Internal implementation function. Erase the visual hint while dragging.
void FinishTracking()
Internal implementation function. Stop showing the visual hint while dragging.
int GetBarHeightInPane(cbDockPane* pPane)
Internal implementation function.
int GetBarWidthInPane(cbDockPane* pPane)
Internal implementation function.
int GetDistanceToPane(cbDockPane* pPane, wxPoint& mousePos)
Internal implementation function.
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.
bool HitsPane(cbDockPane* pPane, wxRect& rect)
Internal implementation function.
bool IsInClientArea(wxPoint& mousePos)
Internal implementation function.
bool IsInClientArea(wxRect& rect)
Internal implementation function.
bool IsInOtherPane(wxPoint& mousePos)
Internal implementation function.
void OnDrawHintRect(cbDrawHintRectEvent& event)
Handles event, which originates from itself.
void OnLButtonDown(cbLeftDownEvent& event)
Handler for plugin event.
void OnLButtonUp(cbLeftUpEvent& event)
Handler for plugin event.
void OnLDblClick(cbLeftDClickEvent& event)
Handler for plugin event.
void OnMouseMove(cbMotionEvent& event)
Handler for plugin event.
void OnStartBarDragging(cbStartBarDraggingEvent& event)
Handler for plugin event.
void RectToScr(wxRect& frameRect, wxRect& scrRect)
Internal implementation function. Converts the given rectangle from window to screen coordinates.
void ShowHint(bool prevWasInClient)
Internal implementation function. Show the hint; called within OnMouseMove.
void StartTracking()
on-screen hint-tracking related methods Internal implementation function. Start showing a visual hint while dragging.
void StickToPane(cbDockPane* pPane, wxPoint& mousePos)
Internal implementation function.
void UnstickFromPane(cbDockPane* pPane, wxPoint& mousePos)
Internal implementation function.