mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
265 lines
18 KiB
HTML
265 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
|
|
 <span id="projectnumber">0.11.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&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&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&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> |
|
|
<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="1975,5,2101,45"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1315,181,1494,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1962,50,1474,184,1472,179,1961,45"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1543,357,1693,397"/>
|
|
<area shape="poly" title=" " alt="" coords="2115,28,2216,35,2340,48,2473,67,2600,94,2657,111,2708,131,2750,153,2782,178,2802,206,2808,238,2797,273,2769,311,2753,319,2721,326,2619,338,2311,357,1962,370,1694,377,1694,372,1962,365,2310,352,2619,333,2720,320,2751,314,2766,307,2793,271,2802,238,2797,208,2778,181,2747,157,2706,135,2656,116,2599,99,2472,72,2339,53,2216,40,2115,33"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,269,156,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1961,33,1606,53,1374,72,1140,96,990,116,874,135,610,184,389,226,168,272,157,274,156,269,167,267,388,221,610,179,873,129,989,110,1139,91,1373,66,1605,48,1961,27"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="180,269,331,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1961,36,1712,60,1401,96,1132,137,864,184,603,226,342,272,331,274,330,269,342,267,602,221,863,179,1131,132,1400,91,1711,54,1961,31"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="355,269,505,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1962,42,506,278,505,273,1961,37"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="2203,269,2353,309"/>
|
|
<area shape="poly" title=" " alt="" coords="2068,54,2103,92,2263,267,2259,271,2099,95,2064,58"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2604,269,2755,309"/>
|
|
<area shape="poly" title=" " alt="" coords="2098,48,2634,267,2632,272,2096,53"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2377,269,2528,309"/>
|
|
<area shape="poly" title=" " alt="" coords="2081,50,2424,267,2421,271,2078,55"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2028,269,2179,309"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,56,2079,92,2092,141,2100,191,2106,269,2100,269,2095,192,2087,143,2074,94,2057,58"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="1883,93,2065,133"/>
|
|
<area shape="poly" title=" " alt="" coords="2018,58,1990,95,1986,92,2013,55"/>
|
|
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="581,269,759,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,220,1270,224,1127,239,1015,247,903,255,760,272,759,272,758,267,759,267,902,250,1014,241,1126,234,1270,219,1301,214"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,222,1282,224,1201,228,1088,229,825,231,705,238,612,251,582,262,564,274,560,289,570,307,583,313,611,319,702,331,980,350,1296,363,1542,371,1542,377,1296,369,980,355,702,336,610,325,582,318,567,311,554,290,559,271,579,257,611,246,704,232,825,226,1088,223,1201,223,1282,219,1301,216"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,210,672,240,353,258,168,272,157,274,156,268,167,267,352,252,672,235,1302,205"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1679,269,1829,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1495,222,1679,267,1677,272,1494,227"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,216,1202,224,960,236,771,239,583,247,472,256,342,272,331,274,330,268,342,267,472,251,583,242,771,234,960,231,1202,219,1301,210"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="1853,269,2004,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1508,214,1665,237,1841,267,1853,269,1852,274,1840,272,1664,243,1507,219"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="784,269,956,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,221,968,272,957,274,956,269,967,267,1301,216"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="980,269,1131,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1316,227,1132,272,1131,267,1314,222"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,222,1282,224,1069,241,903,245,737,251,640,259,525,272,506,275,505,270,524,267,639,254,737,246,903,240,1069,235,1282,219,1301,216"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1155,269,1305,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1355,230,1269,272,1267,267,1353,225"/>
|
|
<area shape="poly" title=" " alt="" coords="1508,205,1814,225,2002,243,2190,267,2203,269,2202,274,2190,272,2002,248,1814,230,1508,210"/>
|
|
<area shape="poly" title=" " alt="" coords="1508,204,1956,224,2246,242,2540,267,2604,274,2604,280,2539,272,2246,248,1956,230,1507,209"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1329,269,1480,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1407,235,1407,269,1402,269,1402,235"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1504,269,1655,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1456,225,1542,267,1540,272,1454,230"/>
|
|
<area shape="poly" title=" " alt="" coords="1508,202,1673,209,1886,220,2125,239,2365,267,2377,269,2377,274,2364,272,2125,244,1886,226,1672,214,1508,208"/>
|
|
<area shape="poly" title=" " alt="" coords="1508,208,1741,231,2016,267,2028,269,2027,274,2015,272,1740,236,1507,213"/>
|
|
<area shape="poly" title=" " alt="" coords="773,268,783,267,926,250,1038,241,1150,234,1294,219,1315,216,1315,221,1294,224,1151,239,1039,247,927,255,784,272,774,273"/>
|
|
<area shape="poly" title=" " alt="" coords="773,307,996,332,1213,350,1543,370,1542,375,1212,355,995,337,773,312"/>
|
|
<area shape="poly" title=" " alt="" coords="1869,133,1494,189,1494,184,1869,128"/>
|
|
<area shape="poly" title=" " alt="" coords="2043,135,2171,176,2320,219,2354,225,2386,226,2442,223,2468,224,2493,230,2517,244,2542,268,2551,289,2548,301,2541,311,2524,323,2496,332,2413,348,2302,360,2174,369,1906,377,1694,379,1694,374,1906,372,2174,363,2302,355,2412,343,2495,327,2522,318,2537,307,2544,298,2545,290,2537,271,2514,248,2491,235,2467,229,2442,228,2386,231,2354,230,2319,224,2170,181,2042,140"/>
|
|
<area shape="poly" title=" " alt="" coords="1869,121,1576,133,1154,160,914,180,665,205,413,235,168,272,157,274,156,269,167,267,413,230,664,200,914,175,1154,155,1575,128,1869,115"/>
|
|
<area shape="poly" title=" " alt="" coords="1869,124,1569,148,1202,184,1064,204,925,224,761,238,633,245,505,253,342,272,331,274,330,268,342,267,505,247,633,239,761,233,924,219,1063,199,1202,179,1569,143,1869,119"/>
|
|
<area shape="poly" title=" " alt="" coords="1869,119,1752,124,1610,135,1456,154,1304,184,1275,193,1254,204,1232,215,1203,224,1105,243,1022,254,948,259,879,260,735,260,651,263,552,272,506,278,505,273,551,267,650,258,735,254,879,255,948,254,1021,249,1104,238,1201,219,1230,210,1252,199,1273,188,1303,179,1455,149,1610,130,1752,119,1869,113"/>
|
|
<area shape="poly" title=" " alt="" coords="2020,138,2246,267,2244,271,2017,143"/>
|
|
<area shape="poly" title=" " alt="" coords="2079,130,2195,151,2320,179,2486,224,2623,267,2622,272,2484,229,2319,184,2194,157,2078,135"/>
|
|
<area shape="poly" title=" " alt="" coords="1988,145,2006,182,2029,220,2053,246,2079,267,2075,271,2050,249,2025,223,2001,185,1984,148"/>
|
|
</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  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ConstRef.html">ConstRef< T ></a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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_1Ref.html">Ref< T ></a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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_1StringRef.html">StringRef</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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_1WideStringRef.html">WideStringRef</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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_1ConstStringRef.html">ConstStringRef</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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.html">ConstStringListRef</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </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"> </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  </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>
|
|
<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": "index.html", "v0.10": "../v0.10/index.html"};
|
|
const currentVersion = "v0.11";
|
|
|
|
// 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>
|