|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ChartDemo: CChartCursorListener Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CChartCursorListener Class Reference</h1><!-- doxytag: class="CChartCursorListener" -->Interface to implement in order to be notified about a cursor movement.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="_chart_cursor_8h-source.html">ChartCursor.h</a>></code>
<p>
<p>
<a href="class_c_chart_cursor_listener-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="249e51c76383c8e727eba793b99455a5"></a><!-- doxytag: member="CChartCursorListener::CChartCursorListener" ref="249e51c76383c8e727eba793b99455a5" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_cursor_listener.html#249e51c76383c8e727eba793b99455a5">CChartCursorListener</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a495e18fbabff51261b47a4a79473db6"></a><!-- doxytag: member="CChartCursorListener::~CChartCursorListener" ref="a495e18fbabff51261b47a4a79473db6" args="()" -->
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_cursor_listener.html#a495e18fbabff51261b47a4a79473db6">~CChartCursorListener</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_chart_cursor_listener.html#f33ee6368a4a6382523eff1c835ef2e4">OnCursorMoved</a> (<a class="el" href="class_c_chart_cursor.html">CChartCursor</a> *pCursor, double xValue, double yValue)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Pure virtual function to implement in order to be notified about a cursor movement. <a href="#f33ee6368a4a6382523eff1c835ef2e4"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Interface to implement in order to be notified about a cursor movement.
<p>
This class must be overriden and registered with a <a class="el" href="class_c_chart_cursor.html" title="Base class for cursors which can be added to the chart control.">CChartCursor</a> by calling RegisterListener. <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="f33ee6368a4a6382523eff1c835ef2e4"></a><!-- doxytag: member="CChartCursorListener::OnCursorMoved" ref="f33ee6368a4a6382523eff1c835ef2e4" args="(CChartCursor *pCursor, double xValue, double yValue)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void CChartCursorListener::OnCursorMoved </td>
<td>(</td>
<td class="paramtype"><a class="el" href="class_c_chart_cursor.html">CChartCursor</a> * </td>
<td class="paramname"> <em>pCursor</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>xValue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"> <em>yValue</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Pure virtual function to implement in order to be notified about a cursor movement.
<p>
Note that not all cursor types have an X and a Y value, in which case, only the relevant information is passed, the other value will be 0. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pCursor</em> </td><td>The cursor which was moved </td></tr>
<tr><td valign="top"></td><td valign="top"><em>xValue</em> </td><td>The cursor xValue </td></tr>
<tr><td valign="top"></td><td valign="top"><em>yValue</em> </td><td>The cursor yValue </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>E:/Sources Misc/ChartDemo/ChartCtrl/<a class="el" href="_chart_cursor_8h-source.html">ChartCursor.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a 29 years old guy and I live with my girlfriend in Hoegaarden, little city from Belgium well known for its white beer
.
I studied as an industrial engineer in electronics but I oriented myself more towards software development when I started to work.
Currently I am working in a research centre in mechatronica. I mainly develop in C++ but I also do a bit of Java.
When I have so spare time, I like to read (mainly fantasy) and play electric guitar.