Files
FTXUI/en/v0.10/ref_8hpp.html
2025-11-12 12:56:59 +00:00

263 lines
18 KiB
HTML

<!-- 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.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FTXUI: include/ftxui/util/ref.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="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.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
&#160;<span id="projectnumber">0.10.0</span>
</div>
<div id="projectbrief">C++ functional terminal UI.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('ref_8hpp.html',''); initResizable(true); });
/* @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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#namespaces">Namespaces</a> </div>
<div class="headertitle"><div class="title">ref.hpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div id="dynsection-0" onclick="return dynsection.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="ref_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2util_2ref_8hppdep" alt=""/></div>
<map name="ainclude_2ftxui_2util_2ref_8hppdep" id="ainclude_2ftxui_2util_2ref_8hppdep">
<area shape="rect" title=" " alt="" coords="1085,5,1212,45"/>
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1059,181,1238,221"/>
<area shape="poly" title=" " alt="" coords="1151,59,1151,181,1146,181,1146,59"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="581,357,732,397"/>
<area shape="poly" title=" " alt="" coords="1226,25,1645,40,1926,57,2211,83,2345,99,2469,119,2579,141,2669,167,2738,196,2763,213,2780,230,2790,249,2792,269,2785,290,2767,312,2742,319,2684,325,2485,337,1875,357,1202,371,732,378,732,372,1202,365,1875,352,2485,332,2683,320,2741,314,2765,307,2780,287,2787,268,2785,250,2776,233,2759,217,2735,201,2668,172,2577,146,2468,124,2345,104,2210,88,1925,62,1645,45,1226,31"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,269,156,309"/>
<area shape="poly" title=" " alt="" coords="1071,33,746,55,575,73,505,84,452,96,349,135,251,184,168,233,109,271,106,267,165,228,248,179,346,130,451,91,504,79,574,68,745,49,1071,28"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="180,269,331,309"/>
<area shape="poly" title=" " alt="" coords="1072,33,941,41,786,54,639,72,580,83,535,96,494,113,455,135,381,183,320,232,277,271,273,267,316,228,378,179,452,130,492,109,533,91,578,78,638,67,785,48,941,35,1071,28"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="355,269,505,309"/>
<area shape="poly" title=" " alt="" coords="1072,34,890,53,783,71,677,96,567,124,524,144,477,183,462,204,450,227,436,270,431,268,445,225,457,201,473,179,521,140,566,119,676,91,782,66,889,48,1072,28"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2428,269,2579,309"/>
<area shape="poly" title=" " alt="" coords="1226,35,1561,91,2056,189,2428,269,2427,274,2055,194,1560,96,1225,41"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2603,269,2753,309"/>
<area shape="poly" title=" " alt="" coords="1226,32,1432,56,1682,91,1949,137,2210,187,2603,269,2602,274,2209,192,1948,142,1682,96,1432,61,1225,37"/>
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2253,269,2404,309"/>
<area shape="poly" title=" " alt="" coords="1226,41,2254,269,2253,274,1225,46"/>
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="689,93,872,133"/>
<area shape="poly" title=" " alt="" coords="1072,47,862,96,861,91,1071,42"/>
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="631,269,810,309"/>
<area shape="poly" title=" " alt="" coords="1046,224,807,272,806,267,1045,219"/>
<area shape="poly" title=" " alt="" coords="1046,211,922,220,789,233,678,250,641,261,621,271,616,280,613,291,617,313,628,336,642,356,638,359,624,339,612,315,608,290,611,278,617,267,639,256,677,245,788,228,921,215,1046,206"/>
<area shape="poly" title=" " alt="" coords="1046,207,878,213,659,225,414,244,168,272,157,274,156,268,167,267,413,238,658,219,877,208,1046,202"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1708,269,1859,309"/>
<area shape="poly" title=" " alt="" coords="1252,212,1493,240,1696,267,1708,269,1707,274,1695,272,1492,245,1251,217"/>
<area shape="poly" title=" " alt="" coords="1046,210,731,230,537,248,342,272,331,274,330,268,342,267,536,242,730,224,1046,204"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="1883,269,2033,309"/>
<area shape="poly" title=" " alt="" coords="1252,212,1321,219,1475,231,1596,238,1716,247,1870,267,1883,269,1882,274,1870,272,1716,253,1596,243,1475,236,1320,224,1252,217"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="2057,269,2229,309"/>
<area shape="poly" title=" " alt="" coords="1252,212,1321,219,1524,232,1683,238,1842,246,2045,267,2058,268,2057,274,2044,272,1842,251,1683,243,1524,238,1320,224,1252,217"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="835,269,985,309"/>
<area shape="poly" title=" " alt="" coords="1084,229,963,272,961,267,1082,224"/>
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="1009,269,1160,309"/>
<area shape="poly" title=" " alt="" coords="1128,234,1101,271,1097,268,1124,231"/>
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1184,269,1335,309"/>
<area shape="poly" title=" " alt="" coords="1186,228,1236,267,1233,271,1183,232"/>
<area shape="poly" title=" " alt="" coords="1046,217,576,272,506,281,505,275,575,267,1046,212"/>
<area shape="poly" title=" " alt="" coords="1252,204,1897,235,2225,252,2416,267,2428,269,2427,274,2415,272,2225,258,1896,240,1252,210"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1359,269,1509,309"/>
<area shape="poly" title=" " alt="" coords="1225,223,1372,267,1371,272,1224,228"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1533,269,1684,309"/>
<area shape="poly" title=" " alt="" coords="1252,218,1521,267,1534,269,1533,274,1520,272,1251,223"/>
<area shape="poly" title=" " alt="" coords="1251,199,1491,200,1823,208,2204,229,2399,245,2590,267,2603,268,2602,274,2590,272,2399,251,2204,234,1822,214,1490,206,1251,204"/>
<area shape="poly" title=" " alt="" coords="1252,212,1321,219,1461,228,1580,232,1782,235,1983,241,2102,251,2241,267,2253,269,2253,274,2240,272,2101,256,1983,247,1781,240,1579,238,1461,233,1320,224,1252,218"/>
<area shape="poly" title=" " alt="" coords="823,266,1062,219,1063,224,824,272"/>
<area shape="poly" title=" " alt="" coords="700,322,673,359,669,356,696,319"/>
<area shape="poly" title=" " alt="" coords="875,134,1069,179,1067,184,874,139"/>
<area shape="poly" title=" " alt="" coords="736,142,701,165,666,195,633,230,609,270,605,293,611,316,624,337,639,356,635,359,620,340,607,318,600,293,603,268,629,227,662,191,698,161,733,138"/>
<area shape="poly" title=" " alt="" coords="676,129,534,151,379,184,240,228,126,272,124,267,238,223,377,179,533,146,676,124"/>
<area shape="poly" title=" " alt="" coords="677,134,578,155,476,184,372,228,289,272,287,267,370,223,474,179,577,149,675,129"/>
<area shape="poly" title=" " alt="" coords="676,130,600,150,562,165,526,184,500,203,477,226,444,271,439,267,473,223,497,199,523,179,559,160,598,145,675,125"/>
<area shape="poly" title=" " alt="" coords="886,118,1154,135,1533,165,1971,209,2196,236,2416,267,2428,269,2427,274,2415,272,2195,241,1971,214,1533,170,1154,140,886,123"/>
<area shape="poly" title=" " alt="" coords="886,127,1215,171,1625,219,1798,232,1933,238,2068,247,2241,267,2253,269,2253,274,2240,272,2068,252,1933,244,1798,238,1624,224,1215,176,885,132"/>
</map>
</div>
</div>
<p><a href="ref_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 id="nested-classes" name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef&lt; T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter. Own or reference an immutable object. <a href="classftxui_1_1ConstRef.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1Ref.html">Ref&lt; T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter. Own or reference an mutable object. <a href="classftxui_1_1Ref.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1StringRef.html">StringRef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter. Own or reference a constant string. For convenience, this class convert multiple mutable string toward a shared representation. <a href="classftxui_1_1StringRef.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1WideStringRef.html">WideStringRef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter. Own or reference a constant string. For convenience, this class convert multiple mutable string toward a shared representation. <a href="classftxui_1_1WideStringRef.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringRef.html">ConstStringRef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">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><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstStringListRef.html">ConstStringListRef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">An adapter. Reference a list of strings. <a href="classftxui_1_1ConstStringListRef.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</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>
<script>
document.addEventListener('DOMContentLoaded', function() {
const projectNumber = document.getElementById('projectnumber');
if (!projectNumber) {
console.warn('Doxygen element with ID "projectnumber" not found. Cannot add version switcher.');
return;
}
const versions = ["main", "v6.1.9", "v6.1.8", "v6.1.7", "v6.1.6", "v6.1.5", "v6.1.4", "v6.1.3", "v6.1.2", "v6.1.1", "v6.1.0", "v6.0.2", "v6.0.1", "v6.0.0", "v5.0.0", "v4.1.1", "v4.1.0", "v4.0.0", "v3.0.0", "v2.0.0", "v0.9", "v0.11", "v0.10"];
const version_paths = {"main": "../../index.html", "v6.1.9": "../v6.1.9/index.html", "v6.1.8": "../v6.1.8/index.html", "v6.1.7": "../v6.1.7/index.html", "v6.1.6": "../v6.1.6/index.html", "v6.1.5": "../v6.1.5/index.html", "v6.1.4": "../v6.1.4/index.html", "v6.1.3": "../v6.1.3/index.html", "v6.1.2": "../v6.1.2/index.html", "v6.1.1": "../v6.1.1/index.html", "v6.1.0": "../v6.1.0/index.html", "v6.0.2": "../v6.0.2/index.html", "v6.0.1": "../v6.0.1/index.html", "v6.0.0": "../v6.0.0/index.html", "v5.0.0": "../v5.0.0/index.html", "v4.1.1": "../v4.1.1/index.html", "v4.1.0": "../v4.1.0/index.html", "v4.0.0": "../v4.0.0/index.html", "v3.0.0": "../v3.0.0/index.html", "v2.0.0": "../v2.0.0/index.html", "v0.9": "../v0.9/index.html", "v0.11": "../v0.11/index.html", "v0.10": "index.html"};
const currentVersion = "v0.10";
// Sort versions: 'main' first, then others numerically descending.
versions.sort((a, b) => {
if (a === 'main') return -1;
if (b === 'main') return 1;
return b.localeCompare(a, undefined, { numeric: true, sensitivity: 'base' });
});
const select = document.createElement('select');
select.onchange = function() {
const selectedVersion = this.value;
// Navigate directly to the pre-calculated relative path.
if (selectedVersion !== currentVersion) {
window.location.href = version_paths[selectedVersion];
}
};
versions.forEach(v => {
const option = document.createElement('option');
option.value = v;
option.textContent = v;
if (v === currentVersion) {
option.selected = true;
}
select.appendChild(option);
});
// Replace the Doxygen project number element with our dropdown.
projectNumber.replaceWith(select);
// Apply some styling to make it look good.
Object.assign(select.style, {
backgroundColor: 'rgba(0, 0, 0, 0.8)',
color: 'white',
border: '1px solid rgba(255, 255, 255, 0.2)',
padding: '5px',
borderRadius: '5px',
fontSize: '14px',
fontFamily: 'inherit',
marginLeft: '10px',
cursor: 'pointer'
});
});
</script>
</body>
</html>