deploy: ad0392ec39
182
animation_8cpp.html
Normal file
@ -0,0 +1,182 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/animation.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('animation_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">animation.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="animation_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1animation"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html">ftxui::animation</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1animation_1_1easing"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html">ftxui::animation::easing</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">Linear</a> (float p)</td></tr>
|
||||
<tr class="memdesc:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="mdescLeft"> </td><td class="mdescRight">Modeled after the line y = x. <a href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab0b9303e7f956c36960e601f158e488f"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">QuadraticIn</a> (float p)</td></tr>
|
||||
<tr class="memdesc:ab0b9303e7f956c36960e601f158e488f"><td class="mdescLeft"> </td><td class="mdescRight">Modeled after the parabola y = x^2. <a href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ab0b9303e7f956c36960e601f158e488f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa1618a8f59ae7bae191d0ab36bf90e66"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">QuadraticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aa1618a8f59ae7bae191d0ab36bf90e66"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8155757f48a6e85e27da99c0a93f7e8d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">QuadraticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a8155757f48a6e85e27da99c0a93f7e8d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2288ba740a847ea0e565017cb16c24f2"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">CubicIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a2288ba740a847ea0e565017cb16c24f2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acd3c619812de25f3613b36735a5cdc91"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">CubicOut</a> (float p)</td></tr>
|
||||
<tr class="separator:acd3c619812de25f3613b36735a5cdc91"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2aa1d45766fe10c3b16b7dd4f65db859"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">CubicInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a2aa1d45766fe10c3b16b7dd4f65db859"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af60268bac4059d32b3f7680042dba350"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">QuarticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:af60268bac4059d32b3f7680042dba350"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8878f359f37551ae64eb183af3ca93b8"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">QuarticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a8878f359f37551ae64eb183af3ca93b8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a72dd2cb5c7ffddfe3a3d8b455f68d37e"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">QuarticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a72dd2cb5c7ffddfe3a3d8b455f68d37e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab4eae8c5808cc6ab161037659e761a50"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">QuinticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ab4eae8c5808cc6ab161037659e761a50"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aae2598b1aa6a2fc944f52edbf0453fd5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">QuinticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aae2598b1aa6a2fc944f52edbf0453fd5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afcbc9e6b461fe3418a59faf4a5f9284d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">QuinticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:afcbc9e6b461fe3418a59faf4a5f9284d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af48c179e363c6656e904045b33756aeb"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">SineIn</a> (float p)</td></tr>
|
||||
<tr class="separator:af48c179e363c6656e904045b33756aeb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a92e397623fa5a607f64ba58d5c3dc56a"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">SineOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a92e397623fa5a607f64ba58d5c3dc56a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0eddac1c5f32c9f874ed1c6687a3c830"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">SineInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a0eddac1c5f32c9f874ed1c6687a3c830"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9af9e9dc6ba657b5ab681eb8be39ddb5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">CircularIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a9af9e9dc6ba657b5ab681eb8be39ddb5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4188d3f98b876d0e0f181f9fd707f476"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">CircularOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a4188d3f98b876d0e0f181f9fd707f476"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0d1df50c1810db4a8b16416b62ac7db0"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">CircularInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a0d1df50c1810db4a8b16416b62ac7db0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab0ca381749febbe74887c9fff0522434"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ExponentialIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ab0ca381749febbe74887c9fff0522434"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9de59af8a36489121dace3f2a996f029"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ExponentialOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a9de59af8a36489121dace3f2a996f029"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a502f9e65e97d295f46c6a6435a84464d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ExponentialInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a502f9e65e97d295f46c6a6435a84464d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0cc4cc8d40617d7b21dea78f71917bbc"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ElasticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a0cc4cc8d40617d7b21dea78f71917bbc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad771aec6f0170cb9039446699d1d2295"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ElasticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:ad771aec6f0170cb9039446699d1d2295"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a537ce88e07af5658175f95eb70369fb9"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ElasticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a537ce88e07af5658175f95eb70369fb9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae9cca3240dd9f14a807364e322bbdf79"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">BackIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ae9cca3240dd9f14a807364e322bbdf79"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a440085789f25b7f3ffa1391f09e154f3"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">BackOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a440085789f25b7f3ffa1391f09e154f3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4dfa1e95971ff8e4d0f7539f2e8ae577"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">BackInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a4dfa1e95971ff8e4d0f7539f2e8ae577"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a136fc5aedb4e99e08e5bea138463cb"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">BounceIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a3a136fc5aedb4e99e08e5bea138463cb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aba7f60496f13f39385d9a47349e97c09"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aba7f60496f13f39385d9a47349e97c09"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1a048fdae839f9493331cf1745767519"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">BounceInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a1a048fdae839f9493331cf1745767519"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
34
animation_8cpp.js
Normal file
@ -0,0 +1,34 @@
|
||||
var animation_8cpp =
|
||||
[
|
||||
[ "Linear", "animation_8cpp.html#a39923c8d62cdaacdc179c2ece3ee16b4", null ],
|
||||
[ "QuadraticIn", "animation_8cpp.html#ab0b9303e7f956c36960e601f158e488f", null ],
|
||||
[ "QuadraticOut", "animation_8cpp.html#aa1618a8f59ae7bae191d0ab36bf90e66", null ],
|
||||
[ "QuadraticInOut", "animation_8cpp.html#a8155757f48a6e85e27da99c0a93f7e8d", null ],
|
||||
[ "CubicIn", "animation_8cpp.html#a2288ba740a847ea0e565017cb16c24f2", null ],
|
||||
[ "CubicOut", "animation_8cpp.html#acd3c619812de25f3613b36735a5cdc91", null ],
|
||||
[ "CubicInOut", "animation_8cpp.html#a2aa1d45766fe10c3b16b7dd4f65db859", null ],
|
||||
[ "QuarticIn", "animation_8cpp.html#af60268bac4059d32b3f7680042dba350", null ],
|
||||
[ "QuarticOut", "animation_8cpp.html#a8878f359f37551ae64eb183af3ca93b8", null ],
|
||||
[ "QuarticInOut", "animation_8cpp.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e", null ],
|
||||
[ "QuinticIn", "animation_8cpp.html#ab4eae8c5808cc6ab161037659e761a50", null ],
|
||||
[ "QuinticOut", "animation_8cpp.html#aae2598b1aa6a2fc944f52edbf0453fd5", null ],
|
||||
[ "QuinticInOut", "animation_8cpp.html#afcbc9e6b461fe3418a59faf4a5f9284d", null ],
|
||||
[ "SineIn", "animation_8cpp.html#af48c179e363c6656e904045b33756aeb", null ],
|
||||
[ "SineOut", "animation_8cpp.html#a92e397623fa5a607f64ba58d5c3dc56a", null ],
|
||||
[ "SineInOut", "animation_8cpp.html#a0eddac1c5f32c9f874ed1c6687a3c830", null ],
|
||||
[ "CircularIn", "animation_8cpp.html#a9af9e9dc6ba657b5ab681eb8be39ddb5", null ],
|
||||
[ "CircularOut", "animation_8cpp.html#a4188d3f98b876d0e0f181f9fd707f476", null ],
|
||||
[ "CircularInOut", "animation_8cpp.html#a0d1df50c1810db4a8b16416b62ac7db0", null ],
|
||||
[ "ExponentialIn", "animation_8cpp.html#ab0ca381749febbe74887c9fff0522434", null ],
|
||||
[ "ExponentialOut", "animation_8cpp.html#a9de59af8a36489121dace3f2a996f029", null ],
|
||||
[ "ExponentialInOut", "animation_8cpp.html#a502f9e65e97d295f46c6a6435a84464d", null ],
|
||||
[ "ElasticIn", "animation_8cpp.html#a0cc4cc8d40617d7b21dea78f71917bbc", null ],
|
||||
[ "ElasticOut", "animation_8cpp.html#ad771aec6f0170cb9039446699d1d2295", null ],
|
||||
[ "ElasticInOut", "animation_8cpp.html#a537ce88e07af5658175f95eb70369fb9", null ],
|
||||
[ "BackIn", "animation_8cpp.html#ae9cca3240dd9f14a807364e322bbdf79", null ],
|
||||
[ "BackOut", "animation_8cpp.html#a440085789f25b7f3ffa1391f09e154f3", null ],
|
||||
[ "BackInOut", "animation_8cpp.html#a4dfa1e95971ff8e4d0f7539f2e8ae577", null ],
|
||||
[ "BounceIn", "animation_8cpp.html#a3a136fc5aedb4e99e08e5bea138463cb", null ],
|
||||
[ "BounceOut", "animation_8cpp.html#aba7f60496f13f39385d9a47349e97c09", null ],
|
||||
[ "BounceInOut", "animation_8cpp.html#a1a048fdae839f9493331cf1745767519", null ]
|
||||
];
|
426
animation_8cpp_source.html
Normal file
@ -0,0 +1,426 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/animation.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('animation_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">animation.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="animation_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#include <cmath></span> <span class="comment">// for sin, pow, sqrt, cos</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="animation_8hpp.html">ftxui/component/animation.hpp</a>"</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// NOLINTBEGIN(*-magic-numbers)</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui_1_1animation.html">ftxui::animation</a> {</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span>easing {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> constexpr <span class="keywordtype">float</span> kPi = 3.14159265358979323846f;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> constexpr <span class="keywordtype">float</span> kPi2 = kPi / 2.f;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// Easing function have been taken out of:</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// https://github.com/warrenm/AHEasing/blob/master/AHEasing/easing.c</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// Corresponding license:</span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// Copyright (c) 2011, Auerhaus Development, LLC</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// This program is free software. It comes without any warranty, to</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// the extent permitted by applicable law. You can redistribute it</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// and/or modify it under the terms of the Do What The Fuck You Want</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// To Public License, Version 2, as published by Sam Hocevar. See</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// http://sam.zoy.org/wtfpl/COPYING for more details.</span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">/// @brief Modeled after the line y = x</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4"> 29</a></span> <span class="comment"></span><span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">Linear</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> p;</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/// @brief Modeled after the parabola y = x^2</span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f"> 34</a></span> <span class="comment"></span><span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">QuadraticIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> p * p;</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">// @brief Modeled after the parabola y = -x^2 + 2x</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66"> 39</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">QuadraticOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> -(p * (p - 2.f));</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">// @brief Modeled after the piecewise quadratic</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// y = (1/2)((2x)^2) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d"> 46</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">QuadraticInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">return</span> p < 0.5f ? 2.f * p * p : (-2.f * p * p) + (4.f * p) - 1.f;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// @brief Modeled after the cubic y = x^3</span></div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2"> 51</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">CubicIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> p * p * p;</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// @brief Modeled after the cubic y = (x - 1)^3 + 1</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91"> 56</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">CubicOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (p - 1.f);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> f * f * f + 1.f;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">// @brief Modeled after the piecewise cubic</span></div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// y = (1/2)((2x)^3) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">// y = (1/2)((2x-2)^3 + 2) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859"> 64</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">CubicInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> 4.f * p * p * p;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = ((2.f * p) - 2.f);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> 0.5f * f * f * f + 1.f;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  </div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// @brief Modeled after the quartic x^4</span></div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350"> 73</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">QuarticIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> p * p * p * p;</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> }</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">// @brief Modeled after the quartic y = 1 - (x - 1)^4</span></div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8"> 78</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">QuarticOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (p - 1.f);</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">return</span> f * f * f * (1.f - p) + 1.f;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// @brief Modeled after the piecewise quartic</span></div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// y = (1/2)((2x)^4) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment">// y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e"> 86</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">QuarticInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> 8.f * p * p * p * p;</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (p - 1.f);</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> -8.f * f * f * f * f + 1.f;</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// @brief Modeled after the quintic y = x^5</span></div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50"> 95</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">QuinticIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordflow">return</span> p * p * p * p * p;</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> }</div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  </div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment">// @brief Modeled after the quintic y = (x - 1)^5 + 1</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5"> 100</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">QuinticOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (p - 1.f);</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">return</span> f * f * f * f * f + 1.f;</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> }</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">// @brief Modeled after the piecewise quintic</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">// y = (1/2)((2x)^5) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment">// y = (1/2)((2x-2)^5 + 2) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d"> 108</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">QuinticInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> 16.f * p * p * p * p * p;</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  }</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = ((2.f * p) - 2.f);</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> 0.5f * f * f * f * f * f + 1.f;</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment">// @brief Modeled after quarter-cycle of sine wave</span></div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb"> 117</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">SineIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> std::sin((p - 1.f) * kPi2) + 1.f;</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> }</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">// @brief Modeled after quarter-cycle of sine wave (different phase)</span></div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a"> 122</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">SineOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> std::sin(p * kPi2);</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">// @brief Modeled after half sine wave</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830"> 127</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">SineInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">return</span> 0.5f * (1.f - std::cos(p * kPi));</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">// @brief Modeled after shifted quadrant IV of unit circle</span></div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5"> 132</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">CircularIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">return</span> 1.f - std::sqrt(1.f - (p * p));</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> }</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment">// @brief Modeled after shifted quadrant II of unit circle</span></div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476"> 137</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">CircularOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> std::sqrt((2.f - p) * p);</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// @brief Modeled after the piecewise circular function</span></div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">// y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0"> 144</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">CircularInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span> 0.5f * (1.f - std::sqrt(1.f - 4.f * (p * p)));</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">return</span> 0.5f * (std::sqrt(-((2.f * p) - 3.f) * ((2.f * p) - 1.f)) + 1.f);</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment">// @brief Modeled after the exponential function y = 2^(10(x - 1))</span></div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434"> 152</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ExponentialIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">return</span> (p == 0.f) ? p : std::pow(2.f, 10.f * (p - 1.f));</div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  </div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment">// @brief Modeled after the exponential function y = -2^(-10x) + 1</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029"> 157</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ExponentialOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">return</span> (p == 1.f) ? p : 1.f - std::pow(2.f, -10.f * p);</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">// @brief Modeled after the piecewise exponential</span></div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment">// y = (1/2)2^(10(2x - 1)) ; [0,0.5)</span></div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">// y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1]</span></div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d"> 164</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ExponentialInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordflow">if</span> (p == 0.f || p == 1.f) {</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> p;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  }</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">return</span> 0.5f * std::pow(2.f, (20.f * p) - 10.f);</div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  }</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">return</span> -0.5f * std::pow(2.f, (-20.f * p) + 10.f) + 1.f;</div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> }</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">// @brief Modeled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x -</span></div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment">// 1))</span></div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc"> 177</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ElasticIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <span class="keywordflow">return</span> std::sin(13.f * kPi2 * p) * std::pow(2.f, 10.f * (p - 1.f));</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> }</div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">// @brief Modeled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2,</span></div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">// -10x) +</span></div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment">// 1</span></div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295"> 184</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ElasticOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">return</span> std::sin(-13.f * kPi2 * (p + 1.f)) * std::pow(2.f, -10.f * p) + 1.f;</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> }</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  </div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// @brief Modeled after the piecewise exponentially-damped sine wave:</span></div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5)</span></div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment">// y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9"> 191</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ElasticInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordflow">return</span> 0.5f * std::sin(13.f * kPi2 * (2.f * p)) *</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  std::pow(2.f, 10.f * ((2.f * p) - 1.f));</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">return</span> 0.5f * (std::sin(-13.f * kPi2 * ((2.f * p - 1.f) + 1.f)) *</div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  std::pow(2.f, -10.f * (2.f * p - 1.f)) +</div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  2.f);</div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> }</div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment">// @brief Modeled after the overshooting cubic y = x^3-x*sin(x*pi)</span></div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79"> 202</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">BackIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">return</span> p * p * p - p * std::sin(p * kPi);</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> }</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  </div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment">// @brief Modeled after overshooting cubic y = 1-((1-x)^3-(1-x)*sin((1-x)*pi))</span></div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3"> 207</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">BackOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (1.f - p);</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">return</span> 1.f - (f * f * f - f * std::sin(f * kPi));</div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> }</div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  </div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment">// @brief Modeled after the piecewise overshooting cubic function:</span></div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment">// y = (1/2)*((2x)^3-(2x)*sin(2*x*pi)) ; [0, 0.5)</span></div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">// y = (1/2)*(1-((1-x)^3-(1-x)*sin((1-x)*pi))+1) ; [0.5, 1]</span></div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577"> 215</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">BackInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = 2.f * p;</div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span> 0.5f * (f * f * f - f * std::sin(f * kPi));</div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keyword">const</span> <span class="keywordtype">float</span> f = (1.f - (2.f * p - 1.f));</div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">return</span> 0.5f * (1.f - (f * f * f - f * std::sin(f * kPi))) + 0.5f;</div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> }</div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  </div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb"> 224</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">BounceIn</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">return</span> 1.f - <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a>(1.f - p);</div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> }</div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09"> 228</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">if</span> (p < 4.f / 11.f) {</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span> (121.f * p * p) / 16.f;</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keywordflow">if</span> (p < 8.f / 11.f) {</div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keywordflow">return</span> (363.f / 40.f * p * p) - (99.f / 10.f * p) + 17.f / 5.f;</div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  }</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  </div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">if</span> (p < 9.f / 10.f) {</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">return</span> (4356.f / 361.f * p * p) - (35442.f / 1805.f * p) + 16061.f / 1805.f;</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  </div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordflow">return</span> (54.f / 5.f * p * p) - (513 / 25.f * p) + 268 / 25.f;</div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> }</div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  </div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519"> 244</a></span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">BounceInOut</a>(<span class="keywordtype">float</span> p) {</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">if</span> (p < 0.5f) {</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keywordflow">return</span> 0.5f * <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">BounceIn</a>(p * 2.f);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keywordflow">return</span> 0.5f * <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a>(p * 2.f - 1.f) + 0.5f;</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> }</div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> } <span class="comment">// namespace easing</span></div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  </div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Animator.html#a03909a0243b559e18e21996ccacdc8b6"> 253</a></span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#a03909a0243b559e18e21996ccacdc8b6">Animator::Animator</a>(<span class="keywordtype">float</span>* from,</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordtype">float</span> to,</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> duration,</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">easing::Function</a> easing_function,</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> delay)</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  : value_(from),</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  from_(*from),</div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  to_(to),</div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  duration_(duration),</div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  easing_function_(std::move(easing_function)),</div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  current_(-delay) {</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">RequestAnimationFrame</a>();</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> }</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  </div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Animator.html#ac956aa7c105ad418392f69219711117d"> 267</a></span> <span class="keywordtype">void</span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#ac956aa7c105ad418392f69219711117d">Animator::OnAnimation</a>(<a class="code" href="classftxui_1_1animation_1_1Params.html">Params</a>& params) {</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  current_ += params.<a class="code" href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">duration</a>();</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  </div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">if</span> (current_ >= duration_) {</div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  *value_ = to_;</div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  }</div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">if</span> (current_ <= <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a>()) {</div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  *value_ = from_;</div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  *value_ = from_ + (to_ - from_) * easing_function_(current_ / duration_);</div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  }</div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  </div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">RequestAnimationFrame</a>();</div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> }</div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> } <span class="comment">// namespace ftxui::animation</span></div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  </div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment">// NOLINTEND(*-magic-numbers)</span></div>
|
||||
<div class="ttc" id="aanimation_8hpp_html"><div class="ttname"><a href="animation_8hpp.html">animation.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html_a03909a0243b559e18e21996ccacdc8b6"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html#a03909a0243b559e18e21996ccacdc8b6">ftxui::animation::Animator::Animator</a></div><div class="ttdeci">Animator(float *from, float to=0.f, Duration duration=std::chrono::milliseconds(250), easing::Function easing_function=easing::Linear, Duration delay=std::chrono::milliseconds(0))</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00253">animation.cpp:253</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html_ac956aa7c105ad418392f69219711117d"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html#ac956aa7c105ad418392f69219711117d">ftxui::animation::Animator::OnAnimation</a></div><div class="ttdeci">void OnAnimation(Params &)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00267">animation.cpp:267</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Params_html"><div class="ttname"><a href="classftxui_1_1animation_1_1Params.html">ftxui::animation::Params</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00023">animation.hpp:23</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Params_html_a2cf2e0a4288915aee8f100d2f0ee3e50"><div class="ttname"><a href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">ftxui::animation::Params::duration</a></div><div class="ttdeci">Duration duration() const</div><div class="ttdoc">The duration this animation step represents.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00028">animation.hpp:28</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0cc4cc8d40617d7b21dea78f71917bbc"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ftxui::animation::easing::ElasticIn</a></div><div class="ttdeci">float ElasticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00177">animation.cpp:177</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0d1df50c1810db4a8b16416b62ac7db0"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">ftxui::animation::easing::CircularInOut</a></div><div class="ttdeci">float CircularInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00144">animation.cpp:144</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0eddac1c5f32c9f874ed1c6687a3c830"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">ftxui::animation::easing::SineInOut</a></div><div class="ttdeci">float SineInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00127">animation.cpp:127</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a1a048fdae839f9493331cf1745767519"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">ftxui::animation::easing::BounceInOut</a></div><div class="ttdeci">float BounceInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00244">animation.cpp:244</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a2288ba740a847ea0e565017cb16c24f2"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">ftxui::animation::easing::CubicIn</a></div><div class="ttdeci">float CubicIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00051">animation.cpp:51</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a2aa1d45766fe10c3b16b7dd4f65db859"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">ftxui::animation::easing::CubicInOut</a></div><div class="ttdeci">float CubicInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00064">animation.cpp:64</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a39923c8d62cdaacdc179c2ece3ee16b4"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">ftxui::animation::easing::Linear</a></div><div class="ttdeci">float Linear(float p)</div><div class="ttdoc">Modeled after the line y = x.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00029">animation.cpp:29</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a3a136fc5aedb4e99e08e5bea138463cb"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">ftxui::animation::easing::BounceIn</a></div><div class="ttdeci">float BounceIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00224">animation.cpp:224</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a4188d3f98b876d0e0f181f9fd707f476"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">ftxui::animation::easing::CircularOut</a></div><div class="ttdeci">float CircularOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00137">animation.cpp:137</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a440085789f25b7f3ffa1391f09e154f3"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">ftxui::animation::easing::BackOut</a></div><div class="ttdeci">float BackOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00207">animation.cpp:207</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a4dfa1e95971ff8e4d0f7539f2e8ae577"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">ftxui::animation::easing::BackInOut</a></div><div class="ttdeci">float BackInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00215">animation.cpp:215</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a502f9e65e97d295f46c6a6435a84464d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ftxui::animation::easing::ExponentialInOut</a></div><div class="ttdeci">float ExponentialInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00164">animation.cpp:164</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a537ce88e07af5658175f95eb70369fb9"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ftxui::animation::easing::ElasticInOut</a></div><div class="ttdeci">float ElasticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00191">animation.cpp:191</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a72dd2cb5c7ffddfe3a3d8b455f68d37e"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">ftxui::animation::easing::QuarticInOut</a></div><div class="ttdeci">float QuarticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00086">animation.cpp:86</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a8155757f48a6e85e27da99c0a93f7e8d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">ftxui::animation::easing::QuadraticInOut</a></div><div class="ttdeci">float QuadraticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00046">animation.cpp:46</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a8878f359f37551ae64eb183af3ca93b8"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">ftxui::animation::easing::QuarticOut</a></div><div class="ttdeci">float QuarticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00078">animation.cpp:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a92e397623fa5a607f64ba58d5c3dc56a"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">ftxui::animation::easing::SineOut</a></div><div class="ttdeci">float SineOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00122">animation.cpp:122</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a9af9e9dc6ba657b5ab681eb8be39ddb5"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">ftxui::animation::easing::CircularIn</a></div><div class="ttdeci">float CircularIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00132">animation.cpp:132</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a9de59af8a36489121dace3f2a996f029"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ftxui::animation::easing::ExponentialOut</a></div><div class="ttdeci">float ExponentialOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00157">animation.cpp:157</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aa1618a8f59ae7bae191d0ab36bf90e66"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">ftxui::animation::easing::QuadraticOut</a></div><div class="ttdeci">float QuadraticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00039">animation.cpp:39</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aae2598b1aa6a2fc944f52edbf0453fd5"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">ftxui::animation::easing::QuinticOut</a></div><div class="ttdeci">float QuinticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00100">animation.cpp:100</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab0b9303e7f956c36960e601f158e488f"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">ftxui::animation::easing::QuadraticIn</a></div><div class="ttdeci">float QuadraticIn(float p)</div><div class="ttdoc">Modeled after the parabola y = x^2.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00034">animation.cpp:34</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab0ca381749febbe74887c9fff0522434"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ftxui::animation::easing::ExponentialIn</a></div><div class="ttdeci">float ExponentialIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00152">animation.cpp:152</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab4eae8c5808cc6ab161037659e761a50"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">ftxui::animation::easing::QuinticIn</a></div><div class="ttdeci">float QuinticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00095">animation.cpp:95</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aba7f60496f13f39385d9a47349e97c09"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">ftxui::animation::easing::BounceOut</a></div><div class="ttdeci">float BounceOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00228">animation.cpp:228</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_acd3c619812de25f3613b36735a5cdc91"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">ftxui::animation::easing::CubicOut</a></div><div class="ttdeci">float CubicOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00056">animation.cpp:56</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ad771aec6f0170cb9039446699d1d2295"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ftxui::animation::easing::ElasticOut</a></div><div class="ttdeci">float ElasticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00184">animation.cpp:184</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ad820848234fca6290b7399cc5e07af3a"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">ftxui::animation::easing::Function</a></div><div class="ttdeci">std::function< float(float)> Function</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00035">animation.hpp:35</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ae9cca3240dd9f14a807364e322bbdf79"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">ftxui::animation::easing::BackIn</a></div><div class="ttdeci">float BackIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00202">animation.cpp:202</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_af48c179e363c6656e904045b33756aeb"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">ftxui::animation::easing::SineIn</a></div><div class="ttdeci">float SineIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00117">animation.cpp:117</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_af60268bac4059d32b3f7680042dba350"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">ftxui::animation::easing::QuarticIn</a></div><div class="ttdeci">float QuarticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00073">animation.cpp:73</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_afcbc9e6b461fe3418a59faf4a5f9284d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">ftxui::animation::easing::QuinticInOut</a></div><div class="ttdeci">float QuinticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00108">animation.cpp:108</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html"><div class="ttname"><a href="namespaceftxui_1_1animation.html">ftxui::animation</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_a3c06579c86b609bce4a9a097b23cd739"><div class="ttname"><a href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">ftxui::animation::Duration</a></div><div class="ttdeci">std::chrono::duration< float > Duration</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00020">animation.hpp:20</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_ad94d3d42aba3359550759aae5bcffbe9"><div class="ttname"><a href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">ftxui::animation::RequestAnimationFrame</a></div><div class="ttdeci">void RequestAnimationFrame()</div><div class="ttdef"><b>Definition:</b> <a href="screen__interactive_8cpp_source.html#l00062">screen_interactive.cpp:62</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
240
animation_8hpp.html
Normal file
@ -0,0 +1,240 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/component/animation.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('animation_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#typedef-members">Typedefs</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">animation.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="animation_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2animation_8hppdep" alt=""/></div>
|
||||
<map name="ainclude_2ftxui_2component_2animation_8hppdep" id="ainclude_2ftxui_2component_2animation_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="3157,5,3335,47"/>
|
||||
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="2281,95,2464,136"/>
|
||||
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="3171,273,3321,315"/>
|
||||
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="3345,273,3496,315"/>
|
||||
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="3027,184,3209,225"/>
|
||||
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="2673,184,2851,225"/>
|
||||
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="3521,273,3694,315"/>
|
||||
<area shape="rect" href="animation_8cpp.html" title=" " alt="" coords="3385,95,3536,136"/>
|
||||
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1609,184,1787,225"/>
|
||||
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="5,273,156,315"/>
|
||||
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="180,273,331,315"/>
|
||||
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="355,273,505,315"/>
|
||||
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1948,273,2099,315"/>
|
||||
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2297,273,2448,315"/>
|
||||
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1773,273,1924,315"/>
|
||||
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2647,273,2797,315"/>
|
||||
<area shape="rect" href="window_8cpp.html" title=" " alt="" coords="2821,273,2972,315"/>
|
||||
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="879,273,1029,315"/>
|
||||
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="2472,273,2623,315"/>
|
||||
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1053,273,1225,315"/>
|
||||
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1249,273,1400,315"/>
|
||||
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="2123,273,2273,315"/>
|
||||
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1424,273,1575,315"/>
|
||||
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="1599,273,1749,315"/>
|
||||
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="529,273,680,315"/>
|
||||
<area shape="rect" href="component_2util_8cpp.html" title=" " alt="" coords="704,273,855,315"/>
|
||||
<area shape="rect" href="loop_8cpp.html" title=" " alt="" coords="2996,273,3147,315"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="animation_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1animation_1_1Params.html">Params</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1animation_1_1Animator.html">Animator</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1animation"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html">ftxui::animation</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1animation_1_1easing"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html">ftxui::animation::easing</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:a19bfb27380067c74ae297dd7dad5fb37"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html#a19bfb27380067c74ae297dd7dad5fb37">Clock</a> = std::chrono::steady_clock</td></tr>
|
||||
<tr class="separator:a19bfb27380067c74ae297dd7dad5fb37"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a97ee0a9619acebafade22a9b7b0de667"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html#a97ee0a9619acebafade22a9b7b0de667">TimePoint</a> = std::chrono::time_point< Clock ></td></tr>
|
||||
<tr class="separator:a97ee0a9619acebafade22a9b7b0de667"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3c06579c86b609bce4a9a097b23cd739"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> = std::chrono::duration< float ></td></tr>
|
||||
<tr class="separator:a3c06579c86b609bce4a9a097b23cd739"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad820848234fca6290b7399cc5e07af3a"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">Function</a> = std::function< float(float)></td></tr>
|
||||
<tr class="separator:ad820848234fca6290b7399cc5e07af3a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ad94d3d42aba3359550759aae5bcffbe9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">RequestAnimationFrame</a> ()</td></tr>
|
||||
<tr class="separator:ad94d3d42aba3359550759aae5bcffbe9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">Linear</a> (float p)</td></tr>
|
||||
<tr class="memdesc:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="mdescLeft"> </td><td class="mdescRight">Modeled after the line y = x. <a href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a39923c8d62cdaacdc179c2ece3ee16b4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab0b9303e7f956c36960e601f158e488f"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">QuadraticIn</a> (float p)</td></tr>
|
||||
<tr class="memdesc:ab0b9303e7f956c36960e601f158e488f"><td class="mdescLeft"> </td><td class="mdescRight">Modeled after the parabola y = x^2. <a href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ab0b9303e7f956c36960e601f158e488f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa1618a8f59ae7bae191d0ab36bf90e66"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">QuadraticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aa1618a8f59ae7bae191d0ab36bf90e66"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8155757f48a6e85e27da99c0a93f7e8d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">QuadraticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a8155757f48a6e85e27da99c0a93f7e8d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2288ba740a847ea0e565017cb16c24f2"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">CubicIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a2288ba740a847ea0e565017cb16c24f2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acd3c619812de25f3613b36735a5cdc91"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">CubicOut</a> (float p)</td></tr>
|
||||
<tr class="separator:acd3c619812de25f3613b36735a5cdc91"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2aa1d45766fe10c3b16b7dd4f65db859"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">CubicInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a2aa1d45766fe10c3b16b7dd4f65db859"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af60268bac4059d32b3f7680042dba350"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">QuarticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:af60268bac4059d32b3f7680042dba350"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8878f359f37551ae64eb183af3ca93b8"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">QuarticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a8878f359f37551ae64eb183af3ca93b8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a72dd2cb5c7ffddfe3a3d8b455f68d37e"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">QuarticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a72dd2cb5c7ffddfe3a3d8b455f68d37e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab4eae8c5808cc6ab161037659e761a50"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">QuinticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ab4eae8c5808cc6ab161037659e761a50"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aae2598b1aa6a2fc944f52edbf0453fd5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">QuinticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aae2598b1aa6a2fc944f52edbf0453fd5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afcbc9e6b461fe3418a59faf4a5f9284d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">QuinticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:afcbc9e6b461fe3418a59faf4a5f9284d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af48c179e363c6656e904045b33756aeb"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">SineIn</a> (float p)</td></tr>
|
||||
<tr class="separator:af48c179e363c6656e904045b33756aeb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a92e397623fa5a607f64ba58d5c3dc56a"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">SineOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a92e397623fa5a607f64ba58d5c3dc56a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0eddac1c5f32c9f874ed1c6687a3c830"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">SineInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a0eddac1c5f32c9f874ed1c6687a3c830"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9af9e9dc6ba657b5ab681eb8be39ddb5"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">CircularIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a9af9e9dc6ba657b5ab681eb8be39ddb5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4188d3f98b876d0e0f181f9fd707f476"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">CircularOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a4188d3f98b876d0e0f181f9fd707f476"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0d1df50c1810db4a8b16416b62ac7db0"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">CircularInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a0d1df50c1810db4a8b16416b62ac7db0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab0ca381749febbe74887c9fff0522434"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ExponentialIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ab0ca381749febbe74887c9fff0522434"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9de59af8a36489121dace3f2a996f029"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ExponentialOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a9de59af8a36489121dace3f2a996f029"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a502f9e65e97d295f46c6a6435a84464d"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ExponentialInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a502f9e65e97d295f46c6a6435a84464d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0cc4cc8d40617d7b21dea78f71917bbc"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ElasticIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a0cc4cc8d40617d7b21dea78f71917bbc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad771aec6f0170cb9039446699d1d2295"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ElasticOut</a> (float p)</td></tr>
|
||||
<tr class="separator:ad771aec6f0170cb9039446699d1d2295"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a537ce88e07af5658175f95eb70369fb9"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ElasticInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a537ce88e07af5658175f95eb70369fb9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae9cca3240dd9f14a807364e322bbdf79"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">BackIn</a> (float p)</td></tr>
|
||||
<tr class="separator:ae9cca3240dd9f14a807364e322bbdf79"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a440085789f25b7f3ffa1391f09e154f3"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">BackOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a440085789f25b7f3ffa1391f09e154f3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4dfa1e95971ff8e4d0f7539f2e8ae577"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">BackInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a4dfa1e95971ff8e4d0f7539f2e8ae577"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a136fc5aedb4e99e08e5bea138463cb"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">BounceIn</a> (float p)</td></tr>
|
||||
<tr class="separator:a3a136fc5aedb4e99e08e5bea138463cb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aba7f60496f13f39385d9a47349e97c09"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a> (float p)</td></tr>
|
||||
<tr class="separator:aba7f60496f13f39385d9a47349e97c09"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1a048fdae839f9493331cf1745767519"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">BounceInOut</a> (float p)</td></tr>
|
||||
<tr class="separator:a1a048fdae839f9493331cf1745767519"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
41
animation_8hpp.js
Normal file
@ -0,0 +1,41 @@
|
||||
var animation_8hpp =
|
||||
[
|
||||
[ "Params", "classftxui_1_1animation_1_1Params.html", "classftxui_1_1animation_1_1Params" ],
|
||||
[ "Animator", "classftxui_1_1animation_1_1Animator.html", "classftxui_1_1animation_1_1Animator" ],
|
||||
[ "Clock", "animation_8hpp.html#a19bfb27380067c74ae297dd7dad5fb37", null ],
|
||||
[ "TimePoint", "animation_8hpp.html#a97ee0a9619acebafade22a9b7b0de667", null ],
|
||||
[ "Duration", "animation_8hpp.html#a3c06579c86b609bce4a9a097b23cd739", null ],
|
||||
[ "Function", "animation_8hpp.html#ad820848234fca6290b7399cc5e07af3a", null ],
|
||||
[ "RequestAnimationFrame", "animation_8hpp.html#ad94d3d42aba3359550759aae5bcffbe9", null ],
|
||||
[ "Linear", "animation_8hpp.html#a39923c8d62cdaacdc179c2ece3ee16b4", null ],
|
||||
[ "QuadraticIn", "animation_8hpp.html#ab0b9303e7f956c36960e601f158e488f", null ],
|
||||
[ "QuadraticOut", "animation_8hpp.html#aa1618a8f59ae7bae191d0ab36bf90e66", null ],
|
||||
[ "QuadraticInOut", "animation_8hpp.html#a8155757f48a6e85e27da99c0a93f7e8d", null ],
|
||||
[ "CubicIn", "animation_8hpp.html#a2288ba740a847ea0e565017cb16c24f2", null ],
|
||||
[ "CubicOut", "animation_8hpp.html#acd3c619812de25f3613b36735a5cdc91", null ],
|
||||
[ "CubicInOut", "animation_8hpp.html#a2aa1d45766fe10c3b16b7dd4f65db859", null ],
|
||||
[ "QuarticIn", "animation_8hpp.html#af60268bac4059d32b3f7680042dba350", null ],
|
||||
[ "QuarticOut", "animation_8hpp.html#a8878f359f37551ae64eb183af3ca93b8", null ],
|
||||
[ "QuarticInOut", "animation_8hpp.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e", null ],
|
||||
[ "QuinticIn", "animation_8hpp.html#ab4eae8c5808cc6ab161037659e761a50", null ],
|
||||
[ "QuinticOut", "animation_8hpp.html#aae2598b1aa6a2fc944f52edbf0453fd5", null ],
|
||||
[ "QuinticInOut", "animation_8hpp.html#afcbc9e6b461fe3418a59faf4a5f9284d", null ],
|
||||
[ "SineIn", "animation_8hpp.html#af48c179e363c6656e904045b33756aeb", null ],
|
||||
[ "SineOut", "animation_8hpp.html#a92e397623fa5a607f64ba58d5c3dc56a", null ],
|
||||
[ "SineInOut", "animation_8hpp.html#a0eddac1c5f32c9f874ed1c6687a3c830", null ],
|
||||
[ "CircularIn", "animation_8hpp.html#a9af9e9dc6ba657b5ab681eb8be39ddb5", null ],
|
||||
[ "CircularOut", "animation_8hpp.html#a4188d3f98b876d0e0f181f9fd707f476", null ],
|
||||
[ "CircularInOut", "animation_8hpp.html#a0d1df50c1810db4a8b16416b62ac7db0", null ],
|
||||
[ "ExponentialIn", "animation_8hpp.html#ab0ca381749febbe74887c9fff0522434", null ],
|
||||
[ "ExponentialOut", "animation_8hpp.html#a9de59af8a36489121dace3f2a996f029", null ],
|
||||
[ "ExponentialInOut", "animation_8hpp.html#a502f9e65e97d295f46c6a6435a84464d", null ],
|
||||
[ "ElasticIn", "animation_8hpp.html#a0cc4cc8d40617d7b21dea78f71917bbc", null ],
|
||||
[ "ElasticOut", "animation_8hpp.html#ad771aec6f0170cb9039446699d1d2295", null ],
|
||||
[ "ElasticInOut", "animation_8hpp.html#a537ce88e07af5658175f95eb70369fb9", null ],
|
||||
[ "BackIn", "animation_8hpp.html#ae9cca3240dd9f14a807364e322bbdf79", null ],
|
||||
[ "BackOut", "animation_8hpp.html#a440085789f25b7f3ffa1391f09e154f3", null ],
|
||||
[ "BackInOut", "animation_8hpp.html#a4dfa1e95971ff8e4d0f7539f2e8ae577", null ],
|
||||
[ "BounceIn", "animation_8hpp.html#a3a136fc5aedb4e99e08e5bea138463cb", null ],
|
||||
[ "BounceOut", "animation_8hpp.html#aba7f60496f13f39385d9a47349e97c09", null ],
|
||||
[ "BounceInOut", "animation_8hpp.html#a1a048fdae839f9493331cf1745767519", null ]
|
||||
];
|
29
animation_8hpp__dep__incl.map
Normal file
@ -0,0 +1,29 @@
|
||||
<map id="include/ftxui/component/animation.hpp" name="include/ftxui/component/animation.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="3157,5,3335,47"/>
|
||||
<area shape="rect" id="node2" href="$component__options_8hpp.html" title=" " alt="" coords="2281,95,2464,136"/>
|
||||
<area shape="rect" id="node4" href="$button_8cpp.html" title=" " alt="" coords="3171,273,3321,315"/>
|
||||
<area shape="rect" id="node15" href="$menu_8cpp.html" title=" " alt="" coords="3345,273,3496,315"/>
|
||||
<area shape="rect" id="node23" href="$component__options_8cpp.html" title=" " alt="" coords="3027,184,3209,225"/>
|
||||
<area shape="rect" id="node24" href="$screen__interactive_8hpp.html" title=" " alt="" coords="2673,184,2851,225"/>
|
||||
<area shape="rect" id="node26" href="$screen__interactive_8cpp.html" title=" " alt="" coords="3521,273,3694,315"/>
|
||||
<area shape="rect" id="node27" href="$animation_8cpp.html" title=" " alt="" coords="3385,95,3536,136"/>
|
||||
<area shape="rect" id="node3" href="$component_8hpp.html" title=" " alt="" coords="1609,184,1787,225"/>
|
||||
<area shape="rect" id="node6" href="$checkbox_8cpp.html" title=" " alt="" coords="5,273,156,315"/>
|
||||
<area shape="rect" id="node7" href="$collapsible_8cpp.html" title=" " alt="" coords="180,273,331,315"/>
|
||||
<area shape="rect" id="node11" href="$dropdown_8cpp.html" title=" " alt="" coords="355,273,505,315"/>
|
||||
<area shape="rect" id="node13" href="$input_8cpp.html" title=" " alt="" coords="1948,273,2099,315"/>
|
||||
<area shape="rect" id="node17" href="$radiobox_8cpp.html" title=" " alt="" coords="2297,273,2448,315"/>
|
||||
<area shape="rect" id="node19" href="$resizable__split_8cpp.html" title=" " alt="" coords="1773,273,1924,315"/>
|
||||
<area shape="rect" id="node20" href="$slider_8cpp.html" title=" " alt="" coords="2647,273,2797,315"/>
|
||||
<area shape="rect" id="node22" href="$window_8cpp.html" title=" " alt="" coords="2821,273,2972,315"/>
|
||||
<area shape="rect" id="node5" href="$catch__event_8cpp.html" title=" " alt="" coords="879,273,1029,315"/>
|
||||
<area shape="rect" id="node8" href="$component_8cpp.html" title=" " alt="" coords="2472,273,2623,315"/>
|
||||
<area shape="rect" id="node9" href="$component__fuzzer_8cpp.html" title=" " alt="" coords="1053,273,1225,315"/>
|
||||
<area shape="rect" id="node10" href="$container_8cpp.html" title=" " alt="" coords="1249,273,1400,315"/>
|
||||
<area shape="rect" id="node12" href="$hoverable_8cpp.html" title=" " alt="" coords="2123,273,2273,315"/>
|
||||
<area shape="rect" id="node14" href="$maybe_8cpp.html" title=" " alt="" coords="1424,273,1575,315"/>
|
||||
<area shape="rect" id="node16" href="$modal_8cpp.html" title=" " alt="" coords="1599,273,1749,315"/>
|
||||
<area shape="rect" id="node18" href="$renderer_8cpp.html" title=" " alt="" coords="529,273,680,315"/>
|
||||
<area shape="rect" id="node21" href="$component_2util_8cpp.html" title=" " alt="" coords="704,273,855,315"/>
|
||||
<area shape="rect" id="node25" href="$loop_8cpp.html" title=" " alt="" coords="2996,273,3147,315"/>
|
||||
</map>
|
1
animation_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
411e9e0c5b13871b0c7b45f3a7783896
|
BIN
animation_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 148 KiB |
257
animation_8hpp_source.html
Normal file
@ -0,0 +1,257 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/component/animation.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('animation_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">animation.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="animation_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2022 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_ANIMATION_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_ANIMATION_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <chrono></span> <span class="comment">// for milliseconds, duration, steady_clock, time_point</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <functional></span> <span class="comment">// for function</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>  </div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="namespaceftxui.html"> 10</a></span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui_1_1animation.html">ftxui::animation</a> {</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Components who haven't completed their animation can call this function to</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// request a new frame to be drawn later.</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// When there is no new events and no animations to complete, no new frame is</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// drawn.</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keywordtype">void</span> <a class="code" href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">RequestAnimationFrame</a>();</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation.html#a19bfb27380067c74ae297dd7dad5fb37"> 18</a></span> <span class="keyword">using</span> <a class="code" href="namespaceftxui_1_1animation.html#a19bfb27380067c74ae297dd7dad5fb37">Clock</a> = std::chrono::steady_clock;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation.html#a97ee0a9619acebafade22a9b7b0de667"> 19</a></span> <span class="keyword">using</span> <a class="code" href="namespaceftxui_1_1animation.html#a97ee0a9619acebafade22a9b7b0de667">TimePoint</a> = std::chrono::time_point<Clock>;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739"> 20</a></span> <span class="keyword">using</span> <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> = std::chrono::duration<float>;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// Parameter of Component::OnAnimation(param).</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Params.html"> 23</a></span> <span class="keyword">class </span><a class="code" href="classftxui_1_1animation_1_1Params.html">Params</a> {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Params.html#a27854a0925475df9b926b03808cc8d8c"> 25</a></span>  <span class="keyword">explicit</span> <a class="code" href="classftxui_1_1animation_1_1Params.html#a27854a0925475df9b926b03808cc8d8c">Params</a>(<a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> <a class="code" href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">duration</a>) : duration_(<a class="code" href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">duration</a>) {}</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> /// The duration this animation step represents.</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50"> 28</a></span> <span class="comment"></span> <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> <a class="code" href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">duration</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> duration_; }</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> duration_;</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> };</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html"> 34</a></span> <span class="keyword">namespace </span>easing {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a"> 35</a></span> <span class="keyword">using</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">Function</a> = std::function<float(<span class="keywordtype">float</span>)>;</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">// Linear interpolation (no easing)</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">Linear</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">// Quadratic easing; p^2</span></div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">QuadraticIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">QuadraticOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">QuadraticInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// Cubic easing; p^3</span></div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">CubicIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">CubicOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">CubicInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  </div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">// Quartic easing; p^4</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">QuarticIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">QuarticOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">QuarticInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// Quintic easing; p^5</span></div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">QuinticIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">QuinticOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">QuinticInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// Sine wave easing; sin(p * PI/2)</span></div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">SineIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">SineOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">SineInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">// Circular easing; sqrt(1 - p^2)</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">CircularIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">CircularOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">CircularInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// Exponential easing, base 2</span></div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ExponentialIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ExponentialOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ExponentialInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment">// Exponentially-damped sine wave easing</span></div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ElasticIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ElasticOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ElasticInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">// Overshooting cubic easing;</span></div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">BackIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">BackOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">BackInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">// Exponentially-decaying bounce easing</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">BounceIn</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">BounceOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keywordtype">float</span> <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">BounceInOut</a>(<span class="keywordtype">float</span> p);</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> } <span class="comment">// namespace easing</span></div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Animator.html"> 90</a></span> <span class="keyword">class </span><a class="code" href="classftxui_1_1animation_1_1Animator.html">Animator</a> {</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">explicit</span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#a03909a0243b559e18e21996ccacdc8b6">Animator</a>(<span class="keywordtype">float</span>* from,</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">float</span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#a5d3b8db14f3f21f9169cfbebf247d854">to</a> = 0.f,</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> duration = std::chrono::milliseconds(250),</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">easing::Function</a> easing_function = <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">easing::Linear</a>,</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> delay = std::chrono::milliseconds(0));</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">void</span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#ac956aa7c105ad418392f69219711117d">OnAnimation</a>(<a class="code" href="classftxui_1_1animation_1_1Params.html">Params</a>&);</div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classftxui_1_1animation_1_1Animator.html#a5d3b8db14f3f21f9169cfbebf247d854"> 100</a></span>  <span class="keywordtype">float</span> <a class="code" href="classftxui_1_1animation_1_1Animator.html#a5d3b8db14f3f21f9169cfbebf247d854">to</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> to_; }</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  </div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">float</span>* value_;</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">float</span> from_;</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">float</span> to_;</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> duration_;</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">easing::Function</a> easing_function_;</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">Duration</a> current_;</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> };</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> } <span class="comment">// namespace ftxui::animation</span></div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: FTXUI_ANIMATION_HPP */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html">ftxui::animation::Animator</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00090">animation.hpp:90</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html_a03909a0243b559e18e21996ccacdc8b6"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html#a03909a0243b559e18e21996ccacdc8b6">ftxui::animation::Animator::Animator</a></div><div class="ttdeci">Animator(float *from, float to=0.f, Duration duration=std::chrono::milliseconds(250), easing::Function easing_function=easing::Linear, Duration delay=std::chrono::milliseconds(0))</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00253">animation.cpp:253</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html_a5d3b8db14f3f21f9169cfbebf247d854"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html#a5d3b8db14f3f21f9169cfbebf247d854">ftxui::animation::Animator::to</a></div><div class="ttdeci">float to() const</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00100">animation.hpp:100</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Animator_html_ac956aa7c105ad418392f69219711117d"><div class="ttname"><a href="classftxui_1_1animation_1_1Animator.html#ac956aa7c105ad418392f69219711117d">ftxui::animation::Animator::OnAnimation</a></div><div class="ttdeci">void OnAnimation(Params &)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00267">animation.cpp:267</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Params_html"><div class="ttname"><a href="classftxui_1_1animation_1_1Params.html">ftxui::animation::Params</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00023">animation.hpp:23</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Params_html_a27854a0925475df9b926b03808cc8d8c"><div class="ttname"><a href="classftxui_1_1animation_1_1Params.html#a27854a0925475df9b926b03808cc8d8c">ftxui::animation::Params::Params</a></div><div class="ttdeci">Params(Duration duration)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00025">animation.hpp:25</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1animation_1_1Params_html_a2cf2e0a4288915aee8f100d2f0ee3e50"><div class="ttname"><a href="classftxui_1_1animation_1_1Params.html#a2cf2e0a4288915aee8f100d2f0ee3e50">ftxui::animation::Params::duration</a></div><div class="ttdeci">Duration duration() const</div><div class="ttdoc">The duration this animation step represents.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00028">animation.hpp:28</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0cc4cc8d40617d7b21dea78f71917bbc"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0cc4cc8d40617d7b21dea78f71917bbc">ftxui::animation::easing::ElasticIn</a></div><div class="ttdeci">float ElasticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00177">animation.cpp:177</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0d1df50c1810db4a8b16416b62ac7db0"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0d1df50c1810db4a8b16416b62ac7db0">ftxui::animation::easing::CircularInOut</a></div><div class="ttdeci">float CircularInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00144">animation.cpp:144</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a0eddac1c5f32c9f874ed1c6687a3c830"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a0eddac1c5f32c9f874ed1c6687a3c830">ftxui::animation::easing::SineInOut</a></div><div class="ttdeci">float SineInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00127">animation.cpp:127</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a1a048fdae839f9493331cf1745767519"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a1a048fdae839f9493331cf1745767519">ftxui::animation::easing::BounceInOut</a></div><div class="ttdeci">float BounceInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00244">animation.cpp:244</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a2288ba740a847ea0e565017cb16c24f2"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a2288ba740a847ea0e565017cb16c24f2">ftxui::animation::easing::CubicIn</a></div><div class="ttdeci">float CubicIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00051">animation.cpp:51</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a2aa1d45766fe10c3b16b7dd4f65db859"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a2aa1d45766fe10c3b16b7dd4f65db859">ftxui::animation::easing::CubicInOut</a></div><div class="ttdeci">float CubicInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00064">animation.cpp:64</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a39923c8d62cdaacdc179c2ece3ee16b4"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a39923c8d62cdaacdc179c2ece3ee16b4">ftxui::animation::easing::Linear</a></div><div class="ttdeci">float Linear(float p)</div><div class="ttdoc">Modeled after the line y = x.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00029">animation.cpp:29</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a3a136fc5aedb4e99e08e5bea138463cb"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a3a136fc5aedb4e99e08e5bea138463cb">ftxui::animation::easing::BounceIn</a></div><div class="ttdeci">float BounceIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00224">animation.cpp:224</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a4188d3f98b876d0e0f181f9fd707f476"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a4188d3f98b876d0e0f181f9fd707f476">ftxui::animation::easing::CircularOut</a></div><div class="ttdeci">float CircularOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00137">animation.cpp:137</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a440085789f25b7f3ffa1391f09e154f3"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a440085789f25b7f3ffa1391f09e154f3">ftxui::animation::easing::BackOut</a></div><div class="ttdeci">float BackOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00207">animation.cpp:207</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a4dfa1e95971ff8e4d0f7539f2e8ae577"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a4dfa1e95971ff8e4d0f7539f2e8ae577">ftxui::animation::easing::BackInOut</a></div><div class="ttdeci">float BackInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00215">animation.cpp:215</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a502f9e65e97d295f46c6a6435a84464d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a502f9e65e97d295f46c6a6435a84464d">ftxui::animation::easing::ExponentialInOut</a></div><div class="ttdeci">float ExponentialInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00164">animation.cpp:164</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a537ce88e07af5658175f95eb70369fb9"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a537ce88e07af5658175f95eb70369fb9">ftxui::animation::easing::ElasticInOut</a></div><div class="ttdeci">float ElasticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00191">animation.cpp:191</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a72dd2cb5c7ffddfe3a3d8b455f68d37e"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a72dd2cb5c7ffddfe3a3d8b455f68d37e">ftxui::animation::easing::QuarticInOut</a></div><div class="ttdeci">float QuarticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00086">animation.cpp:86</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a8155757f48a6e85e27da99c0a93f7e8d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a8155757f48a6e85e27da99c0a93f7e8d">ftxui::animation::easing::QuadraticInOut</a></div><div class="ttdeci">float QuadraticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00046">animation.cpp:46</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a8878f359f37551ae64eb183af3ca93b8"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a8878f359f37551ae64eb183af3ca93b8">ftxui::animation::easing::QuarticOut</a></div><div class="ttdeci">float QuarticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00078">animation.cpp:78</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a92e397623fa5a607f64ba58d5c3dc56a"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a92e397623fa5a607f64ba58d5c3dc56a">ftxui::animation::easing::SineOut</a></div><div class="ttdeci">float SineOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00122">animation.cpp:122</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a9af9e9dc6ba657b5ab681eb8be39ddb5"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a9af9e9dc6ba657b5ab681eb8be39ddb5">ftxui::animation::easing::CircularIn</a></div><div class="ttdeci">float CircularIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00132">animation.cpp:132</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_a9de59af8a36489121dace3f2a996f029"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#a9de59af8a36489121dace3f2a996f029">ftxui::animation::easing::ExponentialOut</a></div><div class="ttdeci">float ExponentialOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00157">animation.cpp:157</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aa1618a8f59ae7bae191d0ab36bf90e66"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aa1618a8f59ae7bae191d0ab36bf90e66">ftxui::animation::easing::QuadraticOut</a></div><div class="ttdeci">float QuadraticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00039">animation.cpp:39</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aae2598b1aa6a2fc944f52edbf0453fd5"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aae2598b1aa6a2fc944f52edbf0453fd5">ftxui::animation::easing::QuinticOut</a></div><div class="ttdeci">float QuinticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00100">animation.cpp:100</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab0b9303e7f956c36960e601f158e488f"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab0b9303e7f956c36960e601f158e488f">ftxui::animation::easing::QuadraticIn</a></div><div class="ttdeci">float QuadraticIn(float p)</div><div class="ttdoc">Modeled after the parabola y = x^2.</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00034">animation.cpp:34</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab0ca381749febbe74887c9fff0522434"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab0ca381749febbe74887c9fff0522434">ftxui::animation::easing::ExponentialIn</a></div><div class="ttdeci">float ExponentialIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00152">animation.cpp:152</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ab4eae8c5808cc6ab161037659e761a50"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ab4eae8c5808cc6ab161037659e761a50">ftxui::animation::easing::QuinticIn</a></div><div class="ttdeci">float QuinticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00095">animation.cpp:95</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_aba7f60496f13f39385d9a47349e97c09"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#aba7f60496f13f39385d9a47349e97c09">ftxui::animation::easing::BounceOut</a></div><div class="ttdeci">float BounceOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00228">animation.cpp:228</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_acd3c619812de25f3613b36735a5cdc91"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#acd3c619812de25f3613b36735a5cdc91">ftxui::animation::easing::CubicOut</a></div><div class="ttdeci">float CubicOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00056">animation.cpp:56</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ad771aec6f0170cb9039446699d1d2295"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ad771aec6f0170cb9039446699d1d2295">ftxui::animation::easing::ElasticOut</a></div><div class="ttdeci">float ElasticOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00184">animation.cpp:184</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ad820848234fca6290b7399cc5e07af3a"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ad820848234fca6290b7399cc5e07af3a">ftxui::animation::easing::Function</a></div><div class="ttdeci">std::function< float(float)> Function</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00035">animation.hpp:35</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_ae9cca3240dd9f14a807364e322bbdf79"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#ae9cca3240dd9f14a807364e322bbdf79">ftxui::animation::easing::BackIn</a></div><div class="ttdeci">float BackIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00202">animation.cpp:202</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_af48c179e363c6656e904045b33756aeb"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#af48c179e363c6656e904045b33756aeb">ftxui::animation::easing::SineIn</a></div><div class="ttdeci">float SineIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00117">animation.cpp:117</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_af60268bac4059d32b3f7680042dba350"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#af60268bac4059d32b3f7680042dba350">ftxui::animation::easing::QuarticIn</a></div><div class="ttdeci">float QuarticIn(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00073">animation.cpp:73</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_1_1easing_html_afcbc9e6b461fe3418a59faf4a5f9284d"><div class="ttname"><a href="namespaceftxui_1_1animation_1_1easing.html#afcbc9e6b461fe3418a59faf4a5f9284d">ftxui::animation::easing::QuinticInOut</a></div><div class="ttdeci">float QuinticInOut(float p)</div><div class="ttdef"><b>Definition:</b> <a href="animation_8cpp_source.html#l00108">animation.cpp:108</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html"><div class="ttname"><a href="namespaceftxui_1_1animation.html">ftxui::animation</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_a19bfb27380067c74ae297dd7dad5fb37"><div class="ttname"><a href="namespaceftxui_1_1animation.html#a19bfb27380067c74ae297dd7dad5fb37">ftxui::animation::Clock</a></div><div class="ttdeci">std::chrono::steady_clock Clock</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00018">animation.hpp:18</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_a3c06579c86b609bce4a9a097b23cd739"><div class="ttname"><a href="namespaceftxui_1_1animation.html#a3c06579c86b609bce4a9a097b23cd739">ftxui::animation::Duration</a></div><div class="ttdeci">std::chrono::duration< float > Duration</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00020">animation.hpp:20</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_a97ee0a9619acebafade22a9b7b0de667"><div class="ttname"><a href="namespaceftxui_1_1animation.html#a97ee0a9619acebafade22a9b7b0de667">ftxui::animation::TimePoint</a></div><div class="ttdeci">std::chrono::time_point< Clock > TimePoint</div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00019">animation.hpp:19</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1animation_html_ad94d3d42aba3359550759aae5bcffbe9"><div class="ttname"><a href="namespaceftxui_1_1animation.html#ad94d3d42aba3359550759aae5bcffbe9">ftxui::animation::RequestAnimationFrame</a></div><div class="ttdeci">void RequestAnimationFrame()</div><div class="ttdef"><b>Definition:</b> <a href="screen__interactive_8cpp_source.html#l00062">screen_interactive.cpp:62</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
166
annotated.html
Normal file
@ -0,0 +1,166 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: Data Structures</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('annotated.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Data Structures</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory">
|
||||
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span>]</div><table class="directory">
|
||||
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui.html" target="_self">ftxui</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_0_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_0_" class="arrow" onclick="toggleFolder('0_0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1animation.html" target="_self">animation</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_0_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1animation_1_1Params.html" target="_self">Params</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_0_1_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1animation_1_1Animator.html" target="_self">Animator</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_1_" class="arrow" onclick="toggleFolder('0_1_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1box__helper.html" target="_self">box_helper</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element" target="_self">Element</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_2_" class="arrow" onclick="toggleFolder('0_2_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1flexbox__helper.html" target="_self">flexbox_helper</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_2_0_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Block" target="_self">Block</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_2_1_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Global" target="_self">Global</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_3_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1CapturedMouseInterface.html" target="_self">CapturedMouseInterface</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_4_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ComponentBase.html" target="_self">ComponentBase</a></td><td class="desc">It implement rendering itself as <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a>. It implement keyboard navigation by responding to <a class="el" href="structftxui_1_1Event.html" title="Represent an event. It can be key press event, a terminal resize, or more ...">ftxui::Event</a> </td></tr>
|
||||
<tr id="row_0_5_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1EntryState" target="_self">EntryState</a></td><td class="desc">Arguments for |ButtonOption::transform|, |CheckboxOption::transform|, |Radiobox::transform|, |MenuEntryOption::transform|, |MenuOption::transform| </td></tr>
|
||||
<tr id="row_0_6_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1UnderlineOption.html" target="_self">UnderlineOption</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_7_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1AnimatedColorOption.html" target="_self">AnimatedColorOption</a></td><td class="desc">Option about a potentially animated color </td></tr>
|
||||
<tr id="row_0_8_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1AnimatedColorsOption" target="_self">AnimatedColorsOption</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_9_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1MenuEntryOption" target="_self">MenuEntryOption</a></td><td class="desc">Option for the MenuEntry component </td></tr>
|
||||
<tr id="row_0_10_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1MenuOption.html" target="_self">MenuOption</a></td><td class="desc">Option for the Menu component </td></tr>
|
||||
<tr id="row_0_11_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1ButtonOption.html" target="_self">ButtonOption</a></td><td class="desc">Option for the AnimatedButton component </td></tr>
|
||||
<tr id="row_0_12_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1CheckboxOption.html" target="_self">CheckboxOption</a></td><td class="desc">Option for the Checkbox component </td></tr>
|
||||
<tr id="row_0_13_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1InputState" target="_self">InputState</a></td><td class="desc">Used to define style for the Input component </td></tr>
|
||||
<tr id="row_0_14_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1InputOption.html" target="_self">InputOption</a></td><td class="desc">Option for the Input component </td></tr>
|
||||
<tr id="row_0_15_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1RadioboxOption.html" target="_self">RadioboxOption</a></td><td class="desc">Option for the Radiobox component </td></tr>
|
||||
<tr id="row_0_16_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1ResizableSplitOption" target="_self">ResizableSplitOption</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_17_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1SliderOption" target="_self">SliderOption</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_18_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1WindowRenderState" target="_self">WindowRenderState</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_19_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1WindowOptions" target="_self">WindowOptions</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_20_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1DropdownOption" target="_self">DropdownOption</a></td><td class="desc">Option for the Dropdown component.A dropdown menu is a checkbox opening/closing a radiobox </td></tr>
|
||||
<tr id="row_0_21_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Event.html" target="_self">Event</a></td><td class="desc">Represent an event. It can be key press event, a terminal resize, or more .. </td></tr>
|
||||
<tr id="row_0_22_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Loop.html" target="_self">Loop</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_23_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Mouse.html" target="_self">Mouse</a></td><td class="desc">A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta) </td></tr>
|
||||
<tr id="row_0_24_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1SenderImpl.html" target="_self">SenderImpl</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_25_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ReceiverImpl.html" target="_self">ReceiverImpl</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_26_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_26_" class="arrow" onclick="toggleFolder('0_26_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ScreenInteractive.html" target="_self">ScreenInteractive</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_26_0_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ScreenInteractive_1_1Private.html" target="_self">Private</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_27_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#classftxui_1_1AnimationTask" target="_self">AnimationTask</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_28_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Canvas.html" target="_self">Canvas</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_29_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1FlexboxConfig.html" target="_self">FlexboxConfig</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_30_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_30_" class="arrow" onclick="toggleFolder('0_30_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1LinearGradient.html" target="_self">LinearGradient</a></td><td class="desc">A class representing the settings for linear-gradient color effect </td></tr>
|
||||
<tr id="row_0_30_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1LinearGradient.html#structftxui_1_1LinearGradient_1_1Stop" target="_self">Stop</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_31_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_31_" class="arrow" onclick="toggleFolder('0_31_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Node.html" target="_self">Node</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_31_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status" target="_self">Status</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_32_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Requirement.html" target="_self">Requirement</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_33_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Table.html" target="_self">Table</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_34_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1TableSelection.html" target="_self">TableSelection</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_35_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Box.html" target="_self">Box</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_36_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Color.html" target="_self">Color</a></td><td class="desc">A class representing terminal colors </td></tr>
|
||||
<tr id="row_0_37_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1ColorInfo" target="_self">ColorInfo</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_38_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Image.html" target="_self">Image</a></td><td class="desc">A rectangular grid of <a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a> </td></tr>
|
||||
<tr id="row_0_39_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Pixel.html" target="_self">Pixel</a></td><td class="desc">A Unicode character and its associated style </td></tr>
|
||||
<tr id="row_0_40_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_40_" class="arrow" onclick="toggleFolder('0_40_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Screen.html" target="_self">Screen</a></td><td class="desc">A rectangular grid of <a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a> </td></tr>
|
||||
<tr id="row_0_40_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Screen_1_1Cursor.html" target="_self">Cursor</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_41_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="namespaceftxui.html#structftxui_1_1Dimensions" target="_self">Dimensions</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_42_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1AutoReset.html" target="_self">AutoReset</a></td><td class="desc">Assign a value to a variable, reset its old value when going out of scope </td></tr>
|
||||
<tr id="row_0_43_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstRef.html" target="_self">ConstRef</a></td><td class="desc">An adapter. Own or reference an immutable object </td></tr>
|
||||
<tr id="row_0_44_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Ref.html" target="_self">Ref</a></td><td class="desc">An adapter. Own or reference an mutable object </td></tr>
|
||||
<tr id="row_0_45_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1StringRef.html" target="_self">StringRef</a></td><td class="desc">An adapter. Own or reference a constant string. For convenience, this class convert multiple mutable string toward a shared representation </td></tr>
|
||||
<tr id="row_0_46_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringRef.html" target="_self">ConstStringRef</a></td><td class="desc">An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation </td></tr>
|
||||
<tr id="row_0_47_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_47_" class="arrow" onclick="toggleFolder('0_47_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringListRef.html" target="_self">ConstStringListRef</a></td><td class="desc">An adapter. Reference a list of strings </td></tr>
|
||||
<tr id="row_0_47_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html" target="_self">Adapter</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_48_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_48_" class="arrow" onclick="toggleFolder('0_48_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1TerminalInputParser.html" target="_self">TerminalInputParser</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_48_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1TerminalInputParser.html#unionftxui_1_1TerminalInputParser_1_1Output_8____unnamed2____" target="_self">Output.__unnamed2__</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_49_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1NodeDecorator.html" target="_self">NodeDecorator</a></td><td class="desc"></td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
63
annotated.js
Normal file
@ -0,0 +1,63 @@
|
||||
var annotated =
|
||||
[
|
||||
[ "ftxui", "namespaceftxui.html", [
|
||||
[ "animation", "namespaceftxui_1_1animation.html", [
|
||||
[ "Params", "classftxui_1_1animation_1_1Params.html", "classftxui_1_1animation_1_1Params" ],
|
||||
[ "Animator", "classftxui_1_1animation_1_1Animator.html", "classftxui_1_1animation_1_1Animator" ]
|
||||
] ],
|
||||
[ "box_helper", "namespaceftxui_1_1box__helper.html", [
|
||||
[ "Element", "namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element", "namespaceftxui_1_1box__helper_structftxui_1_1box__helper_1_1Element_dup" ]
|
||||
] ],
|
||||
[ "flexbox_helper", "namespaceftxui_1_1flexbox__helper.html", [
|
||||
[ "Block", "namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Block", "namespaceftxui_1_1flexbox__helper_structftxui_1_1flexbox__helper_1_1Block_dup" ],
|
||||
[ "Global", "namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Global", "namespaceftxui_1_1flexbox__helper_structftxui_1_1flexbox__helper_1_1Global_dup" ]
|
||||
] ],
|
||||
[ "CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html", "classftxui_1_1CapturedMouseInterface" ],
|
||||
[ "ComponentBase", "classftxui_1_1ComponentBase.html", "classftxui_1_1ComponentBase" ],
|
||||
[ "EntryState", "namespaceftxui.html#structftxui_1_1EntryState", "namespaceftxui_structftxui_1_1EntryState_dup" ],
|
||||
[ "UnderlineOption", "structftxui_1_1UnderlineOption.html", "structftxui_1_1UnderlineOption" ],
|
||||
[ "AnimatedColorOption", "structftxui_1_1AnimatedColorOption.html", "structftxui_1_1AnimatedColorOption" ],
|
||||
[ "AnimatedColorsOption", "namespaceftxui.html#structftxui_1_1AnimatedColorsOption", "namespaceftxui_structftxui_1_1AnimatedColorsOption_dup" ],
|
||||
[ "MenuEntryOption", "namespaceftxui.html#structftxui_1_1MenuEntryOption", "namespaceftxui_structftxui_1_1MenuEntryOption_dup" ],
|
||||
[ "MenuOption", "structftxui_1_1MenuOption.html", "structftxui_1_1MenuOption" ],
|
||||
[ "ButtonOption", "structftxui_1_1ButtonOption.html", "structftxui_1_1ButtonOption" ],
|
||||
[ "CheckboxOption", "structftxui_1_1CheckboxOption.html", "structftxui_1_1CheckboxOption" ],
|
||||
[ "InputState", "namespaceftxui.html#structftxui_1_1InputState", "namespaceftxui_structftxui_1_1InputState_dup" ],
|
||||
[ "InputOption", "structftxui_1_1InputOption.html", "structftxui_1_1InputOption" ],
|
||||
[ "RadioboxOption", "structftxui_1_1RadioboxOption.html", "structftxui_1_1RadioboxOption" ],
|
||||
[ "ResizableSplitOption", "namespaceftxui.html#structftxui_1_1ResizableSplitOption", "namespaceftxui_structftxui_1_1ResizableSplitOption_dup" ],
|
||||
[ "SliderOption", "namespaceftxui.html#structftxui_1_1SliderOption", "namespaceftxui_structftxui_1_1SliderOption_dup" ],
|
||||
[ "WindowRenderState", "namespaceftxui.html#structftxui_1_1WindowRenderState", "namespaceftxui_structftxui_1_1WindowRenderState_dup" ],
|
||||
[ "WindowOptions", "namespaceftxui.html#structftxui_1_1WindowOptions", "namespaceftxui_structftxui_1_1WindowOptions_dup" ],
|
||||
[ "DropdownOption", "namespaceftxui.html#structftxui_1_1DropdownOption", "namespaceftxui_structftxui_1_1DropdownOption_dup" ],
|
||||
[ "Event", "structftxui_1_1Event.html", "structftxui_1_1Event" ],
|
||||
[ "Loop", "classftxui_1_1Loop.html", "classftxui_1_1Loop" ],
|
||||
[ "Mouse", "structftxui_1_1Mouse.html", "structftxui_1_1Mouse" ],
|
||||
[ "SenderImpl", "classftxui_1_1SenderImpl.html", "classftxui_1_1SenderImpl" ],
|
||||
[ "ReceiverImpl", "classftxui_1_1ReceiverImpl.html", "classftxui_1_1ReceiverImpl" ],
|
||||
[ "ScreenInteractive", "classftxui_1_1ScreenInteractive.html", "classftxui_1_1ScreenInteractive" ],
|
||||
[ "AnimationTask", "namespaceftxui.html#classftxui_1_1AnimationTask", null ],
|
||||
[ "Canvas", "structftxui_1_1Canvas.html", "structftxui_1_1Canvas" ],
|
||||
[ "FlexboxConfig", "structftxui_1_1FlexboxConfig.html", "structftxui_1_1FlexboxConfig" ],
|
||||
[ "LinearGradient", "structftxui_1_1LinearGradient.html", "structftxui_1_1LinearGradient" ],
|
||||
[ "Node", "classftxui_1_1Node.html", "classftxui_1_1Node" ],
|
||||
[ "Requirement", "structftxui_1_1Requirement.html", "structftxui_1_1Requirement" ],
|
||||
[ "Table", "classftxui_1_1Table.html", "classftxui_1_1Table" ],
|
||||
[ "TableSelection", "classftxui_1_1TableSelection.html", "classftxui_1_1TableSelection" ],
|
||||
[ "Box", "structftxui_1_1Box.html", "structftxui_1_1Box" ],
|
||||
[ "Color", "classftxui_1_1Color.html", "classftxui_1_1Color" ],
|
||||
[ "ColorInfo", "namespaceftxui.html#structftxui_1_1ColorInfo", "namespaceftxui_structftxui_1_1ColorInfo_dup" ],
|
||||
[ "Image", "classftxui_1_1Image.html", "classftxui_1_1Image" ],
|
||||
[ "Pixel", "structftxui_1_1Pixel.html", "structftxui_1_1Pixel" ],
|
||||
[ "Screen", "classftxui_1_1Screen.html", "classftxui_1_1Screen" ],
|
||||
[ "Dimensions", "namespaceftxui.html#structftxui_1_1Dimensions", "namespaceftxui_structftxui_1_1Dimensions_dup" ],
|
||||
[ "AutoReset", "classftxui_1_1AutoReset.html", "classftxui_1_1AutoReset" ],
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html", "classftxui_1_1ConstRef" ],
|
||||
[ "Ref", "classftxui_1_1Ref.html", "classftxui_1_1Ref" ],
|
||||
[ "StringRef", "classftxui_1_1StringRef.html", "classftxui_1_1StringRef" ],
|
||||
[ "ConstStringRef", "classftxui_1_1ConstStringRef.html", "classftxui_1_1ConstStringRef" ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html", "classftxui_1_1ConstStringListRef" ],
|
||||
[ "TerminalInputParser", "classftxui_1_1TerminalInputParser.html", "classftxui_1_1TerminalInputParser" ],
|
||||
[ "NodeDecorator", "classftxui_1_1NodeDecorator.html", "classftxui_1_1NodeDecorator" ]
|
||||
] ]
|
||||
];
|
117
automerge_8cpp.html
Normal file
@ -0,0 +1,117 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/automerge.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('automerge_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">automerge.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="automerge_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:aca42bd6c44d8d366d5c1014330402086"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#aca42bd6c44d8d366d5c1014330402086">automerge</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:aca42bd6c44d8d366d5c1014330402086"><td class="mdescLeft"> </td><td class="mdescRight">Enable character to be automatically merged with others nearby. <a href="namespaceftxui.html#aca42bd6c44d8d366d5c1014330402086">More...</a><br /></td></tr>
|
||||
<tr class="separator:aca42bd6c44d8d366d5c1014330402086"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
automerge_8cpp.js
Normal file
@ -0,0 +1,4 @@
|
||||
var automerge_8cpp =
|
||||
[
|
||||
[ "automerge", "automerge_8cpp.html#aca42bd6c44d8d366d5c1014330402086", null ]
|
||||
];
|
150
automerge_8cpp_source.html
Normal file
@ -0,0 +1,150 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/automerge.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('automerge_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">automerge.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="automerge_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for make_shared</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for Element, automerge</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="node_8hpp.html">ftxui/dom/node.hpp</a>"</span> <span class="comment">// for Node</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="node__decorator_8hpp.html">ftxui/dom/node_decorator.hpp</a>"</span> <span class="comment">// for NodeDecorator</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="screen_8hpp.html">ftxui/screen/screen.hpp</a>"</span> <span class="comment">// for Pixel, Screen</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">/// @brief Enable character to be automatically merged with others nearby.</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespaceftxui.html#aca42bd6c44d8d366d5c1014330402086"> 17</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#aca42bd6c44d8d366d5c1014330402086">automerge</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">class </span>Impl : <span class="keyword">public</span> <a class="code" href="classftxui_1_1NodeDecorator.html">NodeDecorator</a> {</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">using</span> <a class="code" href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">NodeDecorator::NodeDecorator</a>;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>(<a class="code" href="classftxui_1_1Screen.html">Screen</a>& screen)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min; y <= box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min; x <= box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  screen.<a class="code" href="classftxui_1_1Image.html#a483f8ee1967e200cfc9e277b3ce00174">PixelAt</a>(x, y).<a class="code" href="structftxui_1_1Pixel.html#ada8b6dbd466ba5b6c4b240f229bd627f">automerge</a> = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">Node::Render</a>(screen);</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  }</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  };</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> std::make_shared<Impl>(std::move(child));</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Image_html_a483f8ee1967e200cfc9e277b3ce00174"><div class="ttname"><a href="classftxui_1_1Image.html#a483f8ee1967e200cfc9e277b3ce00174">ftxui::Image::PixelAt</a></div><div class="ttdeci">Pixel & PixelAt(int x, int y)</div><div class="ttdoc">Access a cell (Pixel) at a given position.</div><div class="ttdef"><b>Definition:</b> <a href="image_8cpp_source.html#l00043">image.cpp:43</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1NodeDecorator_html"><div class="ttname"><a href="classftxui_1_1NodeDecorator.html">ftxui::NodeDecorator</a></div><div class="ttdef"><b>Definition:</b> <a href="node__decorator_8hpp_source.html#l00016">node_decorator.hpp:16</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1NodeDecorator_html_a7e9d74ba5d480d87e8bfcaf2df66fbbe"><div class="ttname"><a href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">ftxui::NodeDecorator::NodeDecorator</a></div><div class="ttdeci">NodeDecorator(Element child)</div><div class="ttdef"><b>Definition:</b> <a href="node__decorator_8hpp_source.html#l00018">node_decorator.hpp:18</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Node_html_a7e286fe14880614686ceeec84a9a9702"><div class="ttname"><a href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">ftxui::Node::Render</a></div><div class="ttdeci">virtual void Render(Screen &screen)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00032">node.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Screen_html"><div class="ttname"><a href="classftxui_1_1Screen.html">ftxui::Screen</a></div><div class="ttdoc">A rectangular grid of Pixel.</div><div class="ttdef"><b>Definition:</b> <a href="screen_8hpp_source.html#l00025">screen.hpp:25</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aca42bd6c44d8d366d5c1014330402086"><div class="ttname"><a href="namespaceftxui.html#aca42bd6c44d8d366d5c1014330402086">ftxui::automerge</a></div><div class="ttdeci">Element automerge(Element child)</div><div class="ttdoc">Enable character to be automatically merged with others nearby.</div><div class="ttdef"><b>Definition:</b> <a href="automerge_8cpp_source.html#l00017">automerge.cpp:17</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anode_8hpp_html"><div class="ttname"><a href="node_8hpp.html">node.hpp</a></div></div>
|
||||
<div class="ttc" id="anode__decorator_8hpp_html"><div class="ttname"><a href="node__decorator_8hpp.html">node_decorator.hpp</a></div></div>
|
||||
<div class="ttc" id="ascreen_8hpp_html"><div class="ttname"><a href="screen_8hpp.html">screen.hpp</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Pixel_html_ada8b6dbd466ba5b6c4b240f229bd627f"><div class="ttname"><a href="structftxui_1_1Pixel.html#ada8b6dbd466ba5b6c4b240f229bd627f">ftxui::Pixel::automerge</a></div><div class="ttdeci">bool automerge</div><div class="ttdef"><b>Definition:</b> <a href="pixel_8hpp_source.html#l00034">pixel.hpp:34</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
128
autoreset_8hpp.html
Normal file
@ -0,0 +1,128 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/util/autoreset.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('autoreset_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">autoreset.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="autoreset_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2util_2autoreset_8hppdep" alt=""/></div>
|
||||
<map name="ainclude_2ftxui_2util_2autoreset_8hppdep" id="ainclude_2ftxui_2util_2autoreset_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="31,5,157,47"/>
|
||||
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="5,95,183,121"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="autoreset_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset< T ></a></td></tr>
|
||||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Assign a value to a variable, reset its old value when going out of scope. <a href="classftxui_1_1AutoReset.html#details">More...</a><br /></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
autoreset_8hpp__dep__incl.map
Normal file
@ -0,0 +1,4 @@
|
||||
<map id="include/ftxui/util/autoreset.hpp" name="include/ftxui/util/autoreset.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="31,5,157,47"/>
|
||||
<area shape="rect" id="node2" href="$frame_8cpp.html" title=" " alt="" coords="5,95,183,121"/>
|
||||
</map>
|
1
autoreset_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
55611e0c50b4e9cf4b219a2f46c5154a
|
BIN
autoreset_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
140
autoreset_8hpp_source.html
Normal file
@ -0,0 +1,140 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/util/autoreset.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('autoreset_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">autoreset.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="autoreset_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_UTIL_AUTORESET_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_UTIL_AUTORESET_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <utility></span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">/// Assign a value to a variable, reset its old value when going out of scope.</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span><span class="keyword">template</span> <<span class="keyword">typename</span> T></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html"> 13</a></span> <span class="keyword">class </span><a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#ae393855d753027bcb3d4d1e1514e6ad4"> 15</a></span>  <a class="code" href="classftxui_1_1AutoReset.html#ae393855d753027bcb3d4d1e1514e6ad4">AutoReset</a>(T* variable, T new_value)</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  : variable_(variable), previous_value_(std::move(*variable)) {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  *variable_ = std::move(new_value);</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  }</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#a5280cdbbbecce1de0ae69bfdca10d7ed"> 19</a></span>  <a class="code" href="classftxui_1_1AutoReset.html#a5280cdbbbecce1de0ae69bfdca10d7ed">AutoReset</a>(<span class="keyword">const</span> <a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#aaef5fed3c034c065dfc218244e112a4e"> 20</a></span>  <a class="code" href="classftxui_1_1AutoReset.html#aaef5fed3c034c065dfc218244e112a4e">AutoReset</a>(<a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>&&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#a787f63a33622b9728d3b5500b3cfcfe0"> 21</a></span>  <a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>& <a class="code" href="classftxui_1_1AutoReset.html#a787f63a33622b9728d3b5500b3cfcfe0">operator=</a>(<span class="keyword">const</span> <a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#a1f5c04c19c90412b705dbb0f7de5a587"> 22</a></span>  <a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>& <a class="code" href="classftxui_1_1AutoReset.html#a1f5c04c19c90412b705dbb0f7de5a587">operator=</a>(<a class="code" href="classftxui_1_1AutoReset.html">AutoReset</a>&&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classftxui_1_1AutoReset.html#ad7e022164fb38a279cca7c6cf478f379"> 23</a></span>  <a class="code" href="classftxui_1_1AutoReset.html#ad7e022164fb38a279cca7c6cf478f379">~AutoReset</a>() { *variable_ = std::move(previous_value_); }</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  T* variable_;</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  T previous_value_;</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: FTXUI_UTIL_AUTORESET_HPP */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html"><div class="ttname"><a href="classftxui_1_1AutoReset.html">ftxui::AutoReset</a></div><div class="ttdoc">Assign a value to a variable, reset its old value when going out of scope.</div><div class="ttdef"><b>Definition:</b> <a href="autoreset_8hpp_source.html#l00013">autoreset.hpp:13</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_a1f5c04c19c90412b705dbb0f7de5a587"><div class="ttname"><a href="classftxui_1_1AutoReset.html#a1f5c04c19c90412b705dbb0f7de5a587">ftxui::AutoReset::operator=</a></div><div class="ttdeci">AutoReset & operator=(AutoReset &&)=delete</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_a5280cdbbbecce1de0ae69bfdca10d7ed"><div class="ttname"><a href="classftxui_1_1AutoReset.html#a5280cdbbbecce1de0ae69bfdca10d7ed">ftxui::AutoReset::AutoReset</a></div><div class="ttdeci">AutoReset(const AutoReset &)=delete</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_a787f63a33622b9728d3b5500b3cfcfe0"><div class="ttname"><a href="classftxui_1_1AutoReset.html#a787f63a33622b9728d3b5500b3cfcfe0">ftxui::AutoReset::operator=</a></div><div class="ttdeci">AutoReset & operator=(const AutoReset &)=delete</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_aaef5fed3c034c065dfc218244e112a4e"><div class="ttname"><a href="classftxui_1_1AutoReset.html#aaef5fed3c034c065dfc218244e112a4e">ftxui::AutoReset::AutoReset</a></div><div class="ttdeci">AutoReset(AutoReset &&)=delete</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_ad7e022164fb38a279cca7c6cf478f379"><div class="ttname"><a href="classftxui_1_1AutoReset.html#ad7e022164fb38a279cca7c6cf478f379">ftxui::AutoReset::~AutoReset</a></div><div class="ttdeci">~AutoReset()</div><div class="ttdef"><b>Definition:</b> <a href="autoreset_8hpp_source.html#l00023">autoreset.hpp:23</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1AutoReset_html_ae393855d753027bcb3d4d1e1514e6ad4"><div class="ttname"><a href="classftxui_1_1AutoReset.html#ae393855d753027bcb3d4d1e1514e6ad4">ftxui::AutoReset::AutoReset</a></div><div class="ttdeci">AutoReset(T *variable, T new_value)</div><div class="ttdef"><b>Definition:</b> <a href="autoreset_8hpp_source.html#l00015">autoreset.hpp:15</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
117
blink_8cpp.html
Normal file
@ -0,0 +1,117 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/blink.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('blink_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">blink.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="blink_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ad57613de5895e774218d91dea48d074b"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ad57613de5895e774218d91dea48d074b">blink</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:ad57613de5895e774218d91dea48d074b"><td class="mdescLeft"> </td><td class="mdescRight">The text drawn alternates in between visible and hidden. <a href="namespaceftxui.html#ad57613de5895e774218d91dea48d074b">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad57613de5895e774218d91dea48d074b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
blink_8cpp.js
Normal file
@ -0,0 +1,4 @@
|
||||
var blink_8cpp =
|
||||
[
|
||||
[ "blink", "blink_8cpp.html#ad57613de5895e774218d91dea48d074b", null ]
|
||||
];
|
148
blink_8cpp_source.html
Normal file
@ -0,0 +1,148 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/blink.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('blink_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">blink.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="blink_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for make_shared</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for Element, blink</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="node_8hpp.html">ftxui/dom/node.hpp</a>"</span> <span class="comment">// for Node</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="node__decorator_8hpp.html">ftxui/dom/node_decorator.hpp</a>"</span> <span class="comment">// for NodeDecorator</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="screen_8hpp.html">ftxui/screen/screen.hpp</a>"</span> <span class="comment">// for Pixel, Screen</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">class </span>Blink : <span class="keyword">public</span> NodeDecorator {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">using</span> <a class="code" href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">NodeDecorator::NodeDecorator</a>;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>(Screen& screen)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <a class="code" href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">Node::Render</a>(screen);</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min; y <= box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min; x <= box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  screen.PixelAt(x, y).blink = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  }</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">/// @brief The text drawn alternates in between visible and hidden.</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceftxui.html#ad57613de5895e774218d91dea48d074b"> 33</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#ad57613de5895e774218d91dea48d074b">blink</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> std::make_shared<Blink>(std::move(child));</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1NodeDecorator_html_a7e9d74ba5d480d87e8bfcaf2df66fbbe"><div class="ttname"><a href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">ftxui::NodeDecorator::NodeDecorator</a></div><div class="ttdeci">NodeDecorator(Element child)</div><div class="ttdef"><b>Definition:</b> <a href="node__decorator_8hpp_source.html#l00018">node_decorator.hpp:18</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Node_html_a7e286fe14880614686ceeec84a9a9702"><div class="ttname"><a href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">ftxui::Node::Render</a></div><div class="ttdeci">virtual void Render(Screen &screen)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00032">node.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad57613de5895e774218d91dea48d074b"><div class="ttname"><a href="namespaceftxui.html#ad57613de5895e774218d91dea48d074b">ftxui::blink</a></div><div class="ttdeci">Element blink(Element)</div><div class="ttdoc">The text drawn alternates in between visible and hidden.</div><div class="ttdef"><b>Definition:</b> <a href="blink_8cpp_source.html#l00033">blink.cpp:33</a></div></div>
|
||||
<div class="ttc" id="anode_8hpp_html"><div class="ttname"><a href="node_8hpp.html">node.hpp</a></div></div>
|
||||
<div class="ttc" id="anode__decorator_8hpp_html"><div class="ttname"><a href="node__decorator_8hpp.html">node_decorator.hpp</a></div></div>
|
||||
<div class="ttc" id="ascreen_8hpp_html"><div class="ttname"><a href="screen_8hpp.html">screen.hpp</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
117
bold_8cpp.html
Normal file
@ -0,0 +1,117 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/bold.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('bold_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">bold.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="bold_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a353c769068e25303eb41fa2da565c604"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">bold</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:a353c769068e25303eb41fa2da565c604"><td class="mdescLeft"> </td><td class="mdescRight">Use a bold font, for elements with more emphasis. <a href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">More...</a><br /></td></tr>
|
||||
<tr class="separator:a353c769068e25303eb41fa2da565c604"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
bold_8cpp.js
Normal file
@ -0,0 +1,4 @@
|
||||
var bold_8cpp =
|
||||
[
|
||||
[ "bold", "bold_8cpp.html#a353c769068e25303eb41fa2da565c604", null ]
|
||||
];
|
148
bold_8cpp_source.html
Normal file
@ -0,0 +1,148 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/bold.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('bold_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">bold.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="bold_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for make_shared</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for Element, bold</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="node_8hpp.html">ftxui/dom/node.hpp</a>"</span> <span class="comment">// for Node</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="node__decorator_8hpp.html">ftxui/dom/node_decorator.hpp</a>"</span> <span class="comment">// for NodeDecorator</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="screen_8hpp.html">ftxui/screen/screen.hpp</a>"</span> <span class="comment">// for Pixel, Screen</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">class </span>Bold : <span class="keyword">public</span> NodeDecorator {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keyword">using</span> <a class="code" href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">NodeDecorator::NodeDecorator</a>;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>(Screen& screen)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min; y <= box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min; x <= box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  screen.PixelAt(x, y).bold = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  }</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  }</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">Node::Render</a>(screen);</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  }</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> };</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">/// @brief Use a bold font, for elements with more emphasis.</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604"> 33</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">bold</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> std::make_shared<Bold>(std::move(child));</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1NodeDecorator_html_a7e9d74ba5d480d87e8bfcaf2df66fbbe"><div class="ttname"><a href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">ftxui::NodeDecorator::NodeDecorator</a></div><div class="ttdeci">NodeDecorator(Element child)</div><div class="ttdef"><b>Definition:</b> <a href="node__decorator_8hpp_source.html#l00018">node_decorator.hpp:18</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Node_html_a7e286fe14880614686ceeec84a9a9702"><div class="ttname"><a href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">ftxui::Node::Render</a></div><div class="ttdeci">virtual void Render(Screen &screen)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00032">node.cpp:32</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a353c769068e25303eb41fa2da565c604"><div class="ttname"><a href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">ftxui::bold</a></div><div class="ttdeci">Element bold(Element)</div><div class="ttdoc">Use a bold font, for elements with more emphasis.</div><div class="ttdef"><b>Definition:</b> <a href="bold_8cpp_source.html#l00033">bold.cpp:33</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anode_8hpp_html"><div class="ttname"><a href="node_8hpp.html">node.hpp</a></div></div>
|
||||
<div class="ttc" id="anode__decorator_8hpp_html"><div class="ttname"><a href="node__decorator_8hpp.html">node_decorator.hpp</a></div></div>
|
||||
<div class="ttc" id="ascreen_8hpp_html"><div class="ttname"><a href="screen_8hpp.html">screen.hpp</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
150
border_8cpp.html
Normal file
@ -0,0 +1,150 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/border.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('border_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">border.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="border_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ae8537acd423d47cf07e61bd774fb1098"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">border</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:ae8537acd423d47cf07e61bd774fb1098"><td class="mdescLeft"> </td><td class="mdescRight">Draw a border around the element. <a href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae8537acd423d47cf07e61bd774fb1098"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa97cfcfbe6df92dac085454395ec7b2f"><td class="memItemLeft" align="right" valign="top">Decorator </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#aa97cfcfbe6df92dac085454395ec7b2f">borderWith</a> (const Pixel &pixel)</td></tr>
|
||||
<tr class="memdesc:aa97cfcfbe6df92dac085454395ec7b2f"><td class="mdescLeft"> </td><td class="mdescRight">Same as border but with a constant <a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a> around the element. <a href="namespaceftxui.html#aa97cfcfbe6df92dac085454395ec7b2f">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa97cfcfbe6df92dac085454395ec7b2f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abc9db79957d4dd36deb8ca79938e4c41"><td class="memItemLeft" align="right" valign="top">Decorator </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">borderStyled</a> (BorderStyle style)</td></tr>
|
||||
<tr class="memdesc:abc9db79957d4dd36deb8ca79938e4c41"><td class="mdescLeft"> </td><td class="mdescRight">Same as border but with different styles. <a href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">More...</a><br /></td></tr>
|
||||
<tr class="separator:abc9db79957d4dd36deb8ca79938e4c41"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad1dbf36194dcb77674085df9e11c1e22"><td class="memItemLeft" align="right" valign="top">Decorator </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ad1dbf36194dcb77674085df9e11c1e22">borderStyled</a> (Color foreground_color)</td></tr>
|
||||
<tr class="memdesc:ad1dbf36194dcb77674085df9e11c1e22"><td class="mdescLeft"> </td><td class="mdescRight">Same as border but with a foreground color. <a href="namespaceftxui.html#ad1dbf36194dcb77674085df9e11c1e22">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad1dbf36194dcb77674085df9e11c1e22"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5aab98b289d2e7b2ce8ca0eeee51ce78"><td class="memItemLeft" align="right" valign="top">Decorator </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a5aab98b289d2e7b2ce8ca0eeee51ce78">borderStyled</a> (BorderStyle style, Color foreground_color)</td></tr>
|
||||
<tr class="memdesc:a5aab98b289d2e7b2ce8ca0eeee51ce78"><td class="mdescLeft"> </td><td class="mdescRight">Same as border but with a foreground color and a different style. <a href="namespaceftxui.html#a5aab98b289d2e7b2ce8ca0eeee51ce78">More...</a><br /></td></tr>
|
||||
<tr class="separator:a5aab98b289d2e7b2ce8ca0eeee51ce78"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a181c80f8ada12d1356f6bfa0ebb7219f"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a181c80f8ada12d1356f6bfa0ebb7219f">borderDashed</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:a181c80f8ada12d1356f6bfa0ebb7219f"><td class="mdescLeft"> </td><td class="mdescRight">Draw a dashed border around the element. <a href="namespaceftxui.html#a181c80f8ada12d1356f6bfa0ebb7219f">More...</a><br /></td></tr>
|
||||
<tr class="separator:a181c80f8ada12d1356f6bfa0ebb7219f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa074cdab57eeb47b99f1699bcc8addd8"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#aa074cdab57eeb47b99f1699bcc8addd8">borderLight</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:aa074cdab57eeb47b99f1699bcc8addd8"><td class="mdescLeft"> </td><td class="mdescRight">Draw a light border around the element. <a href="namespaceftxui.html#aa074cdab57eeb47b99f1699bcc8addd8">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa074cdab57eeb47b99f1699bcc8addd8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a666c31419cc31cdadc9f8178ed63529e"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a666c31419cc31cdadc9f8178ed63529e">borderHeavy</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:a666c31419cc31cdadc9f8178ed63529e"><td class="mdescLeft"> </td><td class="mdescRight">Draw a heavy border around the element. <a href="namespaceftxui.html#a666c31419cc31cdadc9f8178ed63529e">More...</a><br /></td></tr>
|
||||
<tr class="separator:a666c31419cc31cdadc9f8178ed63529e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a052b504344f3bc1ff86b3493cd934215"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a052b504344f3bc1ff86b3493cd934215">borderDouble</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:a052b504344f3bc1ff86b3493cd934215"><td class="mdescLeft"> </td><td class="mdescRight">Draw a double border around the element. <a href="namespaceftxui.html#a052b504344f3bc1ff86b3493cd934215">More...</a><br /></td></tr>
|
||||
<tr class="separator:a052b504344f3bc1ff86b3493cd934215"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3cf2db223a5efaa370f0ca6bb405b80e"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a3cf2db223a5efaa370f0ca6bb405b80e">borderRounded</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:a3cf2db223a5efaa370f0ca6bb405b80e"><td class="mdescLeft"> </td><td class="mdescRight">Draw a rounded border around the element. <a href="namespaceftxui.html#a3cf2db223a5efaa370f0ca6bb405b80e">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3cf2db223a5efaa370f0ca6bb405b80e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af20f7d6fb275d109f0bdc01a2e4d3f3e"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#af20f7d6fb275d109f0bdc01a2e4d3f3e">borderEmpty</a> (Element child)</td></tr>
|
||||
<tr class="memdesc:af20f7d6fb275d109f0bdc01a2e4d3f3e"><td class="mdescLeft"> </td><td class="mdescRight">Draw an empty border around the element. <a href="namespaceftxui.html#af20f7d6fb275d109f0bdc01a2e4d3f3e">More...</a><br /></td></tr>
|
||||
<tr class="separator:af20f7d6fb275d109f0bdc01a2e4d3f3e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a03049def08fa7a5eaa4d5e897152bc1a"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a03049def08fa7a5eaa4d5e897152bc1a">window</a> (Element title, Element content, BorderStyle border)</td></tr>
|
||||
<tr class="memdesc:a03049def08fa7a5eaa4d5e897152bc1a"><td class="mdescLeft"> </td><td class="mdescRight">Draw window with a title and a border around the element. <a href="namespaceftxui.html#a03049def08fa7a5eaa4d5e897152bc1a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a03049def08fa7a5eaa4d5e897152bc1a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
15
border_8cpp.js
Normal file
@ -0,0 +1,15 @@
|
||||
var border_8cpp =
|
||||
[
|
||||
[ "border", "border_8cpp.html#ae8537acd423d47cf07e61bd774fb1098", null ],
|
||||
[ "borderWith", "border_8cpp.html#aa97cfcfbe6df92dac085454395ec7b2f", null ],
|
||||
[ "borderStyled", "border_8cpp.html#abc9db79957d4dd36deb8ca79938e4c41", null ],
|
||||
[ "borderStyled", "border_8cpp.html#ad1dbf36194dcb77674085df9e11c1e22", null ],
|
||||
[ "borderStyled", "border_8cpp.html#a5aab98b289d2e7b2ce8ca0eeee51ce78", null ],
|
||||
[ "borderDashed", "border_8cpp.html#a181c80f8ada12d1356f6bfa0ebb7219f", null ],
|
||||
[ "borderLight", "border_8cpp.html#aa074cdab57eeb47b99f1699bcc8addd8", null ],
|
||||
[ "borderHeavy", "border_8cpp.html#a666c31419cc31cdadc9f8178ed63529e", null ],
|
||||
[ "borderDouble", "border_8cpp.html#a052b504344f3bc1ff86b3493cd934215", null ],
|
||||
[ "borderRounded", "border_8cpp.html#a3cf2db223a5efaa370f0ca6bb405b80e", null ],
|
||||
[ "borderEmpty", "border_8cpp.html#af20f7d6fb275d109f0bdc01a2e4d3f3e", null ],
|
||||
[ "window", "border_8cpp.html#a03049def08fa7a5eaa4d5e897152bc1a", null ]
|
||||
];
|
645
border_8cpp_source.html
Normal file
@ -0,0 +1,645 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/border.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('border_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">border.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="border_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <algorithm></span> <span class="comment">// for max</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <array></span> <span class="comment">// for array</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <<a class="code" href="color_8hpp.html">ftxui/screen/color.hpp</a>></span> <span class="comment">// for Color</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <memory></span> <span class="comment">// for allocator, make_shared, __shared_ptr_access</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <optional></span> <span class="comment">// for optional, nullopt</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <string></span> <span class="comment">// for basic_string, string</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for unpack, Element, Decorator, BorderStyle, ROUNDED, borderStyled, Elements, DASHED, DOUBLE, EMPTY, HEAVY, LIGHT, border, borderDashed, borderDouble, borderEmpty, borderHeavy, borderLight, borderRounded, borderWith, window</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="node_8hpp.html">ftxui/dom/node.hpp</a>"</span> <span class="comment">// for Node, Elements</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="requirement_8hpp.html">ftxui/dom/requirement.hpp</a>"</span> <span class="comment">// for Requirement</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="pixel_8hpp.html">ftxui/screen/pixel.hpp</a>"</span> <span class="comment">// for Pixel</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="screen_8hpp.html">ftxui/screen/screen.hpp</a>"</span> <span class="comment">// for Pixel, Screen</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">using</span> Charset = std::array<std::string, 6>; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">using</span> Charsets = std::array<Charset, 6>; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// NOLINTNEXTLINE</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">static</span> Charsets simple_border_charset = {</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  Charset{<span class="stringliteral">"┌"</span>, <span class="stringliteral">"┐"</span>, <span class="stringliteral">"└"</span>, <span class="stringliteral">"┘"</span>, <span class="stringliteral">"─"</span>, <span class="stringliteral">"│"</span>}, <span class="comment">// LIGHT</span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  Charset{<span class="stringliteral">"┏"</span>, <span class="stringliteral">"┓"</span>, <span class="stringliteral">"┗"</span>, <span class="stringliteral">"┛"</span>, <span class="stringliteral">"╍"</span>, <span class="stringliteral">"╏"</span>}, <span class="comment">// DASHED</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  Charset{<span class="stringliteral">"┏"</span>, <span class="stringliteral">"┓"</span>, <span class="stringliteral">"┗"</span>, <span class="stringliteral">"┛"</span>, <span class="stringliteral">"━"</span>, <span class="stringliteral">"┃"</span>}, <span class="comment">// HEAVY</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  Charset{<span class="stringliteral">"╔"</span>, <span class="stringliteral">"╗"</span>, <span class="stringliteral">"╚"</span>, <span class="stringliteral">"╝"</span>, <span class="stringliteral">"═"</span>, <span class="stringliteral">"║"</span>}, <span class="comment">// DOUBLE</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  Charset{<span class="stringliteral">"╭"</span>, <span class="stringliteral">"╮"</span>, <span class="stringliteral">"╰"</span>, <span class="stringliteral">"╯"</span>, <span class="stringliteral">"─"</span>, <span class="stringliteral">"│"</span>}, <span class="comment">// ROUNDED</span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  Charset{<span class="stringliteral">" "</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">" "</span>, <span class="stringliteral">" "</span>}, <span class="comment">// EMPTY</span></div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> };</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">// For reference, here is the charset for normal border:</span></div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">class </span>Border : <span class="keyword">public</span> Node {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  Border(<a class="code" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> children,</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9c">BorderStyle</a> style,</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  std::optional<Color> foreground_color = std::nullopt)</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  : Node(std::move(children)),</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  charset_(simple_border_charset[style]) <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  ,</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  foreground_color_(foreground_color) {} <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> Charset& charset_; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  std::optional<Color> foreground_color_;</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> ComputeRequirement()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">Node::ComputeRequirement</a>();</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  requirement_ = children_[0]->requirement();</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  requirement_.min_x += 2;</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  requirement_.min_y += 2;</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">if</span> (children_.size() == 2) {</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  requirement_.min_x =</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::max(requirement_.min_x, children_[1]->requirement().min_x + 2);</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  }</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  requirement_.selected_box.x_min++;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  requirement_.selected_box.x_max++;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  requirement_.selected_box.y_min++;</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  requirement_.selected_box.y_max++;</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  }</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> SetBox(Box box)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">Node::SetBox</a>(box);</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">if</span> (children_.size() == 2) {</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  Box title_box;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  title_box.x_min = box.x_min + 1;</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  title_box.x_max = box.x_max - 1;</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  title_box.y_min = box.y_min;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  title_box.y_max = box.y_min;</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  children_[1]->SetBox(title_box);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  box.x_min++;</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  box.x_max--;</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  box.y_min++;</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  box.y_max--;</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  children_[0]->SetBox(box);</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>(Screen& screen)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// Draw content.</span></div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  children_[0]->Render(screen);</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// Draw the border.</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">if</span> (box_.x_min >= box_.x_max || box_.y_min >= box_.y_max) {</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  screen.at(box_.x_min, box_.y_min) = charset_[0]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  screen.at(box_.x_max, box_.y_min) = charset_[1]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  screen.at(box_.x_min, box_.y_max) = charset_[2]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  screen.at(box_.x_max, box_.y_max) = charset_[3]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  </div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min + 1; x < box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  Pixel& p1 = screen.PixelAt(x, box_.y_min);</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  Pixel& p2 = screen.PixelAt(x, box_.y_max);</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  p1.character = charset_[4]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  p2.character = charset_[4]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  p1.automerge = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  p2.automerge = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min + 1; y < box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  Pixel& p3 = screen.PixelAt(box_.x_min, y);</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  Pixel& p4 = screen.PixelAt(box_.x_max, y);</div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  p3.character = charset_[5]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  p4.character = charset_[5]; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  p3.automerge = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  p4.automerge = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  }</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">// Draw title.</span></div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">if</span> (children_.size() == 2) {</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  children_[1]->Render(screen);</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  </div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">// Draw the border color.</span></div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordflow">if</span> (foreground_color_) {</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min; x <= box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  screen.PixelAt(x, box_.y_min).foreground_color = *foreground_color_;</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  screen.PixelAt(x, box_.y_max).foreground_color = *foreground_color_;</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min; y <= box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  screen.PixelAt(box_.x_min, y).foreground_color = *foreground_color_;</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  screen.PixelAt(box_.x_max, y).foreground_color = *foreground_color_;</div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> };</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  </div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment">// For reference, here is the charset for normal border:</span></div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">class </span>BorderPixel : <span class="keyword">public</span> Node {</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  BorderPixel(<a class="code" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> children, Pixel pixel)</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  : Node(std::move(children)), pixel_(std::move(pixel)) {}</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  </div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  Pixel pixel_;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">void</span> ComputeRequirement()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">Node::ComputeRequirement</a>();</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  requirement_ = children_[0]->requirement();</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  requirement_.min_x += 2;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  requirement_.min_y += 2;</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (children_.size() == 2) {</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  requirement_.min_x =</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  std::max(requirement_.min_x, children_[1]->requirement().min_x + 2);</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  }</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  requirement_.selected_box.x_min++;</div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  requirement_.selected_box.x_max++;</div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  requirement_.selected_box.y_min++;</div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  requirement_.selected_box.y_max++;</div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  }</div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">void</span> SetBox(Box box)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">Node::SetBox</a>(box);</div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">if</span> (children_.size() == 2) {</div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  Box title_box;</div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  title_box.x_min = box.x_min + 1;</div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  title_box.x_max = box.x_max - 1;</div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  title_box.y_min = box.y_min;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  title_box.y_max = box.y_min;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  children_[1]->SetBox(title_box);</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  }</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  box.x_min++;</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  box.x_max--;</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  box.y_min++;</div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  box.y_max--;</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  children_[0]->SetBox(box);</div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  }</div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  </div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">void</span> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>(Screen& screen)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// Draw content.</span></div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  children_[0]->Render(screen);</div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="comment">// Draw the border.</span></div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span> (box_.x_min >= box_.x_max || box_.y_min >= box_.y_max) {</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  }</div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  </div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  screen.PixelAt(box_.x_min, box_.y_min) = pixel_;</div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  screen.PixelAt(box_.x_max, box_.y_min) = pixel_;</div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  screen.PixelAt(box_.x_min, box_.y_max) = pixel_;</div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  screen.PixelAt(box_.x_max, box_.y_max) = pixel_;</div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  </div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> x = box_.x_min + 1; x < box_.x_max; ++x) {</div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  screen.PixelAt(x, box_.y_min) = pixel_;</div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  screen.PixelAt(x, box_.y_max) = pixel_;</div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> y = box_.y_min + 1; y < box_.y_max; ++y) {</div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  screen.PixelAt(box_.x_min, y) = pixel_;</div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  screen.PixelAt(box_.x_max, y) = pixel_;</div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  }</div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> };</div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment">/// @brief Draw a border around the element.</span></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">/// // Use 'border' as a function...</span></div>
|
||||
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment">/// Element document = border(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment">/// Element document = text("The element") | border;</span></div>
|
||||
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment">/// ┌───────────┐</span></div>
|
||||
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment">/// │The element│</span></div>
|
||||
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment">/// └───────────┘</span></div>
|
||||
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098"> 228</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">border</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca655074b92b285adff7d18a45748bf493">ROUNDED</a>);</div>
|
||||
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> }</div>
|
||||
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment">/// @brief Same as border but with a constant Pixel around the element.</span></div>
|
||||
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00235"></a><span class="lineno"><a class="line" href="namespaceftxui.html#aa97cfcfbe6df92dac085454395ec7b2f"> 235</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> <a class="code" href="namespaceftxui.html#aa97cfcfbe6df92dac085454395ec7b2f">borderWith</a>(<span class="keyword">const</span> <a class="code" href="structftxui_1_1Pixel.html">Pixel</a>& pixel) {</div>
|
||||
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <span class="keywordflow">return</span> [pixel](<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordflow">return</span> std::make_shared<BorderPixel>(unpack(std::move(child)), pixel);</div>
|
||||
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  };</div>
|
||||
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment">/// @brief Same as border but with different styles.</span></div>
|
||||
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41"> 244</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> <a class="code" href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">borderStyled</a>(<a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9c">BorderStyle</a> style) {</div>
|
||||
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">return</span> [style](<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), style);</div>
|
||||
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  };</div>
|
||||
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div>
|
||||
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment">/// @brief Same as border but with a foreground color.</span></div>
|
||||
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="namespaceftxui.html#ad1dbf36194dcb77674085df9e11c1e22"> 253</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> <a class="code" href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">borderStyled</a>(<a class="code" href="classftxui_1_1Color.html">Color</a> foreground_color) {</div>
|
||||
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">return</span> [foreground_color](<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca655074b92b285adff7d18a45748bf493">ROUNDED</a>,</div>
|
||||
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  foreground_color);</div>
|
||||
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  };</div>
|
||||
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span> }</div>
|
||||
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment">/// @brief Same as border but with a foreground color and a different style</span></div>
|
||||
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a5aab98b289d2e7b2ce8ca0eeee51ce78"> 263</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> <a class="code" href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">borderStyled</a>(<a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9c">BorderStyle</a> style, <a class="code" href="classftxui_1_1Color.html">Color</a> foreground_color) {</div>
|
||||
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">return</span> [style, foreground_color](<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), style,</div>
|
||||
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  foreground_color);</div>
|
||||
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  };</div>
|
||||
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span> }</div>
|
||||
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="comment">/// @brief Draw a dashed border around the element.</span></div>
|
||||
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment">/// // Use 'borderDash' as a function...</span></div>
|
||||
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span> <span class="comment">/// Element document = borderDash(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> <span class="comment">/// Element document = text("The element") | borderDAsh;</span></div>
|
||||
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> <span class="comment">/// ┏╍╍╍╍╍╍╍╍╍╍╍╍╍╍┓</span></div>
|
||||
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span> <span class="comment">/// ╏The element ╏</span></div>
|
||||
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> <span class="comment">/// ┗╍╍╍╍╍╍╍╍╍╍╍╍╍╍┛</span></div>
|
||||
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a181c80f8ada12d1356f6bfa0ebb7219f"> 301</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a181c80f8ada12d1356f6bfa0ebb7219f">borderDashed</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca830310bdfd296d7cd00c59773579b892">DASHED</a>);</div>
|
||||
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> }</div>
|
||||
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> <span class="comment">/// @brief Draw a light border around the element.</span></div>
|
||||
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> <span class="comment">/// // Use 'borderLight' as a function...</span></div>
|
||||
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span> <span class="comment">/// Element document = borderLight(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="comment">/// Element document = text("The element") | borderLight;</span></div>
|
||||
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> <span class="comment">/// ┌──────────────┐</span></div>
|
||||
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> <span class="comment">/// │The element │</span></div>
|
||||
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="comment">/// └──────────────┘</span></div>
|
||||
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="namespaceftxui.html#aa074cdab57eeb47b99f1699bcc8addd8"> 336</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#aa074cdab57eeb47b99f1699bcc8addd8">borderLight</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9caf917d6c11c85b4ac32e30d1cc9da25eb">LIGHT</a>);</div>
|
||||
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> }</div>
|
||||
<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="comment">/// @brief Draw a heavy border around the element.</span></div>
|
||||
<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span> <span class="comment">/// // Use 'borderHeavy' as a function...</span></div>
|
||||
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> <span class="comment">/// Element document = borderHeavy(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00361"></a><span class="lineno"> 361</span> <span class="comment">/// Element document = text("The element") | borderHeavy;</span></div>
|
||||
<div class="line"><a name="l00362"></a><span class="lineno"> 362</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00365"></a><span class="lineno"> 365</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span> <span class="comment">/// ┏━━━━━━━━━━━━━━┓</span></div>
|
||||
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> <span class="comment">/// ┃The element ┃</span></div>
|
||||
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> <span class="comment">/// ┗━━━━━━━━━━━━━━┛</span></div>
|
||||
<div class="line"><a name="l00370"></a><span class="lineno"> 370</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00371"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a666c31419cc31cdadc9f8178ed63529e"> 371</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a666c31419cc31cdadc9f8178ed63529e">borderHeavy</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca34cd68a92c52759ed9b545969a11c2da">HEAVY</a>);</div>
|
||||
<div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div>
|
||||
<div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00375"></a><span class="lineno"> 375</span> <span class="comment">/// @brief Draw a double border around the element.</span></div>
|
||||
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00379"></a><span class="lineno"> 379</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span> <span class="comment">/// // Use 'borderDouble' as a function...</span></div>
|
||||
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> <span class="comment">/// Element document = borderDouble(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00395"></a><span class="lineno"> 395</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00396"></a><span class="lineno"> 396</span> <span class="comment">/// Element document = text("The element") | borderDouble;</span></div>
|
||||
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> <span class="comment">/// ╔══════════════╗</span></div>
|
||||
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="comment">/// ║The element ║</span></div>
|
||||
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span> <span class="comment">/// ╚══════════════╝</span></div>
|
||||
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00406"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a052b504344f3bc1ff86b3493cd934215"> 406</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a052b504344f3bc1ff86b3493cd934215">borderDouble</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca33465d1d419b1074fb259ef444609e92">DOUBLE</a>);</div>
|
||||
<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> }</div>
|
||||
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span> <span class="comment">/// @brief Draw a rounded border around the element.</span></div>
|
||||
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00425"></a><span class="lineno"> 425</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span> <span class="comment">/// // Use 'borderRounded' as a function...</span></div>
|
||||
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> <span class="comment">/// Element document = borderRounded(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span> <span class="comment">/// Element document = text("The element") | borderRounded;</span></div>
|
||||
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00437"></a><span class="lineno"> 437</span> <span class="comment">/// ╭──────────────╮</span></div>
|
||||
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> <span class="comment">/// │The element │</span></div>
|
||||
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span> <span class="comment">/// ╰──────────────╯</span></div>
|
||||
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a3cf2db223a5efaa370f0ca6bb405b80e"> 441</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a3cf2db223a5efaa370f0ca6bb405b80e">borderRounded</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca655074b92b285adff7d18a45748bf493">ROUNDED</a>);</div>
|
||||
<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> }</div>
|
||||
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span> <span class="comment">/// @brief Draw an empty border around the element.</span></div>
|
||||
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span> <span class="comment">/// @see borderLight</span></div>
|
||||
<div class="line"><a name="l00449"></a><span class="lineno"> 449</span> <span class="comment">/// @see borderDashed</span></div>
|
||||
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span> <span class="comment">/// @see borderDouble</span></div>
|
||||
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span> <span class="comment">/// @see borderHeavy</span></div>
|
||||
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> <span class="comment">/// @see borderRounded</span></div>
|
||||
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> <span class="comment">/// @see borderEmpty</span></div>
|
||||
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span> <span class="comment">/// @see borderStyled</span></div>
|
||||
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> <span class="comment">/// @see borderWith</span></div>
|
||||
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span> <span class="comment">/// Add a border around an element</span></div>
|
||||
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> <span class="comment">/// // Use 'borderRounded' as a function...</span></div>
|
||||
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span> <span class="comment">/// Element document = borderRounded(text("The element"));</span></div>
|
||||
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span> <span class="comment">/// // ...Or as a 'pipe'.</span></div>
|
||||
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="comment">/// Element document = text("The element") | borderRounded;</span></div>
|
||||
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span> <span class="comment">/// The element</span></div>
|
||||
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00476"></a><span class="lineno"><a class="line" href="namespaceftxui.html#af20f7d6fb275d109f0bdc01a2e4d3f3e"> 476</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#af20f7d6fb275d109f0bdc01a2e4d3f3e">borderEmpty</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child) {</div>
|
||||
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(child)), <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca2f0d18fc0d0fa4a6cd92dc328501874d">EMPTY</a>);</div>
|
||||
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> }</div>
|
||||
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="comment">/// @brief Draw window with a title and a border around the element.</span></div>
|
||||
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span> <span class="comment">/// @param title The title of the window.</span></div>
|
||||
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span> <span class="comment">/// @param content The element to be wrapped.</span></div>
|
||||
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="comment">/// @param border The style of the border. Default is ROUNDED.</span></div>
|
||||
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> <span class="comment">/// @ingroup dom</span></div>
|
||||
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="comment">/// @see border</span></div>
|
||||
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> <span class="comment">/// Element document = window(text("Title"),</span></div>
|
||||
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span> <span class="comment">/// text("content")</span></div>
|
||||
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="comment">/// );</span></div>
|
||||
<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="comment">/// // With specifying border</span></div>
|
||||
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="comment">/// Element document = window(text("Title"),</span></div>
|
||||
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span> <span class="comment">/// text("content"),</span></div>
|
||||
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> <span class="comment">/// ROUNDED</span></div>
|
||||
<div class="line"><a name="l00498"></a><span class="lineno"> 498</span> <span class="comment">/// );</span></div>
|
||||
<div class="line"><a name="l00499"></a><span class="lineno"> 499</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00500"></a><span class="lineno"> 500</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> <span class="comment">/// ┌Title──┐</span></div>
|
||||
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> <span class="comment">/// │content│</span></div>
|
||||
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="comment">/// └───────┘</span></div>
|
||||
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00508"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a03049def08fa7a5eaa4d5e897152bc1a"> 508</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#a03049def08fa7a5eaa4d5e897152bc1a">window</a>(<a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> title, <a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> content, <a class="code" href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9c">BorderStyle</a> <a class="code" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">border</a>) {</div>
|
||||
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keywordflow">return</span> std::make_shared<Border>(unpack(std::move(content), std::move(title)),</div>
|
||||
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  <a class="code" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">border</a>);</div>
|
||||
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> }</div>
|
||||
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Color_html"><div class="ttname"><a href="classftxui_1_1Color.html">ftxui::Color</a></div><div class="ttdoc">A class representing terminal colors.</div><div class="ttdef"><b>Definition:</b> <a href="color_8hpp_source.html#l00020">color.hpp:20</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Node_html_a2ed318aaadb07efc50e76fce1ccf9637"><div class="ttname"><a href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">ftxui::Node::SetBox</a></div><div class="ttdeci">virtual void SetBox(Box box)</div><div class="ttdoc">Assign a position and a dimension to an element for drawing.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00026">node.cpp:26</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Node_html_a40bd818c5de23bb2d208360d275ae59d"><div class="ttname"><a href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">ftxui::Node::ComputeRequirement</a></div><div class="ttdeci">virtual void ComputeRequirement()</div><div class="ttdoc">Compute how much space an elements needs.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00018">node.cpp:18</a></div></div>
|
||||
<div class="ttc" id="acolor_8hpp_html"><div class="ttname"><a href="color_8hpp.html">color.hpp</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a03049def08fa7a5eaa4d5e897152bc1a"><div class="ttname"><a href="namespaceftxui.html#a03049def08fa7a5eaa4d5e897152bc1a">ftxui::window</a></div><div class="ttdeci">Element window(Element title, Element content, BorderStyle border=ROUNDED)</div><div class="ttdoc">Draw window with a title and a border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00508">border.cpp:508</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a052b504344f3bc1ff86b3493cd934215"><div class="ttname"><a href="namespaceftxui.html#a052b504344f3bc1ff86b3493cd934215">ftxui::borderDouble</a></div><div class="ttdeci">Element borderDouble(Element)</div><div class="ttdoc">Draw a double border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00406">border.cpp:406</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a164021903e9ac6f1357e4186582891e3"><div class="ttname"><a href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">ftxui::Decorator</a></div><div class="ttdeci">std::function< Element(Element)> Decorator</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00024">elements.hpp:24</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a181c80f8ada12d1356f6bfa0ebb7219f"><div class="ttname"><a href="namespaceftxui.html#a181c80f8ada12d1356f6bfa0ebb7219f">ftxui::borderDashed</a></div><div class="ttdeci">Element borderDashed(Element)</div><div class="ttdoc">Draw a dashed border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00301">border.cpp:301</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a3cf2db223a5efaa370f0ca6bb405b80e"><div class="ttname"><a href="namespaceftxui.html#a3cf2db223a5efaa370f0ca6bb405b80e">ftxui::borderRounded</a></div><div class="ttdeci">Element borderRounded(Element)</div><div class="ttdoc">Draw a rounded border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00441">border.cpp:441</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a666c31419cc31cdadc9f8178ed63529e"><div class="ttname"><a href="namespaceftxui.html#a666c31419cc31cdadc9f8178ed63529e">ftxui::borderHeavy</a></div><div class="ttdeci">Element borderHeavy(Element)</div><div class="ttdoc">Draw a heavy border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00371">border.cpp:371</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a792071ccdd115df37a515b3e49d174ef"><div class="ttname"><a href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">ftxui::Elements</a></div><div class="ttdeci">std::vector< Element > Elements</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00023">elements.hpp:23</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aa074cdab57eeb47b99f1699bcc8addd8"><div class="ttname"><a href="namespaceftxui.html#aa074cdab57eeb47b99f1699bcc8addd8">ftxui::borderLight</a></div><div class="ttdeci">Element borderLight(Element)</div><div class="ttdoc">Draw a light border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00336">border.cpp:336</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aa97cfcfbe6df92dac085454395ec7b2f"><div class="ttname"><a href="namespaceftxui.html#aa97cfcfbe6df92dac085454395ec7b2f">ftxui::borderWith</a></div><div class="ttdeci">Decorator borderWith(const Pixel &)</div><div class="ttdoc">Same as border but with a constant Pixel around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00235">border.cpp:235</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_abc9db79957d4dd36deb8ca79938e4c41"><div class="ttname"><a href="namespaceftxui.html#abc9db79957d4dd36deb8ca79938e4c41">ftxui::borderStyled</a></div><div class="ttdeci">Decorator borderStyled(BorderStyle)</div><div class="ttdoc">Same as border but with different styles.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00244">border.cpp:244</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ae8537acd423d47cf07e61bd774fb1098"><div class="ttname"><a href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">ftxui::border</a></div><div class="ttdeci">Element border(Element)</div><div class="ttdoc">Draw a border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00228">border.cpp:228</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_af20f7d6fb275d109f0bdc01a2e4d3f3e"><div class="ttname"><a href="namespaceftxui.html#af20f7d6fb275d109f0bdc01a2e4d3f3e">ftxui::borderEmpty</a></div><div class="ttdeci">Element borderEmpty(Element)</div><div class="ttdoc">Draw an empty border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00476">border.cpp:476</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9c"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9c">ftxui::BorderStyle</a></div><div class="ttdeci">BorderStyle</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00027">elements.hpp:27</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9ca2f0d18fc0d0fa4a6cd92dc328501874d"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca2f0d18fc0d0fa4a6cd92dc328501874d">ftxui::EMPTY</a></div><div class="ttdeci">@ EMPTY</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00033">elements.hpp:33</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9ca33465d1d419b1074fb259ef444609e92"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca33465d1d419b1074fb259ef444609e92">ftxui::DOUBLE</a></div><div class="ttdeci">@ DOUBLE</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00031">elements.hpp:31</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9ca34cd68a92c52759ed9b545969a11c2da"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca34cd68a92c52759ed9b545969a11c2da">ftxui::HEAVY</a></div><div class="ttdeci">@ HEAVY</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00030">elements.hpp:30</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9ca655074b92b285adff7d18a45748bf493"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca655074b92b285adff7d18a45748bf493">ftxui::ROUNDED</a></div><div class="ttdeci">@ ROUNDED</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00032">elements.hpp:32</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9ca830310bdfd296d7cd00c59773579b892"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9ca830310bdfd296d7cd00c59773579b892">ftxui::DASHED</a></div><div class="ttdeci">@ DASHED</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00029">elements.hpp:29</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_afe3103dd0b8240c5443892484ef5af9caf917d6c11c85b4ac32e30d1cc9da25eb"><div class="ttname"><a href="namespaceftxui.html#afe3103dd0b8240c5443892484ef5af9caf917d6c11c85b4ac32e30d1cc9da25eb">ftxui::LIGHT</a></div><div class="ttdeci">@ LIGHT</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00028">elements.hpp:28</a></div></div>
|
||||
<div class="ttc" id="anode_8hpp_html"><div class="ttname"><a href="node_8hpp.html">node.hpp</a></div></div>
|
||||
<div class="ttc" id="apixel_8hpp_html"><div class="ttname"><a href="pixel_8hpp.html">pixel.hpp</a></div></div>
|
||||
<div class="ttc" id="arequirement_8hpp_html"><div class="ttname"><a href="requirement_8hpp.html">requirement.hpp</a></div></div>
|
||||
<div class="ttc" id="ascreen_8hpp_html"><div class="ttname"><a href="screen_8hpp.html">screen.hpp</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Pixel_html"><div class="ttname"><a href="structftxui_1_1Pixel.html">ftxui::Pixel</a></div><div class="ttdoc">A Unicode character and its associated style.</div><div class="ttdef"><b>Definition:</b> <a href="pixel_8hpp_source.html#l00015">pixel.hpp:15</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
110
box_8cpp.html
Normal file
@ -0,0 +1,110 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/screen/box.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">box.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="box_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
174
box_8cpp_source.html
Normal file
@ -0,0 +1,174 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/screen/box.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">box.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="box_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <algorithm></span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {<span class="comment"></span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">/// @return the biggest Box contained in both |a| and |b|.</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"></span><span class="comment">// static</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a83d40499d9e8740c35dc2352c2ac84a8"> 12</a></span> <a class="code" href="structftxui_1_1Box.html">Box</a> <a class="code" href="structftxui_1_1Box.html#a83d40499d9e8740c35dc2352c2ac84a8">Box::Intersection</a>(<a class="code" href="structftxui_1_1Box.html">Box</a> a, <a class="code" href="structftxui_1_1Box.html">Box</a> b) {</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  <span class="keywordflow">return</span> <a class="code" href="structftxui_1_1Box.html">Box</a>{</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  std::max(a.<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a>, b.<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a>),</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  std::min(a.<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a>, b.<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a>),</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  std::max(a.<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a>, b.<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a>),</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  std::min(a.<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>, b.<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>),</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  };</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> }</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">/// @return the smallest Box containing both |a| and |b|.</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"></span><span class="comment">// static</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#adbc0a2693f6a78124076ef53bfd4207e"> 24</a></span> <a class="code" href="structftxui_1_1Box.html">Box</a> <a class="code" href="structftxui_1_1Box.html#adbc0a2693f6a78124076ef53bfd4207e">Box::Union</a>(<a class="code" href="structftxui_1_1Box.html">Box</a> a, <a class="code" href="structftxui_1_1Box.html">Box</a> b) {</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">return</span> <a class="code" href="structftxui_1_1Box.html">Box</a>{</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  std::min(a.<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a>, b.<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a>),</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  std::max(a.<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a>, b.<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a>),</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  std::min(a.<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a>, b.<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a>),</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::max(a.<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>, b.<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>),</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  };</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> }</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/// @return whether (x,y) is contained inside the box.</span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a2f31c89738607b84e65992a7005d35a9"> 35</a></span> <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a2f31c89738607b84e65992a7005d35a9">Box::Contain</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> <a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a> <= x && <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a> >= x && <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a> <= y && <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a> >= y;</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">/// @return whether the box is empty.</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a8e12342fc420701fbffd97025421575a"> 44</a></span> <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a8e12342fc420701fbffd97025421575a">Box::IsEmpty</a>()<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> <a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a> > <a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a> || <a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a> > <a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>;</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">/// @return whether |other| is the same as |this|</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69"> 50</a></span> <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69">Box::operator==</a>(<span class="keyword">const</span> <a class="code" href="structftxui_1_1Box.html">Box</a>& other)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> (<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a> == other.<a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a>) && (<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a> == other.<a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a>) &&</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  (<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a> == other.<a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a>) && (<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a> == other.<a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a>);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">/// @return whether |other| and |this| are different.</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">/// @ingroup screen</span></div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a1ff481fa3b55fcc402c98c7564990c17"> 57</a></span> <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a1ff481fa3b55fcc402c98c7564990c17">Box::operator!=</a>(<span class="keyword">const</span> <a class="code" href="structftxui_1_1Box.html">Box</a>& other)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> !<a class="code" href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69">operator==</a>(other);</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html"><div class="ttname"><a href="structftxui_1_1Box.html">ftxui::Box</a></div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00009">box.hpp:9</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a1ff481fa3b55fcc402c98c7564990c17"><div class="ttname"><a href="structftxui_1_1Box.html#a1ff481fa3b55fcc402c98c7564990c17">ftxui::Box::operator!=</a></div><div class="ttdeci">bool operator!=(const Box &other) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00057">box.cpp:57</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a2f31c89738607b84e65992a7005d35a9"><div class="ttname"><a href="structftxui_1_1Box.html#a2f31c89738607b84e65992a7005d35a9">ftxui::Box::Contain</a></div><div class="ttdeci">bool Contain(int x, int y) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00035">box.cpp:35</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a5f0bb6d8a3e66525c3e6264cb8288e43"><div class="ttname"><a href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">ftxui::Box::x_max</a></div><div class="ttdeci">int x_max</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00011">box.hpp:11</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a7941ddc7e35fffb8864af1e922814401"><div class="ttname"><a href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">ftxui::Box::y_min</a></div><div class="ttdeci">int y_min</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00012">box.hpp:12</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a83d40499d9e8740c35dc2352c2ac84a8"><div class="ttname"><a href="structftxui_1_1Box.html#a83d40499d9e8740c35dc2352c2ac84a8">ftxui::Box::Intersection</a></div><div class="ttdeci">static auto Intersection(Box a, Box b) -> Box</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00012">box.cpp:12</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a8e12342fc420701fbffd97025421575a"><div class="ttname"><a href="structftxui_1_1Box.html#a8e12342fc420701fbffd97025421575a">ftxui::Box::IsEmpty</a></div><div class="ttdeci">bool IsEmpty() const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00044">box.cpp:44</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ad033aea530fbbcf5bcd6cd98d882e3a5"><div class="ttname"><a href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">ftxui::Box::y_max</a></div><div class="ttdeci">int y_max</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00013">box.hpp:13</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ad75c695cfa18e51d88a0984af5df2f69"><div class="ttname"><a href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69">ftxui::Box::operator==</a></div><div class="ttdeci">bool operator==(const Box &other) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00050">box.cpp:50</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_adbc0a2693f6a78124076ef53bfd4207e"><div class="ttname"><a href="structftxui_1_1Box.html#adbc0a2693f6a78124076ef53bfd4207e">ftxui::Box::Union</a></div><div class="ttdeci">static auto Union(Box a, Box b) -> Box</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00024">box.cpp:24</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ae0951dcafafdc96ac1d8361c672d47e2"><div class="ttname"><a href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">ftxui::Box::x_min</a></div><div class="ttdeci">int x_min</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00010">box.hpp:10</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
175
box_8hpp.html
Normal file
@ -0,0 +1,175 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/screen/box.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">box.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="box_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2screen_2box_8hppdep" alt=""/></div>
|
||||
<map name="ainclude_2ftxui_2screen_2box_8hppdep" id="ainclude_2ftxui_2screen_2box_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="3444,5,3593,47"/>
|
||||
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="3151,266,3379,293"/>
|
||||
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="2694,527,2845,568"/>
|
||||
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="2869,527,3019,568"/>
|
||||
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1297,527,1447,568"/>
|
||||
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="1471,527,1622,568"/>
|
||||
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1646,527,1797,568"/>
|
||||
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1821,527,1971,568"/>
|
||||
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="1995,527,2146,568"/>
|
||||
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="2170,527,2321,568"/>
|
||||
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2345,527,2495,568"/>
|
||||
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2519,527,2670,568"/>
|
||||
<area shape="rect" href="automerge_8cpp.html" title=" " alt="" coords="1073,355,1282,382"/>
|
||||
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="1307,355,1477,382"/>
|
||||
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="1502,355,1669,382"/>
|
||||
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="3920,355,4099,382"/>
|
||||
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="7076,355,7260,382"/>
|
||||
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="1693,348,1835,389"/>
|
||||
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="297,355,466,382"/>
|
||||
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="4123,355,4293,382"/>
|
||||
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="885,355,1048,382"/>
|
||||
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="4528,355,4691,382"/>
|
||||
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="4317,355,4504,382"/>
|
||||
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="2735,355,2908,382"/>
|
||||
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="4715,355,4893,382"/>
|
||||
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="4917,355,5096,382"/>
|
||||
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="5121,355,5295,382"/>
|
||||
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="5320,355,5507,382"/>
|
||||
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="5531,355,5701,382"/>
|
||||
<area shape="rect" href="hyperlink_8cpp.html" title=" " alt="" coords="490,355,689,382"/>
|
||||
<area shape="rect" href="inverted_8cpp.html" title=" " alt="" coords="1860,355,2052,382"/>
|
||||
<area shape="rect" href="linear__gradient_8cpp.html" title=" " alt="" coords="713,348,861,389"/>
|
||||
<area shape="rect" href="reflect_8cpp.html" title=" " alt="" coords="5725,355,5904,382"/>
|
||||
<area shape="rect" href="scroll__indicator_8cpp.html" title=" " alt="" coords="5928,348,6075,389"/>
|
||||
<area shape="rect" href="separator_8cpp.html" title=" " alt="" coords="6099,355,6298,382"/>
|
||||
<area shape="rect" href="size_8cpp.html" title=" " alt="" coords="6322,355,6486,382"/>
|
||||
<area shape="rect" href="strikethrough_8cpp.html" title=" " alt="" coords="3236,355,3460,382"/>
|
||||
<area shape="rect" href="text_8cpp.html" title=" " alt="" coords="6510,355,6674,382"/>
|
||||
<area shape="rect" href="underlined_8cpp.html" title=" " alt="" coords="3485,355,3691,382"/>
|
||||
<area shape="rect" href="underlined__double_8cpp.html" title=" " alt="" coords="3715,348,3895,389"/>
|
||||
<area shape="rect" href="dom_2util_8cpp.html" title=" " alt="" coords="6698,355,6857,382"/>
|
||||
<area shape="rect" href="vbox_8cpp.html" title=" " alt="" coords="6881,355,7052,382"/>
|
||||
<area shape="rect" href="node_8hpp.html" title=" " alt="" coords="4314,177,4513,203"/>
|
||||
<area shape="rect" href="node_8cpp.html" title=" " alt="" coords="3885,266,4056,293"/>
|
||||
<area shape="rect" href="node__decorator_8cpp.html" title=" " alt="" coords="5854,259,5997,300"/>
|
||||
<area shape="rect" href="requirement_8hpp.html" title=" " alt="" coords="5397,95,5643,121"/>
|
||||
<area shape="rect" href="image_8hpp.html" title=" " alt="" coords="6821,169,6971,211"/>
|
||||
<area shape="rect" href="box_8cpp.html" title=" " alt="" coords="6781,95,6957,121"/>
|
||||
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="2139,437,2317,479"/>
|
||||
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="2329,348,2508,389"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="box_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1Box.html">Box</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
52
box_8hpp__dep__incl.map
Normal file
@ -0,0 +1,52 @@
|
||||
<map id="include/ftxui/screen/box.hpp" name="include/ftxui/screen/box.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="3444,5,3593,47"/>
|
||||
<area shape="rect" id="node2" href="$elements_8hpp.html" title=" " alt="" coords="3151,266,3379,293"/>
|
||||
<area shape="rect" id="node4" href="$button_8cpp.html" title=" " alt="" coords="2694,527,2845,568"/>
|
||||
<area shape="rect" id="node5" href="$checkbox_8cpp.html" title=" " alt="" coords="2869,527,3019,568"/>
|
||||
<area shape="rect" id="node6" href="$container_8cpp.html" title=" " alt="" coords="1297,527,1447,568"/>
|
||||
<area shape="rect" id="node7" href="$hoverable_8cpp.html" title=" " alt="" coords="1471,527,1622,568"/>
|
||||
<area shape="rect" id="node8" href="$input_8cpp.html" title=" " alt="" coords="1646,527,1797,568"/>
|
||||
<area shape="rect" id="node9" href="$menu_8cpp.html" title=" " alt="" coords="1821,527,1971,568"/>
|
||||
<area shape="rect" id="node10" href="$radiobox_8cpp.html" title=" " alt="" coords="1995,527,2146,568"/>
|
||||
<area shape="rect" id="node11" href="$renderer_8cpp.html" title=" " alt="" coords="2170,527,2321,568"/>
|
||||
<area shape="rect" id="node12" href="$resizable__split_8cpp.html" title=" " alt="" coords="2345,527,2495,568"/>
|
||||
<area shape="rect" id="node13" href="$slider_8cpp.html" title=" " alt="" coords="2519,527,2670,568"/>
|
||||
<area shape="rect" id="node15" href="$automerge_8cpp.html" title=" " alt="" coords="1073,355,1282,382"/>
|
||||
<area shape="rect" id="node16" href="$blink_8cpp.html" title=" " alt="" coords="1307,355,1477,382"/>
|
||||
<area shape="rect" id="node17" href="$bold_8cpp.html" title=" " alt="" coords="1502,355,1669,382"/>
|
||||
<area shape="rect" id="node18" href="$border_8cpp.html" title=" " alt="" coords="3920,355,4099,382"/>
|
||||
<area shape="rect" id="node19" href="$canvas_8cpp.html" title=" " alt="" coords="7076,355,7260,382"/>
|
||||
<area shape="rect" id="node20" href="$clear__under_8cpp.html" title=" " alt="" coords="1693,348,1835,389"/>
|
||||
<area shape="rect" id="node21" href="$dom_2color_8cpp.html" title=" " alt="" coords="297,355,466,382"/>
|
||||
<area shape="rect" id="node22" href="$dbox_8cpp.html" title=" " alt="" coords="4123,355,4293,382"/>
|
||||
<area shape="rect" id="node23" href="$dim_8cpp.html" title=" " alt="" coords="885,355,1048,382"/>
|
||||
<area shape="rect" id="node24" href="$flex_8cpp.html" title=" " alt="" coords="4528,355,4691,382"/>
|
||||
<area shape="rect" id="node25" href="$flexbox_8cpp.html" title=" " alt="" coords="4317,355,4504,382"/>
|
||||
<area shape="rect" id="node26" href="$focus_8cpp.html" title=" " alt="" coords="2735,355,2908,382"/>
|
||||
<area shape="rect" id="node27" href="$frame_8cpp.html" title=" " alt="" coords="4715,355,4893,382"/>
|
||||
<area shape="rect" id="node28" href="$gauge_8cpp.html" title=" " alt="" coords="4917,355,5096,382"/>
|
||||
<area shape="rect" id="node29" href="$graph_8cpp.html" title=" " alt="" coords="5121,355,5295,382"/>
|
||||
<area shape="rect" id="node30" href="$gridbox_8cpp.html" title=" " alt="" coords="5320,355,5507,382"/>
|
||||
<area shape="rect" id="node31" href="$hbox_8cpp.html" title=" " alt="" coords="5531,355,5701,382"/>
|
||||
<area shape="rect" id="node32" href="$hyperlink_8cpp.html" title=" " alt="" coords="490,355,689,382"/>
|
||||
<area shape="rect" id="node33" href="$inverted_8cpp.html" title=" " alt="" coords="1860,355,2052,382"/>
|
||||
<area shape="rect" id="node34" href="$linear__gradient_8cpp.html" title=" " alt="" coords="713,348,861,389"/>
|
||||
<area shape="rect" id="node35" href="$reflect_8cpp.html" title=" " alt="" coords="5725,355,5904,382"/>
|
||||
<area shape="rect" id="node36" href="$scroll__indicator_8cpp.html" title=" " alt="" coords="5928,348,6075,389"/>
|
||||
<area shape="rect" id="node37" href="$separator_8cpp.html" title=" " alt="" coords="6099,355,6298,382"/>
|
||||
<area shape="rect" id="node38" href="$size_8cpp.html" title=" " alt="" coords="6322,355,6486,382"/>
|
||||
<area shape="rect" id="node39" href="$strikethrough_8cpp.html" title=" " alt="" coords="3236,355,3460,382"/>
|
||||
<area shape="rect" id="node40" href="$text_8cpp.html" title=" " alt="" coords="6510,355,6674,382"/>
|
||||
<area shape="rect" id="node41" href="$underlined_8cpp.html" title=" " alt="" coords="3485,355,3691,382"/>
|
||||
<area shape="rect" id="node42" href="$underlined__double_8cpp.html" title=" " alt="" coords="3715,348,3895,389"/>
|
||||
<area shape="rect" id="node43" href="$dom_2util_8cpp.html" title=" " alt="" coords="6698,355,6857,382"/>
|
||||
<area shape="rect" id="node44" href="$vbox_8cpp.html" title=" " alt="" coords="6881,355,7052,382"/>
|
||||
<area shape="rect" id="node45" href="$node_8hpp.html" title=" " alt="" coords="4314,177,4513,203"/>
|
||||
<area shape="rect" id="node46" href="$node_8cpp.html" title=" " alt="" coords="3885,266,4056,293"/>
|
||||
<area shape="rect" id="node47" href="$node__decorator_8cpp.html" title=" " alt="" coords="5854,259,5997,300"/>
|
||||
<area shape="rect" id="node48" href="$requirement_8hpp.html" title=" " alt="" coords="5397,95,5643,121"/>
|
||||
<area shape="rect" id="node49" href="$image_8hpp.html" title=" " alt="" coords="6821,169,6971,211"/>
|
||||
<area shape="rect" id="node50" href="$box_8cpp.html" title=" " alt="" coords="6781,95,6957,121"/>
|
||||
<area shape="rect" id="node3" href="$component_8hpp.html" title=" " alt="" coords="2139,437,2317,479"/>
|
||||
<area shape="rect" id="node14" href="$component__base_8hpp.html" title=" " alt="" coords="2329,348,2508,389"/>
|
||||
</map>
|
1
box_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
74b315ace3d3af685936ef9ee44e1ec9
|
BIN
box_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 872 KiB |
137
box_8hpp_source.html
Normal file
@ -0,0 +1,137 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/screen/box.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">box.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="box_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_SCREEN_BOX_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_SCREEN_BOX_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html"> 9</a></span> <span class="keyword">struct </span><a class="code" href="structftxui_1_1Box.html">Box</a> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2"> 10</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">x_min</a> = 0;</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43"> 11</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">x_max</a> = 0;</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401"> 12</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">y_min</a> = 0;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5"> 13</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">y_max</a> = 0;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="structftxui_1_1Box.html#a83d40499d9e8740c35dc2352c2ac84a8">Intersection</a>(<a class="code" href="structftxui_1_1Box.html">Box</a> a, <a class="code" href="structftxui_1_1Box.html">Box</a> b) -> <a class="code" href="structftxui_1_1Box.html">Box</a>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keyword">static</span> <span class="keyword">auto</span> <a class="code" href="structftxui_1_1Box.html#adbc0a2693f6a78124076ef53bfd4207e">Union</a>(<a class="code" href="structftxui_1_1Box.html">Box</a> a, <a class="code" href="structftxui_1_1Box.html">Box</a> b) -> <a class="code" href="structftxui_1_1Box.html">Box</a>;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a2f31c89738607b84e65992a7005d35a9">Contain</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a8e12342fc420701fbffd97025421575a">IsEmpty</a>() <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69">operator==</a>(<span class="keyword">const</span> <a class="code" href="structftxui_1_1Box.html">Box</a>& other) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordtype">bool</span> <a class="code" href="structftxui_1_1Box.html#a1ff481fa3b55fcc402c98c7564990c17">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structftxui_1_1Box.html">Box</a>& other) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> };</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#endif </span><span class="comment">// FTXUI_SCREEN_BOX_HPP</span></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html"><div class="ttname"><a href="structftxui_1_1Box.html">ftxui::Box</a></div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00009">box.hpp:9</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a1ff481fa3b55fcc402c98c7564990c17"><div class="ttname"><a href="structftxui_1_1Box.html#a1ff481fa3b55fcc402c98c7564990c17">ftxui::Box::operator!=</a></div><div class="ttdeci">bool operator!=(const Box &other) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00057">box.cpp:57</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a2f31c89738607b84e65992a7005d35a9"><div class="ttname"><a href="structftxui_1_1Box.html#a2f31c89738607b84e65992a7005d35a9">ftxui::Box::Contain</a></div><div class="ttdeci">bool Contain(int x, int y) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00035">box.cpp:35</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a5f0bb6d8a3e66525c3e6264cb8288e43"><div class="ttname"><a href="structftxui_1_1Box.html#a5f0bb6d8a3e66525c3e6264cb8288e43">ftxui::Box::x_max</a></div><div class="ttdeci">int x_max</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00011">box.hpp:11</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a7941ddc7e35fffb8864af1e922814401"><div class="ttname"><a href="structftxui_1_1Box.html#a7941ddc7e35fffb8864af1e922814401">ftxui::Box::y_min</a></div><div class="ttdeci">int y_min</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00012">box.hpp:12</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a83d40499d9e8740c35dc2352c2ac84a8"><div class="ttname"><a href="structftxui_1_1Box.html#a83d40499d9e8740c35dc2352c2ac84a8">ftxui::Box::Intersection</a></div><div class="ttdeci">static auto Intersection(Box a, Box b) -> Box</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00012">box.cpp:12</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_a8e12342fc420701fbffd97025421575a"><div class="ttname"><a href="structftxui_1_1Box.html#a8e12342fc420701fbffd97025421575a">ftxui::Box::IsEmpty</a></div><div class="ttdeci">bool IsEmpty() const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00044">box.cpp:44</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ad033aea530fbbcf5bcd6cd98d882e3a5"><div class="ttname"><a href="structftxui_1_1Box.html#ad033aea530fbbcf5bcd6cd98d882e3a5">ftxui::Box::y_max</a></div><div class="ttdeci">int y_max</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00013">box.hpp:13</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ad75c695cfa18e51d88a0984af5df2f69"><div class="ttname"><a href="structftxui_1_1Box.html#ad75c695cfa18e51d88a0984af5df2f69">ftxui::Box::operator==</a></div><div class="ttdeci">bool operator==(const Box &other) const</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00050">box.cpp:50</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_adbc0a2693f6a78124076ef53bfd4207e"><div class="ttname"><a href="structftxui_1_1Box.html#adbc0a2693f6a78124076ef53bfd4207e">ftxui::Box::Union</a></div><div class="ttdeci">static auto Union(Box a, Box b) -> Box</div><div class="ttdef"><b>Definition:</b> <a href="box_8cpp_source.html#l00024">box.cpp:24</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Box_html_ae0951dcafafdc96ac1d8361c672d47e2"><div class="ttname"><a href="structftxui_1_1Box.html#ae0951dcafafdc96ac1d8361c672d47e2">ftxui::Box::x_min</a></div><div class="ttdeci">int x_min</div><div class="ttdef"><b>Definition:</b> <a href="box_8hpp_source.html#l00010">box.hpp:10</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
118
box__helper_8cpp.html
Normal file
@ -0,0 +1,118 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/box_helper.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box__helper_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">box_helper.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="box__helper_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1box__helper"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:aede4ed6e71fbe0689a500ff8db06f3a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">Compute</a> (std::vector< Element > *elements, int target_size)</td></tr>
|
||||
<tr class="separator:aede4ed6e71fbe0689a500ff8db06f3a3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
box__helper_8cpp.js
Normal file
@ -0,0 +1,4 @@
|
||||
var box__helper_8cpp =
|
||||
[
|
||||
[ "Compute", "box__helper_8cpp.html#aede4ed6e71fbe0689a500ff8db06f3a3", null ]
|
||||
];
|
197
box__helper_8cpp_source.html
Normal file
@ -0,0 +1,197 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/box_helper.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box__helper_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">box_helper.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="box__helper_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2021 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include "<a class="code" href="box__helper_8hpp.html">ftxui/dom/box_helper.hpp</a>"</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>  </div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <algorithm></span> <span class="comment">// for max</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <vector></span> <span class="comment">// for vector</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html"> 9</a></span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// Called when the size allowed is greater than the requested size. This</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// distributes the extra spaces toward the flexible elements, in relative</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// proportions.</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keywordtype">void</span> ComputeGrow(std::vector<Element>* elements,</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordtype">int</span> extra_space,</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="keywordtype">int</span> flex_grow_sum) {</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  <span class="keywordflow">for</span> (<a class="code" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a>& element : *elements) {</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> added_space =</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  extra_space * element.flex_grow / std::max(flex_grow_sum, 1);</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  extra_space -= added_space;</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  flex_grow_sum -= element.flex_grow;</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  element.size = element.min_size + added_space;</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  }</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> }</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// Called when the size allowed is lower than the requested size, and the</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// shrinkable element can absorbe the (negative) extra_space. This distribute</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// the extra_space toward those.</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span> ComputeShrinkEasy(std::vector<Element>* elements,</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordtype">int</span> extra_space,</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordtype">int</span> flex_shrink_sum) {</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">for</span> (<a class="code" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a>& element : *elements) {</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> added_space = extra_space * element.min_size *</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  element.flex_shrink / std::max(flex_shrink_sum, 1);</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  extra_space -= added_space;</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  flex_shrink_sum -= element.flex_shrink * element.min_size;</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  element.size = element.min_size + added_space;</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> }</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">// Called when the size allowed is lower than the requested size, and the</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">// shrinkable element can not absorbe the (negative) extra_space. This assign</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// zero to shrinkable elements and distribute the remaining (negative)</span></div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// extra_space toward the other non shrinkable elements.</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keywordtype">void</span> ComputeShrinkHard(std::vector<Element>* elements,</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">int</span> extra_space,</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a>) {</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">for</span> (<a class="code" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a>& element : *elements) {</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">if</span> (element.flex_shrink != 0) {</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  element.size = 0;</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">continue</span>;</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> added_space = extra_space * element.min_size / std::max(1, <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a>);</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  extra_space -= added_space;</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a> -= element.min_size;</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  element.size = element.min_size + added_space;</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  </div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3"> 65</a></span> <span class="keywordtype">void</span> <a class="code" href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">Compute</a>(std::vector<Element>* elements, <span class="keywordtype">int</span> target_size) {</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a> = 0;</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">int</span> flex_grow_sum = 0;</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">int</span> flex_shrink_sum = 0;</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> flex_shrink_size = 0;</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& element : *elements) {</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  flex_grow_sum += element.flex_grow;</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  flex_shrink_sum += element.min_size * element.flex_shrink;</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">if</span> (element.flex_shrink != 0) {</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  flex_shrink_size += element.min_size;</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a> += element.min_size;</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> extra_space = target_size - <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a>;</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">if</span> (extra_space >= 0) {</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  ComputeGrow(elements, extra_space, flex_grow_sum);</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (flex_shrink_size + extra_space >= 0) {</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  ComputeShrinkEasy(elements, extra_space, flex_shrink_sum);</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  ComputeShrinkHard(elements, extra_space + flex_shrink_size,</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">size</a> - flex_shrink_size);</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> }</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> } <span class="comment">// namespace ftxui::box_helper</span></div>
|
||||
<div class="ttc" id="abox__helper_8hpp_html"><div class="ttname"><a href="box__helper_8hpp.html">box_helper.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a></div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8cpp_source.html#l00009">box_helper.cpp:9</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_aede4ed6e71fbe0689a500ff8db06f3a3"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">ftxui::box_helper::Compute</a></div><div class="ttdeci">void Compute(std::vector< Element > *elements, int target_size)</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8cpp_source.html#l00065">box_helper.cpp:65</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_structftxui_1_1box__helper_1_1Element"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">ftxui::box_helper::Element</a></div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00011">box_helper.hpp:11</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a201220986fbdc539e42efe067985cbdb"><div class="ttname"><a href="namespaceftxui.html#a201220986fbdc539e42efe067985cbdb">ftxui::size</a></div><div class="ttdeci">Decorator size(WidthOrHeight, Constraint, int value)</div><div class="ttdoc">Apply a constraint on the size of an element.</div><div class="ttdef"><b>Definition:</b> <a href="size_8cpp_source.html#l00089">size.cpp:89</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
183
box__helper_8hpp.html
Normal file
@ -0,0 +1,183 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/box_helper.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box__helper_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">box_helper.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="box__helper_8hpp__dep__incl.png" border="0" usemap="#asrc_2ftxui_2dom_2box__helper_8hppdep" alt=""/></div>
|
||||
<map name="asrc_2ftxui_2dom_2box__helper_8hppdep" id="asrc_2ftxui_2dom_2box__helper_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="410,5,621,32"/>
|
||||
<area shape="rect" href="box__helper_8cpp.html" title=" " alt="" coords="5,87,215,114"/>
|
||||
<area shape="rect" href="flexbox__helper_8cpp.html" title=" " alt="" coords="239,80,397,121"/>
|
||||
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="422,87,609,114"/>
|
||||
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="633,87,803,114"/>
|
||||
<area shape="rect" href="vbox_8cpp.html" title=" " alt="" coords="827,87,998,114"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="box__helper_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:structftxui_1_1box__helper_1_1Element"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a></td></tr>
|
||||
<tr class="separator:structftxui_1_1box__helper_1_1Element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:namespaceftxui_1_1box__helper"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:aede4ed6e71fbe0689a500ff8db06f3a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">Compute</a> (std::vector< Element > *elements, int target_size)</td></tr>
|
||||
<tr class="separator:aede4ed6e71fbe0689a500ff8db06f3a3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
|
||||
<a name="structftxui_1_1box__helper_1_1Element" id="structftxui_1_1box__helper_1_1Element"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1box__helper_1_1Element">◆ </a></span>ftxui::box_helper::Element</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">struct ftxui::box_helper::Element</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="box__helper_8hpp_source.html#l00011">11</a> of file <a class="el" href="box__helper_8hpp_source.html">box_helper.hpp</a>.</p>
|
||||
</div><table class="fieldtable">
|
||||
<tr><th colspan="3">Data Fields</th></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="ac3f0cc8c8c9e0fb97f20cf7777773197"></a>int</td>
|
||||
<td class="fieldname">
|
||||
min_size</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="a2fb16db68c0bf00d3bf872bc18675116"></a>int</td>
|
||||
<td class="fieldname">
|
||||
flex_grow</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="a94a9a7333988edf4249f38c1b1491cf4"></a>int</td>
|
||||
<td class="fieldname">
|
||||
flex_shrink</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="a439227feff9d7f55384e8780cfc2eb82"></a>int</td>
|
||||
<td class="fieldname">
|
||||
size</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
10
box__helper_8hpp.js
Normal file
@ -0,0 +1,10 @@
|
||||
var box__helper_8hpp =
|
||||
[
|
||||
[ "Element", "namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element", [
|
||||
[ "min_size", "namespaceftxui_1_1box__helper.html#ac3f0cc8c8c9e0fb97f20cf7777773197", null ],
|
||||
[ "flex_grow", "namespaceftxui_1_1box__helper.html#a2fb16db68c0bf00d3bf872bc18675116", null ],
|
||||
[ "flex_shrink", "namespaceftxui_1_1box__helper.html#a94a9a7333988edf4249f38c1b1491cf4", null ],
|
||||
[ "size", "namespaceftxui_1_1box__helper.html#a439227feff9d7f55384e8780cfc2eb82", null ]
|
||||
] ],
|
||||
[ "Compute", "box__helper_8hpp.html#aede4ed6e71fbe0689a500ff8db06f3a3", null ]
|
||||
];
|
8
box__helper_8hpp__dep__incl.map
Normal file
@ -0,0 +1,8 @@
|
||||
<map id="src/ftxui/dom/box_helper.hpp" name="src/ftxui/dom/box_helper.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="410,5,621,32"/>
|
||||
<area shape="rect" id="node2" href="$box__helper_8cpp.html" title=" " alt="" coords="5,87,215,114"/>
|
||||
<area shape="rect" id="node3" href="$flexbox__helper_8cpp.html" title=" " alt="" coords="239,80,397,121"/>
|
||||
<area shape="rect" id="node4" href="$gridbox_8cpp.html" title=" " alt="" coords="422,87,609,114"/>
|
||||
<area shape="rect" id="node5" href="$hbox_8cpp.html" title=" " alt="" coords="633,87,803,114"/>
|
||||
<area shape="rect" id="node6" href="$vbox_8cpp.html" title=" " alt="" coords="827,87,998,114"/>
|
||||
</map>
|
1
box__helper_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
016a1d87851495bcad22804e56040603
|
BIN
box__helper_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 14 KiB |
132
box__helper_8hpp_source.html
Normal file
@ -0,0 +1,132 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/box_helper.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('box__helper_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">box_helper.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="box__helper_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2021 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.line.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_DOM_BOX_HELPER_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_DOM_BOX_HELPER_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <vector></span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html"> 11</a></span> <span class="keyword">struct </span><a class="code" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a> {</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="comment">// Input:</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html#ac3f0cc8c8c9e0fb97f20cf7777773197"> 13</a></span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui_1_1box__helper.html#ac3f0cc8c8c9e0fb97f20cf7777773197">min_size</a> = 0;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html#a2fb16db68c0bf00d3bf872bc18675116"> 14</a></span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui_1_1box__helper.html#a2fb16db68c0bf00d3bf872bc18675116">flex_grow</a> = 0;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html#a94a9a7333988edf4249f38c1b1491cf4"> 15</a></span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui_1_1box__helper.html#a94a9a7333988edf4249f38c1b1491cf4">flex_shrink</a> = 0;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  <span class="comment">// Output;</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="namespaceftxui_1_1box__helper.html#a439227feff9d7f55384e8780cfc2eb82"> 18</a></span>  <span class="keywordtype">int</span> <a class="code" href="namespaceftxui_1_1box__helper.html#a439227feff9d7f55384e8780cfc2eb82">size</a> = 0;</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> };</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keywordtype">void</span> <a class="code" href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">Compute</a>(std::vector<Element>* elements, <span class="keywordtype">int</span> target_size);</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> } <span class="comment">// namespace ftxui::box_helper</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  </div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: FTXUI_DOM_BOX_HELPER_HPP */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a></div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8cpp_source.html#l00009">box_helper.cpp:9</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_a2fb16db68c0bf00d3bf872bc18675116"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#a2fb16db68c0bf00d3bf872bc18675116">ftxui::box_helper::Element::flex_grow</a></div><div class="ttdeci">int flex_grow</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00014">box_helper.hpp:14</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_a439227feff9d7f55384e8780cfc2eb82"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#a439227feff9d7f55384e8780cfc2eb82">ftxui::box_helper::Element::size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00018">box_helper.hpp:18</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_a94a9a7333988edf4249f38c1b1491cf4"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#a94a9a7333988edf4249f38c1b1491cf4">ftxui::box_helper::Element::flex_shrink</a></div><div class="ttdeci">int flex_shrink</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00015">box_helper.hpp:15</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_ac3f0cc8c8c9e0fb97f20cf7777773197"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#ac3f0cc8c8c9e0fb97f20cf7777773197">ftxui::box_helper::Element::min_size</a></div><div class="ttdeci">int min_size</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00013">box_helper.hpp:13</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_aede4ed6e71fbe0689a500ff8db06f3a3"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#aede4ed6e71fbe0689a500ff8db06f3a3">ftxui::box_helper::Compute</a></div><div class="ttdeci">void Compute(std::vector< Element > *elements, int target_size)</div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8cpp_source.html#l00065">box_helper.cpp:65</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_1_1box__helper_html_structftxui_1_1box__helper_1_1Element"><div class="ttname"><a href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">ftxui::box_helper::Element</a></div><div class="ttdef"><b>Definition:</b> <a href="box__helper_8hpp_source.html#l00011">box_helper.hpp:11</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
120
button_8cpp.html
Normal file
@ -0,0 +1,120 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/button.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('button_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">button.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="button_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a4e8295ec77dd31b0acc5063b134473e7"><td class="memItemLeft" align="right" valign="top">Component </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7">Button</a> (ButtonOption option)</td></tr>
|
||||
<tr class="memdesc:a4e8295ec77dd31b0acc5063b134473e7"><td class="mdescLeft"> </td><td class="mdescRight">Draw a button. Execute a function when clicked. <a href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7">More...</a><br /></td></tr>
|
||||
<tr class="separator:a4e8295ec77dd31b0acc5063b134473e7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0488e28ee9388e0ddca26f1d03d827d1"><td class="memItemLeft" align="right" valign="top">Component </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a0488e28ee9388e0ddca26f1d03d827d1">Button</a> (ConstStringRef label, std::function< void()> on_click, ButtonOption option)</td></tr>
|
||||
<tr class="memdesc:a0488e28ee9388e0ddca26f1d03d827d1"><td class="mdescLeft"> </td><td class="mdescRight">Draw a button. Execute a function when clicked. <a href="namespaceftxui.html#a0488e28ee9388e0ddca26f1d03d827d1">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0488e28ee9388e0ddca26f1d03d827d1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
5
button_8cpp.js
Normal file
@ -0,0 +1,5 @@
|
||||
var button_8cpp =
|
||||
[
|
||||
[ "Button", "button_8cpp.html#a4e8295ec77dd31b0acc5063b134473e7", null ],
|
||||
[ "Button", "button_8cpp.html#a0488e28ee9388e0ddca26f1d03d827d1", null ]
|
||||
];
|
345
button_8cpp_source.html
Normal file
@ -0,0 +1,345 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/button.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('button_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">button.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="button_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <functional></span> <span class="comment">// for function</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="animation_8hpp.html">ftxui/component/animation.hpp</a>"</span> <span class="comment">// for Animator, Params (ptr only)</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="component_8hpp.html">ftxui/component/component.hpp</a>"</span> <span class="comment">// for Make, Button</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="component__base_8hpp.html">ftxui/component/component_base.hpp</a>"</span> <span class="comment">// for ComponentBase</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="component__options_8hpp.html">ftxui/component/component_options.hpp</a>"</span> <span class="comment">// for ButtonOption, AnimatedColorOption, AnimatedColorsOption, EntryState</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="event_8hpp.html">ftxui/component/event.hpp</a>"</span> <span class="comment">// for Event, Event::Return</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="mouse_8hpp.html">ftxui/component/mouse.hpp</a>"</span> <span class="comment">// for Mouse, Mouse::Left, Mouse::Pressed</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="screen__interactive_8hpp.html">ftxui/component/screen_interactive.hpp</a>"</span> <span class="comment">// for Component</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for operator|, Decorator, Element, operator|=, bgcolor, color, reflect, text, bold, border, inverted, nothing</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="color_8hpp.html">ftxui/screen/color.hpp</a>"</span> <span class="comment">// for Color</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="ref_8hpp.html">ftxui/util/ref.hpp</a>"</span> <span class="comment">// for Ref, ConstStringRef</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> DefaultTransform(EntryState params) { <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">auto</span> element = <a class="code" href="namespaceftxui.html#a75baaa2734ed76a9f478beaafa87ae57">text</a>(params.label) | <a class="code" href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">border</a>;</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">if</span> (params.active) {</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  element |= <a class="code" href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">bold</a>;</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (params.focused) {</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  element |= <a class="code" href="namespaceftxui.html#a672456b8f2091b615a30ff755418b37b">inverted</a>;</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  }</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> element;</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">class </span>ButtonBase : <span class="keyword">public</span> ComponentBase, <span class="keyword">public</span> ButtonOption {</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">explicit</span> ButtonBase(ButtonOption option) : ButtonOption(std::move(option)) {}</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  </div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// Component implementation:</span></div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> active = Active();</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> focused = Focused();</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> focused_or_hover = focused || mouse_hover_;</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">float</span> target = focused_or_hover ? 1.f : 0.f; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">if</span> (target != animator_background_.to()) {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  SetAnimationTarget(target);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">auto</span> focus_management = focused ? <a class="code" href="namespaceftxui.html#aa2d7d671f184f85e0f396f2610fa6c2e">focus</a> : active ? <a class="code" href="namespaceftxui.html#a9e3e2988ed61a129d82d634ad66f7eb1">select</a> : <a class="code" href="namespaceftxui.html#a1bfd3885ac8b40dc82a1103725003c07">nothing</a>;</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">const</span> EntryState state{</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  *label, <span class="keyword">false</span>, active, focused_or_hover, Index(),</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  };</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">auto</span> element = (transform ? transform : DefaultTransform) <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  (state);</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span> element | AnimatedColorStyle() | focus_management | <a class="code" href="namespaceftxui.html#aaff8245861617a3d9e846e99de582a63">reflect</a>(box_);</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> AnimatedColorStyle() {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">Decorator</a> style = <a class="code" href="namespaceftxui.html#a1bfd3885ac8b40dc82a1103725003c07">nothing</a>;</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span> (animated_colors.background.enabled) {</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  style = style |</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="namespaceftxui.html#a01d4c5aaf0447e862246849111782245">bgcolor</a>(<a class="code" href="classftxui_1_1Color.html#ae5d82c5fbae4f6561c9471c11c0a461b">Color::Interpolate</a>(animation_foreground_, <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  animated_colors.background.inactive,</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  animated_colors.background.active));</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (animated_colors.foreground.enabled) {</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  style =</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  style | <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>(<a class="code" href="classftxui_1_1Color.html#ae5d82c5fbae4f6561c9471c11c0a461b">Color::Interpolate</a>(animation_foreground_, <span class="comment">//</span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  animated_colors.foreground.inactive,</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  animated_colors.foreground.active));</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> style;</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> SetAnimationTarget(<span class="keywordtype">float</span> target) {</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">if</span> (animated_colors.foreground.enabled) {</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  animator_foreground_ = animation::Animator(</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  &animation_foreground_, target, animated_colors.foreground.duration,</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  animated_colors.foreground.function);</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">if</span> (animated_colors.background.enabled) {</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  animator_background_ = animation::Animator(</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  &animation_background_, target, animated_colors.background.duration,</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  animated_colors.background.function);</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  }</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordtype">void</span> OnAnimation(animation::Params& p)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  animator_background_.OnAnimation(p);</div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  animator_foreground_.OnAnimation(p);</div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">void</span> OnClick() {</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  animation_background_ = 0.5F; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  animation_foreground_ = 0.5F; <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  SetAnimationTarget(1.F); <span class="comment">// NOLINT</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// TODO(arthursonzogni): Consider posting the task to the main loop, instead</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="comment">// of invoking it immediately.</span></div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  on_click(); <span class="comment">// May delete this.</span></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  }</div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  </div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">bool</span> OnEvent(Event event)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordflow">if</span> (event.is_mouse()) {</div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> OnMouseEvent(event);</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  </div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">if</span> (event == <a class="code" href="structftxui_1_1Event.html#ad3ab0b5bcc923c4b994080d45b97e36b">Event::Return</a>) {</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  OnClick(); <span class="comment">// May delete this.</span></div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  }</div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  }</div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  </div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordtype">bool</span> OnMouseEvent(Event event) {</div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  mouse_hover_ =</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  box_.Contain(event.mouse().x, event.mouse().y) && CaptureMouse(event);</div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  </div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (!mouse_hover_) {</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">if</span> (event.mouse().button == <a class="code" href="structftxui_1_1Mouse.html#a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb">Mouse::Left</a> &&</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  event.mouse().motion == <a class="code" href="structftxui_1_1Mouse.html#a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25">Mouse::Pressed</a>) {</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  TakeFocus();</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  OnClick(); <span class="comment">// May delete this.</span></div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  }</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  </div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">bool</span> Focusable() const final { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  </div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordtype">bool</span> mouse_hover_ = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  Box box_;</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  ButtonOption option_;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">float</span> animation_background_ = 0;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">float</span> animation_foreground_ = 0;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  animation::Animator animator_background_ =</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  animation::Animator(&animation_background_);</div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  animation::Animator animator_foreground_ =</div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  animation::Animator(&animation_foreground_);</div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> };</div>
|
||||
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  </div>
|
||||
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment">/// @brief Draw a button. Execute a function when clicked.</span></div>
|
||||
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment">/// @param option Additional optional parameters.</span></div>
|
||||
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment">/// @see ButtonBase</span></div>
|
||||
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment">/// auto screen = ScreenInteractive::FitComponent();</span></div>
|
||||
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment">/// Component button = Button({</span></div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="comment">/// .label = "Click to quit",</span></div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment">/// .on_click = screen.ExitLoopClosure(),</span></div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">/// });</span></div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment">/// screen.Loop(button)</span></div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment">/// ┌─────────────┐</span></div>
|
||||
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment">/// │Click to quit│</span></div>
|
||||
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment">/// └─────────────┘</span></div>
|
||||
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7"> 174</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> <a class="code" href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7">Button</a>(<a class="code" href="structftxui_1_1ButtonOption.html">ButtonOption</a> option) {</div>
|
||||
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordflow">return</span> Make<ButtonBase>(std::move(option));</div>
|
||||
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> }</div>
|
||||
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">/// @brief Draw a button. Execute a function when clicked.</span></div>
|
||||
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment">/// @param label The label of the button.</span></div>
|
||||
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">/// @param on_click The action to execute when clicked.</span></div>
|
||||
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment">/// @param option Additional optional parameters.</span></div>
|
||||
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="comment">/// @see ButtonBase</span></div>
|
||||
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment">/// auto screen = ScreenInteractive::FitComponent();</span></div>
|
||||
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="comment">/// std::string label = "Click to quit";</span></div>
|
||||
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment">/// Component button = Button(&label, screen.ExitLoopClosure());</span></div>
|
||||
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment">/// screen.Loop(button)</span></div>
|
||||
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment">/// ┌─────────────┐</span></div>
|
||||
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment">/// │Click to quit│</span></div>
|
||||
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment">/// └─────────────┘</span></div>
|
||||
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="comment"></span><span class="comment">// NOLINTNEXTLINE</span></div>
|
||||
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a0488e28ee9388e0ddca26f1d03d827d1"> 202</a></span> <a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> <a class="code" href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7">Button</a>(<a class="code" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> label,</div>
|
||||
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  std::function<<span class="keywordtype">void</span>()> on_click,</div>
|
||||
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="structftxui_1_1ButtonOption.html">ButtonOption</a> option) {</div>
|
||||
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  option.<a class="code" href="structftxui_1_1ButtonOption.html#a336758144ce2b1095f2a0ef062551f5b">label</a> = std::move(label);</div>
|
||||
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  option.<a class="code" href="structftxui_1_1ButtonOption.html#a0ae001950b0ed23752b298963cecf3d1">on_click</a> = std::move(on_click);</div>
|
||||
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keywordflow">return</span> Make<ButtonBase>(std::move(option));</div>
|
||||
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> }</div>
|
||||
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
|
||||
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="aanimation_8hpp_html"><div class="ttname"><a href="animation_8hpp.html">animation.hpp</a></div></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Color_html_ae5d82c5fbae4f6561c9471c11c0a461b"><div class="ttname"><a href="classftxui_1_1Color.html#ae5d82c5fbae4f6561c9471c11c0a461b">ftxui::Color::Interpolate</a></div><div class="ttdeci">static Color Interpolate(float t, const Color &a, const Color &b)</div><div class="ttdef"><b>Definition:</b> <a href="screen_2color_8cpp_source.html#l00212">color.cpp:212</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1ConstStringRef_html"><div class="ttname"><a href="classftxui_1_1ConstStringRef.html">ftxui::ConstStringRef</a></div><div class="ttdoc">An adapter. Own or reference a constant string. For convenience, this class convert multiple immutabl...</div><div class="ttdef"><b>Definition:</b> <a href="ref_8hpp_source.html#l00094">ref.hpp:94</a></div></div>
|
||||
<div class="ttc" id="acolor_8hpp_html"><div class="ttname"><a href="color_8hpp.html">color.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent_8hpp_html"><div class="ttname"><a href="component_8hpp.html">component.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent__base_8hpp_html"><div class="ttname"><a href="component__base_8hpp.html">component_base.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent__options_8hpp_html"><div class="ttname"><a href="component__options_8hpp.html">component_options.hpp</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="aevent_8hpp_html"><div class="ttname"><a href="event_8hpp.html">event.hpp</a></div></div>
|
||||
<div class="ttc" id="amouse_8hpp_html"><div class="ttname"><a href="mouse_8hpp.html">mouse.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a01d4c5aaf0447e862246849111782245"><div class="ttname"><a href="namespaceftxui.html#a01d4c5aaf0447e862246849111782245">ftxui::bgcolor</a></div><div class="ttdeci">Decorator bgcolor(Color)</div><div class="ttdoc">Decorate using a background color.</div><div class="ttdef"><b>Definition:</b> <a href="dom_2color_8cpp_source.html#l00124">color.cpp:124</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a164021903e9ac6f1357e4186582891e3"><div class="ttname"><a href="namespaceftxui.html#a164021903e9ac6f1357e4186582891e3">ftxui::Decorator</a></div><div class="ttdeci">std::function< Element(Element)> Decorator</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00024">elements.hpp:24</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a1bfd3885ac8b40dc82a1103725003c07"><div class="ttname"><a href="namespaceftxui.html#a1bfd3885ac8b40dc82a1103725003c07">ftxui::nothing</a></div><div class="ttdeci">Element nothing(Element element)</div><div class="ttdoc">A decoration doing absolutely nothing.</div><div class="ttdef"><b>Definition:</b> <a href="dom_2util_8cpp_source.html#l00028">util.cpp:28</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a3149fb57ff17207d2516790b82503002"><div class="ttname"><a href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">ftxui::Component</a></div><div class="ttdeci">std::shared_ptr< ComponentBase > Component</div><div class="ttdef"><b>Definition:</b> <a href="component__base_8hpp_source.html#l00024">component_base.hpp:24</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a353c769068e25303eb41fa2da565c604"><div class="ttname"><a href="namespaceftxui.html#a353c769068e25303eb41fa2da565c604">ftxui::bold</a></div><div class="ttdeci">Element bold(Element)</div><div class="ttdoc">Use a bold font, for elements with more emphasis.</div><div class="ttdef"><b>Definition:</b> <a href="bold_8cpp_source.html#l00033">bold.cpp:33</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a4e8295ec77dd31b0acc5063b134473e7"><div class="ttname"><a href="namespaceftxui.html#a4e8295ec77dd31b0acc5063b134473e7">ftxui::Button</a></div><div class="ttdeci">Component Button(ButtonOption options)</div><div class="ttdoc">Draw a button. Execute a function when clicked.</div><div class="ttdef"><b>Definition:</b> <a href="button_8cpp_source.html#l00174">button.cpp:174</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a672456b8f2091b615a30ff755418b37b"><div class="ttname"><a href="namespaceftxui.html#a672456b8f2091b615a30ff755418b37b">ftxui::inverted</a></div><div class="ttdeci">Element inverted(Element)</div><div class="ttdoc">Add a filter that will invert the foreground and the background colors.</div><div class="ttdef"><b>Definition:</b> <a href="inverted_8cpp_source.html#l00034">inverted.cpp:34</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a75baaa2734ed76a9f478beaafa87ae57"><div class="ttname"><a href="namespaceftxui.html#a75baaa2734ed76a9f478beaafa87ae57">ftxui::text</a></div><div class="ttdeci">Element text(std::wstring text)</div><div class="ttdoc">Display a piece of unicode text.</div><div class="ttdef"><b>Definition:</b> <a href="text_8cpp_source.html#l00119">text.cpp:119</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a9e3e2988ed61a129d82d634ad66f7eb1"><div class="ttname"><a href="namespaceftxui.html#a9e3e2988ed61a129d82d634ad66f7eb1">ftxui::select</a></div><div class="ttdeci">Element select(Element)</div><div class="ttdoc">Set the child to be the one selected among its siblings.</div><div class="ttdef"><b>Definition:</b> <a href="frame_8cpp_source.html#l00149">frame.cpp:149</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aa2d7d671f184f85e0f396f2610fa6c2e"><div class="ttname"><a href="namespaceftxui.html#aa2d7d671f184f85e0f396f2610fa6c2e">ftxui::focus</a></div><div class="ttdeci">Element focus(Element)</div><div class="ttdoc">Set the child to be the one in focus globally.</div><div class="ttdef"><b>Definition:</b> <a href="frame_8cpp_source.html#l00156">frame.cpp:156</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aaff8245861617a3d9e846e99de582a63"><div class="ttname"><a href="namespaceftxui.html#aaff8245861617a3d9e846e99de582a63">ftxui::reflect</a></div><div class="ttdeci">Decorator reflect(Box &box)</div><div class="ttdef"><b>Definition:</b> <a href="reflect_8cpp_source.html#l00043">reflect.cpp:43</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ae8537acd423d47cf07e61bd774fb1098"><div class="ttname"><a href="namespaceftxui.html#ae8537acd423d47cf07e61bd774fb1098">ftxui::border</a></div><div class="ttdeci">Element border(Element)</div><div class="ttdoc">Draw a border around the element.</div><div class="ttdef"><b>Definition:</b> <a href="border_8cpp_source.html#l00228">border.cpp:228</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_af61b489da39ca5e24b68e6e1a2b09c0d"><div class="ttname"><a href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">ftxui::color</a></div><div class="ttdeci">Decorator color(Color)</div><div class="ttdoc">Decorate using a foreground color.</div><div class="ttdef"><b>Definition:</b> <a href="dom_2color_8cpp_source.html#l00110">color.cpp:110</a></div></div>
|
||||
<div class="ttc" id="aref_8hpp_html"><div class="ttname"><a href="ref_8hpp.html">ref.hpp</a></div></div>
|
||||
<div class="ttc" id="ascreen__interactive_8hpp_html"><div class="ttname"><a href="screen__interactive_8hpp.html">screen_interactive.hpp</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1ButtonOption_html"><div class="ttname"><a href="structftxui_1_1ButtonOption.html">ftxui::ButtonOption</a></div><div class="ttdoc">Option for the AnimatedButton component.</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00112">component_options.hpp:112</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1ButtonOption_html_a0ae001950b0ed23752b298963cecf3d1"><div class="ttname"><a href="structftxui_1_1ButtonOption.html#a0ae001950b0ed23752b298963cecf3d1">ftxui::ButtonOption::on_click</a></div><div class="ttdeci">std::function< void()> on_click</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00126">component_options.hpp:126</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1ButtonOption_html_a336758144ce2b1095f2a0ef062551f5b"><div class="ttname"><a href="structftxui_1_1ButtonOption.html#a336758144ce2b1095f2a0ef062551f5b">ftxui::ButtonOption::label</a></div><div class="ttdeci">ConstStringRef label</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00125">component_options.hpp:125</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Event_html_ad3ab0b5bcc923c4b994080d45b97e36b"><div class="ttname"><a href="structftxui_1_1Event.html#ad3ab0b5bcc923c4b994080d45b97e36b">ftxui::Event::Return</a></div><div class="ttdeci">static const Event Return</div><div class="ttdef"><b>Definition:</b> <a href="event_8hpp_source.html#l00051">event.hpp:51</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Mouse_html_a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb"><div class="ttname"><a href="structftxui_1_1Mouse.html#a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb">ftxui::Mouse::Left</a></div><div class="ttdeci">@ Left</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8hpp_source.html#l00013">mouse.hpp:13</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Mouse_html_a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25"><div class="ttname"><a href="structftxui_1_1Mouse.html#a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25">ftxui::Mouse::Pressed</a></div><div class="ttdeci">@ Pressed</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8hpp_source.html#l00025">mouse.hpp:25</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
123
canvas_8cpp.html
Normal file
@ -0,0 +1,123 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/dom/canvas.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('canvas_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">canvas.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="canvas_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a57d7bdf155e190de514a689abb4e9a35"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a57d7bdf155e190de514a689abb4e9a35">canvas</a> (ConstRef< Canvas > canvas)</td></tr>
|
||||
<tr class="memdesc:a57d7bdf155e190de514a689abb4e9a35"><td class="mdescLeft"> </td><td class="mdescRight">Produce an element from a <a class="el" href="structftxui_1_1Canvas.html">Canvas</a>, or a reference to a <a class="el" href="structftxui_1_1Canvas.html">Canvas</a>. <a href="namespaceftxui.html#a57d7bdf155e190de514a689abb4e9a35">More...</a><br /></td></tr>
|
||||
<tr class="separator:a57d7bdf155e190de514a689abb4e9a35"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac781c6530fb74b861af7d52c03ffb2b9"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ac781c6530fb74b861af7d52c03ffb2b9">canvas</a> (int width, int height, std::function< void(Canvas &)> fn)</td></tr>
|
||||
<tr class="memdesc:ac781c6530fb74b861af7d52c03ffb2b9"><td class="mdescLeft"> </td><td class="mdescRight">Produce an element drawing a canvas of requested size. <a href="namespaceftxui.html#ac781c6530fb74b861af7d52c03ffb2b9">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac781c6530fb74b861af7d52c03ffb2b9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8bef154e558868d259c52380e1e5ead9"><td class="memItemLeft" align="right" valign="top">Element </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a8bef154e558868d259c52380e1e5ead9">canvas</a> (std::function< void(Canvas &)> fn)</td></tr>
|
||||
<tr class="memdesc:a8bef154e558868d259c52380e1e5ead9"><td class="mdescLeft"> </td><td class="mdescRight">Produce an element drawing a canvas. <a href="namespaceftxui.html#a8bef154e558868d259c52380e1e5ead9">More...</a><br /></td></tr>
|
||||
<tr class="separator:a8bef154e558868d259c52380e1e5ead9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
6
canvas_8cpp.js
Normal file
@ -0,0 +1,6 @@
|
||||
var canvas_8cpp =
|
||||
[
|
||||
[ "canvas", "canvas_8cpp.html#a57d7bdf155e190de514a689abb4e9a35", null ],
|
||||
[ "canvas", "canvas_8cpp.html#ac781c6530fb74b861af7d52c03ffb2b9", null ],
|
||||
[ "canvas", "canvas_8cpp.html#a8bef154e558868d259c52380e1e5ead9", null ]
|
||||
];
|
1098
canvas_8cpp_source.html
Normal file
175
canvas_8hpp.html
Normal file
@ -0,0 +1,175 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/dom/canvas.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('canvas_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">canvas.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="canvas_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2dom_2canvas_8hppdep" alt=""/></div>
|
||||
<map name="ainclude_2ftxui_2dom_2canvas_8hppdep" id="ainclude_2ftxui_2dom_2canvas_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="2931,5,3145,32"/>
|
||||
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="2848,80,3076,107"/>
|
||||
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="6221,162,6405,189"/>
|
||||
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1301,333,1479,375"/>
|
||||
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="704,423,855,464"/>
|
||||
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="879,423,1029,464"/>
|
||||
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="1053,423,1204,464"/>
|
||||
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="180,423,331,464"/>
|
||||
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="355,423,505,464"/>
|
||||
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="1228,423,1379,464"/>
|
||||
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="529,423,680,464"/>
|
||||
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1752,423,1903,464"/>
|
||||
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1403,423,1553,464"/>
|
||||
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="2101,423,2252,464"/>
|
||||
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="1577,423,1728,464"/>
|
||||
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2451,423,2601,464"/>
|
||||
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="5,423,156,464"/>
|
||||
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1927,423,2077,464"/>
|
||||
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2276,423,2427,464"/>
|
||||
<area shape="rect" href="window_8cpp.html" title=" " alt="" coords="2625,423,2776,464"/>
|
||||
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="1402,155,1581,196"/>
|
||||
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="1757,244,1940,285"/>
|
||||
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="2263,333,2445,375"/>
|
||||
<area shape="rect" href="table_8hpp.html" title=" " alt="" coords="2370,162,2570,189"/>
|
||||
<area shape="rect" href="automerge_8cpp.html" title=" " alt="" coords="2775,251,2984,278"/>
|
||||
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="3015,251,3186,278"/>
|
||||
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="3213,251,3380,278"/>
|
||||
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="2746,162,2925,189"/>
|
||||
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="3405,244,3548,285"/>
|
||||
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="3573,251,3743,278"/>
|
||||
<area shape="rect" href="composite__decorator_8cpp.html" title=" " alt="" coords="3050,155,3229,196"/>
|
||||
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="3253,162,3423,189"/>
|
||||
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="3767,251,3930,278"/>
|
||||
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="3498,162,3661,189"/>
|
||||
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="3685,162,3871,189"/>
|
||||
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="4018,251,4191,278"/>
|
||||
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="4063,162,4240,189"/>
|
||||
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="4265,162,4443,189"/>
|
||||
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="4468,162,4643,189"/>
|
||||
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="4667,162,4854,189"/>
|
||||
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="4878,162,5049,189"/>
|
||||
<area shape="rect" href="hyperlink_8cpp.html" title=" " alt="" coords="4416,251,4615,278"/>
|
||||
<area shape="rect" href="inverted_8cpp.html" title=" " alt="" coords="4739,251,4931,278"/>
|
||||
<area shape="rect" href="linear__gradient_8cpp.html" title=" " alt="" coords="5005,244,5153,285"/>
|
||||
<area shape="rect" href="node__decorator_8hpp.html" title=" " alt="" coords="3896,155,4039,196"/>
|
||||
<area shape="rect" href="scroll__indicator_8cpp.html" title=" " alt="" coords="5203,244,5350,285"/>
|
||||
<area shape="rect" href="paragraph_8cpp.html" title=" " alt="" coords="5327,162,5531,189"/>
|
||||
<area shape="rect" href="reflect_8cpp.html" title=" " alt="" coords="5555,162,5734,189"/>
|
||||
<area shape="rect" href="separator_8cpp.html" title=" " alt="" coords="5759,162,5957,189"/>
|
||||
<area shape="rect" href="size_8cpp.html" title=" " alt="" coords="5981,162,6145,189"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="canvas_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1Canvas.html">Canvas</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
52
canvas_8hpp__dep__incl.map
Normal file
@ -0,0 +1,52 @@
|
||||
<map id="include/ftxui/dom/canvas.hpp" name="include/ftxui/dom/canvas.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="2931,5,3145,32"/>
|
||||
<area shape="rect" id="node2" href="$elements_8hpp.html" title=" " alt="" coords="2848,80,3076,107"/>
|
||||
<area shape="rect" id="node28" href="$canvas_8cpp.html" title=" " alt="" coords="6221,162,6405,189"/>
|
||||
<area shape="rect" id="node3" href="$component_8hpp.html" title=" " alt="" coords="1301,333,1479,375"/>
|
||||
<area shape="rect" id="node4" href="$button_8cpp.html" title=" " alt="" coords="704,423,855,464"/>
|
||||
<area shape="rect" id="node5" href="$checkbox_8cpp.html" title=" " alt="" coords="879,423,1029,464"/>
|
||||
<area shape="rect" id="node6" href="$collapsible_8cpp.html" title=" " alt="" coords="1053,423,1204,464"/>
|
||||
<area shape="rect" id="node7" href="$component_8cpp.html" title=" " alt="" coords="180,423,331,464"/>
|
||||
<area shape="rect" id="node8" href="$container_8cpp.html" title=" " alt="" coords="355,423,505,464"/>
|
||||
<area shape="rect" id="node9" href="$dropdown_8cpp.html" title=" " alt="" coords="1228,423,1379,464"/>
|
||||
<area shape="rect" id="node10" href="$hoverable_8cpp.html" title=" " alt="" coords="529,423,680,464"/>
|
||||
<area shape="rect" id="node11" href="$input_8cpp.html" title=" " alt="" coords="1752,423,1903,464"/>
|
||||
<area shape="rect" id="node12" href="$maybe_8cpp.html" title=" " alt="" coords="1403,423,1553,464"/>
|
||||
<area shape="rect" id="node13" href="$menu_8cpp.html" title=" " alt="" coords="2101,423,2252,464"/>
|
||||
<area shape="rect" id="node14" href="$modal_8cpp.html" title=" " alt="" coords="1577,423,1728,464"/>
|
||||
<area shape="rect" id="node15" href="$radiobox_8cpp.html" title=" " alt="" coords="2451,423,2601,464"/>
|
||||
<area shape="rect" id="node16" href="$renderer_8cpp.html" title=" " alt="" coords="5,423,156,464"/>
|
||||
<area shape="rect" id="node17" href="$resizable__split_8cpp.html" title=" " alt="" coords="1927,423,2077,464"/>
|
||||
<area shape="rect" id="node18" href="$slider_8cpp.html" title=" " alt="" coords="2276,423,2427,464"/>
|
||||
<area shape="rect" id="node19" href="$window_8cpp.html" title=" " alt="" coords="2625,423,2776,464"/>
|
||||
<area shape="rect" id="node20" href="$component__base_8hpp.html" title=" " alt="" coords="1402,155,1581,196"/>
|
||||
<area shape="rect" id="node21" href="$component__options_8hpp.html" title=" " alt="" coords="1757,244,1940,285"/>
|
||||
<area shape="rect" id="node22" href="$component__options_8cpp.html" title=" " alt="" coords="2263,333,2445,375"/>
|
||||
<area shape="rect" id="node23" href="$table_8hpp.html" title=" " alt="" coords="2370,162,2570,189"/>
|
||||
<area shape="rect" id="node24" href="$automerge_8cpp.html" title=" " alt="" coords="2775,251,2984,278"/>
|
||||
<area shape="rect" id="node25" href="$blink_8cpp.html" title=" " alt="" coords="3015,251,3186,278"/>
|
||||
<area shape="rect" id="node26" href="$bold_8cpp.html" title=" " alt="" coords="3213,251,3380,278"/>
|
||||
<area shape="rect" id="node27" href="$border_8cpp.html" title=" " alt="" coords="2746,162,2925,189"/>
|
||||
<area shape="rect" id="node29" href="$clear__under_8cpp.html" title=" " alt="" coords="3405,244,3548,285"/>
|
||||
<area shape="rect" id="node30" href="$dom_2color_8cpp.html" title=" " alt="" coords="3573,251,3743,278"/>
|
||||
<area shape="rect" id="node31" href="$composite__decorator_8cpp.html" title=" " alt="" coords="3050,155,3229,196"/>
|
||||
<area shape="rect" id="node32" href="$dbox_8cpp.html" title=" " alt="" coords="3253,162,3423,189"/>
|
||||
<area shape="rect" id="node33" href="$dim_8cpp.html" title=" " alt="" coords="3767,251,3930,278"/>
|
||||
<area shape="rect" id="node34" href="$flex_8cpp.html" title=" " alt="" coords="3498,162,3661,189"/>
|
||||
<area shape="rect" id="node35" href="$flexbox_8cpp.html" title=" " alt="" coords="3685,162,3871,189"/>
|
||||
<area shape="rect" id="node36" href="$focus_8cpp.html" title=" " alt="" coords="4018,251,4191,278"/>
|
||||
<area shape="rect" id="node37" href="$frame_8cpp.html" title=" " alt="" coords="4063,162,4240,189"/>
|
||||
<area shape="rect" id="node38" href="$gauge_8cpp.html" title=" " alt="" coords="4265,162,4443,189"/>
|
||||
<area shape="rect" id="node39" href="$graph_8cpp.html" title=" " alt="" coords="4468,162,4643,189"/>
|
||||
<area shape="rect" id="node40" href="$gridbox_8cpp.html" title=" " alt="" coords="4667,162,4854,189"/>
|
||||
<area shape="rect" id="node41" href="$hbox_8cpp.html" title=" " alt="" coords="4878,162,5049,189"/>
|
||||
<area shape="rect" id="node42" href="$hyperlink_8cpp.html" title=" " alt="" coords="4416,251,4615,278"/>
|
||||
<area shape="rect" id="node43" href="$inverted_8cpp.html" title=" " alt="" coords="4739,251,4931,278"/>
|
||||
<area shape="rect" id="node44" href="$linear__gradient_8cpp.html" title=" " alt="" coords="5005,244,5153,285"/>
|
||||
<area shape="rect" id="node45" href="$node__decorator_8hpp.html" title=" " alt="" coords="3896,155,4039,196"/>
|
||||
<area shape="rect" id="node46" href="$scroll__indicator_8cpp.html" title=" " alt="" coords="5203,244,5350,285"/>
|
||||
<area shape="rect" id="node47" href="$paragraph_8cpp.html" title=" " alt="" coords="5327,162,5531,189"/>
|
||||
<area shape="rect" id="node48" href="$reflect_8cpp.html" title=" " alt="" coords="5555,162,5734,189"/>
|
||||
<area shape="rect" id="node49" href="$separator_8cpp.html" title=" " alt="" coords="5759,162,5957,189"/>
|
||||
<area shape="rect" id="node50" href="$size_8cpp.html" title=" " alt="" coords="5981,162,6145,189"/>
|
||||
</map>
|
1
canvas_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
2b1065a562822ff7efea5dffec4dfa7e
|
BIN
canvas_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 478 KiB |
282
canvas_8hpp_source.html
Normal file
@ -0,0 +1,282 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/dom/canvas.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('canvas_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">canvas.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="canvas_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2021 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_DOM_CANVAS_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_DOM_CANVAS_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <cstddef></span> <span class="comment">// for size_t</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <functional></span> <span class="comment">// for function</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <string></span> <span class="comment">// for string</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <unordered_map></span> <span class="comment">// for unordered_map</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="color_8hpp.html">ftxui/screen/color.hpp</a>"</span> <span class="comment">// for Color</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="image_8hpp.html">ftxui/screen/image.hpp</a>"</span> <span class="comment">// for Pixel, Image</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifdef DrawText</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// Workaround for WinUsr.h (via Windows.h) defining macros that break things.</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-drawtext</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#undef DrawText</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  </div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structftxui_1_1Canvas.html"> 23</a></span> <span class="keyword">struct </span><a class="code" href="structftxui_1_1Canvas.html">Canvas</a> {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structftxui_1_1Canvas.html#a3cbcd839ac8597df2e0f351850ec4735"> 25</a></span>  <a class="code" href="structftxui_1_1Canvas.html#a3cbcd839ac8597df2e0f351850ec4735">Canvas</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="structftxui_1_1Canvas.html#a3cbcd839ac8597df2e0f351850ec4735">Canvas</a>(<span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Canvas.html#ad72663daf610f2a0833a2fc3d78e4fdf">width</a>, <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Canvas.html#ad3774f6419003470f54fd495124ef51f">height</a>);</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">// Getters:</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structftxui_1_1Canvas.html#ad72663daf610f2a0833a2fc3d78e4fdf"> 29</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Canvas.html#ad72663daf610f2a0833a2fc3d78e4fdf">width</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> width_; }</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structftxui_1_1Canvas.html#ad3774f6419003470f54fd495124ef51f"> 30</a></span>  <span class="keywordtype">int</span> <a class="code" href="structftxui_1_1Canvas.html#ad3774f6419003470f54fd495124ef51f">height</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> height_; }</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="structftxui_1_1Pixel.html">Pixel</a> <a class="code" href="structftxui_1_1Canvas.html#a656c4e679bf9254e4688f2049989a9bd">GetPixel</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y) <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae"> 33</a></span>  <span class="keyword">using</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a> = std::function<void(<a class="code" href="structftxui_1_1Pixel.html">Pixel</a>&)>;</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment">// Draws using braille characters --------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a5f488ea43e72f25cc25d055bf18dac5b">DrawPointOn</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a64ad8a12830a3341d4a5afb380913474">DrawPointOff</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#afd64176f05f91df2d96e8f3bb0631c51">DrawPointToggle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8707f2585ed8b787b6b14032a5c761a1">DrawPoint</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value);</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8707f2585ed8b787b6b14032a5c761a1">DrawPoint</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8707f2585ed8b787b6b14032a5c761a1">DrawPoint</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2b6800c9a6a93457a921d9b570fb2f30">DrawPointLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2);</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2b6800c9a6a93457a921d9b570fb2f30">DrawPointLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2b6800c9a6a93457a921d9b570fb2f30">DrawPointLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ad21641f8f1fd60aa5f1d149379eba3eb">DrawPointCircle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius);</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ad21641f8f1fd60aa5f1d149379eba3eb">DrawPointCircle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ad21641f8f1fd60aa5f1d149379eba3eb">DrawPointCircle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a5b6388d2515edcfb6c88a39ea56805b2">DrawPointCircleFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius);</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a5b6388d2515edcfb6c88a39ea56805b2">DrawPointCircleFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a5b6388d2515edcfb6c88a39ea56805b2">DrawPointCircleFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a79ee88b3cfe258309041469f707dcf68">DrawPointEllipse</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2);</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a79ee88b3cfe258309041469f707dcf68">DrawPointEllipse</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a79ee88b3cfe258309041469f707dcf68">DrawPointEllipse</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2633b8a556a82c74438fe41b253b39ee">DrawPointEllipseFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2);</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2633b8a556a82c74438fe41b253b39ee">DrawPointEllipseFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a2633b8a556a82c74438fe41b253b39ee">DrawPointEllipseFilled</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  </div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// Draw using box characters -------------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// Block are of size 1x2. y is considered to be a multiple of 2.</span></div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a43cd60e79e418d3173e757a1809fde09">DrawBlockOn</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ad626747e5e54412d0376ba870565dce6">DrawBlockOff</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ab4154641384d18497de60c2626b71a94">DrawBlockToggle</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ae38b2e4f5bcda94c060bb77779d1e339">DrawBlock</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value);</div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ae38b2e4f5bcda94c060bb77779d1e339">DrawBlock</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ae38b2e4f5bcda94c060bb77779d1e339">DrawBlock</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">bool</span> value, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a182a915a7e3fc863f5c222253de01ff1">DrawBlockLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2);</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a182a915a7e3fc863f5c222253de01ff1">DrawBlockLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a182a915a7e3fc863f5c222253de01ff1">DrawBlockLine</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> x2, <span class="keywordtype">int</span> y2, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ac3977d4b06ca96ff799a3b72437c8a0b">DrawBlockCircle</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius);</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ac3977d4b06ca96ff799a3b72437c8a0b">DrawBlockCircle</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ac3977d4b06ca96ff799a3b72437c8a0b">DrawBlockCircle</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#acffdcd5bae224992e155facb0baf4119">DrawBlockCircleFilled</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius);</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#acffdcd5bae224992e155facb0baf4119">DrawBlockCircleFilled</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#acffdcd5bae224992e155facb0baf4119">DrawBlockCircleFilled</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> radius, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8dd75f2dfc5bef37aa2c8bc8cfaf0579">DrawBlockEllipse</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2);</div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8dd75f2dfc5bef37aa2c8bc8cfaf0579">DrawBlockEllipse</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a8dd75f2dfc5bef37aa2c8bc8cfaf0579">DrawBlockEllipse</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a78dc3c908f7ce1c30837bd3043f19526">DrawBlockEllipseFilled</a>(<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> r1, <span class="keywordtype">int</span> r2);</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a78dc3c908f7ce1c30837bd3043f19526">DrawBlockEllipseFilled</a>(<span class="keywordtype">int</span> x1,</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordtype">int</span> y1,</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">int</span> r1,</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordtype">int</span> r2,</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& s);</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a78dc3c908f7ce1c30837bd3043f19526">DrawBlockEllipseFilled</a>(<span class="keywordtype">int</span> x1,</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">int</span> y1,</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">int</span> r1,</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">int</span> r2,</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  </div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="comment">// Draw using normal characters ----------------------------------------------</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// Draw using character of size 2x4 at position (x,y)</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="comment">// x is considered to be a multiple of 2.</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="comment">// y is considered to be a multiple of 4.</span></div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a3791777bd6d3c6f8ff6281efd19a5161">DrawText</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> std::string& value);</div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a3791777bd6d3c6f8ff6281efd19a5161">DrawText</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> std::string& value, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Color.html">Color</a>& <a class="code" href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">color</a>);</div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a3791777bd6d3c6f8ff6281efd19a5161">DrawText</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> std::string& value, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& style);</div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">// Draw using directly pixels or images --------------------------------------</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="comment">// x is considered to be a multiple of 2.</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// y is considered to be a multiple of 4.</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#afde1b1962124ef417569bef59c6dcdcc">DrawPixel</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Pixel.html">Pixel</a>&);</div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#a02b6e8bab532a2c43d3102674e1e1647">DrawImage</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> <a class="code" href="classftxui_1_1Image.html">Image</a>&);</div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// Decorator:</span></div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="comment">// x is considered to be a multiple of 2.</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="comment">// y is considered to be a multiple of 4.</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">void</span> <a class="code" href="structftxui_1_1Canvas.html#ae9e7d3f5b753cf2650057623960d4cb4">Style</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keyword">const</span> <a class="code" href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">Stylizer</a>& style);</div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">bool</span> IsIn(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> x >= 0 && x < width_ && y >= 0 && y < height_;</div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  }</div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">enum</span> CellType {</div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  kCell, <span class="comment">// Units of size 2x4</span></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  kBlock, <span class="comment">// Units of size 2x2</span></div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  kBraille, <span class="comment">// Units of size 1x1</span></div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  };</div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  </div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">struct </span>Cell {</div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  CellType type = kCell;</div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  Pixel content;</div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  };</div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keyword">struct </span>XY {</div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordtype">int</span> x;</div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordtype">int</span> y;</div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> XY& other)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> x == other.x && y == other.y;</div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  }</div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  };</div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keyword">struct </span>XYHash {</div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">size_t</span> operator()(<span class="keyword">const</span> XY& xy)<span class="keyword"> const </span>{</div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  constexpr <span class="keywordtype">size_t</span> shift = 1024;</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> size_t(xy.x) * shift + size_t(xy.y);</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  };</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordtype">int</span> width_ = 0;</div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordtype">int</span> height_ = 0;</div>
|
||||
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  std::unordered_map<XY, Cell, XYHash> storage_;</div>
|
||||
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> };</div>
|
||||
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
|
||||
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  </div>
|
||||
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="preprocessor">#endif </span><span class="comment">// FTXUI_DOM_CANVAS_HPP</span></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Color_html"><div class="ttname"><a href="classftxui_1_1Color.html">ftxui::Color</a></div><div class="ttdoc">A class representing terminal colors.</div><div class="ttdef"><b>Definition:</b> <a href="color_8hpp_source.html#l00020">color.hpp:20</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1Image_html"><div class="ttname"><a href="classftxui_1_1Image.html">ftxui::Image</a></div><div class="ttdoc">A rectangular grid of Pixel.</div><div class="ttdef"><b>Definition:</b> <a href="image_8hpp_source.html#l00017">image.hpp:17</a></div></div>
|
||||
<div class="ttc" id="acolor_8hpp_html"><div class="ttname"><a href="color_8hpp.html">color.hpp</a></div></div>
|
||||
<div class="ttc" id="aimage_8hpp_html"><div class="ttname"><a href="image_8hpp.html">image.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_af61b489da39ca5e24b68e6e1a2b09c0d"><div class="ttname"><a href="namespaceftxui.html#af61b489da39ca5e24b68e6e1a2b09c0d">ftxui::color</a></div><div class="ttdeci">Decorator color(Color)</div><div class="ttdoc">Decorate using a foreground color.</div><div class="ttdef"><b>Definition:</b> <a href="dom_2color_8cpp_source.html#l00110">color.cpp:110</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html"><div class="ttname"><a href="structftxui_1_1Canvas.html">ftxui::Canvas</a></div><div class="ttdef"><b>Definition:</b> <a href="canvas_8hpp_source.html#l00023">canvas.hpp:23</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a02b6e8bab532a2c43d3102674e1e1647"><div class="ttname"><a href="structftxui_1_1Canvas.html#a02b6e8bab532a2c43d3102674e1e1647">ftxui::Canvas::DrawImage</a></div><div class="ttdeci">void DrawImage(int x, int y, const Image &)</div><div class="ttdoc">Draw a predefined image, with top-left corner at the given coordinate You can supply negative coordin...</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00839">canvas.cpp:839</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a182a915a7e3fc863f5c222253de01ff1"><div class="ttname"><a href="structftxui_1_1Canvas.html#a182a915a7e3fc863f5c222253de01ff1">ftxui::Canvas::DrawBlockLine</a></div><div class="ttdeci">void DrawBlockLine(int x1, int y1, int x2, int y2)</div><div class="ttdoc">Draw a line made of block characters.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00531">canvas.cpp:531</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a2633b8a556a82c74438fe41b253b39ee"><div class="ttname"><a href="structftxui_1_1Canvas.html#a2633b8a556a82c74438fe41b253b39ee">ftxui::Canvas::DrawPointEllipseFilled</a></div><div class="ttdeci">void DrawPointEllipseFilled(int x, int y, int r1, int r2)</div><div class="ttdoc">Draw a filled ellipse made of braille dots.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00374">canvas.cpp:374</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a2b6800c9a6a93457a921d9b570fb2f30"><div class="ttname"><a href="structftxui_1_1Canvas.html#a2b6800c9a6a93457a921d9b570fb2f30">ftxui::Canvas::DrawPointLine</a></div><div class="ttdeci">void DrawPointLine(int x1, int y1, int x2, int y2)</div><div class="ttdoc">Draw a line made of braille dots.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00191">canvas.cpp:191</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a3791777bd6d3c6f8ff6281efd19a5161"><div class="ttname"><a href="structftxui_1_1Canvas.html#a3791777bd6d3c6f8ff6281efd19a5161">ftxui::Canvas::DrawText</a></div><div class="ttdeci">void DrawText(int x, int y, const std::string &value)</div><div class="ttdoc">Draw a piece of text.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00785">canvas.cpp:785</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a3cbcd839ac8597df2e0f351850ec4735"><div class="ttname"><a href="structftxui_1_1Canvas.html#a3cbcd839ac8597df2e0f351850ec4735">ftxui::Canvas::Canvas</a></div><div class="ttdeci">Canvas()=default</div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a407f299e079846ce6169f2a709ad4aae"><div class="ttname"><a href="structftxui_1_1Canvas.html#a407f299e079846ce6169f2a709ad4aae">ftxui::Canvas::Stylizer</a></div><div class="ttdeci">std::function< void(Pixel &)> Stylizer</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8hpp_source.html#l00033">canvas.hpp:33</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a43cd60e79e418d3173e757a1809fde09"><div class="ttname"><a href="structftxui_1_1Canvas.html#a43cd60e79e418d3173e757a1809fde09">ftxui::Canvas::DrawBlockOn</a></div><div class="ttdeci">void DrawBlockOn(int x, int y)</div><div class="ttdoc">Draw a block.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00468">canvas.cpp:468</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a5b6388d2515edcfb6c88a39ea56805b2"><div class="ttname"><a href="structftxui_1_1Canvas.html#a5b6388d2515edcfb6c88a39ea56805b2">ftxui::Canvas::DrawPointCircleFilled</a></div><div class="ttdeci">void DrawPointCircleFilled(int x, int y, int radius)</div><div class="ttdoc">Draw a filled circle made of braille dots.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00276">canvas.cpp:276</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a5f488ea43e72f25cc25d055bf18dac5b"><div class="ttname"><a href="structftxui_1_1Canvas.html#a5f488ea43e72f25cc25d055bf18dac5b">ftxui::Canvas::DrawPointOn</a></div><div class="ttdeci">void DrawPointOn(int x, int y)</div><div class="ttdoc">Draw a braille dot.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00137">canvas.cpp:137</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a64ad8a12830a3341d4a5afb380913474"><div class="ttname"><a href="structftxui_1_1Canvas.html#a64ad8a12830a3341d4a5afb380913474">ftxui::Canvas::DrawPointOff</a></div><div class="ttdeci">void DrawPointOff(int x, int y)</div><div class="ttdoc">Erase a braille dot.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00154">canvas.cpp:154</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a656c4e679bf9254e4688f2049989a9bd"><div class="ttname"><a href="structftxui_1_1Canvas.html#a656c4e679bf9254e4688f2049989a9bd">ftxui::Canvas::GetPixel</a></div><div class="ttdeci">Pixel GetPixel(int x, int y) const</div><div class="ttdoc">Get the content of a cell.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00098">canvas.cpp:98</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a78dc3c908f7ce1c30837bd3043f19526"><div class="ttname"><a href="structftxui_1_1Canvas.html#a78dc3c908f7ce1c30837bd3043f19526">ftxui::Canvas::DrawBlockEllipseFilled</a></div><div class="ttdeci">void DrawBlockEllipseFilled(int x1, int y1, int r1, int r2)</div><div class="ttdoc">Draw a filled ellipse made of block characters.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00719">canvas.cpp:719</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a79ee88b3cfe258309041469f707dcf68"><div class="ttname"><a href="structftxui_1_1Canvas.html#a79ee88b3cfe258309041469f707dcf68">ftxui::Canvas::DrawPointEllipse</a></div><div class="ttdeci">void DrawPointEllipse(int x, int y, int r1, int r2)</div><div class="ttdoc">Draw an ellipse made of braille dots.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00310">canvas.cpp:310</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a8707f2585ed8b787b6b14032a5c761a1"><div class="ttname"><a href="structftxui_1_1Canvas.html#a8707f2585ed8b787b6b14032a5c761a1">ftxui::Canvas::DrawPoint</a></div><div class="ttdeci">void DrawPoint(int x, int y, bool value)</div><div class="ttdoc">Draw a braille dot.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00107">canvas.cpp:107</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_a8dd75f2dfc5bef37aa2c8bc8cfaf0579"><div class="ttname"><a href="structftxui_1_1Canvas.html#a8dd75f2dfc5bef37aa2c8bc8cfaf0579">ftxui::Canvas::DrawBlockEllipse</a></div><div class="ttdeci">void DrawBlockEllipse(int x1, int y1, int r1, int r2)</div><div class="ttdoc">Draw an ellipse made of block characters.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00653">canvas.cpp:653</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ab4154641384d18497de60c2626b71a94"><div class="ttname"><a href="structftxui_1_1Canvas.html#ab4154641384d18497de60c2626b71a94">ftxui::Canvas::DrawBlockToggle</a></div><div class="ttdeci">void DrawBlockToggle(int x, int y)</div><div class="ttdoc">Toggle a block. If it is filled, it will be erased. If it is empty, it will be filled.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00509">canvas.cpp:509</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ac3977d4b06ca96ff799a3b72437c8a0b"><div class="ttname"><a href="structftxui_1_1Canvas.html#ac3977d4b06ca96ff799a3b72437c8a0b">ftxui::Canvas::DrawBlockCircle</a></div><div class="ttdeci">void DrawBlockCircle(int x1, int y1, int radius)</div><div class="ttdoc">Draw a circle made of block characters.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00592">canvas.cpp:592</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_acffdcd5bae224992e155facb0baf4119"><div class="ttname"><a href="structftxui_1_1Canvas.html#acffdcd5bae224992e155facb0baf4119">ftxui::Canvas::DrawBlockCircleFilled</a></div><div class="ttdeci">void DrawBlockCircleFilled(int x1, int y1, int radius)</div><div class="ttdoc">Draw a filled circle made of block characters.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00619">canvas.cpp:619</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ad21641f8f1fd60aa5f1d149379eba3eb"><div class="ttname"><a href="structftxui_1_1Canvas.html#ad21641f8f1fd60aa5f1d149379eba3eb">ftxui::Canvas::DrawPointCircle</a></div><div class="ttdeci">void DrawPointCircle(int x, int y, int radius)</div><div class="ttdoc">Draw a circle made of braille dots.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00249">canvas.cpp:249</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ad3774f6419003470f54fd495124ef51f"><div class="ttname"><a href="structftxui_1_1Canvas.html#ad3774f6419003470f54fd495124ef51f">ftxui::Canvas::height</a></div><div class="ttdeci">int height() const</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8hpp_source.html#l00030">canvas.hpp:30</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ad626747e5e54412d0376ba870565dce6"><div class="ttname"><a href="structftxui_1_1Canvas.html#ad626747e5e54412d0376ba870565dce6">ftxui::Canvas::DrawBlockOff</a></div><div class="ttdeci">void DrawBlockOff(int x, int y)</div><div class="ttdoc">Erase a block.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00488">canvas.cpp:488</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ad72663daf610f2a0833a2fc3d78e4fdf"><div class="ttname"><a href="structftxui_1_1Canvas.html#ad72663daf610f2a0833a2fc3d78e4fdf">ftxui::Canvas::width</a></div><div class="ttdeci">int width() const</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8hpp_source.html#l00029">canvas.hpp:29</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ae38b2e4f5bcda94c060bb77779d1e339"><div class="ttname"><a href="structftxui_1_1Canvas.html#ae38b2e4f5bcda94c060bb77779d1e339">ftxui::Canvas::DrawBlock</a></div><div class="ttdeci">void DrawBlock(int x, int y, bool value)</div><div class="ttdoc">Draw a block.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00438">canvas.cpp:438</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_ae9e7d3f5b753cf2650057623960d4cb4"><div class="ttname"><a href="structftxui_1_1Canvas.html#ae9e7d3f5b753cf2650057623960d4cb4">ftxui::Canvas::Style</a></div><div class="ttdeci">void Style(int x, int y, const Stylizer &style)</div><div class="ttdoc">Modify a pixel at a given location.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00861">canvas.cpp:861</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_afd64176f05f91df2d96e8f3bb0631c51"><div class="ttname"><a href="structftxui_1_1Canvas.html#afd64176f05f91df2d96e8f3bb0631c51">ftxui::Canvas::DrawPointToggle</a></div><div class="ttdeci">void DrawPointToggle(int x, int y)</div><div class="ttdoc">Toggle a braille dot. A filled one will be erased, and the other will be drawn.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00172">canvas.cpp:172</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Canvas_html_afde1b1962124ef417569bef59c6dcdcc"><div class="ttname"><a href="structftxui_1_1Canvas.html#afde1b1962124ef417569bef59c6dcdcc">ftxui::Canvas::DrawPixel</a></div><div class="ttdeci">void DrawPixel(int x, int y, const Pixel &)</div><div class="ttdoc">Directly draw a predefined pixel at the given coordinate.</div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00827">canvas.cpp:827</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Pixel_html"><div class="ttname"><a href="structftxui_1_1Pixel.html">ftxui::Pixel</a></div><div class="ttdoc">A Unicode character and its associated style.</div><div class="ttdef"><b>Definition:</b> <a href="pixel_8hpp_source.html#l00015">pixel.hpp:15</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
159
captured__mouse_8hpp.html
Normal file
@ -0,0 +1,159 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/component/captured_mouse.hpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('captured__mouse_8hpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">captured_mouse.hpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||||
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</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="captured__mouse_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2captured__mouse_8hppdep" alt=""/></div>
|
||||
<map name="ainclude_2ftxui_2component_2captured__mouse_8hppdep" id="ainclude_2ftxui_2component_2captured__mouse_8hppdep">
|
||||
<area shape="rect" title=" " alt="" coords="3134,5,3313,47"/>
|
||||
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="1802,95,1981,136"/>
|
||||
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="3345,363,3496,404"/>
|
||||
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2821,363,2972,404"/>
|
||||
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2996,363,3147,404"/>
|
||||
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="3521,363,3694,404"/>
|
||||
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="2539,273,2718,315"/>
|
||||
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1625,273,1803,315"/>
|
||||
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="2123,363,2273,404"/>
|
||||
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1773,363,1924,404"/>
|
||||
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="355,363,505,404"/>
|
||||
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="879,363,1029,404"/>
|
||||
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="5,363,156,404"/>
|
||||
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="1228,363,1379,404"/>
|
||||
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="1599,363,1749,404"/>
|
||||
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="2647,363,2797,404"/>
|
||||
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="180,363,331,404"/>
|
||||
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1948,363,2099,404"/>
|
||||
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="529,363,680,404"/>
|
||||
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2297,363,2448,404"/>
|
||||
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="704,363,855,404"/>
|
||||
<area shape="rect" href="component_2util_8cpp.html" title=" " alt="" coords="1053,363,1204,404"/>
|
||||
<area shape="rect" href="window_8cpp.html" title=" " alt="" coords="2472,363,2623,404"/>
|
||||
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="2028,184,2211,225"/>
|
||||
<area shape="rect" href="loop_8hpp.html" title=" " alt="" coords="3109,273,3287,315"/>
|
||||
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1403,363,1575,404"/>
|
||||
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="1929,273,2110,315"/>
|
||||
<area shape="rect" href="loop_8cpp.html" title=" " alt="" coords="3171,363,3321,404"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="captured__mouse_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:a24b663cb6b0b262055c94d3a03bdd274"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274">CapturedMouse</a> = std::unique_ptr< CapturedMouseInterface ></td></tr>
|
||||
<tr class="separator:a24b663cb6b0b262055c94d3a03bdd274"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
5
captured__mouse_8hpp.js
Normal file
@ -0,0 +1,5 @@
|
||||
var captured__mouse_8hpp =
|
||||
[
|
||||
[ "CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html", "classftxui_1_1CapturedMouseInterface" ],
|
||||
[ "CapturedMouse", "captured__mouse_8hpp.html#a24b663cb6b0b262055c94d3a03bdd274", null ]
|
||||
];
|
30
captured__mouse_8hpp__dep__incl.map
Normal file
@ -0,0 +1,30 @@
|
||||
<map id="include/ftxui/component/captured_mouse.hpp" name="include/ftxui/component/captured_mouse.hpp">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="3134,5,3313,47"/>
|
||||
<area shape="rect" id="node2" href="$component__base_8hpp.html" title=" " alt="" coords="1802,95,1981,136"/>
|
||||
<area shape="rect" id="node8" href="$component_8cpp.html" title=" " alt="" coords="3345,363,3496,404"/>
|
||||
<area shape="rect" id="node19" href="$resizable__split_8cpp.html" title=" " alt="" coords="2821,363,2972,404"/>
|
||||
<area shape="rect" id="node20" href="$slider_8cpp.html" title=" " alt="" coords="2996,363,3147,404"/>
|
||||
<area shape="rect" id="node27" href="$screen__interactive_8cpp.html" title=" " alt="" coords="3521,363,3694,404"/>
|
||||
<area shape="rect" id="node28" href="$screen__interactive_8hpp.html" title=" " alt="" coords="2539,273,2718,315"/>
|
||||
<area shape="rect" id="node3" href="$component_8hpp.html" title=" " alt="" coords="1625,273,1803,315"/>
|
||||
<area shape="rect" id="node4" href="$button_8cpp.html" title=" " alt="" coords="2123,363,2273,404"/>
|
||||
<area shape="rect" id="node5" href="$catch__event_8cpp.html" title=" " alt="" coords="1773,363,1924,404"/>
|
||||
<area shape="rect" id="node6" href="$checkbox_8cpp.html" title=" " alt="" coords="355,363,505,404"/>
|
||||
<area shape="rect" id="node7" href="$collapsible_8cpp.html" title=" " alt="" coords="879,363,1029,404"/>
|
||||
<area shape="rect" id="node10" href="$container_8cpp.html" title=" " alt="" coords="5,363,156,404"/>
|
||||
<area shape="rect" id="node11" href="$dropdown_8cpp.html" title=" " alt="" coords="1228,363,1379,404"/>
|
||||
<area shape="rect" id="node12" href="$hoverable_8cpp.html" title=" " alt="" coords="1599,363,1749,404"/>
|
||||
<area shape="rect" id="node13" href="$input_8cpp.html" title=" " alt="" coords="2647,363,2797,404"/>
|
||||
<area shape="rect" id="node14" href="$maybe_8cpp.html" title=" " alt="" coords="180,363,331,404"/>
|
||||
<area shape="rect" id="node15" href="$menu_8cpp.html" title=" " alt="" coords="1948,363,2099,404"/>
|
||||
<area shape="rect" id="node16" href="$modal_8cpp.html" title=" " alt="" coords="529,363,680,404"/>
|
||||
<area shape="rect" id="node17" href="$radiobox_8cpp.html" title=" " alt="" coords="2297,363,2448,404"/>
|
||||
<area shape="rect" id="node18" href="$renderer_8cpp.html" title=" " alt="" coords="704,363,855,404"/>
|
||||
<area shape="rect" id="node21" href="$component_2util_8cpp.html" title=" " alt="" coords="1053,363,1204,404"/>
|
||||
<area shape="rect" id="node22" href="$window_8cpp.html" title=" " alt="" coords="2472,363,2623,404"/>
|
||||
<area shape="rect" id="node23" href="$component__options_8hpp.html" title=" " alt="" coords="2028,184,2211,225"/>
|
||||
<area shape="rect" id="node25" href="$loop_8hpp.html" title=" " alt="" coords="3109,273,3287,315"/>
|
||||
<area shape="rect" id="node9" href="$component__fuzzer_8cpp.html" title=" " alt="" coords="1403,363,1575,404"/>
|
||||
<area shape="rect" id="node24" href="$component__options_8cpp.html" title=" " alt="" coords="1929,273,2110,315"/>
|
||||
<area shape="rect" id="node26" href="$loop_8cpp.html" title=" " alt="" coords="3171,363,3321,404"/>
|
||||
</map>
|
1
captured__mouse_8hpp__dep__incl.md5
Normal file
@ -0,0 +1 @@
|
||||
fe3e1e68c192ad7713f415227abbf248
|
BIN
captured__mouse_8hpp__dep__incl.png
Normal file
After Width: | Height: | Size: 270 KiB |
131
captured__mouse_8hpp_source.html
Normal file
@ -0,0 +1,131 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: include/ftxui/component/captured_mouse.hpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('captured__mouse_8hpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">captured_mouse.hpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="captured__mouse_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#ifndef FTXUI_CAPTURED_MOUSE_HPP</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#define FTXUI_CAPTURED_MOUSE_HPP</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <memory></span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html"> 10</a></span> <span class="keyword">class </span><a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> {</div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#abc72c038150d1866199c28dffe7ace7b"> 12</a></span>  <a class="code" href="classftxui_1_1CapturedMouseInterface.html#abc72c038150d1866199c28dffe7ace7b">CapturedMouseInterface</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#abb21b580f6362d9f5f4d25c6b8ca54cb"> 13</a></span>  <a class="code" href="classftxui_1_1CapturedMouseInterface.html#abb21b580f6362d9f5f4d25c6b8ca54cb">CapturedMouseInterface</a>(<span class="keyword">const</span> <a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>&) = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#a2f92bdd8e2c098ade383916b8e47b7e0"> 14</a></span>  <a class="code" href="classftxui_1_1CapturedMouseInterface.html#a2f92bdd8e2c098ade383916b8e47b7e0">CapturedMouseInterface</a>(<a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>&&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#a63e78d723ed6ec8d36e4fe26ed46ece3"> 15</a></span>  <a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>& <a class="code" href="classftxui_1_1CapturedMouseInterface.html#a63e78d723ed6ec8d36e4fe26ed46ece3">operator=</a>(<span class="keyword">const</span> <a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>&) = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#af66a58167f96b07af0e936840e68cd7b"> 16</a></span>  <a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>& <a class="code" href="classftxui_1_1CapturedMouseInterface.html#af66a58167f96b07af0e936840e68cd7b">operator=</a>(<a class="code" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>&&) = <span class="keyword">delete</span>;</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classftxui_1_1CapturedMouseInterface.html#af35148d7f798953f8d7e8c1a0e2b2ef0"> 17</a></span>  <span class="keyword">virtual</span> <a class="code" href="classftxui_1_1CapturedMouseInterface.html#af35148d7f798953f8d7e8c1a0e2b2ef0">~CapturedMouseInterface</a>() = <span class="keywordflow">default</span>;</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> };</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274"> 19</a></span> <span class="keyword">using</span> <a class="code" href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274">CapturedMouse</a> = std::unique_ptr<CapturedMouseInterface>;</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: FTXUI_CAPTURED_MOUSE_HPP */</span><span class="preprocessor"></span></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html">ftxui::CapturedMouseInterface</a></div><div class="ttdef"><b>Definition:</b> <a href="captured__mouse_8hpp_source.html#l00010">captured_mouse.hpp:10</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_a2f92bdd8e2c098ade383916b8e47b7e0"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#a2f92bdd8e2c098ade383916b8e47b7e0">ftxui::CapturedMouseInterface::CapturedMouseInterface</a></div><div class="ttdeci">CapturedMouseInterface(CapturedMouseInterface &&)=delete</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_a63e78d723ed6ec8d36e4fe26ed46ece3"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#a63e78d723ed6ec8d36e4fe26ed46ece3">ftxui::CapturedMouseInterface::operator=</a></div><div class="ttdeci">CapturedMouseInterface & operator=(const CapturedMouseInterface &)=default</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_abb21b580f6362d9f5f4d25c6b8ca54cb"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#abb21b580f6362d9f5f4d25c6b8ca54cb">ftxui::CapturedMouseInterface::CapturedMouseInterface</a></div><div class="ttdeci">CapturedMouseInterface(const CapturedMouseInterface &)=default</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_abc72c038150d1866199c28dffe7ace7b"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#abc72c038150d1866199c28dffe7ace7b">ftxui::CapturedMouseInterface::CapturedMouseInterface</a></div><div class="ttdeci">CapturedMouseInterface()=default</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_af35148d7f798953f8d7e8c1a0e2b2ef0"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#af35148d7f798953f8d7e8c1a0e2b2ef0">ftxui::CapturedMouseInterface::~CapturedMouseInterface</a></div><div class="ttdeci">virtual ~CapturedMouseInterface()=default</div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1CapturedMouseInterface_html_af66a58167f96b07af0e936840e68cd7b"><div class="ttname"><a href="classftxui_1_1CapturedMouseInterface.html#af66a58167f96b07af0e936840e68cd7b">ftxui::CapturedMouseInterface::operator=</a></div><div class="ttdeci">CapturedMouseInterface & operator=(CapturedMouseInterface &&)=delete</div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a24b663cb6b0b262055c94d3a03bdd274"><div class="ttname"><a href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274">ftxui::CapturedMouse</a></div><div class="ttdeci">std::unique_ptr< CapturedMouseInterface > CapturedMouse</div><div class="ttdef"><b>Definition:</b> <a href="captured__mouse_8hpp_source.html#l00019">captured_mouse.hpp:19</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
120
catch__event_8cpp.html
Normal file
@ -0,0 +1,120 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/catch_event.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('catch__event_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">catch_event.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="catch__event_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a8d389a7bfa7f56d08563390ec6264eff"><td class="memItemLeft" align="right" valign="top">Component </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a8d389a7bfa7f56d08563390ec6264eff">CatchEvent</a> (Component child, std::function< bool(Event event)> on_event)</td></tr>
|
||||
<tr class="memdesc:a8d389a7bfa7f56d08563390ec6264eff"><td class="mdescLeft"> </td><td class="mdescRight">Return a component, using |on_event| to catch events. This function must returns true when the event has been handled, false otherwise. <a href="namespaceftxui.html#a8d389a7bfa7f56d08563390ec6264eff">More...</a><br /></td></tr>
|
||||
<tr class="separator:a8d389a7bfa7f56d08563390ec6264eff"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad2948235799c010c76c6de861c050c59"><td class="memItemLeft" align="right" valign="top">ComponentDecorator </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ad2948235799c010c76c6de861c050c59">CatchEvent</a> (std::function< bool(Event)> on_event)</td></tr>
|
||||
<tr class="memdesc:ad2948235799c010c76c6de861c050c59"><td class="mdescLeft"> </td><td class="mdescRight">Decorate a component, using |on_event| to catch events. This function must returns true when the event has been handled, false otherwise. <a href="namespaceftxui.html#ad2948235799c010c76c6de861c050c59">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad2948235799c010c76c6de861c050c59"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
5
catch__event_8cpp.js
Normal file
@ -0,0 +1,5 @@
|
||||
var catch__event_8cpp =
|
||||
[
|
||||
[ "CatchEvent", "catch__event_8cpp.html#a8d389a7bfa7f56d08563390ec6264eff", null ],
|
||||
[ "CatchEvent", "catch__event_8cpp.html#ad2948235799c010c76c6de861c050c59", null ]
|
||||
];
|
197
catch__event_8cpp_source.html
Normal file
@ -0,0 +1,197 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/catch_event.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('catch__event_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">catch_event.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="catch__event_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2021 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <functional></span> <span class="comment">// for function</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="component_8hpp.html">ftxui/component/component.hpp</a>"</span> <span class="comment">// for Make, CatchEvent, ComponentDecorator</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="component__base_8hpp.html">ftxui/component/component_base.hpp</a>"</span> <span class="comment">// for Component, ComponentBase</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="event_8hpp.html">ftxui/component/event.hpp</a>"</span> <span class="comment">// for Event</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>  </div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  </div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="keyword">class </span>CatchEventBase : <span class="keyword">public</span> ComponentBase {</div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="comment">// Constructor.</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keyword">explicit</span> CatchEventBase(std::function<<span class="keywordtype">bool</span>(Event)> on_event)</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  : on_event_(std::move(on_event)) {}</div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  </div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  <span class="comment">// Component implementation.</span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keywordtype">bool</span> OnEvent(Event event)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordflow">if</span> (on_event_(event)) {</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">return</span> <a class="code" href="classftxui_1_1ComponentBase.html#ab84629a8fecad2e1cdd426b7ddc72277">ComponentBase::OnEvent</a>(event);</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  }</div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">protected</span>:</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  std::function<bool(Event)> on_event_;</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> };</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">/// @brief Return a component, using |on_event| to catch events. This function</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">/// must returns true when the event has been handled, false otherwise.</span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment">/// @param child The wrapped component.</span></div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment">/// @param on_event The function drawing the interface.</span></div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">/// auto screen = ScreenInteractive::TerminalOutput();</span></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment">/// auto renderer = Renderer([] {</span></div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment">/// return text("My interface");</span></div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">/// });</span></div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">/// auto component = CatchEvent(renderer, [&](Event event) {</span></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">/// if (event == Event::Character('q')) {</span></div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment">/// screen.ExitLoopClosure()();</span></div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment">/// return true;</span></div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="comment">/// }</span></div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">/// return false;</span></div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="comment">/// });</span></div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">/// screen.Loop(component);</span></div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a8d389a7bfa7f56d08563390ec6264eff"> 54</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> <a class="code" href="namespaceftxui.html#a9ca5f7a5be476f63960c07171897ffd7">CatchEvent</a>(<a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> child,</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  std::function<<span class="keywordtype">bool</span>(<a class="code" href="structftxui_1_1Event.html">Event</a> event)> on_event) {</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">auto</span> out = Make<CatchEventBase>(std::move(on_event));</div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  out->Add(std::move(child));</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> out;</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">/// @brief Decorate a component, using |on_event| to catch events. This function</span></div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">/// must returns true when the event has been handled, false otherwise.</span></div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment">/// @param on_event The function drawing the interface.</span></div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">/// auto screen = ScreenInteractive::TerminalOutput();</span></div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment">/// auto renderer = Renderer([] { return text("Hello world"); });</span></div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">/// renderer |= CatchEvent([&](Event event) {</span></div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">/// if (event == Event::Character('q')) {</span></div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment">/// screen.ExitLoopClosure()();</span></div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment">/// return true;</span></div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment">/// }</span></div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment">/// return false;</span></div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">/// });</span></div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment">/// screen.Loop(renderer);</span></div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="namespaceftxui.html#ad2948235799c010c76c6de861c050c59"> 80</a></span> <span class="comment"></span><a class="code" href="namespaceftxui.html#af07b496fe512e3a4863ee546f19e9a6c">ComponentDecorator</a> <a class="code" href="namespaceftxui.html#a9ca5f7a5be476f63960c07171897ffd7">CatchEvent</a>(std::function<<span class="keywordtype">bool</span>(<a class="code" href="structftxui_1_1Event.html">Event</a>)> on_event) {</div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> [on_event = std::move(on_event)](<a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> child) {</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceftxui.html#a9ca5f7a5be476f63960c07171897ffd7">CatchEvent</a>(std::move(child), [on_event = on_event](<a class="code" href="structftxui_1_1Event.html">Event</a> event) {</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keywordflow">return</span> on_event(std::move(event));</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  });</div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  };</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="aclassftxui_1_1ComponentBase_html_ab84629a8fecad2e1cdd426b7ddc72277"><div class="ttname"><a href="classftxui_1_1ComponentBase.html#ab84629a8fecad2e1cdd426b7ddc72277">ftxui::ComponentBase::OnEvent</a></div><div class="ttdeci">virtual bool OnEvent(Event)</div><div class="ttdoc">Called in response to an event.</div><div class="ttdef"><b>Definition:</b> <a href="component_8cpp_source.html#l00123">component.cpp:123</a></div></div>
|
||||
<div class="ttc" id="acomponent_8hpp_html"><div class="ttname"><a href="component_8hpp.html">component.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent__base_8hpp_html"><div class="ttname"><a href="component__base_8hpp.html">component_base.hpp</a></div></div>
|
||||
<div class="ttc" id="aevent_8hpp_html"><div class="ttname"><a href="event_8hpp.html">event.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a3149fb57ff17207d2516790b82503002"><div class="ttname"><a href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">ftxui::Component</a></div><div class="ttdeci">std::shared_ptr< ComponentBase > Component</div><div class="ttdef"><b>Definition:</b> <a href="component__base_8hpp_source.html#l00024">component_base.hpp:24</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a9ca5f7a5be476f63960c07171897ffd7"><div class="ttname"><a href="namespaceftxui.html#a9ca5f7a5be476f63960c07171897ffd7">ftxui::CatchEvent</a></div><div class="ttdeci">Component CatchEvent(Component child, std::function< bool(Event)>)</div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_af07b496fe512e3a4863ee546f19e9a6c"><div class="ttname"><a href="namespaceftxui.html#af07b496fe512e3a4863ee546f19e9a6c">ftxui::ComponentDecorator</a></div><div class="ttdeci">std::function< Component(Component)> ComponentDecorator</div><div class="ttdef"><b>Definition:</b> <a href="component_8hpp_source.html#l00031">component.hpp:31</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Event_html"><div class="ttname"><a href="structftxui_1_1Event.html">ftxui::Event</a></div><div class="ttdoc">Represent an event. It can be key press event, a terminal resize, or more ...</div><div class="ttdef"><b>Definition:</b> <a href="event_8hpp_source.html#l00027">event.hpp:27</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
120
checkbox_8cpp.html
Normal file
@ -0,0 +1,120 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/checkbox.cpp File 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('checkbox_8cpp.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">checkbox.cpp File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a href="checkbox_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:namespaceftxui"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ae0d441d2c83740f187f62db566bbefcd"><td class="memItemLeft" align="right" valign="top">Component </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd">Checkbox</a> (CheckboxOption option)</td></tr>
|
||||
<tr class="memdesc:ae0d441d2c83740f187f62db566bbefcd"><td class="mdescLeft"> </td><td class="mdescRight">Draw checkable element. <a href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae0d441d2c83740f187f62db566bbefcd"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5e9dbb03c44d549f10c96f134269366f"><td class="memItemLeft" align="right" valign="top">Component </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a5e9dbb03c44d549f10c96f134269366f">Checkbox</a> (ConstStringRef label, bool *checked, CheckboxOption option)</td></tr>
|
||||
<tr class="memdesc:a5e9dbb03c44d549f10c96f134269366f"><td class="mdescLeft"> </td><td class="mdescRight">Draw checkable element. <a href="namespaceftxui.html#a5e9dbb03c44d549f10c96f134269366f">More...</a><br /></td></tr>
|
||||
<tr class="separator:a5e9dbb03c44d549f10c96f134269366f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
5
checkbox_8cpp.js
Normal file
@ -0,0 +1,5 @@
|
||||
var checkbox_8cpp =
|
||||
[
|
||||
[ "Checkbox", "checkbox_8cpp.html#ae0d441d2c83740f187f62db566bbefcd", null ],
|
||||
[ "Checkbox", "checkbox_8cpp.html#a5e9dbb03c44d549f10c96f134269366f", null ]
|
||||
];
|
268
checkbox_8cpp_source.html
Normal file
@ -0,0 +1,268 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: src/ftxui/component/checkbox.cpp Source File</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('checkbox_8cpp_source.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">checkbox.cpp</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="checkbox_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2020 Arthur Sonzogni. All rights reserved.</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Use of this source code is governed by the MIT license that can be found in</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// the LICENSE file.</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <functional></span> <span class="comment">// for function</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <utility></span> <span class="comment">// for move</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="component_8hpp.html">ftxui/component/component.hpp</a>"</span> <span class="comment">// for Make, Checkbox</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include "<a class="code" href="component__base_8hpp.html">ftxui/component/component_base.hpp</a>"</span> <span class="comment">// for Component, ComponentBase</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="component__options_8hpp.html">ftxui/component/component_options.hpp</a>"</span> <span class="comment">// for CheckboxOption, EntryState</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="event_8hpp.html">ftxui/component/event.hpp</a>"</span> <span class="comment">// for Event, Event::Return</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="mouse_8hpp.html">ftxui/component/mouse.hpp</a>"</span> <span class="comment">// for Mouse, Mouse::Left, Mouse::Pressed</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "<a class="code" href="elements_8hpp.html">ftxui/dom/elements.hpp</a>"</span> <span class="comment">// for operator|, Element, reflect, focus, nothing, select</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include "<a class="code" href="box_8hpp.html">ftxui/screen/box.hpp</a>"</span> <span class="comment">// for Box</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include "<a class="code" href="ref_8hpp.html">ftxui/util/ref.hpp</a>"</span> <span class="comment">// for Ref, ConstStringRef</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  </div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">namespace </span><a class="code" href="namespaceftxui.html">ftxui</a> {</div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">namespace </span>{</div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">class </span>CheckboxBase : <span class="keyword">public</span> ComponentBase, <span class="keyword">public</span> CheckboxOption {</div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">explicit</span> CheckboxBase(CheckboxOption option)</div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  : CheckboxOption(std::move(option)) {}</div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="comment">// Component implementation.</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> <a class="code" href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">Render</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> is_focused = Focused();</div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> <span class="keywordtype">bool</span> is_active = Active();</div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">auto</span> focus_management = is_focused ? <a class="code" href="namespaceftxui.html#aa2d7d671f184f85e0f396f2610fa6c2e">focus</a> : is_active ? <a class="code" href="namespaceftxui.html#a9e3e2988ed61a129d82d634ad66f7eb1">select</a> : <a class="code" href="namespaceftxui.html#a1bfd3885ac8b40dc82a1103725003c07">nothing</a>;</div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">auto</span> entry_state = EntryState{</div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  *label, *checked, is_active, is_focused || hovered_, -1,</div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  };</div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">auto</span> element = (transform ? transform : <a class="code" href="structftxui_1_1CheckboxOption.html#a41b17a916980353033366c01b15d3cb1">CheckboxOption::Simple</a>().<a class="code" href="structftxui_1_1CheckboxOption.html#afe14c161494dad905597e75661c7b6a0">transform</a>)(</div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  entry_state);</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> element | focus_management | <a class="code" href="namespaceftxui.html#aaff8245861617a3d9e846e99de582a63">reflect</a>(box_);</div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  }</div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
|
||||
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">bool</span> OnEvent(Event event)<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">if</span> (!CaptureMouse(event)) {</div>
|
||||
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  </div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span> (event.is_mouse()) {</div>
|
||||
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> OnMouseEvent(event);</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  hovered_ = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">if</span> (event == <a class="code" href="structftxui_1_1Event.html#a769519ed730b72a53a2e770d6ee44365">Event::Character</a>(<span class="charliteral">' '</span>) || event == <a class="code" href="structftxui_1_1Event.html#ad3ab0b5bcc923c4b994080d45b97e36b">Event::Return</a>) {</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  *checked = !*checked;</div>
|
||||
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  on_change();</div>
|
||||
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  TakeFocus();</div>
|
||||
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
||||
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">bool</span> OnMouseEvent(Event event) {</div>
|
||||
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  hovered_ = box_.Contain(event.mouse().x, event.mouse().y);</div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  </div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">if</span> (!CaptureMouse(event)) {</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  </div>
|
||||
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">if</span> (!hovered_) {</div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  }</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (event.mouse().button == <a class="code" href="structftxui_1_1Mouse.html#a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb">Mouse::Left</a> &&</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  event.mouse().motion == <a class="code" href="structftxui_1_1Mouse.html#a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25">Mouse::Pressed</a>) {</div>
|
||||
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  *checked = !*checked;</div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  on_change();</div>
|
||||
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  TakeFocus();</div>
|
||||
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  </div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  </div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">bool</span> Focusable() const final { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordtype">bool</span> hovered_ = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  Box box_;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> };</div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> } <span class="comment">// namespace</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment">/// @brief Draw checkable element.</span></div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment">/// @param option Additional optional parameters.</span></div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment">/// @see CheckboxBase</span></div>
|
||||
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">/// auto screen = ScreenInteractive::FitComponent();</span></div>
|
||||
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment">/// CheckboxOption option;</span></div>
|
||||
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment">/// option.label = "Make a sandwidth";</span></div>
|
||||
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">/// option.checked = false;</span></div>
|
||||
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment">/// Component checkbox = Checkbox(option);</span></div>
|
||||
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment">/// screen.Loop(checkbox)</span></div>
|
||||
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment">/// ☐ Make a sandwitch</span></div>
|
||||
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"></span><span class="comment">// NOLINTNEXTLINE</span></div>
|
||||
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd"> 108</a></span> <a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> <a class="code" href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd">Checkbox</a>(<a class="code" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a> option) {</div>
|
||||
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordflow">return</span> Make<CheckboxBase>(std::move(option));</div>
|
||||
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> }</div>
|
||||
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"></span> </div>
|
||||
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment">/// @brief Draw checkable element.</span></div>
|
||||
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment">/// @param label The label of the checkbox.</span></div>
|
||||
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">/// @param checked Whether the checkbox is checked or not.</span></div>
|
||||
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment">/// @param option Additional optional parameters.</span></div>
|
||||
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment">/// @ingroup component</span></div>
|
||||
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment">/// @see CheckboxBase</span></div>
|
||||
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment">/// ### Example</span></div>
|
||||
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">/// ```cpp</span></div>
|
||||
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">/// auto screen = ScreenInteractive::FitComponent();</span></div>
|
||||
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment">/// std::string label = "Make a sandwidth";</span></div>
|
||||
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">/// bool checked = false;</span></div>
|
||||
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment">/// Component checkbox = Checkbox(&label, &checked);</span></div>
|
||||
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment">/// screen.Loop(checkbox)</span></div>
|
||||
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment">/// ### Output</span></div>
|
||||
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment">///</span></div>
|
||||
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">/// ```bash</span></div>
|
||||
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment">/// ☐ Make a sandwitch</span></div>
|
||||
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">/// ```</span></div>
|
||||
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"></span><span class="comment">// NOLINTNEXTLINE</span></div>
|
||||
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="namespaceftxui.html#a5e9dbb03c44d549f10c96f134269366f"> 135</a></span> <a class="code" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> <a class="code" href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd">Checkbox</a>(<a class="code" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> label, <span class="keywordtype">bool</span>* checked, <a class="code" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a> option) {</div>
|
||||
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  option.<a class="code" href="structftxui_1_1CheckboxOption.html#a336758144ce2b1095f2a0ef062551f5b">label</a> = std::move(label);</div>
|
||||
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  option.<a class="code" href="structftxui_1_1CheckboxOption.html#ab7741e52624c0d7906159d77edffe27e">checked</a> = checked;</div>
|
||||
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> Make<CheckboxBase>(std::move(option));</div>
|
||||
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div>
|
||||
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
||||
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> } <span class="comment">// namespace ftxui</span></div>
|
||||
<div class="ttc" id="abox_8hpp_html"><div class="ttname"><a href="box_8hpp.html">box.hpp</a></div></div>
|
||||
<div class="ttc" id="aclassftxui_1_1ConstStringRef_html"><div class="ttname"><a href="classftxui_1_1ConstStringRef.html">ftxui::ConstStringRef</a></div><div class="ttdoc">An adapter. Own or reference a constant string. For convenience, this class convert multiple immutabl...</div><div class="ttdef"><b>Definition:</b> <a href="ref_8hpp_source.html#l00094">ref.hpp:94</a></div></div>
|
||||
<div class="ttc" id="acomponent_8hpp_html"><div class="ttname"><a href="component_8hpp.html">component.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent__base_8hpp_html"><div class="ttname"><a href="component__base_8hpp.html">component_base.hpp</a></div></div>
|
||||
<div class="ttc" id="acomponent__options_8hpp_html"><div class="ttname"><a href="component__options_8hpp.html">component_options.hpp</a></div></div>
|
||||
<div class="ttc" id="aelements_8hpp_html"><div class="ttname"><a href="elements_8hpp.html">elements.hpp</a></div></div>
|
||||
<div class="ttc" id="aevent_8hpp_html"><div class="ttname"><a href="event_8hpp.html">event.hpp</a></div></div>
|
||||
<div class="ttc" id="amouse_8hpp_html"><div class="ttname"><a href="mouse_8hpp.html">mouse.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html"><div class="ttname"><a href="namespaceftxui.html">ftxui</a></div><div class="ttdef"><b>Definition:</b> <a href="animation_8hpp_source.html#l00010">animation.hpp:10</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a1bfd3885ac8b40dc82a1103725003c07"><div class="ttname"><a href="namespaceftxui.html#a1bfd3885ac8b40dc82a1103725003c07">ftxui::nothing</a></div><div class="ttdeci">Element nothing(Element element)</div><div class="ttdoc">A decoration doing absolutely nothing.</div><div class="ttdef"><b>Definition:</b> <a href="dom_2util_8cpp_source.html#l00028">util.cpp:28</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a26a62b91b796ce76a5582cf194da3fb2"><div class="ttname"><a href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a></div><div class="ttdeci">std::shared_ptr< Node > Element</div><div class="ttdef"><b>Definition:</b> <a href="elements_8hpp_source.html#l00022">elements.hpp:22</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a3149fb57ff17207d2516790b82503002"><div class="ttname"><a href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">ftxui::Component</a></div><div class="ttdeci">std::shared_ptr< ComponentBase > Component</div><div class="ttdef"><b>Definition:</b> <a href="component__base_8hpp_source.html#l00024">component_base.hpp:24</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_a9e3e2988ed61a129d82d634ad66f7eb1"><div class="ttname"><a href="namespaceftxui.html#a9e3e2988ed61a129d82d634ad66f7eb1">ftxui::select</a></div><div class="ttdeci">Element select(Element)</div><div class="ttdoc">Set the child to be the one selected among its siblings.</div><div class="ttdef"><b>Definition:</b> <a href="frame_8cpp_source.html#l00149">frame.cpp:149</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aa2d7d671f184f85e0f396f2610fa6c2e"><div class="ttname"><a href="namespaceftxui.html#aa2d7d671f184f85e0f396f2610fa6c2e">ftxui::focus</a></div><div class="ttdeci">Element focus(Element)</div><div class="ttdoc">Set the child to be the one in focus globally.</div><div class="ttdef"><b>Definition:</b> <a href="frame_8cpp_source.html#l00156">frame.cpp:156</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_aaff8245861617a3d9e846e99de582a63"><div class="ttname"><a href="namespaceftxui.html#aaff8245861617a3d9e846e99de582a63">ftxui::reflect</a></div><div class="ttdeci">Decorator reflect(Box &box)</div><div class="ttdef"><b>Definition:</b> <a href="reflect_8cpp_source.html#l00043">reflect.cpp:43</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ad4b8aa9392f56ba41e2b421e046a7d83"><div class="ttname"><a href="namespaceftxui.html#ad4b8aa9392f56ba41e2b421e046a7d83">ftxui::Render</a></div><div class="ttdeci">void Render(Screen &screen, const Element &element)</div><div class="ttdoc">Display an element on a ftxui::Screen.</div><div class="ttdef"><b>Definition:</b> <a href="node_8cpp_source.html#l00047">node.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anamespaceftxui_html_ae0d441d2c83740f187f62db566bbefcd"><div class="ttname"><a href="namespaceftxui.html#ae0d441d2c83740f187f62db566bbefcd">ftxui::Checkbox</a></div><div class="ttdeci">Component Checkbox(CheckboxOption options)</div><div class="ttdoc">Draw checkable element.</div><div class="ttdef"><b>Definition:</b> <a href="checkbox_8cpp_source.html#l00108">checkbox.cpp:108</a></div></div>
|
||||
<div class="ttc" id="aref_8hpp_html"><div class="ttname"><a href="ref_8hpp.html">ref.hpp</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1CheckboxOption_html"><div class="ttname"><a href="structftxui_1_1CheckboxOption.html">ftxui::CheckboxOption</a></div><div class="ttdoc">Option for the Checkbox component.</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00135">component_options.hpp:135</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1CheckboxOption_html_a336758144ce2b1095f2a0ef062551f5b"><div class="ttname"><a href="structftxui_1_1CheckboxOption.html#a336758144ce2b1095f2a0ef062551f5b">ftxui::CheckboxOption::label</a></div><div class="ttdeci">ConstStringRef label</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00139">component_options.hpp:139</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1CheckboxOption_html_a41b17a916980353033366c01b15d3cb1"><div class="ttname"><a href="structftxui_1_1CheckboxOption.html#a41b17a916980353033366c01b15d3cb1">ftxui::CheckboxOption::Simple</a></div><div class="ttdeci">static CheckboxOption Simple()</div><div class="ttdoc">Option for standard Checkbox.</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8cpp_source.html#l00262">component_options.cpp:262</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1CheckboxOption_html_ab7741e52624c0d7906159d77edffe27e"><div class="ttname"><a href="structftxui_1_1CheckboxOption.html#ab7741e52624c0d7906159d77edffe27e">ftxui::CheckboxOption::checked</a></div><div class="ttdeci">Ref< bool > checked</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00141">component_options.hpp:141</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1CheckboxOption_html_afe14c161494dad905597e75661c7b6a0"><div class="ttname"><a href="structftxui_1_1CheckboxOption.html#afe14c161494dad905597e75661c7b6a0">ftxui::CheckboxOption::transform</a></div><div class="ttdeci">std::function< Element(const EntryState &)> transform</div><div class="ttdef"><b>Definition:</b> <a href="component__options_8hpp_source.html#l00144">component_options.hpp:144</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Event_html_a769519ed730b72a53a2e770d6ee44365"><div class="ttname"><a href="structftxui_1_1Event.html#a769519ed730b72a53a2e770d6ee44365">ftxui::Event::Character</a></div><div class="ttdeci">static Event Character(std::string)</div><div class="ttdoc">An event corresponding to a given typed character.</div><div class="ttdef"><b>Definition:</b> <a href="event_8cpp_source.html#l00029">event.cpp:29</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Event_html_ad3ab0b5bcc923c4b994080d45b97e36b"><div class="ttname"><a href="structftxui_1_1Event.html#ad3ab0b5bcc923c4b994080d45b97e36b">ftxui::Event::Return</a></div><div class="ttdeci">static const Event Return</div><div class="ttdef"><b>Definition:</b> <a href="event_8hpp_source.html#l00051">event.hpp:51</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Mouse_html_a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb"><div class="ttname"><a href="structftxui_1_1Mouse.html#a03bfec859eac87be20f8952c1eb89de0a9d4d8b0b72fc2659da772d761a3c5ecb">ftxui::Mouse::Left</a></div><div class="ttdeci">@ Left</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8hpp_source.html#l00013">mouse.hpp:13</a></div></div>
|
||||
<div class="ttc" id="astructftxui_1_1Mouse_html_a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25"><div class="ttname"><a href="structftxui_1_1Mouse.html#a099c889d2b948b264c7a665b66e3a9b6a05f4abb2322aa023aba9570c327aff25">ftxui::Mouse::Pressed</a></div><div class="ttdeci">@ Pressed</div><div class="ttdef"><b>Definition:</b> <a href="mouse_8hpp_source.html#l00025">mouse.hpp:25</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
157
classes.html
Normal file
@ -0,0 +1,157 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: Data Structure Index</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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classes.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Data Structure Index</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_B">B</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_D">D</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_N">N</a> | <a class="qindex" href="#letter_O">O</a> | <a class="qindex" href="#letter_P">P</a> | <a class="qindex" href="#letter_R">R</a> | <a class="qindex" href="#letter_S">S</a> | <a class="qindex" href="#letter_T">T</a> | <a class="qindex" href="#letter_U">U</a> | <a class="qindex" href="#letter_W">W</a></div>
|
||||
<div class="classindex">
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_A">A</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">ConstStringListRef::Adapter</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1AnimatedColorOption.html">AnimatedColorOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1AnimatedColorsOption">AnimatedColorsOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#classftxui_1_1AnimationTask">AnimationTask</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1animation_1_1Animator.html">Animator</a> (<a class="el" href="namespaceftxui_1_1animation.html">ftxui::animation</a>)</dd><dd><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_B">B</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Block">Block</a> (<a class="el" href="namespaceftxui_1_1flexbox__helper.html">ftxui::flexbox_helper</a>)</dd><dd><a class="el" href="structftxui_1_1Box.html">Box</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1ButtonOption.html">ButtonOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_C">C</a></dt>
|
||||
<dd><a class="el" href="structftxui_1_1Canvas.html">Canvas</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1Color.html">Color</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1ColorInfo">ColorInfo</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1Screen_1_1Cursor.html">Screen::Cursor</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_D">D</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui.html#structftxui_1_1Dimensions">Dimensions</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1DropdownOption">DropdownOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_E">E</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui_1_1box__helper.html#structftxui_1_1box__helper_1_1Element">Element</a> (<a class="el" href="namespaceftxui_1_1box__helper.html">ftxui::box_helper</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1EntryState">EntryState</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1Event.html">Event</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_F">F</a></dt>
|
||||
<dd><a class="el" href="structftxui_1_1FlexboxConfig.html">FlexboxConfig</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_G">G</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui_1_1flexbox__helper.html#structftxui_1_1flexbox__helper_1_1Global">Global</a> (<a class="el" href="namespaceftxui_1_1flexbox__helper.html">ftxui::flexbox_helper</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_I">I</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1Image.html">Image</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1InputOption.html">InputOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1InputState">InputState</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_L">L</a></dt>
|
||||
<dd><a class="el" href="structftxui_1_1LinearGradient.html">LinearGradient</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1Loop.html">Loop</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_M">M</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui.html#structftxui_1_1MenuEntryOption">MenuEntryOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1MenuOption.html">MenuOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1Mouse.html">Mouse</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_N">N</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1Node.html">Node</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1NodeDecorator.html">NodeDecorator</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_O">O</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1TerminalInputParser.html#unionftxui_1_1TerminalInputParser_1_1Output_8____unnamed2____">TerminalInputParser::Output.__unnamed2__</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_P">P</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1animation_1_1Params.html">Params</a> (<a class="el" href="namespaceftxui_1_1animation.html">ftxui::animation</a>)</dd><dd><a class="el" href="structftxui_1_1Pixel.html">Pixel</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ScreenInteractive_1_1Private.html">ScreenInteractive::Private</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_R">R</a></dt>
|
||||
<dd><a class="el" href="structftxui_1_1RadioboxOption.html">RadioboxOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ReceiverImpl.html">ReceiverImpl</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1Ref.html">Ref</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1ResizableSplitOption">ResizableSplitOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_S">S</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1Screen.html">Screen</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1SenderImpl.html">SenderImpl</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1SliderOption">SliderOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Node::Status</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="structftxui_1_1LinearGradient.html#structftxui_1_1LinearGradient_1_1Stop">LinearGradient::Stop</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1StringRef.html">StringRef</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_T">T</a></dt>
|
||||
<dd><a class="el" href="classftxui_1_1Table.html">Table</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1TableSelection.html">TableSelection</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="classftxui_1_1TerminalInputParser.html">TerminalInputParser</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a name="letter_U">U</a></dt>
|
||||
<dd><a class="el" href="structftxui_1_1UnderlineOption.html">UnderlineOption</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a name="letter_W">W</a></dt>
|
||||
<dd><a class="el" href="namespaceftxui.html#structftxui_1_1WindowOptions">WindowOptions</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd><dd><a class="el" href="namespaceftxui.html#structftxui_1_1WindowRenderState">WindowRenderState</a> (<a class="el" href="namespaceftxui.html">ftxui</a>)</dd></dl>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
302
classftxui_1_1AutoReset.html
Normal file
@ -0,0 +1,302 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: AutoReset< T > Class Template 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1AutoReset.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">AutoReset< T > Class Template Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Assign a value to a variable, reset its old value when going out of scope.
|
||||
<a href="classftxui_1_1AutoReset.html#details">More...</a></p>
|
||||
<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:ae393855d753027bcb3d4d1e1514e6ad4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#ae393855d753027bcb3d4d1e1514e6ad4">AutoReset</a> (T *variable, T new_value)</td></tr>
|
||||
<tr class="separator:ae393855d753027bcb3d4d1e1514e6ad4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5280cdbbbecce1de0ae69bfdca10d7ed"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#a5280cdbbbecce1de0ae69bfdca10d7ed">AutoReset</a> (const <a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> &)=delete</td></tr>
|
||||
<tr class="separator:a5280cdbbbecce1de0ae69bfdca10d7ed"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaef5fed3c034c065dfc218244e112a4e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#aaef5fed3c034c065dfc218244e112a4e">AutoReset</a> (<a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> &&)=delete</td></tr>
|
||||
<tr class="separator:aaef5fed3c034c065dfc218244e112a4e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a787f63a33622b9728d3b5500b3cfcfe0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#a787f63a33622b9728d3b5500b3cfcfe0">operator=</a> (const <a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> &)=delete</td></tr>
|
||||
<tr class="separator:a787f63a33622b9728d3b5500b3cfcfe0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1f5c04c19c90412b705dbb0f7de5a587"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#a1f5c04c19c90412b705dbb0f7de5a587">operator=</a> (<a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a1f5c04c19c90412b705dbb0f7de5a587"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad7e022164fb38a279cca7c6cf478f379"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1AutoReset.html#ad7e022164fb38a279cca7c6cf478f379">~AutoReset</a> ()</td></tr>
|
||||
<tr class="separator:ad7e022164fb38a279cca7c6cf478f379"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><h3>template<typename T><br />
|
||||
class ftxui::AutoReset< T ></h3>
|
||||
|
||||
<p>Assign a value to a variable, reset its old value when going out of scope. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="autoreset_8hpp_source.html#l00013">13</a> of file <a class="el" href="autoreset_8hpp_source.html">autoreset.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="ae393855d753027bcb3d4d1e1514e6ad4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae393855d753027bcb3d4d1e1514e6ad4">◆ </a></span>AutoReset() <span class="overload">[1/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T * </td>
|
||||
<td class="paramname"><em>variable</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>new_value</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">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="autoreset_8hpp_source.html#l00015">15</a> of file <a class="el" href="autoreset_8hpp_source.html">autoreset.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5280cdbbbecce1de0ae69bfdca10d7ed"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5280cdbbbecce1de0ae69bfdca10d7ed">◆ </a></span>AutoReset() <span class="overload">[2/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>< T > & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aaef5fed3c034c065dfc218244e112a4e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aaef5fed3c034c065dfc218244e112a4e">◆ </a></span>AutoReset() <span class="overload">[3/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>< T > && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad7e022164fb38a279cca7c6cf478f379"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad7e022164fb38a279cca7c6cf478f379">◆ </a></span>~AutoReset()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="autoreset_8hpp_source.html#l00023">23</a> of file <a class="el" href="autoreset_8hpp_source.html">autoreset.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a787f63a33622b9728d3b5500b3cfcfe0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a787f63a33622b9728d3b5500b3cfcfe0">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>< T > & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1f5c04c19c90412b705dbb0f7de5a587"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1f5c04c19c90412b705dbb0f7de5a587">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1AutoReset.html">AutoReset</a>< T > && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/util/<a class="el" href="autoreset_8hpp_source.html">autoreset.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
classftxui_1_1AutoReset.js
Normal file
@ -0,0 +1,9 @@
|
||||
var classftxui_1_1AutoReset =
|
||||
[
|
||||
[ "AutoReset", "classftxui_1_1AutoReset.html#ae393855d753027bcb3d4d1e1514e6ad4", null ],
|
||||
[ "AutoReset", "classftxui_1_1AutoReset.html#a5280cdbbbecce1de0ae69bfdca10d7ed", null ],
|
||||
[ "AutoReset", "classftxui_1_1AutoReset.html#aaef5fed3c034c065dfc218244e112a4e", null ],
|
||||
[ "~AutoReset", "classftxui_1_1AutoReset.html#ad7e022164fb38a279cca7c6cf478f379", null ],
|
||||
[ "operator=", "classftxui_1_1AutoReset.html#a787f63a33622b9728d3b5500b3cfcfe0", null ],
|
||||
[ "operator=", "classftxui_1_1AutoReset.html#a1f5c04c19c90412b705dbb0f7de5a587", null ]
|
||||
];
|
280
classftxui_1_1CapturedMouseInterface.html
Normal file
@ -0,0 +1,280 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: CapturedMouseInterface 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1CapturedMouseInterface.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">CapturedMouseInterface Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<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:abc72c038150d1866199c28dffe7ace7b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#abc72c038150d1866199c28dffe7ace7b">CapturedMouseInterface</a> ()=default</td></tr>
|
||||
<tr class="separator:abc72c038150d1866199c28dffe7ace7b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abb21b580f6362d9f5f4d25c6b8ca54cb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#abb21b580f6362d9f5f4d25c6b8ca54cb">CapturedMouseInterface</a> (const <a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> &)=default</td></tr>
|
||||
<tr class="separator:abb21b580f6362d9f5f4d25c6b8ca54cb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2f92bdd8e2c098ade383916b8e47b7e0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#a2f92bdd8e2c098ade383916b8e47b7e0">CapturedMouseInterface</a> (<a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a2f92bdd8e2c098ade383916b8e47b7e0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a63e78d723ed6ec8d36e4fe26ed46ece3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#a63e78d723ed6ec8d36e4fe26ed46ece3">operator=</a> (const <a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> &)=default</td></tr>
|
||||
<tr class="separator:a63e78d723ed6ec8d36e4fe26ed46ece3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af66a58167f96b07af0e936840e68cd7b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#af66a58167f96b07af0e936840e68cd7b">operator=</a> (<a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> &&)=delete</td></tr>
|
||||
<tr class="separator:af66a58167f96b07af0e936840e68cd7b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af35148d7f798953f8d7e8c1a0e2b2ef0"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1CapturedMouseInterface.html#af35148d7f798953f8d7e8c1a0e2b2ef0">~CapturedMouseInterface</a> ()=default</td></tr>
|
||||
<tr class="separator:af35148d7f798953f8d7e8c1a0e2b2ef0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="captured__mouse_8hpp_source.html#l00010">10</a> of file <a class="el" href="captured__mouse_8hpp_source.html">captured_mouse.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="abc72c038150d1866199c28dffe7ace7b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abc72c038150d1866199c28dffe7ace7b">◆ </a></span>CapturedMouseInterface() <span class="overload">[1/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abb21b580f6362d9f5f4d25c6b8ca54cb"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abb21b580f6362d9f5f4d25c6b8ca54cb">◆ </a></span>CapturedMouseInterface() <span class="overload">[2/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2f92bdd8e2c098ade383916b8e47b7e0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2f92bdd8e2c098ade383916b8e47b7e0">◆ </a></span>CapturedMouseInterface() <span class="overload">[3/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af35148d7f798953f8d7e8c1a0e2b2ef0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af35148d7f798953f8d7e8c1a0e2b2ef0">◆ </a></span>~CapturedMouseInterface()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual ~<a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> </td>
|
||||
<td>(</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 class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a63e78d723ed6ec8d36e4fe26ed46ece3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a63e78d723ed6ec8d36e4fe26ed46ece3">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af66a58167f96b07af0e936840e68cd7b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af66a58167f96b07af0e936840e68cd7b">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1CapturedMouseInterface.html">CapturedMouseInterface</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/component/<a class="el" href="captured__mouse_8hpp_source.html">captured_mouse.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
9
classftxui_1_1CapturedMouseInterface.js
Normal file
@ -0,0 +1,9 @@
|
||||
var classftxui_1_1CapturedMouseInterface =
|
||||
[
|
||||
[ "CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html#abc72c038150d1866199c28dffe7ace7b", null ],
|
||||
[ "CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html#abb21b580f6362d9f5f4d25c6b8ca54cb", null ],
|
||||
[ "CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html#a2f92bdd8e2c098ade383916b8e47b7e0", null ],
|
||||
[ "~CapturedMouseInterface", "classftxui_1_1CapturedMouseInterface.html#af35148d7f798953f8d7e8c1a0e2b2ef0", null ],
|
||||
[ "operator=", "classftxui_1_1CapturedMouseInterface.html#a63e78d723ed6ec8d36e4fe26ed46ece3", null ],
|
||||
[ "operator=", "classftxui_1_1CapturedMouseInterface.html#af66a58167f96b07af0e936840e68cd7b", null ]
|
||||
];
|
1364
classftxui_1_1Color.html
Normal file
275
classftxui_1_1Color.js
Normal file
@ -0,0 +1,275 @@
|
||||
var classftxui_1_1Color =
|
||||
[
|
||||
[ "Palette1", "classftxui_1_1Color.html#aa4be56f94fc180d7b070df23c235b0c7", [
|
||||
[ "Default", "classftxui_1_1Color.html#aa4be56f94fc180d7b070df23c235b0c7a79935518a3889663d8688b6b01fff051", null ]
|
||||
] ],
|
||||
[ "Palette16", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802f", [
|
||||
[ "Black", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fac1e9bce8242f443c54c7405223d616cd", null ],
|
||||
[ "Red", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fad3163c1fcda01965b692ec2c3122b743", null ],
|
||||
[ "Green", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fad0784a3f969fe736e8b271a5a161d106", null ],
|
||||
[ "Yellow", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fabf28513245738599d13e3ce36bd16c82", null ],
|
||||
[ "Blue", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802faf5e09dd1da4088464f264b7a3118bff8", null ],
|
||||
[ "Magenta", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fab5059a620e2c7dc57556b1e275c2f9bc", null ],
|
||||
[ "Cyan", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fab0d4738f9c7f12049e52aa4e868bdc8b", null ],
|
||||
[ "GrayLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fadebf1805c024a5504872f795f83a6835", null ],
|
||||
[ "GrayDark", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fade3b52f7f38e412815092547cd6e8be7", null ],
|
||||
[ "RedLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fa0a04dda6f997cd48c0ca74203c501d27", null ],
|
||||
[ "GreenLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fa9827485e548095e18c65045bc8058ce7", null ],
|
||||
[ "YellowLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fa7948fe5f055329af04798409b7ac37b5", null ],
|
||||
[ "BlueLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802faf7cc79a56a740e9c59a156b0b3b93cbd", null ],
|
||||
[ "MagentaLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fa9663f993a3affdf3526fa032cfe5b9f4", null ],
|
||||
[ "CyanLight", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fa61bd7f1290cc0a24e565539a61ba5839", null ],
|
||||
[ "White", "classftxui_1_1Color.html#ae2b6d9670960e89c66d7b76167a0802fab548046646b36c12aa6ba841de500094", null ]
|
||||
] ],
|
||||
[ "Palette256", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcf", [
|
||||
[ "Aquamarine1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf54d1112226e67ee67339a050ae1b352", null ],
|
||||
[ "Aquamarine1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa4db1324d99372274e2414031d1773151", null ],
|
||||
[ "Aquamarine3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfadc172e17e6f05d6e2b0e48c85803a85a", null ],
|
||||
[ "Blue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9eafa8db807f9452108cd02b80cd4adc", null ],
|
||||
[ "Blue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa910d98e6c6282c1c8133f53438beb7ca", null ],
|
||||
[ "Blue3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabb8f8ef3f352a8a9c884fadff1576b13", null ],
|
||||
[ "BlueViolet", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabcd3fa02524f2597996333516267c773", null ],
|
||||
[ "CadetBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa76906c6e4ac2ee22b81bda5a59e335f1", null ],
|
||||
[ "CadetBlueBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacb5d4e2aebcd3abba4c91d055f07513b", null ],
|
||||
[ "Chartreuse1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7d2d4cc3af6756a4eac7d12fbe4775d4", null ],
|
||||
[ "Chartreuse2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa353575e36d1260652eb3d18e73f04cfe", null ],
|
||||
[ "Chartreuse2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6338086ae05e58041188d89165d87c1a", null ],
|
||||
[ "Chartreuse3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2f3df27b5ed05a3e040deec31c684003", null ],
|
||||
[ "Chartreuse3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2087d90de0840d3f15fad878ba4b4fc4", null ],
|
||||
[ "Chartreuse4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa734cd2fab3e94385552fc745665bcc98", null ],
|
||||
[ "CornflowerBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab4dcc712554f602559b3f9b7662ea4dd", null ],
|
||||
[ "Cornsilk1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9d7dd269922a0e2fac6366c623ed3d45", null ],
|
||||
[ "Cyan1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa35e9559f51c82a7adda45276bbedb0f4", null ],
|
||||
[ "Cyan2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacc49853d1836ecf3b66c4b8c568aba3f", null ],
|
||||
[ "Cyan3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7a36fc7d64942362d706fad5544517d1", null ],
|
||||
[ "DarkBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa4d5c4dd6c3cf0fe617dec801025bd76", null ],
|
||||
[ "DarkCyan", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa180097c82c1863b9c2f94b41d341c529", null ],
|
||||
[ "DarkGoldenrod", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab5d8a9760923e3357c167fc19de8a914", null ],
|
||||
[ "DarkGreen", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6c1a381d726d9c383c05b9ca12682e4f", null ],
|
||||
[ "DarkKhaki", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa480194578592f6fc90b8b6a1a1f66e8b", null ],
|
||||
[ "DarkMagenta", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2ba5febce0999080bcfe1ef92192fe12", null ],
|
||||
[ "DarkMagentaBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0e32b2f735ea792ab1d5253d3e631241", null ],
|
||||
[ "DarkOliveGreen1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa4a1641f09fbb37751ade39859adbcfaa", null ],
|
||||
[ "DarkOliveGreen1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa4e0500dd80f0e6f0a2a1a93de953cf86", null ],
|
||||
[ "DarkOliveGreen2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaad55a68e83744f717a7f83f7a8fd265f", null ],
|
||||
[ "DarkOliveGreen3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaeca91c2f996796b37a2123515356ded3", null ],
|
||||
[ "DarkOliveGreen3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad6dc23b32b2396e59cfc48238fd05bd8", null ],
|
||||
[ "DarkOliveGreen3Ter", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7a607c03adbcbd4b210fc095272a76a0", null ],
|
||||
[ "DarkOrange", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2458c6f4cddf4f28bf1285975975b987", null ],
|
||||
[ "DarkOrange3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa08efc0d59d20277a3c2f01473250108c", null ],
|
||||
[ "DarkOrange3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa3def467cbbb99502637734c3bd2ce456", null ],
|
||||
[ "DarkRed", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa556650aa9f007ea0239e66d3ddf26759", null ],
|
||||
[ "DarkRedBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa3bcdc58abc2165b0032a207e9d6883d", null ],
|
||||
[ "DarkSeaGreen", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa380e1f43f086bd475d720c459fcff2a8", null ],
|
||||
[ "DarkSeaGreen1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaded95d3c0d616d9658b034e9ae705bf5", null ],
|
||||
[ "DarkSeaGreen1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa691f28c053f9d2a12db86b8aa396374b", null ],
|
||||
[ "DarkSeaGreen2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad5089e0939bbe16ed485053e771e8a68", null ],
|
||||
[ "DarkSeaGreen2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac388011f4493d875983a3c7264e7ded5", null ],
|
||||
[ "DarkSeaGreen3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa02af538b8573bc9c037822273620864f", null ],
|
||||
[ "DarkSeaGreen3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7b2765271febec45b933598f18a7ca98", null ],
|
||||
[ "DarkSeaGreen4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabda195126fea1b4f0aa6d25513820ca0", null ],
|
||||
[ "DarkSeaGreen4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa393410b62bd90565aa0c25e61c92d999", null ],
|
||||
[ "DarkSlateGray1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfafb40765294d1d25a5ec1ec17d3ee4ae8", null ],
|
||||
[ "DarkSlateGray2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa29221856aecf72cfe57d5ca2e6d41b42", null ],
|
||||
[ "DarkSlateGray3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0621f3f774389bc57973bbed3c78b9f7", null ],
|
||||
[ "DarkTurquoise", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6a5df4f33663381387285b54ee22ab78", null ],
|
||||
[ "DarkViolet", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0c92c7e17edeca09b7c63c8a783a562f", null ],
|
||||
[ "DarkVioletBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9870a3dcf46498ca4a10be946521097d", null ],
|
||||
[ "DeepPink1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad05d6a1937a822876238056c449d358a", null ],
|
||||
[ "DeepPink1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa65e73df447238ae75a0d07efb65dbe9e", null ],
|
||||
[ "DeepPink2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaeef51aafc2cd821d225e0da0c53f8e20", null ],
|
||||
[ "DeepPink3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfafe2c78801538b191a773d879ce8ef205", null ],
|
||||
[ "DeepPink3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabff5bbcace3282974cfa06467832cb79", null ],
|
||||
[ "DeepPink4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf13fb129c07396292da1f7530914f07d", null ],
|
||||
[ "DeepPink4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa26e5234f400791a8e9e7850ba7cf6df8", null ],
|
||||
[ "DeepPink4Ter", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac8deabe72bda5e1baf1db1ffc1edf966", null ],
|
||||
[ "DeepSkyBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa601eba969cf1007265ed79e626d49be7", null ],
|
||||
[ "DeepSkyBlue2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa932fa24051e9217b181a71e7491bb214", null ],
|
||||
[ "DeepSkyBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa99066355a2c8a3d09741cc7318a41dbc", null ],
|
||||
[ "DeepSkyBlue3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8986a4db4b9a9e78822a35345484d23a", null ],
|
||||
[ "DeepSkyBlue4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0bedec2878fd084bb46dcd7f7dd3b9aa", null ],
|
||||
[ "DeepSkyBlue4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad0cc3282e3ba7e9d833052832a54fdc3", null ],
|
||||
[ "DeepSkyBlue4Ter", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa98b88c697db6fc8899bee87fa24e86dd", null ],
|
||||
[ "DodgerBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6902167c73e03c1214dae9265c9a9523", null ],
|
||||
[ "DodgerBlue2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa4bfe8de454eabc37639b32813912000e", null ],
|
||||
[ "DodgerBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf82b272abcc583f2c0ac11d6b22c45ca", null ],
|
||||
[ "Gold1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf02f1d575ceca96dc56df1295a73c007", null ],
|
||||
[ "Gold3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa96bebc8d90d9444dd8fe563037cc2be2", null ],
|
||||
[ "Gold3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa7e5b2921c53d39581597da20ce2f338", null ],
|
||||
[ "Green1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8db72e307df54b6fd021fd0eff7d5a5f", null ],
|
||||
[ "Green3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa061b2388532ed2cf150f5ef83646ae2", null ],
|
||||
[ "Green3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9b41b1aeadc19f83c8292978c1e40af1", null ],
|
||||
[ "Green4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa36b7f9cbbb6e3d6d5e9df9abcbf348c3", null ],
|
||||
[ "GreenYellow", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacd28fdc2094a8c7b0d90e51b38b85533", null ],
|
||||
[ "Grey0", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2c49667d6b3e650b346c88d7e3fd5590", null ],
|
||||
[ "Grey100", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa6cbc92ab0733f3e33cf31563dc865c4", null ],
|
||||
[ "Grey11", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac449ae3543129be859f6e1f2ea29c8be", null ],
|
||||
[ "Grey15", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa461a25896feac74f19be7117ae19fefe", null ],
|
||||
[ "Grey19", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0250546ff32c86258542b95876090e28", null ],
|
||||
[ "Grey23", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad715d2046e5e2d3b6bb6e2127834c485", null ],
|
||||
[ "Grey27", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9306e0c6a01240c9fdfab25f3eaa0634", null ],
|
||||
[ "Grey3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa81c7178d2e73d4fd43861817b9b32c9d", null ],
|
||||
[ "Grey30", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa2991b68c782e1ce0b7e701e2a8a8298", null ],
|
||||
[ "Grey35", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa94bb0f2f713f3ab31a7bfd224fe33e7", null ],
|
||||
[ "Grey37", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa67645d98e45108256aac9234935510e3", null ],
|
||||
[ "Grey39", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae50ed802592da7fedcbd76ca96341d89", null ],
|
||||
[ "Grey42", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1cb673228bc4530517e8813bec443e7d", null ],
|
||||
[ "Grey46", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7310f159106d0f63cca0ddf0c1962ff7", null ],
|
||||
[ "Grey50", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1228fc714bdb452c1efc4b9754751de7", null ],
|
||||
[ "Grey53", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7a56c10be7ecd80795860dcdc6eff354", null ],
|
||||
[ "Grey54", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa660a7e64726c75510f4e1cd1f63ccb09", null ],
|
||||
[ "Grey58", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa3aaa86564267b4c90a2d6bb966c35f90", null ],
|
||||
[ "Grey62", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa64ccec5866654552e080a406314c2b0c", null ],
|
||||
[ "Grey63", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa084969e9df558ecd204bcec54bc9b03", null ],
|
||||
[ "Grey66", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1cccb7d918d79a0240c135479d58b2ec", null ],
|
||||
[ "Grey69", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2ddd20c7af3e7519c138e5dfd06f188c", null ],
|
||||
[ "Grey7", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9918508956b5ace54699264567757916", null ],
|
||||
[ "Grey70", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae828b663bd8be2f7efd8b2f343a06444", null ],
|
||||
[ "Grey74", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7a54ca8cbf5ee4d7af93f4d08d12c9e3", null ],
|
||||
[ "Grey78", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa310ea068000acabef43ec4a4b65c3121", null ],
|
||||
[ "Grey82", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab890ade13f8f5bff23c313dd9035f7f6", null ],
|
||||
[ "Grey84", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6539b5d08bbd9bd011bd67aea17cd04f", null ],
|
||||
[ "Grey85", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa812849e32b590f8a114804f6b8dde0e8", null ],
|
||||
[ "Grey89", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa3b4692eb62f7c5065c28134769615e0", null ],
|
||||
[ "Grey93", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa14181b363496871a7c2f91555a6d8a68", null ],
|
||||
[ "Honeydew2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacfd861941ef13f197407b7d02deaf617", null ],
|
||||
[ "HotPink", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad886c67902578a7336b821b1cb279c4e", null ],
|
||||
[ "HotPink2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1b701a7828d1930b59b76d091913e7d1", null ],
|
||||
[ "HotPink3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa5b9fcd5ea12531a4fb1273743063f49f", null ],
|
||||
[ "HotPink3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa073af5071fd22b51b77f43766b86d6a5", null ],
|
||||
[ "HotPinkBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac178a78c367fd250556adaa1b9ad4730", null ],
|
||||
[ "IndianRed", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaddee00c86a353e58b10fb84a0b52481c", null ],
|
||||
[ "IndianRed1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa46aed3d2538a5e3a7d6ae0f6b116a61a", null ],
|
||||
[ "IndianRed1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa4a04ff1096e80fe3d85a78e2ab155873", null ],
|
||||
[ "IndianRedBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8bc829f77e4ff418dcf2efa85a87e329", null ],
|
||||
[ "Khaki1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1ee17e1e2f41c0175bd6202e1c345a82", null ],
|
||||
[ "Khaki3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa3d0d766baf12a67f81a152cabf151f6a", null ],
|
||||
[ "LightCoral", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa1b3ec93b81f5cfafd6fd2328904ced8", null ],
|
||||
[ "LightCyan1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac98b5a34ad5c17b3544e5c29521adb6a", null ],
|
||||
[ "LightCyan3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6d6da936c52e5dadcd790ecb07dcbb1a", null ],
|
||||
[ "LightGoldenrod1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa25d536c972c837da1a4698982d12df00", null ],
|
||||
[ "LightGoldenrod2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa03fd8d3402a3b6314c737b8d00f65f4b", null ],
|
||||
[ "LightGoldenrod2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabcd883ae7f03e4115b274fba499ce91a", null ],
|
||||
[ "LightGoldenrod2Ter", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa96e9b3fdf30a2f143cb4bfd844742d71", null ],
|
||||
[ "LightGoldenrod3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa32e50d1fe92fabe310b25b9400c25cd7", null ],
|
||||
[ "LightGreen", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6f3bae902f4a1a3b69152ad13382ab18", null ],
|
||||
[ "LightGreenBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa33510b83ef8df69f709f38f77e375193", null ],
|
||||
[ "LightPink1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa07f3153f6b04f8aeb0925d789d79660c", null ],
|
||||
[ "LightPink3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa253e182f6f26ad7cfae773feb6493c57", null ],
|
||||
[ "LightPink4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0956f6a62142bbfdf7915d1d9abacb81", null ],
|
||||
[ "LightSalmon1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa523f5d7969774dd37e38382a9d05e3a4", null ],
|
||||
[ "LightSalmon3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9b742f7ba68078b409a6fc2bf76de5c4", null ],
|
||||
[ "LightSalmon3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacb0ea3d16e515f91b1071099413a36c7", null ],
|
||||
[ "LightSeaGreen", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6ff417c700a8e53aeb7fe424e89a1cbd", null ],
|
||||
[ "LightSkyBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa2290ccd3da3d1ea3e508923148ae824", null ],
|
||||
[ "LightSkyBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa267e864d226cfe79c1a1d3e78fdd7eb5", null ],
|
||||
[ "LightSkyBlue3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa3a8990dd2aee1e219cc7222528ee8e0c", null ],
|
||||
[ "LightSlateBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab7c34cf2bc4382faf2477db06ce68875", null ],
|
||||
[ "LightSlateGrey", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0789c7e5fa07674a45db810280aac1bb", null ],
|
||||
[ "LightSteelBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfadf56a107dda30539c38643b744c312bb", null ],
|
||||
[ "LightSteelBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7daff90c932ad36e146923fced98cb4d", null ],
|
||||
[ "LightSteelBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf66424457d48a1e9f30467a6b4d9f735", null ],
|
||||
[ "LightYellow3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa602cbd76a18ddce2b63afa9dcbba0f8e", null ],
|
||||
[ "Magenta1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa314daa7c2027494055655d34677458b1", null ],
|
||||
[ "Magenta2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa0270d909214e1a221e1937b3cf406ba", null ],
|
||||
[ "Magenta2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfabe530bee1037e2b3a133e8dbc5ffa585", null ],
|
||||
[ "Magenta3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad8a4fa649974fb5c836a14496827fdd5", null ],
|
||||
[ "Magenta3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaef7480a93b72c17e8023e9f7c7944b38", null ],
|
||||
[ "Magenta3Ter", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac6ab7a76048a843b6eb86c062c216cab", null ],
|
||||
[ "MediumOrchid", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9c685ae3aad1eaad70ff070436be85b3", null ],
|
||||
[ "MediumOrchid1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa13a18f95c27e724ea9a1e7286f42c473", null ],
|
||||
[ "MediumOrchid1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa049a7bc19d9cacd4e00232d01f9680e6", null ],
|
||||
[ "MediumOrchid3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa5d8f598938ed69b4f04b843abfadc88b", null ],
|
||||
[ "MediumPurple", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa99b482dd24e473ef7ddcbddece67e041", null ],
|
||||
[ "MediumPurple1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf5552cc28a449506e131c050fef88e89", null ],
|
||||
[ "MediumPurple2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac3210de935f096669b79a8575e9c4578", null ],
|
||||
[ "MediumPurple2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa50222fd671c2f6a5f81108f8e4b05aa9", null ],
|
||||
[ "MediumPurple3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa6d22ae8ac2c4e98b291f40225a8874e8", null ],
|
||||
[ "MediumPurple3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2d0fa96a55bf3d9763b465ecbd72566d", null ],
|
||||
[ "MediumPurple4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae90010fe78fb7605fc25e5e08f07e596", null ],
|
||||
[ "MediumSpringGreen", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae4e73e4c0464a9ded093be857551d290", null ],
|
||||
[ "MediumTurquoise", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7875d2ea24878490b89176952e9db784", null ],
|
||||
[ "MediumVioletRed", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8ca5789305e4c75d51a3acc1f1b8c0a9", null ],
|
||||
[ "MistyRose1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa11d00787c0df60110d76fc3d098b2c1b", null ],
|
||||
[ "MistyRose3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab7afa85f412a5bcede9674099b956a78", null ],
|
||||
[ "NavajoWhite1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa78e7bd911b2b1619237ec497cd3727a7", null ],
|
||||
[ "NavajoWhite3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa345621aa87c50e806627e1f4a1e50a2", null ],
|
||||
[ "NavyBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0358bb70d298b289263c397f49820844", null ],
|
||||
[ "Orange1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa204b0d328d6009cf3947fee021fd8f9e", null ],
|
||||
[ "Orange3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa00cd573911b5b30d18a11a33c6fc522b", null ],
|
||||
[ "Orange4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa89cffa8b9f4fee6609397ae4070f9d6d", null ],
|
||||
[ "Orange4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad2e88ff3a0d3feeec0b894602de2bdf8", null ],
|
||||
[ "OrangeRed1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa38540818f938e6576a3444b70118dbae", null ],
|
||||
[ "Orchid", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2a4b392d52ff5f8074a7ddded3984e75", null ],
|
||||
[ "Orchid1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8c9438fb930107e9c02fc9418fe1d24a", null ],
|
||||
[ "Orchid2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfadbf13507a7e98310795b8c59c3ec2f92", null ],
|
||||
[ "PaleGreen1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa37e5d9f46ab5a7952f9cdf0a3cc8925", null ],
|
||||
[ "PaleGreen1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa115628c4a676f43dc9a5791c927e7048", null ],
|
||||
[ "PaleGreen3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa73f2e82908260a1c80e9cdffd7c80b05", null ],
|
||||
[ "PaleGreen3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa05657d514246de9444d35bfd78da177d", null ],
|
||||
[ "PaleTurquoise1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2c1b8b84117604af63923758665c0762", null ],
|
||||
[ "PaleTurquoise4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfafebf48dd9c5efb72a880db1800b70cb4", null ],
|
||||
[ "PaleVioletRed1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7b52566a531a122cc807cd5698659f6f", null ],
|
||||
[ "Pink1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab1b14b4665532f810353fbd89ba7bf69", null ],
|
||||
[ "Pink3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa18d97cfab35116e2049378e4410b0563", null ],
|
||||
[ "Plum1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa3c254e3ced4cbe2836a246270317ac1", null ],
|
||||
[ "Plum2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa383cc742bb6efae64c17af4b0159f2f1", null ],
|
||||
[ "Plum3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab2b302d3a548112c82dbe295f1cace40", null ],
|
||||
[ "Plum4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa69b6a24bf00f2a9278f12241e176106c", null ],
|
||||
[ "Purple", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0102772e56e7f068bdb57bf2905f7c09", null ],
|
||||
[ "Purple3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa3ba6254f6df4ad7c05ee0be4ccd4bce0", null ],
|
||||
[ "Purple4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfacb508ce5a099dbfa4e04cd59530f7f0c", null ],
|
||||
[ "Purple4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1dfe93e583d4f1a3538c40ce29208e64", null ],
|
||||
[ "PurpleBis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae855e26440338753abef27e7b999ce5b", null ],
|
||||
[ "Red1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa62acd44726f02a17ba2a17c1cf253639", null ],
|
||||
[ "Red3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa37bd25cf1e1fe1eeb8e4840dbc863dac", null ],
|
||||
[ "Red3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2925c3081d309e0d11612a0dcd564379", null ],
|
||||
[ "RosyBrown", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa5104c5c0a54bc5ac1dc83e20c75dbea", null ],
|
||||
[ "RoyalBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0dbe4adc6031521d77fc91e09f8d3fbf", null ],
|
||||
[ "Salmon1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa664067df16558f65cc3d46609a03dfab", null ],
|
||||
[ "SandyBrown", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa64269c060a2fc56cb77c12360cd3a28e", null ],
|
||||
[ "SeaGreen1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8e2c9e620d6245638b27d9c1fa2d0545", null ],
|
||||
[ "SeaGreen1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7819209c8bfe13fbfcb2cde9a296f7b6", null ],
|
||||
[ "SeaGreen2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa1b69dc4c281a32346b8d2bab20dd1aef", null ],
|
||||
[ "SeaGreen3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa5b862c5164d4597b28fba03335a834cf", null ],
|
||||
[ "SkyBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac47bacbed84298fdf72215fe2312ce64", null ],
|
||||
[ "SkyBlue2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa1172e54ed7e62aa4ebcea4b453f5dcc", null ],
|
||||
[ "SkyBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2dfa52861bc8b2a870e5166e969db2c7", null ],
|
||||
[ "SlateBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa97807edc577e1d5d3bc271c3a4ced7f4", null ],
|
||||
[ "SlateBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfae53ce2149f6b9e7da24472b5112f7963", null ],
|
||||
[ "SlateBlue3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad477f91096f698a2b266a1bf26cd456b", null ],
|
||||
[ "SpringGreen1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa8e70ae2a69a90e87e679685d6461b6e8", null ],
|
||||
[ "SpringGreen2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac85363887f660b5879e353bac03dab49", null ],
|
||||
[ "SpringGreen2Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfad038ac30c015021853f183054c51c0c5", null ],
|
||||
[ "SpringGreen3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa5a87a3e9a8af9561a373ff63e740223e", null ],
|
||||
[ "SpringGreen3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf19e26246ad6f4e4de44efb6d2b4e1c6", null ],
|
||||
[ "SpringGreen4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf3817720cb5b18b16b8d6c520a61748e", null ],
|
||||
[ "SteelBlue", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa9224e340e6d918555c68ac2f1dc80b04", null ],
|
||||
[ "SteelBlue1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa050bb4a5d79a1dac6aae25ce8734c973", null ],
|
||||
[ "SteelBlue1Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaf400af64197a052be4d59c521104cb2a", null ],
|
||||
[ "SteelBlue3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0a49900e5a03f7545262d90592bfba92", null ],
|
||||
[ "Tan", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab492a96cd2b9bb37c81b8451a42889d9", null ],
|
||||
[ "Thistle1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaaa1937f76b1f6c26f042a5cea129d661", null ],
|
||||
[ "Thistle3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa7e48d71618f8e50aed23876c3103859b", null ],
|
||||
[ "Turquoise2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa0514acacf99b53570d7a2ee25dde1f5a", null ],
|
||||
[ "Turquoise4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac0d913fe38afad9dad5a51083ebc1e86", null ],
|
||||
[ "Violet", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa94a3ee3884eb2af70a2d764a4f06e79d", null ],
|
||||
[ "Wheat1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa2919dbb2ef2f19e560ee2a4f21874373", null ],
|
||||
[ "Wheat4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaa3fee165b16150ce4df5f4fcecca7407", null ],
|
||||
[ "Yellow1", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa18f6dad40423c7708a467fb630f59048", null ],
|
||||
[ "Yellow2", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfac571c9dd674c4e7301b11cee12715bdf", null ],
|
||||
[ "Yellow3", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa64545058cba31bf28f7cc75072664ec2", null ],
|
||||
[ "Yellow3Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfa67ae91aade6999e17c552ebe197c3a7f", null ],
|
||||
[ "Yellow4", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfab60ac0c6b49456d0de7ca3388f19862a", null ],
|
||||
[ "Yellow4Bis", "classftxui_1_1Color.html#abd07c48f62cc507fafa2486a43130fcfaaf28e9bd6542c570b963f36620b181f7", null ]
|
||||
] ],
|
||||
[ "Color", "classftxui_1_1Color.html#a1589b83974b42a2f3315624f14c3c92c", null ],
|
||||
[ "Color", "classftxui_1_1Color.html#a3c93cb793b88256235f17235c9359b35", null ],
|
||||
[ "Color", "classftxui_1_1Color.html#a55decaa0b2ab846729582f5f7b6acb49", null ],
|
||||
[ "Color", "classftxui_1_1Color.html#a4f2602aacaf27a6482580fea0f7de0d2", null ],
|
||||
[ "Color", "classftxui_1_1Color.html#a92d70d7572b7a07d2af4ff650e272e08", null ],
|
||||
[ "operator==", "classftxui_1_1Color.html#a66275ebe4681464e082660fa6be9ba28", null ],
|
||||
[ "operator!=", "classftxui_1_1Color.html#a5db052159bd2c738ea453d9b9600513a", null ],
|
||||
[ "Print", "classftxui_1_1Color.html#acfe358aa128835387b6c2b7ffe22bab5", null ],
|
||||
[ "IsOpaque", "classftxui_1_1Color.html#a74deffc6b6c7e07b3ec67766ff35abba", null ]
|
||||
];
|
876
classftxui_1_1ComponentBase.html
Normal file
@ -0,0 +1,876 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: ComponentBase 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1ComponentBase.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-methods">Protected Member Functions</a> |
|
||||
<a href="#pro-attribs">Protected Attributes</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ComponentBase Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>It implement rendering itself as <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a>. It implement keyboard navigation by responding to <a class="el" href="structftxui_1_1Event.html" title="Represent an event. It can be key press event, a terminal resize, or more ...">ftxui::Event</a>.
|
||||
<a href="classftxui_1_1ComponentBase.html#details">More...</a></p>
|
||||
|
||||
<p>Inherited by CatchEventBase, ContainerBase, and MenuBase.</p>
|
||||
<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:ad2a5b6ce11bc7a8ce1150cf0ba9144c0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#ad2a5b6ce11bc7a8ce1150cf0ba9144c0">ComponentBase</a> (<a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> children)</td></tr>
|
||||
<tr class="separator:ad2a5b6ce11bc7a8ce1150cf0ba9144c0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae490d465a018a9d81bb4e30604708fba"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#ae490d465a018a9d81bb4e30604708fba">~ComponentBase</a> ()</td></tr>
|
||||
<tr class="separator:ae490d465a018a9d81bb4e30604708fba"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acda4c8b63ffbc2e9e2e28f056edbf01c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#acda4c8b63ffbc2e9e2e28f056edbf01c">ComponentBase</a> ()=default</td></tr>
|
||||
<tr class="separator:acda4c8b63ffbc2e9e2e28f056edbf01c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abd8cf6a9df5eb4678fb9925b686c7aea"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#abd8cf6a9df5eb4678fb9925b686c7aea">ComponentBase</a> (const <a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> &)=delete</td></tr>
|
||||
<tr class="separator:abd8cf6a9df5eb4678fb9925b686c7aea"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9b3cf357cf150023641969d5fcb7d08f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a9b3cf357cf150023641969d5fcb7d08f">ComponentBase</a> (<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a9b3cf357cf150023641969d5fcb7d08f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a80dd46cec44a5bcdc7139d91d1ffb64b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a80dd46cec44a5bcdc7139d91d1ffb64b">operator=</a> (const <a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> &)=delete</td></tr>
|
||||
<tr class="separator:a80dd46cec44a5bcdc7139d91d1ffb64b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a93aa2c89b0f3452c7803c7c1760043a0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a93aa2c89b0f3452c7803c7c1760043a0">operator=</a> (<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a93aa2c89b0f3452c7803c7c1760043a0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaf284a408631f31558694973a04186c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#aaf284a408631f31558694973a04186c2">Parent</a> () const</td></tr>
|
||||
<tr class="memdesc:aaf284a408631f31558694973a04186c2"><td class="mdescLeft"> </td><td class="mdescRight">Return the parent <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ComponentBase</a>, or nul if any. <a href="classftxui_1_1ComponentBase.html#aaf284a408631f31558694973a04186c2">More...</a><br /></td></tr>
|
||||
<tr class="separator:aaf284a408631f31558694973a04186c2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aceb41a98abe10fb0b521ff8b65529b7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#aceb41a98abe10fb0b521ff8b65529b7f">ChildAt</a> (size_t i)</td></tr>
|
||||
<tr class="memdesc:aceb41a98abe10fb0b521ff8b65529b7f"><td class="mdescLeft"> </td><td class="mdescRight">Access the child at index <code>i</code>. <a href="classftxui_1_1ComponentBase.html#aceb41a98abe10fb0b521ff8b65529b7f">More...</a><br /></td></tr>
|
||||
<tr class="separator:aceb41a98abe10fb0b521ff8b65529b7f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9ae5f77e923e2f0f8b0e26dcd4affb5b"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a9ae5f77e923e2f0f8b0e26dcd4affb5b">ChildCount</a> () const</td></tr>
|
||||
<tr class="memdesc:a9ae5f77e923e2f0f8b0e26dcd4affb5b"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of children. <a href="classftxui_1_1ComponentBase.html#a9ae5f77e923e2f0f8b0e26dcd4affb5b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a9ae5f77e923e2f0f8b0e26dcd4affb5b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8ef12397d1682615bc3108c397734179"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a8ef12397d1682615bc3108c397734179">Index</a> () const</td></tr>
|
||||
<tr class="memdesc:a8ef12397d1682615bc3108c397734179"><td class="mdescLeft"> </td><td class="mdescRight">Return index of the component in its parent. -1 if no parent. <a href="classftxui_1_1ComponentBase.html#a8ef12397d1682615bc3108c397734179">More...</a><br /></td></tr>
|
||||
<tr class="separator:a8ef12397d1682615bc3108c397734179"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a21f040bec9104e164bfa6c3ad45be3a1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a21f040bec9104e164bfa6c3ad45be3a1">Add</a> (<a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> children)</td></tr>
|
||||
<tr class="memdesc:a21f040bec9104e164bfa6c3ad45be3a1"><td class="mdescLeft"> </td><td class="mdescRight">Add a child. @param child The child to be attached. <a href="classftxui_1_1ComponentBase.html#a21f040bec9104e164bfa6c3ad45be3a1">More...</a><br /></td></tr>
|
||||
<tr class="separator:a21f040bec9104e164bfa6c3ad45be3a1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abb7a2b60240651d16e17d02eb6f636cf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#abb7a2b60240651d16e17d02eb6f636cf">Detach</a> ()</td></tr>
|
||||
<tr class="memdesc:abb7a2b60240651d16e17d02eb6f636cf"><td class="mdescLeft"> </td><td class="mdescRight">Detach this child from its parent. <a href="classftxui_1_1ComponentBase.html#abb7a2b60240651d16e17d02eb6f636cf">More...</a><br /></td></tr>
|
||||
<tr class="separator:abb7a2b60240651d16e17d02eb6f636cf"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a84bd6480cf5e8f51cf5965f81b1f2460"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a84bd6480cf5e8f51cf5965f81b1f2460">DetachAllChildren</a> ()</td></tr>
|
||||
<tr class="memdesc:a84bd6480cf5e8f51cf5965f81b1f2460"><td class="mdescLeft"> </td><td class="mdescRight">Remove all children. <a href="classftxui_1_1ComponentBase.html#a84bd6480cf5e8f51cf5965f81b1f2460">More...</a><br /></td></tr>
|
||||
<tr class="separator:a84bd6480cf5e8f51cf5965f81b1f2460"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a28d41d6113c5b29c8dd45846582b3299"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a28d41d6113c5b29c8dd45846582b3299">Render</a> ()</td></tr>
|
||||
<tr class="memdesc:a28d41d6113c5b29c8dd45846582b3299"><td class="mdescLeft"> </td><td class="mdescRight">Draw the component. Build a <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a> to be drawn on the ftxi::Screen representing this <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ftxui::ComponentBase</a>. <a href="classftxui_1_1ComponentBase.html#a28d41d6113c5b29c8dd45846582b3299">More...</a><br /></td></tr>
|
||||
<tr class="separator:a28d41d6113c5b29c8dd45846582b3299"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab84629a8fecad2e1cdd426b7ddc72277"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#ab84629a8fecad2e1cdd426b7ddc72277">OnEvent</a> (<a class="el" href="structftxui_1_1Event.html">Event</a>)</td></tr>
|
||||
<tr class="memdesc:ab84629a8fecad2e1cdd426b7ddc72277"><td class="mdescLeft"> </td><td class="mdescRight">Called in response to an event. <a href="classftxui_1_1ComponentBase.html#ab84629a8fecad2e1cdd426b7ddc72277">More...</a><br /></td></tr>
|
||||
<tr class="separator:ab84629a8fecad2e1cdd426b7ddc72277"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aebad858485d02f035a8ea34af66a7fa7"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#aebad858485d02f035a8ea34af66a7fa7">OnAnimation</a> (<a class="el" href="classftxui_1_1animation_1_1Params.html">animation::Params</a> &params)</td></tr>
|
||||
<tr class="memdesc:aebad858485d02f035a8ea34af66a7fa7"><td class="mdescLeft"> </td><td class="mdescRight">Called in response to an animation event. <a href="classftxui_1_1ComponentBase.html#aebad858485d02f035a8ea34af66a7fa7">More...</a><br /></td></tr>
|
||||
<tr class="separator:aebad858485d02f035a8ea34af66a7fa7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5c421f00a2a7f50c542c5c286d2e696c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a5c421f00a2a7f50c542c5c286d2e696c">ActiveChild</a> ()</td></tr>
|
||||
<tr class="memdesc:a5c421f00a2a7f50c542c5c286d2e696c"><td class="mdescLeft"> </td><td class="mdescRight">Return the currently Active child. <a href="classftxui_1_1ComponentBase.html#a5c421f00a2a7f50c542c5c286d2e696c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a5c421f00a2a7f50c542c5c286d2e696c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a02ccd3db74312f1c66aa8e7931489318"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a02ccd3db74312f1c66aa8e7931489318">Focusable</a> () const</td></tr>
|
||||
<tr class="memdesc:a02ccd3db74312f1c66aa8e7931489318"><td class="mdescLeft"> </td><td class="mdescRight">Return true when the component contains focusable elements. The non focusable Components will be skipped when navigating using the keyboard. <a href="classftxui_1_1ComponentBase.html#a02ccd3db74312f1c66aa8e7931489318">More...</a><br /></td></tr>
|
||||
<tr class="separator:a02ccd3db74312f1c66aa8e7931489318"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a52beef6d7a687d4d109e6cec1606e32e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a52beef6d7a687d4d109e6cec1606e32e">Active</a> () const</td></tr>
|
||||
<tr class="memdesc:a52beef6d7a687d4d109e6cec1606e32e"><td class="mdescLeft"> </td><td class="mdescRight">Returns if the element if the currently active child of its parent. <a href="classftxui_1_1ComponentBase.html#a52beef6d7a687d4d109e6cec1606e32e">More...</a><br /></td></tr>
|
||||
<tr class="separator:a52beef6d7a687d4d109e6cec1606e32e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0cc612fa3d753b456e0f480f44654a9f"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a0cc612fa3d753b456e0f480f44654a9f">Focused</a> () const</td></tr>
|
||||
<tr class="memdesc:a0cc612fa3d753b456e0f480f44654a9f"><td class="mdescLeft"> </td><td class="mdescRight">Returns if the elements if focused by the user. True when the <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ComponentBase</a> is focused by the user. An element is Focused when it is with all its ancestors the <a class="el" href="classftxui_1_1ComponentBase.html#a5c421f00a2a7f50c542c5c286d2e696c" title="Return the currently Active child.">ActiveChild()</a> of their parents, and it <a class="el" href="classftxui_1_1ComponentBase.html#a02ccd3db74312f1c66aa8e7931489318" title="Return true when the component contains focusable elements. The non focusable Components will be skip...">Focusable()</a>. <a href="classftxui_1_1ComponentBase.html#a0cc612fa3d753b456e0f480f44654a9f">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0cc612fa3d753b456e0f480f44654a9f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab2de72104837ebca036e432ae60cdd46"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#ab2de72104837ebca036e432ae60cdd46">SetActiveChild</a> (<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> *child)</td></tr>
|
||||
<tr class="separator:ab2de72104837ebca036e432ae60cdd46"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a50ad32ad14dd7912e681fab0ee294be2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a50ad32ad14dd7912e681fab0ee294be2">SetActiveChild</a> (<a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> child)</td></tr>
|
||||
<tr class="memdesc:a50ad32ad14dd7912e681fab0ee294be2"><td class="mdescLeft"> </td><td class="mdescRight">Make the |child| to be the "active" one. <a href="classftxui_1_1ComponentBase.html#a50ad32ad14dd7912e681fab0ee294be2">More...</a><br /></td></tr>
|
||||
<tr class="separator:a50ad32ad14dd7912e681fab0ee294be2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2cf27e9d7128a6a4b3263ecd34c19105"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a2cf27e9d7128a6a4b3263ecd34c19105">TakeFocus</a> ()</td></tr>
|
||||
<tr class="memdesc:a2cf27e9d7128a6a4b3263ecd34c19105"><td class="mdescLeft"> </td><td class="mdescRight">Configure all the ancestors to give focus to this component. <a href="classftxui_1_1ComponentBase.html#a2cf27e9d7128a6a4b3263ecd34c19105">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2cf27e9d7128a6a4b3263ecd34c19105"><td class="memSeparator" colspan="2"> </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:a164d10a2cf367bdd4ae14318a6c7d769"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274">CapturedMouse</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a164d10a2cf367bdd4ae14318a6c7d769">CaptureMouse</a> (const <a class="el" href="structftxui_1_1Event.html">Event</a> &event)</td></tr>
|
||||
<tr class="memdesc:a164d10a2cf367bdd4ae14318a6c7d769"><td class="mdescLeft"> </td><td class="mdescRight">Take the CapturedMouse if available. There is only one component of them. It represents a component taking priority over others. <a href="classftxui_1_1ComponentBase.html#a164d10a2cf367bdd4ae14318a6c7d769">More...</a><br /></td></tr>
|
||||
<tr class="separator:a164d10a2cf367bdd4ae14318a6c7d769"><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:a22b4fa4d6aa4c9c2eef275cd25aa8ab9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html#a22b4fa4d6aa4c9c2eef275cd25aa8ab9">children_</a></td></tr>
|
||||
<tr class="separator:a22b4fa4d6aa4c9c2eef275cd25aa8ab9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>It implement rendering itself as <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a>. It implement keyboard navigation by responding to <a class="el" href="structftxui_1_1Event.html" title="Represent an event. It can be key press event, a terminal resize, or more ...">ftxui::Event</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component__base_8hpp_source.html#l00030">30</a> of file <a class="el" href="component__base_8hpp_source.html">component_base.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="ad2a5b6ce11bc7a8ce1150cf0ba9144c0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad2a5b6ce11bc7a8ce1150cf0ba9144c0">◆ </a></span>ComponentBase() <span class="overload">[1/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> </td>
|
||||
<td class="paramname"><em>children</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component__base_8hpp_source.html#l00032">32</a> of file <a class="el" href="component__base_8hpp_source.html">component_base.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae490d465a018a9d81bb4e30604708fba"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae490d465a018a9d81bb4e30604708fba">◆ </a></span>~ComponentBase()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> </td>
|
||||
<td>(</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 class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00029">29</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="acda4c8b63ffbc2e9e2e28f056edbf01c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#acda4c8b63ffbc2e9e2e28f056edbf01c">◆ </a></span>ComponentBase() <span class="overload">[2/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abd8cf6a9df5eb4678fb9925b686c7aea"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abd8cf6a9df5eb4678fb9925b686c7aea">◆ </a></span>ComponentBase() <span class="overload">[3/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9b3cf357cf150023641969d5fcb7d08f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9b3cf357cf150023641969d5fcb7d08f">◆ </a></span>ComponentBase() <span class="overload">[4/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a80dd46cec44a5bcdc7139d91d1ffb64b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a80dd46cec44a5bcdc7139d91d1ffb64b">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a93aa2c89b0f3452c7803c7c1760043a0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a93aa2c89b0f3452c7803c7c1760043a0">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aaf284a408631f31558694973a04186c2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aaf284a408631f31558694973a04186c2">◆ </a></span>Parent()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> * Parent </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Return the parent <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ComponentBase</a>, or nul if any. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classftxui_1_1ComponentBase.html#abb7a2b60240651d16e17d02eb6f636cf" title="Detach this child from its parent.">Detach</a> </dd>
|
||||
<dd>
|
||||
<a class="el" href="classftxui_1_1ComponentBase.html#aaf284a408631f31558694973a04186c2" title="Return the parent ComponentBase, or nul if any.">Parent</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00037">37</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aceb41a98abe10fb0b521ff8b65529b7f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aceb41a98abe10fb0b521ff8b65529b7f">◆ </a></span>ChildAt()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> & ChildAt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">size_t </td>
|
||||
<td class="paramname"><em>i</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Access the child at index <code>i</code>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00043">43</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9ae5f77e923e2f0f8b0e26dcd4affb5b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9ae5f77e923e2f0f8b0e26dcd4affb5b">◆ </a></span>ChildCount()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">size_t ChildCount </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the number of children. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00050">50</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a8ef12397d1682615bc3108c397734179"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a8ef12397d1682615bc3108c397734179">◆ </a></span>Index()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int Index </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Return index of the component in its parent. -1 if no parent. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00056">56</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a21f040bec9104e164bfa6c3ad45be3a1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a21f040bec9104e164bfa6c3ad45be3a1">◆ </a></span>Add()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Add </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> </td>
|
||||
<td class="paramname"><em>children</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Add a child. @param child The child to be attached. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00073">73</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abb7a2b60240651d16e17d02eb6f636cf"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abb7a2b60240651d16e17d02eb6f636cf">◆ </a></span>Detach()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Detach </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Detach this child from its parent. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classftxui_1_1ComponentBase.html#abb7a2b60240651d16e17d02eb6f636cf" title="Detach this child from its parent.">Detach</a> </dd>
|
||||
<dd>
|
||||
<a class="el" href="classftxui_1_1ComponentBase.html#aaf284a408631f31558694973a04186c2" title="Return the parent ComponentBase, or nul if any.">Parent</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00083">83</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a84bd6480cf5e8f51cf5965f81b1f2460"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a84bd6480cf5e8f51cf5965f81b1f2460">◆ </a></span>DetachAllChildren()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void DetachAllChildren </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Remove all children. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00099">99</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a28d41d6113c5b29c8dd45846582b3299"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a28d41d6113c5b29c8dd45846582b3299">◆ </a></span>Render()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> Render </td>
|
||||
<td>(</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>Draw the component. Build a <a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">ftxui::Element</a> to be drawn on the ftxi::Screen representing this <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ftxui::ComponentBase</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00109">109</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab84629a8fecad2e1cdd426b7ddc72277"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab84629a8fecad2e1cdd426b7ddc72277">◆ </a></span>OnEvent()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool OnEvent </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="structftxui_1_1Event.html">Event</a> </td>
|
||||
<td class="paramname"><em>event</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>Called in response to an event. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">event</td><td>The event. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>True when the event has been handled. The default implementation called OnEvent on every child until one return true. If none returns true, return false. </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00123">123</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aebad858485d02f035a8ea34af66a7fa7"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aebad858485d02f035a8ea34af66a7fa7">◆ </a></span>OnAnimation()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void OnAnimation </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1animation_1_1Params.html">animation::Params</a> & </td>
|
||||
<td class="paramname"><em>params</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>Called in response to an animation event. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">params</td><td>the parameters of the animation The default implementation dispatch the event to every child. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00136">136</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5c421f00a2a7f50c542c5c286d2e696c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5c421f00a2a7f50c542c5c286d2e696c">◆ </a></span>ActiveChild()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> ActiveChild </td>
|
||||
<td>(</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>Return the currently Active child. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the currently Active child. </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00145">145</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a02ccd3db74312f1c66aa8e7931489318"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a02ccd3db74312f1c66aa8e7931489318">◆ </a></span>Focusable()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Focusable </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</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>Return true when the component contains focusable elements. The non focusable Components will be skipped when navigating using the keyboard. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00158">158</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a52beef6d7a687d4d109e6cec1606e32e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a52beef6d7a687d4d109e6cec1606e32e">◆ </a></span>Active()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Active </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns if the element if the currently active child of its parent. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00169">169</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0cc612fa3d753b456e0f480f44654a9f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0cc612fa3d753b456e0f480f44654a9f">◆ </a></span>Focused()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Focused </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns if the elements if focused by the user. True when the <a class="el" href="classftxui_1_1ComponentBase.html" title="It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...">ComponentBase</a> is focused by the user. An element is Focused when it is with all its ancestors the <a class="el" href="classftxui_1_1ComponentBase.html#a5c421f00a2a7f50c542c5c286d2e696c" title="Return the currently Active child.">ActiveChild()</a> of their parents, and it <a class="el" href="classftxui_1_1ComponentBase.html#a02ccd3db74312f1c66aa8e7931489318" title="Return true when the component contains focusable elements. The non focusable Components will be skip...">Focusable()</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00178">178</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab2de72104837ebca036e432ae60cdd46"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab2de72104837ebca036e432ae60cdd46">◆ </a></span>SetActiveChild() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual void SetActiveChild </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a> * </td>
|
||||
<td class="paramname"><em>child</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">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a50ad32ad14dd7912e681fab0ee294be2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a50ad32ad14dd7912e681fab0ee294be2">◆ </a></span>SetActiveChild() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void SetActiveChild </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> </td>
|
||||
<td class="paramname"><em>child</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Make the |child| to be the "active" one. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">child</td><td>the child to become active. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00194">194</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2cf27e9d7128a6a4b3263ecd34c19105"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2cf27e9d7128a6a4b3263ecd34c19105">◆ </a></span>TakeFocus()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void TakeFocus </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Configure all the ancestors to give focus to this component. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00200">200</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a164d10a2cf367bdd4ae14318a6c7d769"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a164d10a2cf367bdd4ae14318a6c7d769">◆ </a></span>CaptureMouse()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a24b663cb6b0b262055c94d3a03bdd274">CapturedMouse</a> CaptureMouse </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="structftxui_1_1Event.html">Event</a> & </td>
|
||||
<td class="paramname"><em>event</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Take the CapturedMouse if available. There is only one component of them. It represents a component taking priority over others. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">event</td><td>The event </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component_8cpp_source.html#l00212">212</a> of file <a class="el" href="component_8cpp_source.html">component.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Field Documentation</h2>
|
||||
<a id="a22b4fa4d6aa4c9c2eef275cd25aa8ab9"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a22b4fa4d6aa4c9c2eef275cd25aa8ab9">◆ </a></span>children_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> children_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="component__base_8hpp_source.html#l00093">93</a> of file <a class="el" href="component__base_8hpp_source.html">component_base.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li>include/ftxui/component/<a class="el" href="component__base_8hpp_source.html">component_base.hpp</a></li>
|
||||
<li>src/ftxui/component/<a class="el" href="component_8cpp_source.html">component.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
29
classftxui_1_1ComponentBase.js
Normal file
@ -0,0 +1,29 @@
|
||||
var classftxui_1_1ComponentBase =
|
||||
[
|
||||
[ "ComponentBase", "classftxui_1_1ComponentBase.html#ad2a5b6ce11bc7a8ce1150cf0ba9144c0", null ],
|
||||
[ "~ComponentBase", "classftxui_1_1ComponentBase.html#ae490d465a018a9d81bb4e30604708fba", null ],
|
||||
[ "ComponentBase", "classftxui_1_1ComponentBase.html#acda4c8b63ffbc2e9e2e28f056edbf01c", null ],
|
||||
[ "ComponentBase", "classftxui_1_1ComponentBase.html#abd8cf6a9df5eb4678fb9925b686c7aea", null ],
|
||||
[ "ComponentBase", "classftxui_1_1ComponentBase.html#a9b3cf357cf150023641969d5fcb7d08f", null ],
|
||||
[ "operator=", "classftxui_1_1ComponentBase.html#a80dd46cec44a5bcdc7139d91d1ffb64b", null ],
|
||||
[ "operator=", "classftxui_1_1ComponentBase.html#a93aa2c89b0f3452c7803c7c1760043a0", null ],
|
||||
[ "Parent", "classftxui_1_1ComponentBase.html#aaf284a408631f31558694973a04186c2", null ],
|
||||
[ "ChildAt", "classftxui_1_1ComponentBase.html#aceb41a98abe10fb0b521ff8b65529b7f", null ],
|
||||
[ "ChildCount", "classftxui_1_1ComponentBase.html#a9ae5f77e923e2f0f8b0e26dcd4affb5b", null ],
|
||||
[ "Index", "classftxui_1_1ComponentBase.html#a8ef12397d1682615bc3108c397734179", null ],
|
||||
[ "Add", "classftxui_1_1ComponentBase.html#a21f040bec9104e164bfa6c3ad45be3a1", null ],
|
||||
[ "Detach", "classftxui_1_1ComponentBase.html#abb7a2b60240651d16e17d02eb6f636cf", null ],
|
||||
[ "DetachAllChildren", "classftxui_1_1ComponentBase.html#a84bd6480cf5e8f51cf5965f81b1f2460", null ],
|
||||
[ "Render", "classftxui_1_1ComponentBase.html#a28d41d6113c5b29c8dd45846582b3299", null ],
|
||||
[ "OnEvent", "classftxui_1_1ComponentBase.html#ab84629a8fecad2e1cdd426b7ddc72277", null ],
|
||||
[ "OnAnimation", "classftxui_1_1ComponentBase.html#aebad858485d02f035a8ea34af66a7fa7", null ],
|
||||
[ "ActiveChild", "classftxui_1_1ComponentBase.html#a5c421f00a2a7f50c542c5c286d2e696c", null ],
|
||||
[ "Focusable", "classftxui_1_1ComponentBase.html#a02ccd3db74312f1c66aa8e7931489318", null ],
|
||||
[ "Active", "classftxui_1_1ComponentBase.html#a52beef6d7a687d4d109e6cec1606e32e", null ],
|
||||
[ "Focused", "classftxui_1_1ComponentBase.html#a0cc612fa3d753b456e0f480f44654a9f", null ],
|
||||
[ "SetActiveChild", "classftxui_1_1ComponentBase.html#ab2de72104837ebca036e432ae60cdd46", null ],
|
||||
[ "SetActiveChild", "classftxui_1_1ComponentBase.html#a50ad32ad14dd7912e681fab0ee294be2", null ],
|
||||
[ "TakeFocus", "classftxui_1_1ComponentBase.html#a2cf27e9d7128a6a4b3263ecd34c19105", null ],
|
||||
[ "CaptureMouse", "classftxui_1_1ComponentBase.html#a164d10a2cf367bdd4ae14318a6c7d769", null ],
|
||||
[ "children_", "classftxui_1_1ComponentBase.html#a22b4fa4d6aa4c9c2eef275cd25aa8ab9", null ]
|
||||
];
|
434
classftxui_1_1ConstRef.html
Normal file
@ -0,0 +1,434 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: ConstRef< T > Class Template 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1ConstRef.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ConstRef< T > Class Template Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>An adapter. Own or reference an immutable object.
|
||||
<a href="classftxui_1_1ConstRef.html#details">More...</a></p>
|
||||
<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:a2949426897a0bd427771597c7cc34f08"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a2949426897a0bd427771597c7cc34f08">ConstRef</a> ()=default</td></tr>
|
||||
<tr class="separator:a2949426897a0bd427771597c7cc34f08"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa33f2e3c9020518540c2850c7ad2669f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#aa33f2e3c9020518540c2850c7ad2669f">ConstRef</a> (T t)</td></tr>
|
||||
<tr class="separator:aa33f2e3c9020518540c2850c7ad2669f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7dde5cd8bdbcd4c83a7b3bbddfc31bd9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a7dde5cd8bdbcd4c83a7b3bbddfc31bd9">ConstRef</a> (const T *t)</td></tr>
|
||||
<tr class="separator:a7dde5cd8bdbcd4c83a7b3bbddfc31bd9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa31493c1bae34b4c644f9a1ec95bad68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#aa31493c1bae34b4c644f9a1ec95bad68">operator=</a> (<a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> &&) noexcept=default</td></tr>
|
||||
<tr class="separator:aa31493c1bae34b4c644f9a1ec95bad68"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a184e14dab2e9bca47f7d172ca7126c60"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a184e14dab2e9bca47f7d172ca7126c60">ConstRef</a> (const <a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > &)=default</td></tr>
|
||||
<tr class="separator:a184e14dab2e9bca47f7d172ca7126c60"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa89dd79143a428e57480cda1cc7b675e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#aa89dd79143a428e57480cda1cc7b675e">ConstRef</a> (<a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > &&) noexcept=default</td></tr>
|
||||
<tr class="separator:aa89dd79143a428e57480cda1cc7b675e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4ab7aed14f1e68d9be361d5ccfcd4e0f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a4ab7aed14f1e68d9be361d5ccfcd4e0f">~ConstRef</a> ()=default</td></tr>
|
||||
<tr class="separator:a4ab7aed14f1e68d9be361d5ccfcd4e0f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a046d9ed354bae31fb9cbdd4628dc8fbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a046d9ed354bae31fb9cbdd4628dc8fbe">operator=</a> (const <a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > &)=default</td></tr>
|
||||
<tr class="separator:a046d9ed354bae31fb9cbdd4628dc8fbe"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad3aaf80867f8090e20c6a5bb52b73669"><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#ad3aaf80867f8090e20c6a5bb52b73669">operator()</a> () const</td></tr>
|
||||
<tr class="separator:ad3aaf80867f8090e20c6a5bb52b73669"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a540e5588dffde890174a282451f73fb9"><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a540e5588dffde890174a282451f73fb9">operator*</a> () const</td></tr>
|
||||
<tr class="separator:a540e5588dffde890174a282451f73fb9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a61f986d1655444750449ed13c40c9184"><td class="memItemLeft" align="right" valign="top">const T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a61f986d1655444750449ed13c40c9184">operator-></a> () const</td></tr>
|
||||
<tr class="separator:a61f986d1655444750449ed13c40c9184"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><h3>template<typename T><br />
|
||||
class ftxui::ConstRef< T ></h3>
|
||||
|
||||
<p>An adapter. Own or reference an immutable object. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00017">17</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a2949426897a0bd427771597c7cc34f08"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2949426897a0bd427771597c7cc34f08">◆ </a></span>ConstRef() <span class="overload">[1/5]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa33f2e3c9020518540c2850c7ad2669f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa33f2e3c9020518540c2850c7ad2669f">◆ </a></span>ConstRef() <span class="overload">[2/5]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">T </td>
|
||||
<td class="paramname"><em>t</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00020">20</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7dde5cd8bdbcd4c83a7b3bbddfc31bd9"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7dde5cd8bdbcd4c83a7b3bbddfc31bd9">◆ </a></span>ConstRef() <span class="overload">[3/5]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const T * </td>
|
||||
<td class="paramname"><em>t</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00021">21</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a184e14dab2e9bca47f7d172ca7126c60"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a184e14dab2e9bca47f7d172ca7126c60">◆ </a></span>ConstRef() <span class="overload">[4/5]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa89dd79143a428e57480cda1cc7b675e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa89dd79143a428e57480cda1cc7b675e">◆ </a></span>ConstRef() <span class="overload">[5/5]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span><span class="mlabel">noexcept</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4ab7aed14f1e68d9be361d5ccfcd4e0f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4ab7aed14f1e68d9be361d5ccfcd4e0f">◆ </a></span>~ConstRef()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="aa31493c1bae34b4c644f9a1ec95bad68"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa31493c1bae34b4c644f9a1ec95bad68">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span><span class="mlabel">noexcept</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a046d9ed354bae31fb9cbdd4628dc8fbe"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a046d9ed354bae31fb9cbdd4628dc8fbe">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a><T>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstRef.html">ConstRef</a>< T > & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad3aaf80867f8090e20c6a5bb52b73669"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad3aaf80867f8090e20c6a5bb52b73669">◆ </a></span>operator()()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const T& operator() </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00031">31</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a540e5588dffde890174a282451f73fb9"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a540e5588dffde890174a282451f73fb9">◆ </a></span>operator*()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const T& operator* </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00032">32</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a61f986d1655444750449ed13c40c9184"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a61f986d1655444750449ed13c40c9184">◆ </a></span>operator->()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const T* operator-> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00033">33</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/util/<a class="el" href="ref_8hpp_source.html">ref.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
14
classftxui_1_1ConstRef.js
Normal file
@ -0,0 +1,14 @@
|
||||
var classftxui_1_1ConstRef =
|
||||
[
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html#a2949426897a0bd427771597c7cc34f08", null ],
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html#aa33f2e3c9020518540c2850c7ad2669f", null ],
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html#a7dde5cd8bdbcd4c83a7b3bbddfc31bd9", null ],
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html#a184e14dab2e9bca47f7d172ca7126c60", null ],
|
||||
[ "ConstRef", "classftxui_1_1ConstRef.html#aa89dd79143a428e57480cda1cc7b675e", null ],
|
||||
[ "~ConstRef", "classftxui_1_1ConstRef.html#a4ab7aed14f1e68d9be361d5ccfcd4e0f", null ],
|
||||
[ "operator=", "classftxui_1_1ConstRef.html#aa31493c1bae34b4c644f9a1ec95bad68", null ],
|
||||
[ "operator=", "classftxui_1_1ConstRef.html#a046d9ed354bae31fb9cbdd4628dc8fbe", null ],
|
||||
[ "operator()", "classftxui_1_1ConstRef.html#ad3aaf80867f8090e20c6a5bb52b73669", null ],
|
||||
[ "operator*", "classftxui_1_1ConstRef.html#a540e5588dffde890174a282451f73fb9", null ],
|
||||
[ "operator->", "classftxui_1_1ConstRef.html#a61f986d1655444750449ed13c40c9184", null ]
|
||||
];
|
530
classftxui_1_1ConstStringListRef.html
Normal file
@ -0,0 +1,530 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: ConstStringListRef 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1ConstStringListRef.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#pub-types">Public Types</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ConstStringListRef Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>An adapter. Reference a list of strings.
|
||||
<a href="classftxui_1_1ConstStringListRef.html#details">More...</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||||
Public Types</h2></td></tr>
|
||||
<tr class="memitem:a61f139e82df3a9a9b91bfe963d3cd8ef"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a61f139e82df3a9a9b91bfe963d3cd8ef">Variant</a> = std::variant< const std::vector< std::string >, const std::vector< std::string > *, const std::vector< std::wstring > *, <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> *, std::unique_ptr< <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> > ></td></tr>
|
||||
<tr class="separator:a61f139e82df3a9a9b91bfe963d3cd8ef"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><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:a425bc6a013bf3a539794b7a874fc722f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a425bc6a013bf3a539794b7a874fc722f">ConstStringListRef</a> ()=default</td></tr>
|
||||
<tr class="separator:a425bc6a013bf3a539794b7a874fc722f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a517a6924cc5fa2fff3e6c08bc504f0fa"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a517a6924cc5fa2fff3e6c08bc504f0fa">~ConstStringListRef</a> ()=default</td></tr>
|
||||
<tr class="separator:a517a6924cc5fa2fff3e6c08bc504f0fa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa99f3c142cff92264b46df26844ee917"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#aa99f3c142cff92264b46df26844ee917">operator=</a> (const <a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> &)=default</td></tr>
|
||||
<tr class="separator:aa99f3c142cff92264b46df26844ee917"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0c9401a93ddc6a9b32f43e9e9e4634aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a0c9401a93ddc6a9b32f43e9e9e4634aa">operator=</a> (<a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> &&)=default</td></tr>
|
||||
<tr class="separator:a0c9401a93ddc6a9b32f43e9e9e4634aa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4d5f9a6302f997c4ef51b36370b84042"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a4d5f9a6302f997c4ef51b36370b84042">ConstStringListRef</a> (<a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> &&)=default</td></tr>
|
||||
<tr class="separator:a4d5f9a6302f997c4ef51b36370b84042"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abfb65b9a4a2648e7b9f110cecefa57a4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#abfb65b9a4a2648e7b9f110cecefa57a4">ConstStringListRef</a> (const <a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> &)=default</td></tr>
|
||||
<tr class="separator:abfb65b9a4a2648e7b9f110cecefa57a4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a143d850d76c8d8f8b4f8750c94ce1a52"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a143d850d76c8d8f8b4f8750c94ce1a52">ConstStringListRef</a> (std::vector< std::string > value)</td></tr>
|
||||
<tr class="separator:a143d850d76c8d8f8b4f8750c94ce1a52"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1dea39816b5515bb126f980ed0839d63"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a1dea39816b5515bb126f980ed0839d63">ConstStringListRef</a> (const std::vector< std::string > *value)</td></tr>
|
||||
<tr class="separator:a1dea39816b5515bb126f980ed0839d63"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8f2ca283f552f4cdd835401e3b177b4a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a8f2ca283f552f4cdd835401e3b177b4a">ConstStringListRef</a> (const std::vector< std::wstring > *value)</td></tr>
|
||||
<tr class="separator:a8f2ca283f552f4cdd835401e3b177b4a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae1af1937e833f81fe7013261ec0ee1ef"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#ae1af1937e833f81fe7013261ec0ee1ef">ConstStringListRef</a> (<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> *adapter)</td></tr>
|
||||
<tr class="separator:ae1af1937e833f81fe7013261ec0ee1ef"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a79bb658d6bae69e91da078978d5ded33"><td class="memTemplParams" colspan="2">template<typename AdapterType > </td></tr>
|
||||
<tr class="memitem:a79bb658d6bae69e91da078978d5ded33"><td class="memTemplItemLeft" align="right" valign="top"> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a79bb658d6bae69e91da078978d5ded33">ConstStringListRef</a> (std::unique_ptr< AdapterType > adapter)</td></tr>
|
||||
<tr class="separator:a79bb658d6bae69e91da078978d5ded33"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a259cb5a711406a8c3e5d937eb9350cca"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#a259cb5a711406a8c3e5d937eb9350cca">size</a> () const</td></tr>
|
||||
<tr class="separator:a259cb5a711406a8c3e5d937eb9350cca"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afa13214cc014e69f7dc95b1df7c90d4e"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html#afa13214cc014e69f7dc95b1df7c90d4e">operator[]</a> (size_t i) const</td></tr>
|
||||
<tr class="separator:afa13214cc014e69f7dc95b1df7c90d4e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>An adapter. Reference a list of strings. </p>
|
||||
<p>Supported input:</p><ul>
|
||||
<li><code>std::vector<std::string></code></li>
|
||||
<li><code>std::vector<std::string>*</code></li>
|
||||
<li><code>std::vector<std::wstring>*</code></li>
|
||||
<li><code>Adapter*</code></li>
|
||||
<li><code>std::unique_ptr<<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a>></code> </li>
|
||||
</ul>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00116">116</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Member Typedef Documentation</h2>
|
||||
<a id="a61f139e82df3a9a9b91bfe963d3cd8ef"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a61f139e82df3a9a9b91bfe963d3cd8ef">◆ </a></span>Variant</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="classftxui_1_1ConstStringListRef.html#a61f139e82df3a9a9b91bfe963d3cd8ef">Variant</a> = std::variant<const std::vector<std::string>, const std::vector<std::string>*, const std::vector<std::wstring>*, <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a>*, std::unique_ptr<<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a>> ></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00130">130</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a425bc6a013bf3a539794b7a874fc722f"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a425bc6a013bf3a539794b7a874fc722f">◆ </a></span>ConstStringListRef() <span class="overload">[1/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a517a6924cc5fa2fff3e6c08bc504f0fa"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a517a6924cc5fa2fff3e6c08bc504f0fa">◆ </a></span>~ConstStringListRef()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4d5f9a6302f997c4ef51b36370b84042"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4d5f9a6302f997c4ef51b36370b84042">◆ </a></span>ConstStringListRef() <span class="overload">[2/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abfb65b9a4a2648e7b9f110cecefa57a4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abfb65b9a4a2648e7b9f110cecefa57a4">◆ </a></span>ConstStringListRef() <span class="overload">[3/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a143d850d76c8d8f8b4f8750c94ce1a52"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a143d850d76c8d8f8b4f8750c94ce1a52">◆ </a></span>ConstStringListRef() <span class="overload">[4/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">std::vector< std::string > </td>
|
||||
<td class="paramname"><em>value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00144">144</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1dea39816b5515bb126f980ed0839d63"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1dea39816b5515bb126f980ed0839d63">◆ </a></span>ConstStringListRef() <span class="overload">[5/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const std::vector< std::string > * </td>
|
||||
<td class="paramname"><em>value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00148">148</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a8f2ca283f552f4cdd835401e3b177b4a"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a8f2ca283f552f4cdd835401e3b177b4a">◆ </a></span>ConstStringListRef() <span class="overload">[6/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const std::vector< std::wstring > * </td>
|
||||
<td class="paramname"><em>value</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00152">152</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae1af1937e833f81fe7013261ec0ee1ef"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae1af1937e833f81fe7013261ec0ee1ef">◆ </a></span>ConstStringListRef() <span class="overload">[7/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> * </td>
|
||||
<td class="paramname"><em>adapter</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00156">156</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a79bb658d6bae69e91da078978d5ded33"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a79bb658d6bae69e91da078978d5ded33">◆ </a></span>ConstStringListRef() <span class="overload">[8/8]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">std::unique_ptr< AdapterType > </td>
|
||||
<td class="paramname"><em>adapter</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00161">161</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="aa99f3c142cff92264b46df26844ee917"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa99f3c142cff92264b46df26844ee917">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0c9401a93ddc6a9b32f43e9e9e4634aa"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0c9401a93ddc6a9b32f43e9e9e4634aa">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a259cb5a711406a8c3e5d937eb9350cca"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a259cb5a711406a8c3e5d937eb9350cca">◆ </a></span>size()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">size_t size </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00167">167</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="afa13214cc014e69f7dc95b1df7c90d4e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afa13214cc014e69f7dc95b1df7c90d4e">◆ </a></span>operator[]()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">std::string operator[] </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">size_t </td>
|
||||
<td class="paramname"><em>i</em></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00171">171</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/util/<a class="el" href="ref_8hpp_source.html">ref.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
18
classftxui_1_1ConstStringListRef.js
Normal file
@ -0,0 +1,18 @@
|
||||
var classftxui_1_1ConstStringListRef =
|
||||
[
|
||||
[ "Adapter", "classftxui_1_1ConstStringListRef_1_1Adapter.html", "classftxui_1_1ConstStringListRef_1_1Adapter" ],
|
||||
[ "Variant", "classftxui_1_1ConstStringListRef.html#a61f139e82df3a9a9b91bfe963d3cd8ef", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a425bc6a013bf3a539794b7a874fc722f", null ],
|
||||
[ "~ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a517a6924cc5fa2fff3e6c08bc504f0fa", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a4d5f9a6302f997c4ef51b36370b84042", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#abfb65b9a4a2648e7b9f110cecefa57a4", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a143d850d76c8d8f8b4f8750c94ce1a52", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a1dea39816b5515bb126f980ed0839d63", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a8f2ca283f552f4cdd835401e3b177b4a", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#ae1af1937e833f81fe7013261ec0ee1ef", null ],
|
||||
[ "ConstStringListRef", "classftxui_1_1ConstStringListRef.html#a79bb658d6bae69e91da078978d5ded33", null ],
|
||||
[ "operator=", "classftxui_1_1ConstStringListRef.html#aa99f3c142cff92264b46df26844ee917", null ],
|
||||
[ "operator=", "classftxui_1_1ConstStringListRef.html#a0c9401a93ddc6a9b32f43e9e9e4634aa", null ],
|
||||
[ "size", "classftxui_1_1ConstStringListRef.html#a259cb5a711406a8c3e5d937eb9350cca", null ],
|
||||
[ "operator[]", "classftxui_1_1ConstStringListRef.html#afa13214cc014e69f7dc95b1df7c90d4e", null ]
|
||||
];
|
335
classftxui_1_1ConstStringListRef_1_1Adapter.html
Normal file
@ -0,0 +1,335 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: ConstStringListRef::Adapter 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1ConstStringListRef_1_1Adapter.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ConstStringListRef::Adapter Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<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:aeeff28a487da7a74856b51e966773246"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#aeeff28a487da7a74856b51e966773246">Adapter</a> ()=default</td></tr>
|
||||
<tr class="separator:aeeff28a487da7a74856b51e966773246"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afaf35b0fc91e998543942da0b2b9a3ee"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#afaf35b0fc91e998543942da0b2b9a3ee">Adapter</a> (const <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> &)=default</td></tr>
|
||||
<tr class="separator:afaf35b0fc91e998543942da0b2b9a3ee"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a074ccb2388855d1188b7362fef532e16"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#a074ccb2388855d1188b7362fef532e16">operator=</a> (const <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> &)=default</td></tr>
|
||||
<tr class="separator:a074ccb2388855d1188b7362fef532e16"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5bcc41e3dec29c90da901ab45c95774a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#a5bcc41e3dec29c90da901ab45c95774a">Adapter</a> (<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> &&)=default</td></tr>
|
||||
<tr class="separator:a5bcc41e3dec29c90da901ab45c95774a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2eaf73cb04c05b3309c12bdbd72987a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#a2eaf73cb04c05b3309c12bdbd72987a6">operator=</a> (<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> &&)=default</td></tr>
|
||||
<tr class="separator:a2eaf73cb04c05b3309c12bdbd72987a6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acc343e0991b39fbf9b66f2faf7cb7f11"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#acc343e0991b39fbf9b66f2faf7cb7f11">~Adapter</a> ()=default</td></tr>
|
||||
<tr class="separator:acc343e0991b39fbf9b66f2faf7cb7f11"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa983ddaeded5756189f46428be79c631"><td class="memItemLeft" align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#aa983ddaeded5756189f46428be79c631">size</a> () const =0</td></tr>
|
||||
<tr class="separator:aa983ddaeded5756189f46428be79c631"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaec2cde2cf71a044ba3305632c7a867c"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html#aaec2cde2cf71a044ba3305632c7a867c">operator[]</a> (size_t i) const =0</td></tr>
|
||||
<tr class="separator:aaec2cde2cf71a044ba3305632c7a867c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00119">119</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="aeeff28a487da7a74856b51e966773246"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aeeff28a487da7a74856b51e966773246">◆ </a></span>Adapter() <span class="overload">[1/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="afaf35b0fc91e998543942da0b2b9a3ee"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afaf35b0fc91e998543942da0b2b9a3ee">◆ </a></span>Adapter() <span class="overload">[2/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5bcc41e3dec29c90da901ab45c95774a"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5bcc41e3dec29c90da901ab45c95774a">◆ </a></span>Adapter() <span class="overload">[3/3]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="acc343e0991b39fbf9b66f2faf7cb7f11"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#acc343e0991b39fbf9b66f2faf7cb7f11">◆ </a></span>~Adapter()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual ~<a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> </td>
|
||||
<td>(</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 class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a074ccb2388855d1188b7362fef532e16"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a074ccb2388855d1188b7362fef532e16">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2eaf73cb04c05b3309c12bdbd72987a6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2eaf73cb04c05b3309c12bdbd72987a6">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html">Adapter</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa983ddaeded5756189f46428be79c631"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa983ddaeded5756189f46428be79c631">◆ </a></span>size()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual size_t size </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</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">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aaec2cde2cf71a044ba3305632c7a867c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aaec2cde2cf71a044ba3305632c7a867c">◆ </a></span>operator[]()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual std::string operator[] </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">size_t </td>
|
||||
<td class="paramname"><em>i</em></td><td>)</td>
|
||||
<td> const</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">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/util/<a class="el" href="ref_8hpp_source.html">ref.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
11
classftxui_1_1ConstStringListRef_1_1Adapter.js
Normal file
@ -0,0 +1,11 @@
|
||||
var classftxui_1_1ConstStringListRef_1_1Adapter =
|
||||
[
|
||||
[ "Adapter", "classftxui_1_1ConstStringListRef_1_1Adapter.html#aeeff28a487da7a74856b51e966773246", null ],
|
||||
[ "Adapter", "classftxui_1_1ConstStringListRef_1_1Adapter.html#afaf35b0fc91e998543942da0b2b9a3ee", null ],
|
||||
[ "Adapter", "classftxui_1_1ConstStringListRef_1_1Adapter.html#a5bcc41e3dec29c90da901ab45c95774a", null ],
|
||||
[ "~Adapter", "classftxui_1_1ConstStringListRef_1_1Adapter.html#acc343e0991b39fbf9b66f2faf7cb7f11", null ],
|
||||
[ "operator=", "classftxui_1_1ConstStringListRef_1_1Adapter.html#a074ccb2388855d1188b7362fef532e16", null ],
|
||||
[ "operator=", "classftxui_1_1ConstStringListRef_1_1Adapter.html#a2eaf73cb04c05b3309c12bdbd72987a6", null ],
|
||||
[ "size", "classftxui_1_1ConstStringListRef_1_1Adapter.html#aa983ddaeded5756189f46428be79c631", null ],
|
||||
[ "operator[]", "classftxui_1_1ConstStringListRef_1_1Adapter.html#aaec2cde2cf71a044ba3305632c7a867c", null ]
|
||||
];
|
336
classftxui_1_1ConstStringRef.html
Normal file
@ -0,0 +1,336 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: ConstStringRef 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1ConstStringRef.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ConstStringRef Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation.
|
||||
<a href="classftxui_1_1ConstStringRef.html#details">More...</a></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 ConstStringRef:</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="classftxui_1_1ConstStringRef__inherit__graph.png" border="0" usemap="#aConstStringRef_inherit__map" alt="Inheritance graph"/></div>
|
||||
<map name="aConstStringRef_inherit__map" id="aConstStringRef_inherit__map">
|
||||
<area shape="rect" title="An adapter. Own or reference a constant string. For convenience, this class convert multiple immutabl..." alt="" coords="34,80,153,107"/>
|
||||
<area shape="rect" href="classftxui_1_1ConstRef.html" title=" " alt="" coords="5,5,181,32"/>
|
||||
</map>
|
||||
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></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:a9a4560dc18026ec3753e87d569fa5103"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringRef.html#a9a4560dc18026ec3753e87d569fa5103">ConstStringRef</a> (const std::wstring *ref)</td></tr>
|
||||
<tr class="separator:a9a4560dc18026ec3753e87d569fa5103"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1e8c54776eada9969ebbadb21d8e689a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringRef.html#a1e8c54776eada9969ebbadb21d8e689a">ConstStringRef</a> (const std::wstring ref)</td></tr>
|
||||
<tr class="separator:a1e8c54776eada9969ebbadb21d8e689a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad8b24bac5669d8787ac2109068094938"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringRef.html#ad8b24bac5669d8787ac2109068094938">ConstStringRef</a> (const wchar_t *ref)</td></tr>
|
||||
<tr class="separator:ad8b24bac5669d8787ac2109068094938"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a013cd384d028ab8f67fa4cf8e9c521cd"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringRef.html#a013cd384d028ab8f67fa4cf8e9c521cd">ConstStringRef</a> (const char *ref)</td></tr>
|
||||
<tr class="separator:a013cd384d028ab8f67fa4cf8e9c521cd"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad3aaf80867f8090e20c6a5bb52b73669"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#ad3aaf80867f8090e20c6a5bb52b73669">operator()</a> () const</td></tr>
|
||||
<tr class="separator:ad3aaf80867f8090e20c6a5bb52b73669"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a540e5588dffde890174a282451f73fb9"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a540e5588dffde890174a282451f73fb9">operator*</a> () const</td></tr>
|
||||
<tr class="separator:a540e5588dffde890174a282451f73fb9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a61f986d1655444750449ed13c40c9184"><td class="memItemLeft" align="right" valign="top">const std::string * </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html#a61f986d1655444750449ed13c40c9184">operator-></a> () const</td></tr>
|
||||
<tr class="separator:a61f986d1655444750449ed13c40c9184"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>An adapter. Own or reference a constant string. For convenience, this class convert multiple immutable string toward a shared representation. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00094">94</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a9a4560dc18026ec3753e87d569fa5103"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9a4560dc18026ec3753e87d569fa5103">◆ </a></span>ConstStringRef() <span class="overload">[1/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const std::wstring * </td>
|
||||
<td class="paramname"><em>ref</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00098">98</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1e8c54776eada9969ebbadb21d8e689a"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1e8c54776eada9969ebbadb21d8e689a">◆ </a></span>ConstStringRef() <span class="overload">[2/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const std::wstring </td>
|
||||
<td class="paramname"><em>ref</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00100">100</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad8b24bac5669d8787ac2109068094938"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad8b24bac5669d8787ac2109068094938">◆ </a></span>ConstStringRef() <span class="overload">[3/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const wchar_t * </td>
|
||||
<td class="paramname"><em>ref</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00102">102</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a013cd384d028ab8f67fa4cf8e9c521cd"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a013cd384d028ab8f67fa4cf8e9c521cd">◆ </a></span>ConstStringRef() <span class="overload">[4/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const char * </td>
|
||||
<td class="paramname"><em>ref</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00104">104</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="ad3aaf80867f8090e20c6a5bb52b73669"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad3aaf80867f8090e20c6a5bb52b73669">◆ </a></span>operator()()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const std::string & operator() </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00031">31</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a540e5588dffde890174a282451f73fb9"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a540e5588dffde890174a282451f73fb9">◆ </a></span>operator*()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const std::string & operator* </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00032">32</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a61f986d1655444750449ed13c40c9184"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a61f986d1655444750449ed13c40c9184">◆ </a></span>operator->()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const std::string * operator-> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="ref_8hpp_source.html#l00033">33</a> of file <a class="el" href="ref_8hpp_source.html">ref.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>include/ftxui/util/<a class="el" href="ref_8hpp_source.html">ref.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
10
classftxui_1_1ConstStringRef.js
Normal file
@ -0,0 +1,10 @@
|
||||
var classftxui_1_1ConstStringRef =
|
||||
[
|
||||
[ "ConstStringRef", "classftxui_1_1ConstStringRef.html#a9a4560dc18026ec3753e87d569fa5103", null ],
|
||||
[ "ConstStringRef", "classftxui_1_1ConstStringRef.html#a1e8c54776eada9969ebbadb21d8e689a", null ],
|
||||
[ "ConstStringRef", "classftxui_1_1ConstStringRef.html#ad8b24bac5669d8787ac2109068094938", null ],
|
||||
[ "ConstStringRef", "classftxui_1_1ConstStringRef.html#a013cd384d028ab8f67fa4cf8e9c521cd", null ],
|
||||
[ "operator()", "classftxui_1_1ConstStringRef.html#ad3aaf80867f8090e20c6a5bb52b73669", null ],
|
||||
[ "operator*", "classftxui_1_1ConstStringRef.html#a540e5588dffde890174a282451f73fb9", null ],
|
||||
[ "operator->", "classftxui_1_1ConstStringRef.html#a61f986d1655444750449ed13c40c9184", null ]
|
||||
];
|
4
classftxui_1_1ConstStringRef__inherit__graph.map
Normal file
@ -0,0 +1,4 @@
|
||||
<map id="ConstStringRef" name="ConstStringRef">
|
||||
<area shape="rect" id="node1" title="An adapter. Own or reference a constant string. For convenience, this class convert multiple immutabl..." alt="" coords="34,80,153,107"/>
|
||||
<area shape="rect" id="node2" href="$classftxui_1_1ConstRef.html" title=" " alt="" coords="5,5,181,32"/>
|
||||
</map>
|
1
classftxui_1_1ConstStringRef__inherit__graph.md5
Normal file
@ -0,0 +1 @@
|
||||
62023ea71feef55eb116bc2c13bfc321
|
BIN
classftxui_1_1ConstStringRef__inherit__graph.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
545
classftxui_1_1Image.html
Normal file
@ -0,0 +1,545 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: Image 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1Image.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pub-attribs">Data Fields</a> |
|
||||
<a href="#pro-attribs">Protected Attributes</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Image Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>A rectangular grid of <a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>.
|
||||
<a href="classftxui_1_1Image.html#details">More...</a></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 Image:</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="classftxui_1_1Image__inherit__graph.png" border="0" usemap="#aImage_inherit__map" alt="Inheritance graph"/></div>
|
||||
<map name="aImage_inherit__map" id="aImage_inherit__map">
|
||||
<area shape="rect" title="A rectangular grid of Pixel." alt="" coords="42,5,105,32"/>
|
||||
<area shape="rect" href="classftxui_1_1Screen.html" title="A rectangular grid of Pixel." alt="" coords="40,80,107,107"/>
|
||||
<area shape="rect" href="classftxui_1_1ScreenInteractive.html" title=" " alt="" coords="5,155,141,181"/>
|
||||
</map>
|
||||
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></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:a7c483c751b9c859ef08cecb32f1d1994"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a7c483c751b9c859ef08cecb32f1d1994">Image</a> ()=delete</td></tr>
|
||||
<tr class="separator:a7c483c751b9c859ef08cecb32f1d1994"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aecbd97261c37fa89ea6df7ccaba216c3"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#aecbd97261c37fa89ea6df7ccaba216c3">Image</a> (int <a class="el" href="classftxui_1_1Image.html#ae7a460c9dacd70ed81b1adfea46b492e">dimx</a>, int <a class="el" href="classftxui_1_1Image.html#a0d283cfb1ec16b3fc13d344ebfea93d4">dimy</a>)</td></tr>
|
||||
<tr class="separator:aecbd97261c37fa89ea6df7ccaba216c3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a55b0a995463c6936efb33391f29565bc"><td class="memItemLeft" align="right" valign="top">std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a55b0a995463c6936efb33391f29565bc">at</a> (int x, int y)</td></tr>
|
||||
<tr class="memdesc:a55b0a995463c6936efb33391f29565bc"><td class="mdescLeft"> </td><td class="mdescRight">Access a character in a cell at a given position. <a href="classftxui_1_1Image.html#a55b0a995463c6936efb33391f29565bc">More...</a><br /></td></tr>
|
||||
<tr class="separator:a55b0a995463c6936efb33391f29565bc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0882d58bb8ca1be9953135338456cf9e"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a0882d58bb8ca1be9953135338456cf9e">at</a> (int x, int y) const</td></tr>
|
||||
<tr class="memdesc:a0882d58bb8ca1be9953135338456cf9e"><td class="mdescLeft"> </td><td class="mdescRight">Access a character in a cell at a given position. <a href="classftxui_1_1Image.html#a0882d58bb8ca1be9953135338456cf9e">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0882d58bb8ca1be9953135338456cf9e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a483f8ee1967e200cfc9e277b3ce00174"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Pixel.html">Pixel</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a483f8ee1967e200cfc9e277b3ce00174">PixelAt</a> (int x, int y)</td></tr>
|
||||
<tr class="memdesc:a483f8ee1967e200cfc9e277b3ce00174"><td class="mdescLeft"> </td><td class="mdescRight">Access a cell (<a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>) at a given position. <a href="classftxui_1_1Image.html#a483f8ee1967e200cfc9e277b3ce00174">More...</a><br /></td></tr>
|
||||
<tr class="separator:a483f8ee1967e200cfc9e277b3ce00174"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a03b2b39bb8f4d72068744776093125b3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structftxui_1_1Pixel.html">Pixel</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a03b2b39bb8f4d72068744776093125b3">PixelAt</a> (int x, int y) const</td></tr>
|
||||
<tr class="memdesc:a03b2b39bb8f4d72068744776093125b3"><td class="mdescLeft"> </td><td class="mdescRight">Access a cell (<a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>) at a given position. <a href="classftxui_1_1Image.html#a03b2b39bb8f4d72068744776093125b3">More...</a><br /></td></tr>
|
||||
<tr class="separator:a03b2b39bb8f4d72068744776093125b3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae7a460c9dacd70ed81b1adfea46b492e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#ae7a460c9dacd70ed81b1adfea46b492e">dimx</a> () const</td></tr>
|
||||
<tr class="separator:ae7a460c9dacd70ed81b1adfea46b492e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0d283cfb1ec16b3fc13d344ebfea93d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a0d283cfb1ec16b3fc13d344ebfea93d4">dimy</a> () const</td></tr>
|
||||
<tr class="separator:a0d283cfb1ec16b3fc13d344ebfea93d4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa71d36872f416feaa853788a7a7a7ef8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#aa71d36872f416feaa853788a7a7a7ef8">Clear</a> ()</td></tr>
|
||||
<tr class="memdesc:aa71d36872f416feaa853788a7a7a7ef8"><td class="mdescLeft"> </td><td class="mdescRight">Clear all the pixel from the screen. <a href="classftxui_1_1Image.html#aa71d36872f416feaa853788a7a7a7ef8">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa71d36872f416feaa853788a7a7a7ef8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
|
||||
Data Fields</h2></td></tr>
|
||||
<tr class="memitem:a92cacd07ba30909855f19edc01192ff0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Box.html">Box</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a92cacd07ba30909855f19edc01192ff0">stencil</a></td></tr>
|
||||
<tr class="separator:a92cacd07ba30909855f19edc01192ff0"><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:a1b254c3faacd432c325efff4268ca683"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a1b254c3faacd432c325efff4268ca683">dimx_</a></td></tr>
|
||||
<tr class="separator:a1b254c3faacd432c325efff4268ca683"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9e9d5df4b41aaa5eca27cdcaca6d4574"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#a9e9d5df4b41aaa5eca27cdcaca6d4574">dimy_</a></td></tr>
|
||||
<tr class="separator:a9e9d5df4b41aaa5eca27cdcaca6d4574"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aeab8c1788b3f2c7403749c3be95a68ae"><td class="memItemLeft" align="right" valign="top">std::vector< std::vector< <a class="el" href="structftxui_1_1Pixel.html">Pixel</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Image.html#aeab8c1788b3f2c7403749c3be95a68ae">pixels_</a></td></tr>
|
||||
<tr class="separator:aeab8c1788b3f2c7403749c3be95a68ae"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>A rectangular grid of <a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00017">17</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a7c483c751b9c859ef08cecb32f1d1994"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7c483c751b9c859ef08cecb32f1d1994">◆ </a></span>Image() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Image.html">Image</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aecbd97261c37fa89ea6df7ccaba216c3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aecbd97261c37fa89ea6df7ccaba216c3">◆ </a></span>Image() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Image.html">Image</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>dimx</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>dimy</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00020">20</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a55b0a995463c6936efb33391f29565bc"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a55b0a995463c6936efb33391f29565bc">◆ </a></span>at() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">std::string & at </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Access a character in a cell at a given position. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>The cell position along the x-axis. </td></tr>
|
||||
<tr><td class="paramname">y</td><td>The cell position along the y-axis. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00029">29</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0882d58bb8ca1be9953135338456cf9e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0882d58bb8ca1be9953135338456cf9e">◆ </a></span>at() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const std::string & at </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Access a character in a cell at a given position. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>The cell position along the x-axis. </td></tr>
|
||||
<tr><td class="paramname">y</td><td>The cell position along the y-axis. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00036">36</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483f8ee1967e200cfc9e277b3ce00174"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a483f8ee1967e200cfc9e277b3ce00174">◆ </a></span>PixelAt() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Pixel.html">Pixel</a> & PixelAt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Access a cell (<a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>) at a given position. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>The cell position along the x-axis. </td></tr>
|
||||
<tr><td class="paramname">y</td><td>The cell position along the y-axis. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00043">43</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a03b2b39bb8f4d72068744776093125b3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a03b2b39bb8f4d72068744776093125b3">◆ </a></span>PixelAt() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">const <a class="el" href="structftxui_1_1Pixel.html">Pixel</a> & PixelAt </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Access a cell (<a class="el" href="structftxui_1_1Pixel.html" title="A Unicode character and its associated style.">Pixel</a>) at a given position. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>The cell position along the x-axis. </td></tr>
|
||||
<tr><td class="paramname">y</td><td>The cell position along the y-axis. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00050">50</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae7a460c9dacd70ed81b1adfea46b492e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae7a460c9dacd70ed81b1adfea46b492e">◆ </a></span>dimx()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int dimx </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00032">32</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0d283cfb1ec16b3fc13d344ebfea93d4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0d283cfb1ec16b3fc13d344ebfea93d4">◆ </a></span>dimy()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int dimy </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00033">33</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa71d36872f416feaa853788a7a7a7ef8"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa71d36872f416feaa853788a7a7a7ef8">◆ </a></span>Clear()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Clear </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Clear all the pixel from the screen. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8cpp_source.html#l00055">55</a> of file <a class="el" href="image_8cpp_source.html">image.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Field Documentation</h2>
|
||||
<a id="a92cacd07ba30909855f19edc01192ff0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a92cacd07ba30909855f19edc01192ff0">◆ </a></span>stencil</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Box.html">Box</a> stencil</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00038">38</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a1b254c3faacd432c325efff4268ca683"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a1b254c3faacd432c325efff4268ca683">◆ </a></span>dimx_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int dimx_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00041">41</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9e9d5df4b41aaa5eca27cdcaca6d4574"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9e9d5df4b41aaa5eca27cdcaca6d4574">◆ </a></span>dimy_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int dimy_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00042">42</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aeab8c1788b3f2c7403749c3be95a68ae"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aeab8c1788b3f2c7403749c3be95a68ae">◆ </a></span>pixels_</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::vector<<a class="el" href="structftxui_1_1Pixel.html">Pixel</a>> > pixels_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="image_8hpp_source.html#l00043">43</a> of file <a class="el" href="image_8hpp_source.html">image.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li>include/ftxui/screen/<a class="el" href="image_8hpp_source.html">image.hpp</a></li>
|
||||
<li>src/ftxui/screen/<a class="el" href="image_8cpp_source.html">image.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
16
classftxui_1_1Image.js
Normal file
@ -0,0 +1,16 @@
|
||||
var classftxui_1_1Image =
|
||||
[
|
||||
[ "Image", "classftxui_1_1Image.html#a7c483c751b9c859ef08cecb32f1d1994", null ],
|
||||
[ "Image", "classftxui_1_1Image.html#aecbd97261c37fa89ea6df7ccaba216c3", null ],
|
||||
[ "at", "classftxui_1_1Image.html#a55b0a995463c6936efb33391f29565bc", null ],
|
||||
[ "at", "classftxui_1_1Image.html#a0882d58bb8ca1be9953135338456cf9e", null ],
|
||||
[ "PixelAt", "classftxui_1_1Image.html#a483f8ee1967e200cfc9e277b3ce00174", null ],
|
||||
[ "PixelAt", "classftxui_1_1Image.html#a03b2b39bb8f4d72068744776093125b3", null ],
|
||||
[ "dimx", "classftxui_1_1Image.html#ae7a460c9dacd70ed81b1adfea46b492e", null ],
|
||||
[ "dimy", "classftxui_1_1Image.html#a0d283cfb1ec16b3fc13d344ebfea93d4", null ],
|
||||
[ "Clear", "classftxui_1_1Image.html#aa71d36872f416feaa853788a7a7a7ef8", null ],
|
||||
[ "stencil", "classftxui_1_1Image.html#a92cacd07ba30909855f19edc01192ff0", null ],
|
||||
[ "dimx_", "classftxui_1_1Image.html#a1b254c3faacd432c325efff4268ca683", null ],
|
||||
[ "dimy_", "classftxui_1_1Image.html#a9e9d5df4b41aaa5eca27cdcaca6d4574", null ],
|
||||
[ "pixels_", "classftxui_1_1Image.html#aeab8c1788b3f2c7403749c3be95a68ae", null ]
|
||||
];
|
5
classftxui_1_1Image__inherit__graph.map
Normal file
@ -0,0 +1,5 @@
|
||||
<map id="Image" name="Image">
|
||||
<area shape="rect" id="node1" title="A rectangular grid of Pixel." alt="" coords="42,5,105,32"/>
|
||||
<area shape="rect" id="node2" href="$classftxui_1_1Screen.html" title="A rectangular grid of Pixel." alt="" coords="40,80,107,107"/>
|
||||
<area shape="rect" id="node3" href="$classftxui_1_1ScreenInteractive.html" title=" " alt="" coords="5,155,141,181"/>
|
||||
</map>
|
1
classftxui_1_1Image__inherit__graph.md5
Normal file
@ -0,0 +1 @@
|
||||
17faac8be6119377e1fb83bd921d4dbb
|
BIN
classftxui_1_1Image__inherit__graph.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
417
classftxui_1_1Loop.html
Normal file
@ -0,0 +1,417 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: Loop 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1Loop.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Loop Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<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:aacbc899babaac445c3b9b831322e8c70"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#aacbc899babaac445c3b9b831322e8c70">Loop</a> (<a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a> *screen, <a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> component)</td></tr>
|
||||
<tr class="memdesc:aacbc899babaac445c3b9b831322e8c70"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classftxui_1_1Loop.html">Loop</a> is a wrapper around a Component and a <a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a>. It is used to run a Component in a terminal. <a href="classftxui_1_1Loop.html#aacbc899babaac445c3b9b831322e8c70">More...</a><br /></td></tr>
|
||||
<tr class="separator:aacbc899babaac445c3b9b831322e8c70"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a84c72a09400ffc01ce3257d2109453a2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#a84c72a09400ffc01ce3257d2109453a2">~Loop</a> ()</td></tr>
|
||||
<tr class="separator:a84c72a09400ffc01ce3257d2109453a2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0f10869cb1cad212e8885deac6960a41"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#a0f10869cb1cad212e8885deac6960a41">HasQuitted</a> ()</td></tr>
|
||||
<tr class="memdesc:a0f10869cb1cad212e8885deac6960a41"><td class="mdescLeft"> </td><td class="mdescRight">Whether the loop has quitted. <a href="classftxui_1_1Loop.html#a0f10869cb1cad212e8885deac6960a41">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0f10869cb1cad212e8885deac6960a41"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad638ec512bc0d9876c2bf1c15913e9d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#ad638ec512bc0d9876c2bf1c15913e9d3">RunOnce</a> ()</td></tr>
|
||||
<tr class="memdesc:ad638ec512bc0d9876c2bf1c15913e9d3"><td class="mdescLeft"> </td><td class="mdescRight">Execute the loop. Make the <code>component</code> to process every pending tasks/events. A new frame might be drawn if the previous was invalidated. Return true until the loop hasn't completed. <a href="classftxui_1_1Loop.html#ad638ec512bc0d9876c2bf1c15913e9d3">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad638ec512bc0d9876c2bf1c15913e9d3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afe89c4e52cb64cd7271c3fa8a04e7b61"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#afe89c4e52cb64cd7271c3fa8a04e7b61">RunOnceBlocking</a> ()</td></tr>
|
||||
<tr class="memdesc:afe89c4e52cb64cd7271c3fa8a04e7b61"><td class="mdescLeft"> </td><td class="mdescRight">Wait for at least one event to be handled and execute <code><a class="el" href="classftxui_1_1Loop.html#ad638ec512bc0d9876c2bf1c15913e9d3" title="Execute the loop. Make the component to process every pending tasks/events. A new frame might be draw...">Loop::RunOnce()</a></code>. <a href="classftxui_1_1Loop.html#afe89c4e52cb64cd7271c3fa8a04e7b61">More...</a><br /></td></tr>
|
||||
<tr class="separator:afe89c4e52cb64cd7271c3fa8a04e7b61"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa3eca255b6be227d7d901cc2a72017a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#aa3eca255b6be227d7d901cc2a72017a5">Run</a> ()</td></tr>
|
||||
<tr class="separator:aa3eca255b6be227d7d901cc2a72017a5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad72ac0aa7a08850990b76f15e13dbe79"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#ad72ac0aa7a08850990b76f15e13dbe79">Loop</a> (const <a class="el" href="classftxui_1_1Loop.html">Loop</a> &)=default</td></tr>
|
||||
<tr class="separator:ad72ac0aa7a08850990b76f15e13dbe79"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:adfc045f0113bbf7f6dc5895ff7ce3ac5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#adfc045f0113bbf7f6dc5895ff7ce3ac5">Loop</a> (<a class="el" href="classftxui_1_1Loop.html">Loop</a> &&)=delete</td></tr>
|
||||
<tr class="separator:adfc045f0113bbf7f6dc5895ff7ce3ac5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a54e7875b2b2b16c88ff95eecdf20a27c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Loop.html">Loop</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#a54e7875b2b2b16c88ff95eecdf20a27c">operator=</a> (<a class="el" href="classftxui_1_1Loop.html">Loop</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a54e7875b2b2b16c88ff95eecdf20a27c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a734882bfa3e357e4bb57581494e8699b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#a734882bfa3e357e4bb57581494e8699b">Loop</a> (const <a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a> &)=delete</td></tr>
|
||||
<tr class="separator:a734882bfa3e357e4bb57581494e8699b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a97b6c5cf78b6daf4d221cefd9e306ef3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Loop.html">Loop</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Loop.html#a97b6c5cf78b6daf4d221cefd9e306ef3">operator=</a> (const <a class="el" href="classftxui_1_1Loop.html">Loop</a> &)=delete</td></tr>
|
||||
<tr class="separator:a97b6c5cf78b6daf4d221cefd9e306ef3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8hpp_source.html#l00017">17</a> of file <a class="el" href="loop_8hpp_source.html">loop.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="aacbc899babaac445c3b9b831322e8c70"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aacbc899babaac445c3b9b831322e8c70">◆ </a></span>Loop() <span class="overload">[1/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a> * </td>
|
||||
<td class="paramname"><em>screen</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a> </td>
|
||||
<td class="paramname"><em>component</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classftxui_1_1Loop.html">Loop</a> is a wrapper around a Component and a <a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a>. It is used to run a Component in a terminal. </p>
|
||||
<dl class="section see"><dt>See also</dt><dd><a class="el" href="namespaceftxui.html#a3149fb57ff17207d2516790b82503002">Component</a>, <a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a>. </dd>
|
||||
<dd>
|
||||
<a class="el" href="classftxui_1_1ScreenInteractive.html#a6f7095d721dd1dbd490d97c028eb676f">ScreenInteractive::Loop()</a>. </dd>
|
||||
<dd>
|
||||
ScreenInteractive::ExitLoop(). </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramdir">[in]</td><td class="paramname">screen</td><td>The screen to use. </td></tr>
|
||||
<tr><td class="paramdir">[in]</td><td class="paramname">component</td><td>The component to run. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00021">21</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a84c72a09400ffc01ce3257d2109453a2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a84c72a09400ffc01ce3257d2109453a2">◆ </a></span>~Loop()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1Loop.html">Loop</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00026">26</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad72ac0aa7a08850990b76f15e13dbe79"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad72ac0aa7a08850990b76f15e13dbe79">◆ </a></span>Loop() <span class="overload">[2/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Loop.html">Loop</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="adfc045f0113bbf7f6dc5895ff7ce3ac5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#adfc045f0113bbf7f6dc5895ff7ce3ac5">◆ </a></span>Loop() <span class="overload">[3/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Loop.html">Loop</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a734882bfa3e357e4bb57581494e8699b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a734882bfa3e357e4bb57581494e8699b">◆ </a></span>Loop() <span class="overload">[4/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1ScreenInteractive.html">ScreenInteractive</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a0f10869cb1cad212e8885deac6960a41"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0f10869cb1cad212e8885deac6960a41">◆ </a></span>HasQuitted()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool HasQuitted </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Whether the loop has quitted. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00032">32</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad638ec512bc0d9876c2bf1c15913e9d3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad638ec512bc0d9876c2bf1c15913e9d3">◆ </a></span>RunOnce()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void RunOnce </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Execute the loop. Make the <code>component</code> to process every pending tasks/events. A new frame might be drawn if the previous was invalidated. Return true until the loop hasn't completed. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00039">39</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="afe89c4e52cb64cd7271c3fa8a04e7b61"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afe89c4e52cb64cd7271c3fa8a04e7b61">◆ </a></span>RunOnceBlocking()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void RunOnceBlocking </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Wait for at least one event to be handled and execute <code><a class="el" href="classftxui_1_1Loop.html#ad638ec512bc0d9876c2bf1c15913e9d3" title="Execute the loop. Make the component to process every pending tasks/events. A new frame might be draw...">Loop::RunOnce()</a></code>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00045">45</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa3eca255b6be227d7d901cc2a72017a5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa3eca255b6be227d7d901cc2a72017a5">◆ </a></span>Run()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Run </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>Execute the loop, blocking the current thread, up until the loop has quitted. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="loop_8cpp_source.html#l00051">51</a> of file <a class="el" href="loop_8cpp_source.html">loop.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a54e7875b2b2b16c88ff95eecdf20a27c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a54e7875b2b2b16c88ff95eecdf20a27c">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Loop.html">Loop</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a97b6c5cf78b6daf4d221cefd9e306ef3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a97b6c5cf78b6daf4d221cefd9e306ef3">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Loop.html">Loop</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Loop.html">Loop</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li>include/ftxui/component/<a class="el" href="loop_8hpp_source.html">loop.hpp</a></li>
|
||||
<li>src/ftxui/component/<a class="el" href="loop_8cpp_source.html">loop.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
14
classftxui_1_1Loop.js
Normal file
@ -0,0 +1,14 @@
|
||||
var classftxui_1_1Loop =
|
||||
[
|
||||
[ "Loop", "classftxui_1_1Loop.html#aacbc899babaac445c3b9b831322e8c70", null ],
|
||||
[ "~Loop", "classftxui_1_1Loop.html#a84c72a09400ffc01ce3257d2109453a2", null ],
|
||||
[ "Loop", "classftxui_1_1Loop.html#ad72ac0aa7a08850990b76f15e13dbe79", null ],
|
||||
[ "Loop", "classftxui_1_1Loop.html#adfc045f0113bbf7f6dc5895ff7ce3ac5", null ],
|
||||
[ "Loop", "classftxui_1_1Loop.html#a734882bfa3e357e4bb57581494e8699b", null ],
|
||||
[ "HasQuitted", "classftxui_1_1Loop.html#a0f10869cb1cad212e8885deac6960a41", null ],
|
||||
[ "RunOnce", "classftxui_1_1Loop.html#ad638ec512bc0d9876c2bf1c15913e9d3", null ],
|
||||
[ "RunOnceBlocking", "classftxui_1_1Loop.html#afe89c4e52cb64cd7271c3fa8a04e7b61", null ],
|
||||
[ "Run", "classftxui_1_1Loop.html#aa3eca255b6be227d7d901cc2a72017a5", null ],
|
||||
[ "operator=", "classftxui_1_1Loop.html#a54e7875b2b2b16c88ff95eecdf20a27c", null ],
|
||||
[ "operator=", "classftxui_1_1Loop.html#a97b6c5cf78b6daf4d221cefd9e306ef3", null ]
|
||||
];
|
604
classftxui_1_1Node.html
Normal file
@ -0,0 +1,604 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: Node 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1Node.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Data Structures</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-attribs">Protected Attributes</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Node Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<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 Node:</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="classftxui_1_1Node__inherit__graph.png" border="0" usemap="#aNode_inherit__map" alt="Inheritance graph"/></div>
|
||||
<map name="aNode_inherit__map" id="aNode_inherit__map">
|
||||
<area shape="rect" title=" " alt="" coords="37,5,93,32"/>
|
||||
<area shape="rect" href="classftxui_1_1NodeDecorator.html" title=" " alt="" coords="5,80,125,107"/>
|
||||
</map>
|
||||
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
||||
Data Structures</h2></td></tr>
|
||||
<tr class="memitem:structftxui_1_1Node_1_1Status"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Status</a></td></tr>
|
||||
<tr class="separator:structftxui_1_1Node_1_1Status"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><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:a0d313fac56abd7ebe58a17f1530b879e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a0d313fac56abd7ebe58a17f1530b879e">Node</a> ()</td></tr>
|
||||
<tr class="separator:a0d313fac56abd7ebe58a17f1530b879e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a19fa1eae4c02e514c62a95e395b383a1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a19fa1eae4c02e514c62a95e395b383a1">Node</a> (<a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> children)</td></tr>
|
||||
<tr class="separator:a19fa1eae4c02e514c62a95e395b383a1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7eb6a9efa23e5f6f7fc53b5aa3759dff"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a7eb6a9efa23e5f6f7fc53b5aa3759dff">Node</a> (const <a class="el" href="classftxui_1_1Node.html">Node</a> &)=delete</td></tr>
|
||||
<tr class="separator:a7eb6a9efa23e5f6f7fc53b5aa3759dff"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac6365e35a2029b3e58eca97905f8124d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#ac6365e35a2029b3e58eca97905f8124d">Node</a> (const <a class="el" href="classftxui_1_1Node.html">Node</a> &&)=delete</td></tr>
|
||||
<tr class="separator:ac6365e35a2029b3e58eca97905f8124d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a19b830b40b9fc7f8a1dbcd99613282da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Node.html">Node</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a19b830b40b9fc7f8a1dbcd99613282da">operator=</a> (const <a class="el" href="classftxui_1_1Node.html">Node</a> &)=delete</td></tr>
|
||||
<tr class="separator:a19b830b40b9fc7f8a1dbcd99613282da"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3c22fd7d6563fd01bb71bed6eb25c328"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Node.html">Node</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a3c22fd7d6563fd01bb71bed6eb25c328">operator=</a> (const <a class="el" href="classftxui_1_1Node.html">Node</a> &&)=delete</td></tr>
|
||||
<tr class="separator:a3c22fd7d6563fd01bb71bed6eb25c328"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6fa6bf60f34f1e3efb0e59333428c9c8"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a6fa6bf60f34f1e3efb0e59333428c9c8">~Node</a> ()</td></tr>
|
||||
<tr class="separator:a6fa6bf60f34f1e3efb0e59333428c9c8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a40bd818c5de23bb2d208360d275ae59d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">ComputeRequirement</a> ()</td></tr>
|
||||
<tr class="memdesc:a40bd818c5de23bb2d208360d275ae59d"><td class="mdescLeft"> </td><td class="mdescRight">Compute how much space an elements needs. <a href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a40bd818c5de23bb2d208360d275ae59d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a39a263e8c8786dc62fcb4d734aad7fe6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a39a263e8c8786dc62fcb4d734aad7fe6">requirement</a> ()</td></tr>
|
||||
<tr class="separator:a39a263e8c8786dc62fcb4d734aad7fe6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2ed318aaadb07efc50e76fce1ccf9637"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">SetBox</a> (<a class="el" href="structftxui_1_1Box.html">Box</a> box)</td></tr>
|
||||
<tr class="memdesc:a2ed318aaadb07efc50e76fce1ccf9637"><td class="mdescLeft"> </td><td class="mdescRight">Assign a position and a dimension to an element for drawing. <a href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2ed318aaadb07efc50e76fce1ccf9637"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7e286fe14880614686ceeec84a9a9702"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">Render</a> (<a class="el" href="classftxui_1_1Screen.html">Screen</a> &screen)</td></tr>
|
||||
<tr class="memdesc:a7e286fe14880614686ceeec84a9a9702"><td class="mdescLeft"> </td><td class="mdescRight">Display an element on a <a class="el" href="classftxui_1_1Screen.html" title="A rectangular grid of Pixel.">ftxui::Screen</a>. <a href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7e286fe14880614686ceeec84a9a9702"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5b71d891a102197f2856f53702425581"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a5b71d891a102197f2856f53702425581">Check</a> (<a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Status</a> *status)</td></tr>
|
||||
<tr class="separator:a5b71d891a102197f2856f53702425581"><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:a2aeb117dade3254694355ab90e9fc566"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a2aeb117dade3254694355ab90e9fc566">children_</a></td></tr>
|
||||
<tr class="separator:a2aeb117dade3254694355ab90e9fc566"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3530d99687053ce0d0006b9dee9a1ca7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a3530d99687053ce0d0006b9dee9a1ca7">requirement_</a></td></tr>
|
||||
<tr class="separator:a3530d99687053ce0d0006b9dee9a1ca7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa7e7d30102945911407723a5cbcdfabc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Box.html">Box</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#aa7e7d30102945911407723a5cbcdfabc">box_</a></td></tr>
|
||||
<tr class="separator:aa7e7d30102945911407723a5cbcdfabc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00022">22</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
</div><hr/><h2 class="groupheader">Data Structure Documentation</h2>
|
||||
<a name="structftxui_1_1Node_1_1Status" id="structftxui_1_1Node_1_1Status"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1Node_1_1Status">◆ </a></span>ftxui::Node::Status</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">struct ftxui::Node::Status</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00049">49</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
</div><table class="fieldtable">
|
||||
<tr><th colspan="3">Data Fields</th></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="aa6371382c6b4224e577e14ea610ab9a9"></a>int</td>
|
||||
<td class="fieldname">
|
||||
iteration</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
<tr><td class="fieldtype">
|
||||
<a id="a0fffbfa5479a3b6d3ddf5ff13504a51c"></a>bool</td>
|
||||
<td class="fieldname">
|
||||
need_iteration</td>
|
||||
<td class="fielddoc">
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a0d313fac56abd7ebe58a17f1530b879e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0d313fac56abd7ebe58a17f1530b879e">◆ </a></span>Node() <span class="overload">[1/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a19fa1eae4c02e514c62a95e395b383a1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a19fa1eae4c02e514c62a95e395b383a1">◆ </a></span>Node() <span class="overload">[2/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> </td>
|
||||
<td class="paramname"><em>children</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00013">13</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7eb6a9efa23e5f6f7fc53b5aa3759dff"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7eb6a9efa23e5f6f7fc53b5aa3759dff">◆ </a></span>Node() <span class="overload">[3/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Node.html">Node</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ac6365e35a2029b3e58eca97905f8124d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac6365e35a2029b3e58eca97905f8124d">◆ </a></span>Node() <span class="overload">[4/4]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Node.html">Node</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6fa6bf60f34f1e3efb0e59333428c9c8"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6fa6bf60f34f1e3efb0e59333428c9c8">◆ </a></span>~Node()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">~<a class="el" href="classftxui_1_1Node.html">Node</a> </td>
|
||||
<td>(</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 class="mlabel">default</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a19b830b40b9fc7f8a1dbcd99613282da"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a19b830b40b9fc7f8a1dbcd99613282da">◆ </a></span>operator=() <span class="overload">[1/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Node.html">Node</a> & </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a3c22fd7d6563fd01bb71bed6eb25c328"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3c22fd7d6563fd01bb71bed6eb25c328">◆ </a></span>operator=() <span class="overload">[2/2]</span></h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1Node.html">Node</a>& operator= </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="classftxui_1_1Node.html">Node</a> && </td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a40bd818c5de23bb2d208360d275ae59d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a40bd818c5de23bb2d208360d275ae59d">◆ </a></span>ComputeRequirement()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void ComputeRequirement </td>
|
||||
<td>(</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>Compute how much space an elements needs. </p>
|
||||
|
||||
<p>Reimplemented in <a class="el" href="classftxui_1_1NodeDecorator.html#ac68a91492bfe8a6dd7ea2b3f7f295720">NodeDecorator</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00018">18</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a39a263e8c8786dc62fcb4d734aad7fe6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a39a263e8c8786dc62fcb4d734aad7fe6">◆ </a></span>requirement()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> requirement </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00037">37</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2ed318aaadb07efc50e76fce1ccf9637"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2ed318aaadb07efc50e76fce1ccf9637">◆ </a></span>SetBox()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void SetBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="structftxui_1_1Box.html">Box</a> </td>
|
||||
<td class="paramname"><em>box</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>Assign a position and a dimension to an element for drawing. </p>
|
||||
|
||||
<p>Reimplemented in <a class="el" href="classftxui_1_1NodeDecorator.html#aafcc9bd6538ccb37babf4d56c4c1c238">NodeDecorator</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00026">26</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7e286fe14880614686ceeec84a9a9702"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7e286fe14880614686ceeec84a9a9702">◆ </a></span>Render()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Render </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Screen.html">Screen</a> & </td>
|
||||
<td class="paramname"><em>screen</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>Display an element on a <a class="el" href="classftxui_1_1Screen.html" title="A rectangular grid of Pixel.">ftxui::Screen</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00032">32</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5b71d891a102197f2856f53702425581"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5b71d891a102197f2856f53702425581">◆ </a></span>Check()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Check </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Status</a> * </td>
|
||||
<td class="paramname"><em>status</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 class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00038">38</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Field Documentation</h2>
|
||||
<a id="a2aeb117dade3254694355ab90e9fc566"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2aeb117dade3254694355ab90e9fc566">◆ </a></span>children_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> children_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00056">56</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a3530d99687053ce0d0006b9dee9a1ca7"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3530d99687053ce0d0006b9dee9a1ca7">◆ </a></span>requirement_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> requirement_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00057">57</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa7e7d30102945911407723a5cbcdfabc"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa7e7d30102945911407723a5cbcdfabc">◆ </a></span>box_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Box.html">Box</a> box_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00058">58</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li>include/ftxui/dom/<a class="el" href="node_8hpp_source.html">node.hpp</a></li>
|
||||
<li>src/ftxui/dom/<a class="el" href="node_8cpp_source.html">node.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
22
classftxui_1_1Node.js
Normal file
@ -0,0 +1,22 @@
|
||||
var classftxui_1_1Node =
|
||||
[
|
||||
[ "Status", "classftxui_1_1Node.html#structftxui_1_1Node_1_1Status", [
|
||||
[ "iteration", "classftxui_1_1Node.html#aa6371382c6b4224e577e14ea610ab9a9", null ],
|
||||
[ "need_iteration", "classftxui_1_1Node.html#a0fffbfa5479a3b6d3ddf5ff13504a51c", null ]
|
||||
] ],
|
||||
[ "Node", "classftxui_1_1Node.html#a0d313fac56abd7ebe58a17f1530b879e", null ],
|
||||
[ "Node", "classftxui_1_1Node.html#a19fa1eae4c02e514c62a95e395b383a1", null ],
|
||||
[ "Node", "classftxui_1_1Node.html#a7eb6a9efa23e5f6f7fc53b5aa3759dff", null ],
|
||||
[ "Node", "classftxui_1_1Node.html#ac6365e35a2029b3e58eca97905f8124d", null ],
|
||||
[ "~Node", "classftxui_1_1Node.html#a6fa6bf60f34f1e3efb0e59333428c9c8", null ],
|
||||
[ "operator=", "classftxui_1_1Node.html#a19b830b40b9fc7f8a1dbcd99613282da", null ],
|
||||
[ "operator=", "classftxui_1_1Node.html#a3c22fd7d6563fd01bb71bed6eb25c328", null ],
|
||||
[ "ComputeRequirement", "classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d", null ],
|
||||
[ "requirement", "classftxui_1_1Node.html#a39a263e8c8786dc62fcb4d734aad7fe6", null ],
|
||||
[ "SetBox", "classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637", null ],
|
||||
[ "Render", "classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702", null ],
|
||||
[ "Check", "classftxui_1_1Node.html#a5b71d891a102197f2856f53702425581", null ],
|
||||
[ "children_", "classftxui_1_1Node.html#a2aeb117dade3254694355ab90e9fc566", null ],
|
||||
[ "requirement_", "classftxui_1_1Node.html#a3530d99687053ce0d0006b9dee9a1ca7", null ],
|
||||
[ "box_", "classftxui_1_1Node.html#aa7e7d30102945911407723a5cbcdfabc", null ]
|
||||
];
|
400
classftxui_1_1NodeDecorator.html
Normal file
@ -0,0 +1,400 @@
|
||||
<!-- HTML header for doxygen 1.8.14-->
|
||||
<!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="cache-control" content="max-age=86400"/>
|
||||
<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.9.1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>FTXUI: NodeDecorator 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="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.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" />
|
||||
<link href="doxygen_extra.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">FTXUI
|
||||
 <span id="projectnumber">5.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.1 -->
|
||||
<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','.html');
|
||||
/* @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>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(document).ready(function(){initNavTree('classftxui_1_1NodeDecorator.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-attribs">Protected Attributes</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">NodeDecorator Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<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 NodeDecorator:</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="classftxui_1_1NodeDecorator__inherit__graph.png" border="0" usemap="#aNodeDecorator_inherit__map" alt="Inheritance graph"/></div>
|
||||
<map name="aNodeDecorator_inherit__map" id="aNodeDecorator_inherit__map">
|
||||
<area shape="rect" title=" " alt="" coords="5,80,125,107"/>
|
||||
<area shape="rect" href="classftxui_1_1Node.html" title=" " alt="" coords="37,5,93,32"/>
|
||||
</map>
|
||||
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></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:a7e9d74ba5d480d87e8bfcaf2df66fbbe"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1NodeDecorator.html#a7e9d74ba5d480d87e8bfcaf2df66fbbe">NodeDecorator</a> (<a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> child)</td></tr>
|
||||
<tr class="separator:a7e9d74ba5d480d87e8bfcaf2df66fbbe"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac68a91492bfe8a6dd7ea2b3f7f295720"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1NodeDecorator.html#ac68a91492bfe8a6dd7ea2b3f7f295720">ComputeRequirement</a> () override</td></tr>
|
||||
<tr class="memdesc:ac68a91492bfe8a6dd7ea2b3f7f295720"><td class="mdescLeft"> </td><td class="mdescRight">Compute how much space an elements needs. <a href="classftxui_1_1NodeDecorator.html#ac68a91492bfe8a6dd7ea2b3f7f295720">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac68a91492bfe8a6dd7ea2b3f7f295720"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aafcc9bd6538ccb37babf4d56c4c1c238"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1NodeDecorator.html#aafcc9bd6538ccb37babf4d56c4c1c238">SetBox</a> (<a class="el" href="structftxui_1_1Box.html">Box</a> box) override</td></tr>
|
||||
<tr class="memdesc:aafcc9bd6538ccb37babf4d56c4c1c238"><td class="mdescLeft"> </td><td class="mdescRight">Assign a position and a dimension to an element for drawing. <a href="classftxui_1_1NodeDecorator.html#aafcc9bd6538ccb37babf4d56c4c1c238">More...</a><br /></td></tr>
|
||||
<tr class="separator:aafcc9bd6538ccb37babf4d56c4c1c238"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a39a263e8c8786dc62fcb4d734aad7fe6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a39a263e8c8786dc62fcb4d734aad7fe6">requirement</a> ()</td></tr>
|
||||
<tr class="separator:a39a263e8c8786dc62fcb4d734aad7fe6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7e286fe14880614686ceeec84a9a9702"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">Render</a> (<a class="el" href="classftxui_1_1Screen.html">Screen</a> &screen)</td></tr>
|
||||
<tr class="memdesc:a7e286fe14880614686ceeec84a9a9702"><td class="mdescLeft"> </td><td class="mdescRight">Display an element on a <a class="el" href="classftxui_1_1Screen.html" title="A rectangular grid of Pixel.">ftxui::Screen</a>. <a href="classftxui_1_1Node.html#a7e286fe14880614686ceeec84a9a9702">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7e286fe14880614686ceeec84a9a9702"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5b71d891a102197f2856f53702425581"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a5b71d891a102197f2856f53702425581">Check</a> (<a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Status</a> *status)</td></tr>
|
||||
<tr class="separator:a5b71d891a102197f2856f53702425581"><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:a2aeb117dade3254694355ab90e9fc566"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a2aeb117dade3254694355ab90e9fc566">children_</a></td></tr>
|
||||
<tr class="separator:a2aeb117dade3254694355ab90e9fc566"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3530d99687053ce0d0006b9dee9a1ca7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#a3530d99687053ce0d0006b9dee9a1ca7">requirement_</a></td></tr>
|
||||
<tr class="separator:a3530d99687053ce0d0006b9dee9a1ca7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa7e7d30102945911407723a5cbcdfabc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1Box.html">Box</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Node.html#aa7e7d30102945911407723a5cbcdfabc">box_</a></td></tr>
|
||||
<tr class="separator:aa7e7d30102945911407723a5cbcdfabc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock">
|
||||
<p class="definition">Definition at line <a class="el" href="node__decorator_8hpp_source.html#l00016">16</a> of file <a class="el" href="node__decorator_8hpp_source.html">node_decorator.hpp</a>.</p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a7e9d74ba5d480d87e8bfcaf2df66fbbe"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7e9d74ba5d480d87e8bfcaf2df66fbbe">◆ </a></span>NodeDecorator()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classftxui_1_1NodeDecorator.html">NodeDecorator</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="namespaceftxui.html#a26a62b91b796ce76a5582cf194da3fb2">Element</a> </td>
|
||||
<td class="paramname"><em>child</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node__decorator_8hpp_source.html#l00018">18</a> of file <a class="el" href="node__decorator_8hpp_source.html">node_decorator.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="ac68a91492bfe8a6dd7ea2b3f7f295720"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac68a91492bfe8a6dd7ea2b3f7f295720">◆ </a></span>ComputeRequirement()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void ComputeRequirement </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Compute how much space an elements needs. </p>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="classftxui_1_1Node.html#a40bd818c5de23bb2d208360d275ae59d">Node</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node__decorator_8cpp_source.html#l00012">12</a> of file <a class="el" href="node__decorator_8cpp_source.html">node_decorator.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aafcc9bd6538ccb37babf4d56c4c1c238"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aafcc9bd6538ccb37babf4d56c4c1c238">◆ </a></span>SetBox()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void SetBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="structftxui_1_1Box.html">Box</a> </td>
|
||||
<td class="paramname"><em>box</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Assign a position and a dimension to an element for drawing. </p>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="classftxui_1_1Node.html#a2ed318aaadb07efc50e76fce1ccf9637">Node</a>.</p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node__decorator_8cpp_source.html#l00017">17</a> of file <a class="el" href="node__decorator_8cpp_source.html">node_decorator.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a39a263e8c8786dc62fcb4d734aad7fe6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a39a263e8c8786dc62fcb4d734aad7fe6">◆ </a></span>requirement()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> requirement </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00037">37</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7e286fe14880614686ceeec84a9a9702"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7e286fe14880614686ceeec84a9a9702">◆ </a></span>Render()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Render </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Screen.html">Screen</a> & </td>
|
||||
<td class="paramname"><em>screen</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Display an element on a <a class="el" href="classftxui_1_1Screen.html" title="A rectangular grid of Pixel.">ftxui::Screen</a>. </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00032">32</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5b71d891a102197f2856f53702425581"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5b71d891a102197f2856f53702425581">◆ </a></span>Check()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void Check </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classftxui_1_1Node.html#structftxui_1_1Node_1_1Status">Status</a> * </td>
|
||||
<td class="paramname"><em>status</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8cpp_source.html#l00038">38</a> of file <a class="el" href="node_8cpp_source.html">node.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Field Documentation</h2>
|
||||
<a id="a2aeb117dade3254694355ab90e9fc566"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2aeb117dade3254694355ab90e9fc566">◆ </a></span>children_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="namespaceftxui.html#a792071ccdd115df37a515b3e49d174ef">Elements</a> children_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00056">56</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a3530d99687053ce0d0006b9dee9a1ca7"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3530d99687053ce0d0006b9dee9a1ca7">◆ </a></span>requirement_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Requirement.html">Requirement</a> requirement_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00057">57</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aa7e7d30102945911407723a5cbcdfabc"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aa7e7d30102945911407723a5cbcdfabc">◆ </a></span>box_</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="structftxui_1_1Box.html">Box</a> box_</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="node_8hpp_source.html#l00058">58</a> of file <a class="el" href="node_8hpp_source.html">node.hpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li>src/ftxui/dom/<a class="el" href="node__decorator_8hpp_source.html">node_decorator.hpp</a></li>
|
||||
<li>src/ftxui/dom/<a class="el" href="node__decorator_8cpp_source.html">node_decorator.cpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.8.14-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|