iot-firmware/lib/ITEADLIB_Arduino_Nextion-ma.../html/class_nex_object.html

219 lines
12 KiB
HTML
Raw Permalink Normal View History

2023-09-30 08:42:44 +00:00
<!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>My Project: NexObject 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">My Project
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;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>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_nex_object-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">NexObject Class Reference<div class="ingroups"><a class="el" href="group___core_a_p_i.html">Core API</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="_nex_object_8h_source.html">NexObject.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for NexObject:</div>
<div class="dyncontent">
<div class="center">
<img src="class_nex_object.png" usemap="#NexObject_map" alt=""/>
<map id="NexObject_map" name="NexObject_map">
<area href="class_nex_gauge.html" alt="NexGauge" shape="rect" coords="0,56,105,80"/>
<area href="class_nex_progress_bar.html" alt="NexProgressBar" shape="rect" coords="115,56,220,80"/>
<area href="class_nex_touch.html" alt="NexTouch" shape="rect" coords="230,56,335,80"/>
<area href="class_nex_waveform.html" alt="NexWaveform" shape="rect" coords="345,56,450,80"/>
<area href="class_nex_button.html" alt="NexButton" shape="rect" coords="345,112,450,136"/>
<area href="class_nex_checkbox.html" alt="NexCheckbox" shape="rect" coords="345,168,450,192"/>
<area href="class_nex_crop.html" alt="NexCrop" shape="rect" coords="345,224,450,248"/>
<area href="class_nex_d_s_button.html" alt="NexDSButton" shape="rect" coords="345,280,450,304"/>
<area href="class_nex_hotspot.html" alt="NexHotspot" shape="rect" coords="345,336,450,360"/>
<area href="class_nex_number.html" alt="NexNumber" shape="rect" coords="345,392,450,416"/>
<area href="class_nex_page.html" alt="NexPage" shape="rect" coords="345,448,450,472"/>
<area href="class_nex_picture.html" alt="NexPicture" shape="rect" coords="345,504,450,528"/>
<area href="class_nex_radio.html" alt="NexRadio" shape="rect" coords="345,560,450,584"/>
<area href="class_nex_scrolltext.html" alt="NexScrolltext" shape="rect" coords="345,616,450,640"/>
<area href="class_nex_slider.html" alt="NexSlider" shape="rect" coords="345,672,450,696"/>
<area href="class_nex_text.html" alt="NexText" shape="rect" coords="345,728,450,752"/>
<area href="class_nex_timer.html" alt="NexTimer" shape="rect" coords="345,784,450,808"/>
<area href="class_nex_variable.html" alt="NexVariable" shape="rect" coords="345,840,450,864"/>
</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:ab15aadb9c91d9690786d8d25d12d94e1"><td class="memItemLeft" align="right" valign="top">&#160;</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="separator:ab15aadb9c91d9690786d8d25d12d94e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeff0c61474e8b3ce6bac76771820b64"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nex_object.html#abeff0c61474e8b3ce6bac76771820b64">printObjInfo</a> (void)</td></tr>
<tr class="separator:abeff0c61474e8b3ce6bac76771820b64"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a67621e5d7bcfb50c1a1bbc4ad1020352"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67621e5d7bcfb50c1a1bbc4ad1020352"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>getObjPid</b> (void)</td></tr>
<tr class="separator:a67621e5d7bcfb50c1a1bbc4ad1020352"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8139b294806c1684fc95b635a33b1b15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8139b294806c1684fc95b635a33b1b15"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>getObjCid</b> (void)</td></tr>
<tr class="separator:a8139b294806c1684fc95b635a33b1b15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea0246c02cd5e54d0dbd714ace1ff2b1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aea0246c02cd5e54d0dbd714ace1ff2b1"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>getObjName</b> (void)</td></tr>
<tr class="separator:aea0246c02cd5e54d0dbd714ace1ff2b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Root class of all Nextion components.</p>
<p>Provides the essential attributes of a Nextion component and the methods accessing them. At least, Page ID(pid), Component ID(pid) and an unique name are needed for creating a component in Nexiton library. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab15aadb9c91d9690786d8d25d12d94e1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">NexObject::NexObject </td>
<td>(</td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>pid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint8_t&#160;</td>
<td class="paramname"><em>cid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>name</em>&#160;</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>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="abeff0c61474e8b3ce6bac76771820b64"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void NexObject::printObjInfo </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Print current object'address, page id, component id and name.</p>
<dl class="section warning"><dt>Warning</dt><dd>this method does nothing, unless debug message enabled. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_nex_object_8h_source.html">NexObject.h</a></li>
<li><a class="el" href="_nex_object_8cpp.html">NexObject.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 1 2016 09:26:03 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>