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

356 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.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&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="2121,5,2304,45"/>
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1230,93,1409,133"/>
<area shape="poly" title=" " alt="" coords="2108,39,1410,106,1409,101,2108,34"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="771,269,921,309"/>
<area shape="poly" title=" " alt="" coords="2318,30,2474,48,2557,62,2633,82,2694,107,2717,121,2734,138,2744,157,2745,177,2737,199,2718,223,2691,235,2636,246,2458,262,2211,274,1924,282,1338,290,922,291,922,286,1338,285,1924,277,2211,269,2457,257,2635,240,2689,230,2715,219,2732,197,2740,176,2739,158,2730,141,2714,126,2692,111,2631,87,2556,68,2474,53,2317,36"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,181,156,221"/>
<area shape="poly" title=" " alt="" coords="2108,31,1870,36,1541,47,1164,67,781,96,608,114,473,131,168,184,157,186,156,181,167,179,472,126,607,109,780,91,1163,61,1541,42,1870,31,2108,25"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="180,181,331,221"/>
<area shape="poly" title=" " alt="" coords="2107,35,1716,59,1218,96,799,134,381,184,331,191,330,186,380,179,798,129,1218,91,1716,54,2107,30"/>
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="2029,181,2180,221"/>
<area shape="poly" title=" " alt="" coords="2196,59,2119,183,2114,180,2191,56"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="2204,181,2355,221"/>
<area shape="poly" title=" " alt="" coords="2227,57,2275,180,2270,182,2222,59"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2379,181,2529,221"/>
<area shape="poly" title=" " alt="" coords="2252,51,2429,179,2426,183,2249,56"/>
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2553,181,2704,221"/>
<area shape="poly" title=" " alt="" coords="2271,48,2584,179,2582,184,2269,53"/>
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="757,181,935,221"/>
<area shape="poly" title=" " alt="" coords="1217,134,936,184,935,184,934,179,935,179,1216,129"/>
<area shape="poly" title=" " alt="" coords="1216,123,721,153,495,170,424,178,395,184,390,192,388,201,396,220,420,238,458,252,504,264,557,272,670,282,771,286,771,291,670,288,556,278,503,269,456,257,418,242,392,223,382,201,385,190,393,179,423,172,495,165,721,147,1216,118"/>
<area shape="poly" title=" " alt="" coords="1217,118,1022,122,761,132,465,152,315,166,168,184,157,186,156,180,167,179,314,161,465,147,760,127,1021,117,1216,113"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="407,181,557,221"/>
<area shape="poly" title=" " alt="" coords="1216,122,925,143,747,161,569,184,558,186,557,181,568,179,746,156,924,138,1216,117"/>
<area shape="poly" title=" " alt="" coords="1216,123,765,150,525,167,350,184,332,187,331,182,350,179,525,162,764,144,1216,117"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="581,181,732,221"/>
<area shape="poly" title=" " alt="" coords="1217,126,999,149,745,184,733,186,732,181,744,179,999,144,1216,121"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="960,181,1132,221"/>
<area shape="poly" title=" " alt="" coords="1247,140,1107,184,1105,179,1245,135"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1156,181,1307,221"/>
<area shape="poly" title=" " alt="" coords="1292,145,1253,183,1249,179,1288,141"/>
<area shape="poly" title=" " alt="" coords="1423,118,1692,140,1855,157,2017,179,2029,181,2028,186,2016,184,1854,162,1692,145,1422,124"/>
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1331,181,1481,221"/>
<area shape="poly" title=" " alt="" coords="1350,141,1389,179,1385,183,1346,145"/>
<area shape="poly" title=" " alt="" coords="1422,115,1765,135,1978,153,2192,179,2204,181,2203,186,2191,184,1977,158,1764,140,1422,121"/>
<area shape="poly" title=" " alt="" coords="1422,114,1601,119,1836,130,2100,149,2366,179,2379,181,2378,186,2366,184,2100,155,1836,135,1601,124,1422,119"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1505,181,1656,221"/>
<area shape="poly" title=" " alt="" coords="1391,135,1524,179,1523,184,1389,140"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1680,181,1831,221"/>
<area shape="poly" title=" " alt="" coords="1423,131,1668,179,1681,181,1679,187,1667,184,1422,136"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1855,181,2005,221"/>
<area shape="poly" title=" " alt="" coords="1423,123,1618,146,1842,179,1855,181,1854,186,1842,184,1617,151,1422,128"/>
<area shape="poly" title=" " alt="" coords="1422,112,1628,115,1907,125,2223,145,2384,160,2542,179,2554,180,2553,186,2542,184,2384,165,2223,150,1906,131,1628,121,1422,117"/>
<area shape="poly" title=" " alt="" coords="948,181,959,179,1229,130,1230,135,960,184,949,186"/>
<area shape="poly" title=" " alt="" coords="849,235,849,269,843,269,843,235"/>
</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": "../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>