mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
250 lines
16 KiB
HTML
250 lines
16 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.9.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="1187,5,1366,45"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1006,93,1185,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1226,54,1136,96,1134,91,1223,49"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="664,269,815,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1174,30,1010,33,797,43,560,63,440,78,322,96,272,102,227,104,148,107,113,113,80,125,48,148,16,183,8,202,10,211,16,219,28,227,48,235,109,248,192,259,289,268,494,279,664,284,664,289,494,284,289,273,192,264,108,254,46,240,25,232,12,223,5,213,3,201,12,180,44,144,77,121,111,107,147,101,227,99,272,97,322,91,439,72,559,58,797,38,1009,28,1174,24"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="27,181,177,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1174,33,873,51,690,70,506,96,411,115,316,139,161,184,159,179,315,134,409,110,505,91,689,64,873,46,1173,27"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="201,181,352,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1174,36,946,57,812,74,678,96,584,116,490,140,337,184,335,179,489,134,583,111,677,91,811,69,945,52,1174,31"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="376,181,527,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1174,42,1019,65,848,96,665,141,513,184,512,179,663,136,847,91,1018,59,1173,37"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="551,181,701,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1180,51,995,96,688,184,686,179,993,91,1178,46"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1176,181,1327,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1274,59,1257,182,1251,181,1269,59"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1351,181,1501,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1292,57,1310,95,1336,132,1364,158,1394,179,1391,183,1361,162,1332,135,1306,97,1287,60"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="1525,181,1676,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1302,55,1339,94,1386,131,1446,155,1527,179,1526,184,1444,160,1383,136,1335,98,1298,58"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1700,181,1851,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1320,51,1381,91,1408,113,1436,131,1504,154,1560,163,1617,168,1689,179,1700,181,1699,186,1688,184,1616,173,1559,168,1503,159,1434,136,1405,117,1378,95,1317,55"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1875,181,2025,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1337,48,1427,91,1457,113,1469,122,1487,131,1541,149,1589,159,1672,166,1756,167,1806,171,1864,179,1875,181,1874,186,1863,184,1805,176,1756,173,1671,171,1588,164,1540,154,1485,136,1466,127,1454,117,1425,96,1335,53"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2049,181,2200,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1361,47,1418,66,1477,91,1507,112,1520,122,1538,131,1610,153,1673,165,1730,169,1784,170,1896,167,1962,170,2038,179,2049,181,2049,186,2038,184,1961,175,1896,172,1784,175,1730,175,1673,170,1609,158,1536,136,1517,127,1504,117,1474,96,1416,71,1359,52"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2224,181,2375,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1380,43,1453,63,1526,91,1543,102,1554,112,1565,122,1582,131,1673,159,1752,173,1823,177,1891,176,2033,168,2116,169,2213,179,2224,180,2223,186,2212,184,2116,174,2034,173,1891,181,1823,183,1752,178,1672,164,1580,136,1562,127,1550,116,1539,106,1523,96,1451,68,1379,48"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1593,93,1766,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1379,46,1593,91,1592,96,1378,51"/>
|
|
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="777,181,955,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1026,140,909,184,908,179,1024,135"/>
|
|
<area shape="poly" title=" " alt="" coords="993,126,926,135,859,147,803,163,781,173,766,183,753,203,745,226,741,270,735,269,740,224,748,200,763,179,779,168,801,158,858,142,925,129,992,121"/>
|
|
<area shape="poly" title=" " alt="" coords="992,120,635,139,413,157,189,184,178,186,177,180,188,179,412,152,635,133,991,115"/>
|
|
<area shape="poly" title=" " alt="" coords="993,123,708,144,536,161,364,184,353,186,352,181,363,179,535,156,708,138,992,117"/>
|
|
<area shape="poly" title=" " alt="" coords="993,127,783,150,538,184,527,186,526,181,538,179,782,144,992,121"/>
|
|
<area shape="poly" title=" " alt="" coords="993,135,721,184,702,188,701,182,720,179,992,130"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="980,181,1152,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1087,147,1075,182,1070,180,1082,146"/>
|
|
<area shape="poly" title=" " alt="" coords="1143,138,1218,179,1216,184,1140,142"/>
|
|
<area shape="poly" title=" " alt="" coords="1181,134,1354,179,1353,184,1180,139"/>
|
|
<area shape="poly" title=" " alt="" coords="1199,127,1514,179,1526,181,1525,186,1513,184,1198,132"/>
|
|
<area shape="poly" title=" " alt="" coords="1198,120,1424,143,1689,179,1700,181,1699,186,1688,184,1423,148,1198,126"/>
|
|
<area shape="poly" title=" " alt="" coords="1199,117,1498,137,1681,155,1864,179,1875,181,1874,186,1863,184,1680,160,1497,143,1198,122"/>
|
|
<area shape="poly" title=" " alt="" coords="1198,117,1637,144,1869,161,2038,179,2049,180,2049,186,2038,184,1869,166,1637,149,1198,123"/>
|
|
<area shape="poly" title=" " alt="" coords="1198,116,1722,141,2006,159,2213,179,2224,180,2223,186,2212,184,2005,164,1721,146,1198,121"/>
|
|
<area shape="poly" title=" " alt="" coords="935,174,1052,131,1053,136,937,179"/>
|
|
<area shape="poly" title=" " alt="" coords="828,232,769,271,766,267,825,227"/>
|
|
</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": "index.html", "v0.11": "../v0.11/index.html", "v0.10": "../v0.10/index.html"};
|
|
const currentVersion = "v0.9";
|
|
|
|
// 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>
|