Crosshair class.
More...
#include <crosshair.h>
|
| Crosshair (int style, wxPen *pen=(wxPen *) wxBLACK_PEN) |
|
void | Draw (wxDC &dc, wxRect rcData) |
|
void | SetHorizontalValueEnabled (int index, bool enabled=true) |
| Sets horizontal value enabled,. More...
|
|
void | SetVerticalValueEnabled (int index, bool enabled=true) |
|
void | SetPoint (double x, double y) |
|
void | SetHandleMouseEvents (bool handleMouseEvents) |
| Sets whether to handle mouse moving/clicks to move crosshair. More...
|
|
void | SetHorizontalAxisBg (int index, AreaDraw *bg) |
| Sets background for value drawn on horizontal axis. More...
|
|
void | SetVerticalAxisBg (int index, AreaDraw *bg) |
| Sets background for value drawn on vertical axis. More...
|
|
virtual void | ChartMouseDown (wxPoint &pt, int key) |
|
virtual void | ChartMouseUp (wxPoint &pt, int key) |
|
virtual void | ChartMouseMove (wxPoint &pt) |
|
Crosshair class.
Performs crosshair drawing.
Definition at line 38 of file crosshair.h.
void Crosshair::SetHandleMouseEvents |
( |
bool |
handleMouseEvents | ) |
|
Sets whether to handle mouse moving/clicks to move crosshair.
- Parameters
-
handleMouseEvents | true to handle mouse events |
void Crosshair::SetHorizontalAxisBg |
( |
int |
index, |
|
|
AreaDraw * |
bg |
|
) |
| |
Sets background for value drawn on horizontal axis.
- Parameters
-
index | horizontal axis index |
bg | background |
void Crosshair::SetHorizontalValueEnabled |
( |
int |
index, |
|
|
bool |
enabled = true |
|
) |
| |
Sets horizontal value enabled,.
- Parameters
-
axisIndex | axis index |
enabled | true to enable axis value drawing |
void Crosshair::SetVerticalAxisBg |
( |
int |
index, |
|
|
AreaDraw * |
bg |
|
) |
| |
Sets background for value drawn on vertical axis.
- Parameters
-
index | vertical axis index |
bg | background |
The documentation for this class was generated from the following file: