wxRectTracker
|
wxLineTracker control More...
#include <LineTracker.h>
Public Member Functions | |
int | GetHandlerMask () const |
Get the list of handlers to be displayed (See RT_LINE_MASK enum) | |
wxPoint | GetPosBegin () const |
Get the current position of the tracker, without taking in account any scroll area. | |
wxPoint | GetPosEnd () const |
wxPoint | GetPosHandler (enum RT_HANDLER handler) const |
int | HitTest (int x, int y) const |
Returns true if the provided coordinates are in the tracker. (Parent coo.) | |
void | SetHandlerMask (int iMask=RT_LINE_MASK_ALL) |
Set which handlers will be displayed (See RT_MASK enum) | |
virtual void | SetTrackerPosition (wxPoint begin, wxPoint end) |
Set a new position for the tracker. | |
void | Update () |
Update the tracker position and size (usefull for initialisation) | |
wxLineTracker (wxWindow *parent, wxFrame *frame=NULL) | |
wxLineTracker constructor | |
virtual | ~wxLineTracker () |
Protected Member Functions | |
virtual void | AdjustLineTracker (wxPoint &begin, wxPoint &end, int handler) |
void | AdjustLineTrackerMax (wxPoint &begin, wxPoint &end, int handler) |
virtual void | DrawLine (wxDC &dc, wxPoint begin, wxPoint end) |
virtual void | DrawTracker (wxDC &dc, wxPoint begin, wxPoint end) |
virtual void | OnKey (wxKeyEvent &event) |
virtual void | OnMouseLeftDown (wxMouseEvent &event) |
virtual void | OnMouseLeftUp (wxMouseEvent &event) |
virtual void | OnMouseMotion (wxMouseEvent &event) |
virtual void | OnPaint (wxPaintEvent &event) |
Protected Attributes | |
enum RT_HANDLER | m_iBeginHandler |
Coordinates of the previous last point. | |
enum RT_HANDLER | m_iEndHandler |
wxPoint | m_pCurBegin |
wxPoint | m_pCurEnd |
Coordinates of the previous first point. |
wxLineTracker control
This control aims at providing same functionnalies as wxRectTracker, but for lines. It is basically a line with dragging capabilites, to set its size and position.
Definition at line 45 of file LineTracker.h.
wxLineTracker::wxLineTracker | ( | wxWindow * | parent, |
wxFrame * | frame = NULL |
||
) |
wxLineTracker::~wxLineTracker | ( | ) | [virtual] |
Definition at line 33 of file LineTracker.cpp.
void wxLineTracker::AdjustLineTracker | ( | wxPoint & | begin, |
wxPoint & | end, | ||
int | handler | ||
) | [protected, virtual] |
Definition at line 292 of file LineTracker.cpp.
void wxLineTracker::AdjustLineTrackerMax | ( | wxPoint & | begin, |
wxPoint & | end, | ||
int | handler | ||
) | [protected] |
Definition at line 297 of file LineTracker.cpp.
void wxLineTracker::DrawLine | ( | wxDC & | dc, |
wxPoint | begin, | ||
wxPoint | end | ||
) | [protected, virtual] |
Definition at line 52 of file LineTracker.cpp.
void wxLineTracker::DrawTracker | ( | wxDC & | dc, |
wxPoint | begin, | ||
wxPoint | end | ||
) | [protected, virtual] |
Definition at line 74 of file LineTracker.cpp.
int wxLineTracker::GetHandlerMask | ( | ) | const [inline] |
Get the list of handlers to be displayed (See RT_LINE_MASK enum)
Reimplemented from wxRectTracker.
Definition at line 61 of file LineTracker.h.
wxPoint wxLineTracker::GetPosBegin | ( | ) | const |
Get the current position of the tracker, without taking in account any scroll area.
Definition at line 354 of file LineTracker.cpp.
wxPoint wxLineTracker::GetPosEnd | ( | ) | const |
Definition at line 359 of file LineTracker.cpp.
wxPoint wxLineTracker::GetPosHandler | ( | enum RT_HANDLER | handler | ) | const |
Definition at line 364 of file LineTracker.cpp.
int wxLineTracker::HitTest | ( | int | x, |
int | y | ||
) | const |
Returns true if the provided coordinates are in the tracker. (Parent coo.)
Reimplemented from wxRectTracker.
Definition at line 264 of file LineTracker.cpp.
void wxLineTracker::OnKey | ( | wxKeyEvent & | event | ) | [protected, virtual] |
Reimplemented from wxRectTracker.
Definition at line 96 of file LineTracker.cpp.
void wxLineTracker::OnMouseLeftDown | ( | wxMouseEvent & | event | ) | [protected, virtual] |
Reimplemented from wxRectTracker.
Definition at line 238 of file LineTracker.cpp.
void wxLineTracker::OnMouseLeftUp | ( | wxMouseEvent & | event | ) | [protected, virtual] |
Reimplemented from wxRectTracker.
Definition at line 249 of file LineTracker.cpp.
void wxLineTracker::OnMouseMotion | ( | wxMouseEvent & | event | ) | [protected, virtual] |
Reimplemented from wxRectTracker.
Definition at line 151 of file LineTracker.cpp.
void wxLineTracker::OnPaint | ( | wxPaintEvent & | event | ) | [protected, virtual] |
Reimplemented from wxRectTracker.
Definition at line 38 of file LineTracker.cpp.
void wxLineTracker::SetHandlerMask | ( | int | iMask = RT_LINE_MASK_ALL | ) | [inline] |
Set which handlers will be displayed (See RT_MASK enum)
Reimplemented from wxRectTracker.
Definition at line 63 of file LineTracker.h.
void wxLineTracker::SetTrackerPosition | ( | wxPoint | begin, |
wxPoint | end | ||
) | [virtual] |
Set a new position for the tracker.
Definition at line 315 of file LineTracker.cpp.
void wxLineTracker::Update | ( | ) |
Update the tracker position and size (usefull for initialisation)
Reimplemented from wxRectTracker.
Definition at line 347 of file LineTracker.cpp.
enum RT_HANDLER wxLineTracker::m_iBeginHandler [protected] |
Coordinates of the previous last point.
Definition at line 94 of file LineTracker.h.
enum RT_HANDLER wxLineTracker::m_iEndHandler [protected] |
Definition at line 95 of file LineTracker.h.
wxPoint wxLineTracker::m_pCurBegin [protected] |
Definition at line 91 of file LineTracker.h.
wxPoint wxLineTracker::m_pCurEnd [protected] |
Coordinates of the previous first point.
Definition at line 92 of file LineTracker.h.