453 lines
24 KiB
HTML
453 lines
24 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.16"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>B15F: View 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/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">B15F
|
|
</div>
|
|
<div id="projectbrief">Board 15 Famulus Edition</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.16 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</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> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#pro-attribs">Protected Attributes</a> |
|
|
<a href="#pro-static-attribs">Static Protected Attributes</a> |
|
|
<a href="classView-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">View Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="view_8h_source.html">view.h</a>></code></p>
|
|
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
|
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for View:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center">
|
|
<img src="classView.png" usemap="#View_map" alt=""/>
|
|
<map id="View_map" name="View_map">
|
|
<area href="classViewInfo.html" alt="ViewInfo" shape="rect" coords="0,56,92,80"/>
|
|
<area href="classViewPromt.html" alt="ViewPromt" shape="rect" coords="102,56,194,80"/>
|
|
<area href="classViewSelection.html" alt="ViewSelection" shape="rect" coords="204,56,296,80"/>
|
|
<area href="classViewMonitor.html" alt="ViewMonitor" shape="rect" coords="0,112,92,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:a0a9be6e5fb588412aab31cacf5e43b04"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a0a9be6e5fb588412aab31cacf5e43b04">View</a> (void)</td></tr>
|
|
<tr class="separator:a0a9be6e5fb588412aab31cacf5e43b04"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a450dfab3f21a52edc03db4310593412f"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a450dfab3f21a52edc03db4310593412f">~View</a> (void)</td></tr>
|
|
<tr class="separator:a450dfab3f21a52edc03db4310593412f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6c725e4d83fd7474635a7e64200c7a08"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a6c725e4d83fd7474635a7e64200c7a08">setTitle</a> (std::string <a class="el" href="classView.html#a80441aa81b52e04677a2aa2bd9c47753">title</a>)</td></tr>
|
|
<tr class="separator:a6c725e4d83fd7474635a7e64200c7a08"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa7b1f1179e3c4f06bef1e99355d0d592"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#aa7b1f1179e3c4f06bef1e99355d0d592">repaint</a> (void)</td></tr>
|
|
<tr class="separator:aa7b1f1179e3c4f06bef1e99355d0d592"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a092a269bf53569af7fca4d710dd5b980"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a092a269bf53569af7fca4d710dd5b980">draw</a> (void)=0</td></tr>
|
|
<tr class="separator:a092a269bf53569af7fca4d710dd5b980"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a60f77156dc4786bb6227d58a3061d2f6"><td class="memItemLeft" align="right" valign="top">virtual call_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a60f77156dc4786bb6227d58a3061d2f6">keypress</a> (int &key)=0</td></tr>
|
|
<tr class="separator:a60f77156dc4786bb6227d58a3061d2f6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a990aa2223befde031dfcce54a740c558"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a990aa2223befde031dfcce54a740c558">setWinContext</a> (WINDOW *<a class="el" href="classView.html#a5ddee2bf0b26dbcfa7780be17ff33dd7">win</a>)</td></tr>
|
|
<tr class="separator:a990aa2223befde031dfcce54a740c558"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0710c6ba06e3795e7ddf369361308b79"><td class="memItemLeft" align="right" valign="top">static WINDOW * </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a0710c6ba06e3795e7ddf369361308b79">getWinContext</a> (void)</td></tr>
|
|
<tr class="separator:a0710c6ba06e3795e7ddf369361308b79"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a52c2e2a7bc56388e7d9bfa398ad52668"><td class="memItemLeft" align="right" valign="top">static std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a52c2e2a7bc56388e7d9bfa398ad52668">str_split</a> (const std::string &str, const std::string delim)</td></tr>
|
|
<tr class="separator:a52c2e2a7bc56388e7d9bfa398ad52668"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
|
|
Protected Attributes</h2></td></tr>
|
|
<tr class="memitem:ae039aa744b085db819ae149705b2c32b"><td class="memItemLeft" align="right" valign="top"><a id="ae039aa744b085db819ae149705b2c32b"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#ae039aa744b085db819ae149705b2c32b">width</a></td></tr>
|
|
<tr class="memdesc:ae039aa744b085db819ae149705b2c32b"><td class="mdescLeft"> </td><td class="mdescRight">width of view in terminal characters <br /></td></tr>
|
|
<tr class="separator:ae039aa744b085db819ae149705b2c32b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6e3e5c18893617490f02166641356746"><td class="memItemLeft" align="right" valign="top"><a id="a6e3e5c18893617490f02166641356746"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a6e3e5c18893617490f02166641356746">height</a></td></tr>
|
|
<tr class="memdesc:a6e3e5c18893617490f02166641356746"><td class="mdescLeft"> </td><td class="mdescRight">height of view in terminal characters <br /></td></tr>
|
|
<tr class="separator:a6e3e5c18893617490f02166641356746"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9fc9f3b0c876d063e6f57dee320a43fe"><td class="memItemLeft" align="right" valign="top"><a id="a9fc9f3b0c876d063e6f57dee320a43fe"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a9fc9f3b0c876d063e6f57dee320a43fe">start_x</a> = 0</td></tr>
|
|
<tr class="memdesc:a9fc9f3b0c876d063e6f57dee320a43fe"><td class="mdescLeft"> </td><td class="mdescRight">x offset (characters) in the terminal, used to center the window on <a class="el" href="classView.html#aa7b1f1179e3c4f06bef1e99355d0d592">repaint()</a> <br /></td></tr>
|
|
<tr class="separator:a9fc9f3b0c876d063e6f57dee320a43fe"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac424db4c13776c3ce9d33f9074dfcfaa"><td class="memItemLeft" align="right" valign="top"><a id="ac424db4c13776c3ce9d33f9074dfcfaa"></a>
|
|
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#ac424db4c13776c3ce9d33f9074dfcfaa">start_y</a> = 0</td></tr>
|
|
<tr class="memdesc:ac424db4c13776c3ce9d33f9074dfcfaa"><td class="mdescLeft"> </td><td class="mdescRight">y offset (characters) in the terminal, used to center the window on <a class="el" href="classView.html#aa7b1f1179e3c4f06bef1e99355d0d592">repaint()</a> <br /></td></tr>
|
|
<tr class="separator:ac424db4c13776c3ce9d33f9074dfcfaa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a80441aa81b52e04677a2aa2bd9c47753"><td class="memItemLeft" align="right" valign="top"><a id="a80441aa81b52e04677a2aa2bd9c47753"></a>
|
|
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a80441aa81b52e04677a2aa2bd9c47753">title</a></td></tr>
|
|
<tr class="memdesc:a80441aa81b52e04677a2aa2bd9c47753"><td class="mdescLeft"> </td><td class="mdescRight">title of the view <br /></td></tr>
|
|
<tr class="separator:a80441aa81b52e04677a2aa2bd9c47753"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a610367214a727e2f7da72ac5bdb60fa3"><td class="memItemLeft" align="right" valign="top"><a id="a610367214a727e2f7da72ac5bdb60fa3"></a>
|
|
std::vector< call_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a610367214a727e2f7da72ac5bdb60fa3">calls</a></td></tr>
|
|
<tr class="memdesc:a610367214a727e2f7da72ac5bdb60fa3"><td class="mdescLeft"> </td><td class="mdescRight">calls (function pointers) for different button actions in the view (if any) <br /></td></tr>
|
|
<tr class="separator:a610367214a727e2f7da72ac5bdb60fa3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-attribs"></a>
|
|
Static Protected Attributes</h2></td></tr>
|
|
<tr class="memitem:a5ddee2bf0b26dbcfa7780be17ff33dd7"><td class="memItemLeft" align="right" valign="top"><a id="a5ddee2bf0b26dbcfa7780be17ff33dd7"></a>
|
|
static WINDOW * </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a5ddee2bf0b26dbcfa7780be17ff33dd7">win</a> = nullptr</td></tr>
|
|
<tr class="memdesc:a5ddee2bf0b26dbcfa7780be17ff33dd7"><td class="mdescLeft"> </td><td class="mdescRight">static window contexts for all views <br /></td></tr>
|
|
<tr class="separator:a5ddee2bf0b26dbcfa7780be17ff33dd7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3554cf8689cad24c643665aa3d182134"><td class="memItemLeft" align="right" valign="top"><a id="a3554cf8689cad24c643665aa3d182134"></a>
|
|
constexpr static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classView.html#a3554cf8689cad24c643665aa3d182134">KEY_ENT</a> = 10</td></tr>
|
|
<tr class="memdesc:a3554cf8689cad24c643665aa3d182134"><td class="mdescLeft"> </td><td class="mdescRight">Key value for the Enter key. <br /></td></tr>
|
|
<tr class="separator:a3554cf8689cad24c643665aa3d182134"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Base class for multiple views with the ncurses user interface. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8h_source.html#l00019">19</a> of file <a class="el" href="view_8h_source.html">view.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a0a9be6e5fb588412aab31cacf5e43b04"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0a9be6e5fb588412aab31cacf5e43b04">◆ </a></span>View()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">View::View </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>standard constructor, takes no args </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00005">5</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a450dfab3f21a52edc03db4310593412f"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a450dfab3f21a52edc03db4310593412f">◆ </a></span>~View()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">View::~View </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>standard destructor </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00015">15</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a092a269bf53569af7fca4d710dd5b980"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a092a269bf53569af7fca4d710dd5b980">◆ </a></span>draw()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void View::draw </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Abstract function for drawing ths particular view. Gets overridden in the derived classes to paints for example a promt. </p>
|
|
|
|
<p>Implemented in <a class="el" href="classViewInfo.html#ab7f9ea145f8cf26dbd27e29982cda206">ViewInfo</a>, <a class="el" href="classViewPromt.html#a8f3f805bece2a669f10e29d1d22a9de1">ViewPromt</a>, and <a class="el" href="classViewSelection.html#a10fa34fb676bfed472ca5ee62ef9446d">ViewSelection</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0710c6ba06e3795e7ddf369361308b79"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0710c6ba06e3795e7ddf369361308b79">◆ </a></span>getWinContext()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">WINDOW * View::getWinContext </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<dl class="section return"><dt>Returns</dt><dd>static window context for all views </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00024">24</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a60f77156dc4786bb6227d58a3061d2f6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a60f77156dc4786bb6227d58a3061d2f6">◆ </a></span>keypress()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual call_t View::keypress </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int & </td>
|
|
<td class="paramname"><em>key</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Abstract function for the view to reacted on a keypress. Gets overridden in the derived classes to close for example a view on ESC. </p>
|
|
|
|
<p>Implemented in <a class="el" href="classViewInfo.html#a7d231a44600aa100ad4a0b9f283e5bd8">ViewInfo</a>, <a class="el" href="classViewMonitor.html#a2224002fe45655df87130fe07a161693">ViewMonitor</a>, <a class="el" href="classViewPromt.html#a24aa1e8887fc5e6631d6cb88adb7f3db">ViewPromt</a>, and <a class="el" href="classViewSelection.html#a04341cde5e8355edc5ff3d653d1dbc76">ViewSelection</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aa7b1f1179e3c4f06bef1e99355d0d592"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa7b1f1179e3c4f06bef1e99355d0d592">◆ </a></span>repaint()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void View::repaint </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Repaints the whole window with the current view. The centered position of the window in the terminal gets new calculated. The window box gets repainted. </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00052">52</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6c725e4d83fd7474635a7e64200c7a08"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6c725e4d83fd7474635a7e64200c7a08">◆ </a></span>setTitle()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void View::setTitle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string </td>
|
|
<td class="paramname"><em>title</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Sets the title of this view </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">title</td><td>string to set title </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00047">47</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a990aa2223befde031dfcce54a740c558"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a990aa2223befde031dfcce54a740c558">◆ </a></span>setWinContext()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void View::setWinContext </td>
|
|
<td>(</td>
|
|
<td class="paramtype">WINDOW * </td>
|
|
<td class="paramname"><em>win</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Sets static view context, used for every view Note: this UI systems supports only one window </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">win</td><td>window context </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00019">19</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a52c2e2a7bc56388e7d9bfa398ad52668"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a52c2e2a7bc56388e7d9bfa398ad52668">◆ </a></span>str_split()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::vector< std::string > View::str_split </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>str</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::string </td>
|
|
<td class="paramname"><em>delim</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Splits a string by a delimeter and returns the parts in a vector </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">str</td><td>input string </td></tr>
|
|
<tr><td class="paramname">delim</td><td>the delimeter for splitting </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>splitted parts of str </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="view_8cpp_source.html#l00030">30</a> of file <a class="el" href="view_8cpp_source.html">view.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>ui/<a class="el" href="view_8h_source.html">view.h</a></li>
|
|
<li>ui/<a class="el" href="view_8cpp_source.html">view.cpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Tue Dec 3 2019 07:42:52 for B15F by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.16
|
|
</small></address>
|
|
</body>
|
|
</html>
|