#include <crosshair.h>
|
| Crosshair (int style, wxPen *pen=(wxPen *) wxBLACK_PEN) |
|
void | Draw (wxDC &dc, wxRect rcData) |
|
void | SetHorizontalValueEnabled (int index, bool enabled=true) |
|
void | SetVerticalValueEnabled (int index, bool enabled=true) |
|
void | SetPoint (double x, double y) |
|
void | SetHandleMouseEvents (bool handleMouseEvents) |
|
void | SetHorizontalAxisBg (int index, AreaDraw *bg) |
|
void | SetVerticalAxisBg (int index, AreaDraw *bg) |
|
virtual void | ChartMouseDown (wxPoint &pt, int key) |
|
virtual void | ChartMouseUp (wxPoint &pt, int key) |
|
virtual void | ChartMouseMove (wxPoint &pt) |
|
virtual void | ChartEnterWindow () |
|
virtual void | ChartMouseDrag (wxPoint &pt) |
|
virtual void | ChartMouseWheel (int rotation) |
|
Crosshair class. Performs crosshair drawing.
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 files:
- /home/bishop/work/projects/nextgismanager/include/freechart/wx/crosshair.h
- /home/bishop/work/projects/nextgismanager/src/freechart/crosshair.cpp