wxMathPlot
Public Member Functions | List of all members
mpMagnet Class Reference

Class for drawing mouse magnetization Draw an horizontal and a vertical line at the mouse position. More...

#include <mathplot.h>

Public Member Functions

void UpdateBox (const wxRect &plotArea)
 Update the drawable magnet area from a wxRect.
 
void Enable (const bool enable)
 Enables the magnet.
 
bool IsEnabled () const
 Check if magnet is enabled.
 
void DrawCross (wxDC &dc, mpWindow &w)
 Update the magnet cross to a new mouse position.
 
bool ShouldBeShown (const wxPoint mousePos) const
 Check conditions if magnet shall be shown.
 
void Show (const bool show)
 Set if magnet shall be shown or hidden.
 
bool IsShown () const
 Get shown status.
 

Detailed Description

Class for drawing mouse magnetization Draw an horizontal and a vertical line at the mouse position.


The documentation for this class was generated from the following files: