mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-05 09:44:00 +01:00
292 lines
17 KiB
HTML
292 lines
17 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.7"/>
|
|
<title>Nextion User Manual: NexTouch Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="Logo.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">Nextion User Manual
|
|
</div>
|
|
<div id="projectbrief">For Arduino developers</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.7 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</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>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="classes.html"><span>Class Index</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><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="class_nex_touch-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">NexTouch Class Reference<div class="ingroups"><a class="el" href="group___touch_event.html">Touch Event</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Father class of the components with touch events.
|
|
<a href="class_nex_touch.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for NexTouch:</div>
|
|
<div class="dyncontent">
|
|
<div class="center">
|
|
<img src="class_nex_touch.png" usemap="#NexTouch_map" alt=""/>
|
|
<map id="NexTouch_map" name="NexTouch_map">
|
|
<area href="class_nex_object.html" title="Root class of all Nextion components. " alt="NexObject" shape="rect" coords="258,0,334,24"/>
|
|
<area href="class_nex_button.html" title="NexButton component. " alt="NexButton" shape="rect" coords="0,112,76,136"/>
|
|
<area href="class_nex_crop.html" title="NexCrop component. " alt="NexCrop" shape="rect" coords="86,112,162,136"/>
|
|
<area href="class_nex_hotspot.html" title="NexHotspot component. " alt="NexHotspot" shape="rect" coords="172,112,248,136"/>
|
|
<area href="class_nex_page.html" title="A special component , which can contain other components such as NexButton, NexText and NexWaveform..." alt="NexPage" shape="rect" coords="258,112,334,136"/>
|
|
<area href="class_nex_picture.html" title="NexPicture component. " alt="NexPicture" shape="rect" coords="344,112,420,136"/>
|
|
<area href="class_nex_slider.html" title="NexSlider component. " alt="NexSlider" shape="rect" coords="430,112,506,136"/>
|
|
<area href="class_nex_text.html" title="NexText component. " alt="NexText" shape="rect" coords="516,112,592,136"/>
|
|
</map>
|
|
</div></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a9e028e45e0d2d2cc39c8bf8d03dbb887"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_touch.html#a9e028e45e0d2d2cc39c8bf8d03dbb887">NexTouch</a> (uint8_t pid, uint8_t cid, const char *name)</td></tr>
|
|
<tr class="memdesc:a9e028e45e0d2d2cc39c8bf8d03dbb887"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a9e028e45e0d2d2cc39c8bf8d03dbb887">More...</a><br /></td></tr>
|
|
<tr class="separator:a9e028e45e0d2d2cc39c8bf8d03dbb887"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a685a753aae5eb9fb9866a7807a310132"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_touch.html#a685a753aae5eb9fb9866a7807a310132">attachPush</a> (<a class="el" href="group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6">NexTouchEventCb</a> push, void *ptr=NULL)</td></tr>
|
|
<tr class="memdesc:a685a753aae5eb9fb9866a7807a310132"><td class="mdescLeft"> </td><td class="mdescRight">Attach an callback function of push touch event. <a href="#a685a753aae5eb9fb9866a7807a310132">More...</a><br /></td></tr>
|
|
<tr class="separator:a685a753aae5eb9fb9866a7807a310132"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2bc36096119534344c2bcd8021b93289"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_touch.html#a2bc36096119534344c2bcd8021b93289">detachPush</a> (void)</td></tr>
|
|
<tr class="memdesc:a2bc36096119534344c2bcd8021b93289"><td class="mdescLeft"> </td><td class="mdescRight">Detach an callback function. <a href="#a2bc36096119534344c2bcd8021b93289">More...</a><br /></td></tr>
|
|
<tr class="separator:a2bc36096119534344c2bcd8021b93289"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4da1c4fcdfadb7eabfb9ccaba9ecad11"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_touch.html#a4da1c4fcdfadb7eabfb9ccaba9ecad11">attachPop</a> (<a class="el" href="group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6">NexTouchEventCb</a> pop, void *ptr=NULL)</td></tr>
|
|
<tr class="memdesc:a4da1c4fcdfadb7eabfb9ccaba9ecad11"><td class="mdescLeft"> </td><td class="mdescRight">Attach an callback function of pop touch event. <a href="#a4da1c4fcdfadb7eabfb9ccaba9ecad11">More...</a><br /></td></tr>
|
|
<tr class="separator:a4da1c4fcdfadb7eabfb9ccaba9ecad11"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:af656640c1078a553287a68bf792dd291"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_touch.html#af656640c1078a553287a68bf792dd291">detachPop</a> (void)</td></tr>
|
|
<tr class="memdesc:af656640c1078a553287a68bf792dd291"><td class="mdescLeft"> </td><td class="mdescRight">Detach an callback function. <a href="#af656640c1078a553287a68bf792dd291">More...</a><br /></td></tr>
|
|
<tr class="separator:af656640c1078a553287a68bf792dd291"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_class_nex_object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_nex_object')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_nex_object.html">NexObject</a></td></tr>
|
|
<tr class="memitem:ab15aadb9c91d9690786d8d25d12d94e1 inherit pub_methods_class_nex_object"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_object.html#ab15aadb9c91d9690786d8d25d12d94e1">NexObject</a> (uint8_t pid, uint8_t cid, const char *name)</td></tr>
|
|
<tr class="memdesc:ab15aadb9c91d9690786d8d25d12d94e1 inherit pub_methods_class_nex_object"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#ab15aadb9c91d9690786d8d25d12d94e1">More...</a><br /></td></tr>
|
|
<tr class="separator:ab15aadb9c91d9690786d8d25d12d94e1 inherit pub_methods_class_nex_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abeff0c61474e8b3ce6bac76771820b64 inherit pub_methods_class_nex_object"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_object.html#abeff0c61474e8b3ce6bac76771820b64">printObjInfo</a> (void)</td></tr>
|
|
<tr class="memdesc:abeff0c61474e8b3ce6bac76771820b64 inherit pub_methods_class_nex_object"><td class="mdescLeft"> </td><td class="mdescRight">Print current object'address, page id, component id and name. <a href="#abeff0c61474e8b3ce6bac76771820b64">More...</a><br /></td></tr>
|
|
<tr class="separator:abeff0c61474e8b3ce6bac76771820b64 inherit pub_methods_class_nex_object"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Father class of the components with touch events. </p>
|
|
<p>Derives from <a class="el" href="class_nex_object.html" title="Root class of all Nextion components. ">NexObject</a> and provides methods allowing user to attach (or detach) a callback function called when push(or pop) touch event occurs. </p>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="_comp_button_8ino-example.html#_a1">CompButton.ino</a>, <a class="el" href="_comp_crop_8ino-example.html#_a1">CompCrop.ino</a>, <a class="el" href="_comp_gauge_8ino-example.html#_a2">CompGauge.ino</a>, <a class="el" href="_comp_hotspot_8ino-example.html#_a1">CompHotspot.ino</a>, <a class="el" href="_comp_page_8ino-example.html#_a1">CompPage.ino</a>, <a class="el" href="_comp_picture_8ino-example.html#_a1">CompPicture.ino</a>, <a class="el" href="_comp_progress_bar_8ino-example.html#_a2">CompProgressBar.ino</a>, <a class="el" href="_comp_slider_8ino-example.html#_a2">CompSlider.ino</a>, and <a class="el" href="_comp_text_8ino-example.html#_a2">CompText.ino</a>.</dd>
|
|
</dl>
|
|
<p>Definition at line <a class="el" href="_nex_touch_8h_source.html#l00053">53</a> of file <a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a9e028e45e0d2d2cc39c8bf8d03dbb887"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">NexTouch::NexTouch </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>pid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">uint8_t </td>
|
|
<td class="paramname"><em>cid</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"><em>name</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Constructor. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pid</td><td>- page id. </td></tr>
|
|
<tr><td class="paramname">cid</td><td>- component id. </td></tr>
|
|
<tr><td class="paramname">name</td><td>- pointer to an unique name in range of all components. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="_nex_touch_8cpp_source.html#l00018">18</a> of file <a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="a4da1c4fcdfadb7eabfb9ccaba9ecad11"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void NexTouch::attachPop </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6">NexTouchEventCb</a> </td>
|
|
<td class="paramname"><em>pop</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>ptr</em> = <code>NULL</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Attach an callback function of pop touch event. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">pop</td><td>- callback called with ptr when a pop touch event occurs. </td></tr>
|
|
<tr><td class="paramname">ptr</td><td>- parameter passed into pop[default:NULL]. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>none.</dd></dl>
|
|
<dl class="section note"><dt>Note</dt><dd>If calling this method multiply, the last call is valid. </dd></dl>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="_comp_button_8ino-example.html#a5">CompButton.ino</a>, <a class="el" href="_comp_crop_8ino-example.html#a5">CompCrop.ino</a>, <a class="el" href="_comp_gauge_8ino-example.html#a6">CompGauge.ino</a>, <a class="el" href="_comp_hotspot_8ino-example.html#a4">CompHotspot.ino</a>, <a class="el" href="_comp_page_8ino-example.html#a4">CompPage.ino</a>, <a class="el" href="_comp_picture_8ino-example.html#a5">CompPicture.ino</a>, <a class="el" href="_comp_progress_bar_8ino-example.html#a6">CompProgressBar.ino</a>, <a class="el" href="_comp_slider_8ino-example.html#a6">CompSlider.ino</a>, and <a class="el" href="_comp_text_8ino-example.html#a6">CompText.ino</a>.</dd>
|
|
</dl>
|
|
<p>Definition at line <a class="el" href="_nex_touch_8cpp_source.html#l00039">39</a> of file <a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a685a753aae5eb9fb9866a7807a310132"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void NexTouch::attachPush </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="group___touch_event.html#ga162dea47b078e8878d10d6981a9dd0c6">NexTouchEventCb</a> </td>
|
|
<td class="paramname"><em>push</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>ptr</em> = <code>NULL</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Attach an callback function of push touch event. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">push</td><td>- callback called with ptr when a push touch event occurs. </td></tr>
|
|
<tr><td class="paramname">ptr</td><td>- parameter passed into push[default:NULL]. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>none.</dd></dl>
|
|
<dl class="section note"><dt>Note</dt><dd>If calling this method multiply, the last call is valid. </dd></dl>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="_comp_hotspot_8ino-example.html#a3">CompHotspot.ino</a>.</dd>
|
|
</dl>
|
|
<p>Definition at line <a class="el" href="_nex_touch_8cpp_source.html#l00027">27</a> of file <a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af656640c1078a553287a68bf792dd291"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void NexTouch::detachPop </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Detach an callback function. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>none. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_nex_touch_8cpp_source.html#l00045">45</a> of file <a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2bc36096119534344c2bcd8021b93289"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void NexTouch::detachPush </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Detach an callback function. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>none. </dd></dl>
|
|
|
|
<p>Definition at line <a class="el" href="_nex_touch_8cpp_source.html#l00033">33</a> of file <a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li><a class="el" href="_nex_touch_8h_source.html">NexTouch.h</a></li>
|
|
<li><a class="el" href="_nex_touch_8cpp_source.html">NexTouch.cpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Fri Aug 14 2015 18:24:34 for Nextion User Manual by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|