mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
258 lines
17 KiB
HTML
258 lines
17 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/component/component_base.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.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&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('component__base_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> |
|
|
<a href="#typedef-members">Typedefs</a> </div>
|
|
<div class="headertitle"><div class="title">component_base.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="component__base_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2component__base_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2component_2component__base_8hppdep" id="ainclude_2ftxui_2component_2component__base_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="1450,5,1629,45"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1323,93,1502,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1501,56,1442,95,1439,91,1498,51"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1013,269,1164,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,32,862,53,547,72,417,83,318,96,269,102,224,104,146,107,111,113,79,126,47,148,16,183,8,202,10,211,16,219,29,225,57,232,151,243,437,262,761,276,1013,283,1013,289,761,281,437,268,151,249,57,237,27,231,12,223,5,213,3,202,12,180,44,144,76,121,110,108,145,101,224,99,268,97,318,91,417,78,547,66,862,48,1436,27"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="27,181,177,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,29,1259,32,1025,42,763,62,630,77,500,96,405,115,311,138,159,184,157,179,310,133,404,110,499,91,629,72,762,57,1025,37,1258,27,1436,24"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="201,181,352,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,31,1288,37,1101,49,893,67,685,96,588,115,492,139,335,184,334,179,491,134,587,110,684,91,892,62,1100,43,1288,32,1436,26"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="376,181,527,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,34,1174,54,1016,72,860,96,763,116,668,139,512,184,510,179,667,134,762,111,859,91,1016,67,1173,49,1436,29"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="551,181,701,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1436,39,1248,61,1033,96,844,140,688,184,687,179,843,135,1032,91,1247,56,1436,34"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="725,181,876,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1437,46,1317,68,1187,96,1010,141,863,184,862,179,1009,136,1185,91,1316,63,1436,41"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="900,181,1051,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1461,52,1312,96,1034,184,1032,179,1311,91,1460,47"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1527,181,1677,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1550,58,1574,132,1595,180,1590,182,1569,134,1545,59"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1701,181,1852,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1559,55,1587,94,1624,131,1669,159,1715,179,1713,184,1666,164,1620,135,1583,98,1555,59"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="1876,181,2027,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1575,52,1674,131,1753,153,1877,181,1875,186,1752,158,1671,136,1572,56"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="2051,181,2201,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1593,49,1670,91,1697,113,1708,122,1724,131,1770,147,1809,157,1878,165,1950,168,2040,179,2051,181,2050,186,2039,184,1949,173,1878,171,1808,163,1768,152,1722,136,1705,127,1693,117,1667,96,1591,54"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2225,181,2376,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1613,47,1665,67,1717,91,1746,113,1758,122,1775,131,1839,151,1894,163,1943,168,1990,168,2089,167,2147,170,2214,179,2226,181,2225,186,2214,184,2147,176,2089,173,1990,174,1943,173,1893,168,1837,156,1773,136,1755,127,1742,117,1714,96,1663,72,1611,52"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2400,181,2551,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1637,46,1701,66,1765,91,1783,102,1795,112,1808,122,1826,131,1908,155,1978,167,2042,172,2103,171,2229,167,2303,169,2389,179,2400,181,2399,186,2388,184,2303,175,2229,172,2103,177,2042,177,1978,173,1906,160,1824,136,1805,127,1792,117,1779,106,1762,96,1699,71,1635,51"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2575,181,2725,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1643,40,1728,60,1814,91,1831,101,1842,112,1853,122,1870,131,1935,147,2017,157,2213,166,2411,169,2496,173,2564,179,2575,180,2574,186,2563,184,2495,178,2411,175,2213,171,2017,162,1934,152,1868,136,1850,127,1838,116,1827,106,1812,96,1726,65,1641,45"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1881,93,2054,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1643,45,1881,92,1880,97,1642,50"/>
|
|
<area shape="rect" href="show_8cpp.html" title=" " alt="" coords="2079,93,2229,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1643,35,1840,58,2066,91,2079,93,2078,98,2066,96,1839,63,1642,40"/>
|
|
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="1323,181,1502,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1407,147,1408,181,1402,181,1401,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,129,1195,150,1147,165,1116,183,1102,203,1094,225,1090,269,1085,269,1089,224,1098,200,1112,179,1145,160,1194,145,1309,123"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,117,1104,121,825,131,508,150,347,165,189,184,178,186,177,180,188,179,346,160,508,145,825,125,1103,115,1310,112"/>
|
|
<area shape="poly" title=" " alt="" coords="1309,119,1130,124,895,135,630,154,364,184,353,186,352,180,363,179,630,149,895,130,1130,119,1309,113"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,121,966,140,753,158,538,184,527,186,526,180,538,179,752,153,966,134,1309,115"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,123,1039,145,876,162,713,184,702,186,701,181,712,179,875,157,1039,139,1309,118"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1127,181,1299,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1357,141,1257,184,1255,179,1355,136"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,128,1114,151,888,184,877,186,876,181,887,179,1113,145,1310,122"/>
|
|
<area shape="poly" title=" " alt="" coords="1310,137,1071,184,1051,188,1050,182,1069,179,1309,132"/>
|
|
<area shape="poly" title=" " alt="" coords="1468,137,1562,179,1559,184,1465,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1506,134,1702,180,1701,185,1505,139"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,125,1680,148,1865,179,1876,181,1875,186,1864,184,1680,154,1516,131"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,120,1756,142,1898,158,2040,179,2051,181,2050,186,2039,184,1897,164,1755,147,1516,125"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,119,1885,146,2075,163,2214,179,2226,181,2225,186,2214,184,2075,168,1884,152,1515,124"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,117,1971,143,2213,161,2389,179,2400,180,2399,186,2388,184,2212,166,1971,149,1516,123"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,117,2100,148,2394,165,2564,179,2575,180,2574,186,2563,184,2393,170,2099,153,1515,122"/>
|
|
<area shape="poly" title=" " alt="" coords="1419,168,1418,134,1423,134,1424,168"/>
|
|
<area shape="poly" title=" " alt="" coords="1329,227,1160,272,1159,267,1328,222"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="component__base_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_1ComponentBase.html">ComponentBase</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">It implement rendering itself as <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">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><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><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:af1479ede01dbf087342534ab4ada11d3" id="r_af1479ede01dbf087342534ab4ada11d3"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#af1479ede01dbf087342534ab4ada11d3">Component</a> = std::shared_ptr<<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a>></td></tr>
|
|
<tr class="separator:af1479ede01dbf087342534ab4ada11d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d4ccad0c8a07d5b0cb4b2e690ffc90c" id="r_a3d4ccad0c8a07d5b0cb4b2e690ffc90c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> = std::vector<<a class="el" href="namespaceftxui.html#af1479ede01dbf087342534ab4ada11d3">Component</a>></td></tr>
|
|
<tr class="separator:a3d4ccad0c8a07d5b0cb4b2e690ffc90c"><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": "../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>
|