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

355 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.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&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="1263,5,1445,45"/>
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1265,93,1443,133"/>
<area shape="poly" title=" " alt="" coords="1357,59,1357,93,1351,93,1351,59"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1089,269,1240,309"/>
<area shape="poly" title=" " alt="" coords="1249,33,940,48,547,77,359,97,198,122,132,135,78,150,39,166,16,183,8,202,10,211,16,219,30,226,61,233,163,245,472,264,821,277,1090,284,1089,289,821,282,472,269,162,250,60,238,29,231,12,223,5,213,3,201,12,180,36,162,76,145,130,130,197,116,359,92,547,72,939,43,1249,28"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="27,181,177,221"/>
<area shape="poly" title=" " alt="" coords="1249,36,981,59,820,76,659,96,526,116,423,135,189,184,178,186,177,181,188,179,422,130,525,111,658,91,819,70,980,54,1249,31"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="201,181,352,221"/>
<area shape="poly" title=" " alt="" coords="1250,44,860,101,613,140,364,184,353,186,352,181,363,179,612,135,859,96,1249,38"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="2225,181,2376,221"/>
<area shape="poly" title=" " alt="" coords="1460,42,1796,101,2213,179,2226,181,2225,186,2212,184,1795,106,1459,47"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2400,181,2551,221"/>
<area shape="poly" title=" " alt="" coords="1460,36,1869,91,2129,131,2388,179,2400,181,2399,186,2387,184,2128,136,1868,96,1459,42"/>
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2575,181,2725,221"/>
<area shape="poly" title=" " alt="" coords="1459,33,1712,56,2014,91,2290,130,2564,179,2575,181,2574,186,2563,184,2289,135,2014,96,1712,62,1459,38"/>
<area shape="rect" href="component_2deprecated_8hpp.html" title=" " alt="" coords="1075,181,1254,221"/>
<area shape="poly" title=" " alt="" coords="1294,141,1200,184,1198,179,1291,136"/>
<area shape="poly" title=" " alt="" coords="1457,115,1607,123,1773,135,1913,154,1961,165,1988,179,1995,190,1998,201,1995,212,1988,223,1973,233,1948,242,1876,257,1779,268,1667,277,1431,287,1240,290,1240,285,1431,281,1667,271,1779,263,1875,252,1947,237,1970,229,1984,219,1990,210,1992,201,1990,192,1984,183,1960,170,1912,159,1772,140,1606,128,1457,121"/>
<area shape="poly" title=" " alt="" coords="1251,118,1054,122,790,132,491,152,338,166,189,184,178,186,177,180,188,179,338,161,490,146,789,127,1054,116,1251,113"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1279,181,1429,221"/>
<area shape="poly" title=" " alt="" coords="1357,147,1357,181,1351,181,1351,147"/>
<area shape="poly" title=" " alt="" coords="1251,119,1081,125,860,136,613,155,364,184,353,186,352,180,363,179,612,150,860,131,1081,120,1251,114"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="1453,181,1604,221"/>
<area shape="poly" title=" " alt="" coords="1406,137,1492,179,1489,184,1403,142"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1628,181,1800,221"/>
<area shape="poly" title=" " alt="" coords="1447,134,1636,179,1635,184,1446,139"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1824,181,1975,221"/>
<area shape="poly" title=" " alt="" coords="1458,125,1624,148,1812,179,1824,181,1823,186,1811,184,1623,154,1457,130"/>
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="2051,181,2201,221"/>
<area shape="poly" title=" " alt="" coords="1457,119,1719,141,1875,158,2032,179,2051,182,2050,187,2031,184,1875,163,1718,147,1457,124"/>
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="376,181,527,221"/>
<area shape="poly" title=" " alt="" coords="1251,121,932,141,735,159,539,184,527,186,527,180,538,179,735,154,931,136,1251,116"/>
<area shape="poly" title=" " alt="" coords="1457,116,1794,135,2003,153,2213,179,2226,181,2225,186,2212,184,2003,159,1794,140,1457,121"/>
<area shape="poly" title=" " alt="" coords="1457,114,1634,119,1866,130,2126,149,2388,179,2400,181,2399,186,2387,184,2125,155,1865,136,1634,124,1457,119"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="551,181,701,221"/>
<area shape="poly" title=" " alt="" coords="1251,125,1005,147,859,163,713,184,702,186,701,181,712,179,858,158,1005,141,1251,119"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="725,181,876,221"/>
<area shape="poly" title=" " alt="" coords="1251,130,1081,153,888,184,877,186,876,181,887,179,1080,148,1250,125"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="900,181,1051,221"/>
<area shape="poly" title=" " alt="" coords="1258,139,1052,186,1051,180,1257,134"/>
<area shape="poly" title=" " alt="" coords="1457,112,1661,116,1936,126,2249,145,2408,160,2564,179,2575,180,2574,186,2563,184,2407,165,2248,151,1936,131,1661,121,1457,118"/>
<area shape="poly" title=" " alt="" coords="1225,174,1319,131,1321,136,1228,178"/>
<area shape="poly" title=" " alt="" coords="1167,235,1167,269,1162,269,1162,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": "../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>