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

351 lines
20 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_options.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.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&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('component__options_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">component_options.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__options_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2component__options_8hppdep" alt=""/></div>
<map name="ainclude_2ftxui_2component_2component__options_8hppdep" id="ainclude_2ftxui_2component_2component__options_8hppdep">
<area shape="rect" title=" " alt="" coords="974,5,1157,45"/>
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="976,93,1155,133"/>
<area shape="poly" title=" " alt="" coords="1068,59,1068,93,1063,93,1063,59"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="314,269,465,309"/>
<area shape="poly" title=" " alt="" coords="961,37,714,57,414,90,272,110,151,133,62,157,33,170,16,183,8,201,16,220,35,234,64,247,142,266,231,277,315,283,314,288,231,283,141,271,62,252,32,239,12,223,3,201,12,180,30,165,60,152,150,127,272,105,413,85,713,52,960,31"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="26,181,177,221"/>
<area shape="poly" title=" " alt="" coords="961,42,789,65,596,96,367,142,178,184,177,179,366,136,595,91,789,60,960,37"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="201,181,352,221"/>
<area shape="poly" title=" " alt="" coords="968,51,353,186,351,181,967,46"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1874,181,2025,221"/>
<area shape="poly" title=" " alt="" coords="1171,44,1862,179,1875,181,1874,187,1861,184,1170,49"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2049,181,2200,221"/>
<area shape="poly" title=" " alt="" coords="1171,38,1534,91,1786,132,2037,179,2049,181,2048,186,2036,184,1785,137,1533,96,1171,43"/>
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2224,181,2374,221"/>
<area shape="poly" title=" " alt="" coords="1171,34,1403,58,1676,91,1945,130,2213,179,2224,181,2223,186,2212,184,1944,135,1675,96,1402,63,1170,39"/>
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="427,181,606,221"/>
<area shape="poly" title=" " alt="" coords="963,130,606,184,606,184,605,179,605,179,963,125"/>
<area shape="poly" title=" " alt="" coords="963,121,810,130,639,142,494,160,444,171,417,183,403,202,395,225,391,270,386,269,389,224,398,200,413,179,442,166,493,155,639,137,810,124,963,116"/>
<area shape="poly" title=" " alt="" coords="963,121,619,140,404,158,189,184,178,186,177,180,188,179,403,153,618,134,963,115"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="630,181,781,221"/>
<area shape="poly" title=" " alt="" coords="974,139,782,185,781,179,973,134"/>
<area shape="poly" title=" " alt="" coords="963,124,694,146,533,163,372,184,353,187,352,182,371,179,532,158,694,141,962,119"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="805,181,956,221"/>
<area shape="poly" title=" " alt="" coords="1014,142,922,184,920,179,1012,137"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="980,181,1152,221"/>
<area shape="poly" title=" " alt="" coords="1068,147,1068,181,1063,181,1063,147"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1176,181,1326,221"/>
<area shape="poly" title=" " alt="" coords="1120,137,1212,179,1209,184,1118,142"/>
<area shape="poly" title=" " alt="" coords="1169,116,1480,137,1671,155,1862,179,1875,181,1874,186,1861,184,1670,160,1479,142,1168,122"/>
<area shape="poly" title=" " alt="" coords="1169,114,1335,120,1552,132,1794,151,2037,179,2049,181,2048,186,2036,184,1793,156,1551,137,1335,126,1169,120"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1350,181,1501,221"/>
<area shape="poly" title=" " alt="" coords="1159,134,1351,179,1349,185,1157,139"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1525,181,1676,221"/>
<area shape="poly" title=" " alt="" coords="1169,126,1331,149,1513,179,1525,181,1524,186,1512,184,1330,154,1169,131"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1700,181,1850,221"/>
<area shape="poly" title=" " alt="" coords="1169,120,1407,142,1688,179,1700,181,1699,186,1687,184,1406,148,1168,125"/>
<area shape="poly" title=" " alt="" coords="1169,113,1363,117,1623,127,1917,147,2066,161,2213,179,2224,180,2223,186,2212,184,2066,166,1916,152,1623,132,1363,122,1169,118"/>
<area shape="poly" title=" " alt="" coords="619,181,629,179,976,126,977,131,630,184,620,186"/>
<area shape="poly" title=" " alt="" coords="478,232,419,271,416,267,475,227"/>
</map>
</div>
</div>
<p><a href="component__options_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:structftxui_1_1MenuOption" id="r_structftxui_1_1MenuOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1MenuOption">MenuOption</a></td></tr>
<tr class="memdesc:structftxui_1_1MenuOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Menu component. <a href="namespaceftxui.html#structftxui_1_1MenuOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1MenuOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1MenuEntryOption" id="r_structftxui_1_1MenuEntryOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1MenuEntryOption">MenuEntryOption</a></td></tr>
<tr class="memdesc:structftxui_1_1MenuEntryOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the MenuEntry component. <a href="namespaceftxui.html#structftxui_1_1MenuEntryOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1MenuEntryOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1ButtonOption" id="r_structftxui_1_1ButtonOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1ButtonOption">ButtonOption</a></td></tr>
<tr class="memdesc:structftxui_1_1ButtonOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Button component. <a href="namespaceftxui.html#structftxui_1_1ButtonOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1ButtonOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1CheckboxOption" id="r_structftxui_1_1CheckboxOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1CheckboxOption">CheckboxOption</a></td></tr>
<tr class="memdesc:structftxui_1_1CheckboxOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Checkbox component. <a href="namespaceftxui.html#structftxui_1_1CheckboxOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1CheckboxOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1InputOption" id="r_structftxui_1_1InputOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1InputOption">InputOption</a></td></tr>
<tr class="memdesc:structftxui_1_1InputOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Input component. <a href="namespaceftxui.html#structftxui_1_1InputOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1InputOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1RadioboxOption" id="r_structftxui_1_1RadioboxOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1RadioboxOption">RadioboxOption</a></td></tr>
<tr class="memdesc:structftxui_1_1RadioboxOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Radiobox component. <a href="namespaceftxui.html#structftxui_1_1RadioboxOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1RadioboxOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1ToggleOption" id="r_structftxui_1_1ToggleOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1ToggleOption">ToggleOption</a></td></tr>
<tr class="memdesc:structftxui_1_1ToggleOption"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Toggle component. <a href="namespaceftxui.html#structftxui_1_1ToggleOption">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1ToggleOption"><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>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structftxui_1_1MenuOption" id="structftxui_1_1MenuOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1MenuOption">&#9670;&#160;</a></span>ftxui::MenuOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::MenuOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1MenuEntryOption" id="structftxui_1_1MenuEntryOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1MenuEntryOption">&#9670;&#160;</a></span>ftxui::MenuEntryOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::MenuEntryOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1ButtonOption" id="structftxui_1_1ButtonOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1ButtonOption">&#9670;&#160;</a></span>ftxui::ButtonOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::ButtonOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1CheckboxOption" id="structftxui_1_1CheckboxOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1CheckboxOption">&#9670;&#160;</a></span>ftxui::CheckboxOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::CheckboxOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1InputOption" id="structftxui_1_1InputOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1InputOption">&#9670;&#160;</a></span>ftxui::InputOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::InputOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1RadioboxOption" id="structftxui_1_1RadioboxOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1RadioboxOption">&#9670;&#160;</a></span>ftxui::RadioboxOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::RadioboxOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1ToggleOption" id="structftxui_1_1ToggleOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1ToggleOption">&#9670;&#160;</a></span>ftxui::ToggleOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::ToggleOption</td>
</tr>
</table>
</div><div class="memdoc">
</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>
<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>