mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
264 lines
15 KiB
HTML
264 lines
15 KiB
HTML
|
|
<!-- HTML header for doxygen 1.9.8-->
|
||
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||
|
|
<meta name="generator" content="Doxygen 1.12.0"/>
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
|
<title>FTXUI: DropdownOption Struct 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>
|
||
|
|
<script type="text/javascript" src="doxygen-awesome-fragment-copy-button.js"></script>
|
||
|
|
<script type="text/javascript" src="doxygen-awesome-paragraph-link.js"></script>
|
||
|
|
<script type="text/javascript" src="doxygen-awesome-interactive-toc.js"></script>
|
||
|
|
<script type="text/javascript" src="doxygen-awesome-tabs.js"></script>
|
||
|
|
<script type="text/javascript">
|
||
|
|
DoxygenAwesomeFragmentCopyButton.init()
|
||
|
|
DoxygenAwesomeParagraphLink.init()
|
||
|
|
DoxygenAwesomeInteractiveToc.init()
|
||
|
|
DoxygenAwesomeTabs.init()
|
||
|
|
window.addEventListener('DOMContentLoaded', function () {
|
||
|
|
document.querySelectorAll(".headertitle").forEach(div => {
|
||
|
|
// Hide progressively the title.
|
||
|
|
if (div.textContent != "Getting Started" &&
|
||
|
|
div.textContent != "Installation" &&
|
||
|
|
div.textContent != "Modules" &&
|
||
|
|
true) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
div.style.display = "none";
|
||
|
|
// Show progressively the image.
|
||
|
|
const img = document.querySelector("img.inline");
|
||
|
|
img.style.maxHeight = "40vh";
|
||
|
|
img.style.maxWidth = "100%";
|
||
|
|
img.style.objectFit = "contain";
|
||
|
|
});
|
||
|
|
});
|
||
|
|
</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-awesome.css" rel="stylesheet" type="text/css"/>
|
||
|
|
<link href="stylesheet.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 id="projectrow">
|
||
|
|
<td id="projectalign">
|
||
|
|
<div id="projectname">FTXUI<span id="projectnumber"> 6.1.9</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('structftxui_1_1DropdownOption.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="#pub-attribs">Data Fields</a> </div>
|
||
|
|
<div class="headertitle"><div class="title">DropdownOption Struct Reference</div></div>
|
||
|
|
</div><!--header-->
|
||
|
|
<div class="contents">
|
||
|
|
|
||
|
|
<p>Option for the Dropdown component.A dropdown menu is a checkbox opening/closing a radiobox.
|
||
|
|
<a href="#details">More...</a></p>
|
||
|
|
|
||
|
|
<p><code>#include <<a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>></code></p>
|
||
|
|
<div id="dynsection-0" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
||
|
|
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Collaboration diagram for DropdownOption:</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="structftxui_1_1DropdownOption__coll__graph.png" border="0" usemap="#aDropdownOption_coll__map" alt="Collaboration graph"/></div>
|
||
|
|
<map name="aDropdownOption_coll__map" id="aDropdownOption_coll__map">
|
||
|
|
<area shape="rect" title="Option for the Dropdown component.A dropdown menu is a checkbox opening/closing a radiobox." alt="" coords="122,271,253,296"/>
|
||
|
|
<area shape="rect" href="classftxui_1_1Ref.html" title=" " alt="" coords="5,80,108,105"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="57,119,59,162,65,185,75,207,92,227,113,244,157,268,155,273,110,249,88,231,70,209,60,187,54,163,52,119"/>
|
||
|
|
<area shape="rect" href="structftxui_1_1CheckboxOption.html" title="Option for the Checkbox component." alt="" coords="123,183,252,208"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="79,113,129,157,167,180,164,185,126,161,76,117"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="190,222,190,270,185,270,185,222"/>
|
||
|
|
<area shape="rect" href="classftxui_1_1ConstStringRef.html" title="An adapter. Own or reference a constant string. For convenience, this class convert multiple immutabl..." alt="" coords="132,80,251,105"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="193,119,190,183,185,183,188,119"/>
|
||
|
|
<area shape="rect" href="classftxui_1_1ConstRef.html" title=" " alt="" coords="103,5,279,31"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="194,45,194,80,189,80,189,45"/>
|
||
|
|
<area shape="rect" href="structftxui_1_1RadioboxOption.html" title="Option for the Radiobox component." alt="" coords="283,183,409,208"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="317,217,261,249,213,273,210,268,258,244,314,213"/>
|
||
|
|
<area shape="rect" href="classftxui_1_1ConstStringListRef.html" title="An adapter. Reference a list of strings." alt="" coords="275,80,417,105"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="349,119,349,183,343,183,343,119"/>
|
||
|
|
<area shape="rect" href="classftxui_1_1Ref.html" title=" " alt="" coords="442,80,533,105"/>
|
||
|
|
<area shape="poly" title=" " alt="" coords="463,116,402,161,366,185,363,180,399,156,460,112"/>
|
||
|
|
</map>
|
||
|
|
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
|
||
|
|
<table class="memberdecls">
|
||
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
|
||
|
|
Data Fields</h2></td></tr>
|
||
|
|
<tr class="memitem:aa9ee4f52203c5dec717cf45077b82776" id="r_aa9ee4f52203c5dec717cf45077b82776"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Ref.html">Ref</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa9ee4f52203c5dec717cf45077b82776">open</a> = false</td></tr>
|
||
|
|
<tr class="memdesc:aa9ee4f52203c5dec717cf45077b82776"><td class="mdescLeft"> </td><td class="mdescRight">Whether the dropdown is open or closed: <br /></td></tr>
|
||
|
|
<tr class="separator:aa9ee4f52203c5dec717cf45077b82776"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
|
<tr class="memitem:a0797deb307cd89059137a4ca6075fcbf" id="r_a0797deb307cd89059137a4ca6075fcbf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a0797deb307cd89059137a4ca6075fcbf">checkbox</a></td></tr>
|
||
|
|
<tr class="separator:a0797deb307cd89059137a4ca6075fcbf"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
|
<tr class="memitem:a83288bb2ebb6ca0eef0651285a71291e" id="r_a83288bb2ebb6ca0eef0651285a71291e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structftxui_1_1RadioboxOption.html">RadioboxOption</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a83288bb2ebb6ca0eef0651285a71291e">radiobox</a></td></tr>
|
||
|
|
<tr class="separator:a83288bb2ebb6ca0eef0651285a71291e"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
|
<tr class="memitem:ae2d438a2693c6279aba8a2549a161601" id="r_ae2d438a2693c6279aba8a2549a161601"><td class="memItemLeft" align="right" valign="top">std::function< <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a>(bool <a class="el" href="#aa9ee4f52203c5dec717cf45077b82776">open</a>, <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a> <a class="el" href="#a0797deb307cd89059137a4ca6075fcbf">checkbox</a>, <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a> <a class="el" href="#a83288bb2ebb6ca0eef0651285a71291e">radiobox</a>)> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ae2d438a2693c6279aba8a2549a161601">transform</a></td></tr>
|
||
|
|
<tr class="separator:ae2d438a2693c6279aba8a2549a161601"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
|
</table>
|
||
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
|
<div class="textblock"><p>Option for the Dropdown component.</p>
|
||
|
|
<p>A dropdown menu is a checkbox opening/closing a radiobox. </p>
|
||
|
|
|
||
|
|
<p class="definition">Definition at line <a class="el" href="component__options_8hpp_source.html#l00269">269</a> of file <a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>.</p>
|
||
|
|
</div><h2 class="groupheader">Field Documentation</h2>
|
||
|
|
<a id="aa9ee4f52203c5dec717cf45077b82776" name="aa9ee4f52203c5dec717cf45077b82776"></a>
|
||
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aa9ee4f52203c5dec717cf45077b82776">◆ </a></span>open</h2>
|
||
|
|
|
||
|
|
<div class="memitem">
|
||
|
|
<div class="memproto">
|
||
|
|
<table class="memname">
|
||
|
|
<tr>
|
||
|
|
<td class="memname"><a class="el" href="classftxui_1_1Ref.html">Ref</a><bool> open = false</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div><div class="memdoc">
|
||
|
|
|
||
|
|
<p>Whether the dropdown is open or closed: </p>
|
||
|
|
|
||
|
|
<p class="definition">Definition at line <a class="el" href="component__options_8hpp_source.html#l00271">271</a> of file <a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>.</p>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<a id="a0797deb307cd89059137a4ca6075fcbf" name="a0797deb307cd89059137a4ca6075fcbf"></a>
|
||
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0797deb307cd89059137a4ca6075fcbf">◆ </a></span>checkbox</h2>
|
||
|
|
|
||
|
|
<div class="memitem">
|
||
|
|
<div class="memproto">
|
||
|
|
<table class="memname">
|
||
|
|
<tr>
|
||
|
|
<td class="memname"><a class="el" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a> checkbox</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div><div class="memdoc">
|
||
|
|
|
||
|
|
<p class="definition">Definition at line <a class="el" href="component__options_8hpp_source.html#l00273">273</a> of file <a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>.</p>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<a id="a83288bb2ebb6ca0eef0651285a71291e" name="a83288bb2ebb6ca0eef0651285a71291e"></a>
|
||
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a83288bb2ebb6ca0eef0651285a71291e">◆ </a></span>radiobox</h2>
|
||
|
|
|
||
|
|
<div class="memitem">
|
||
|
|
<div class="memproto">
|
||
|
|
<table class="memname">
|
||
|
|
<tr>
|
||
|
|
<td class="memname"><a class="el" href="structftxui_1_1RadioboxOption.html">RadioboxOption</a> radiobox</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div><div class="memdoc">
|
||
|
|
|
||
|
|
<p class="definition">Definition at line <a class="el" href="component__options_8hpp_source.html#l00275">275</a> of file <a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>.</p>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<a id="ae2d438a2693c6279aba8a2549a161601" name="ae2d438a2693c6279aba8a2549a161601"></a>
|
||
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae2d438a2693c6279aba8a2549a161601">◆ </a></span>transform</h2>
|
||
|
|
|
||
|
|
<div class="memitem">
|
||
|
|
<div class="memproto">
|
||
|
|
<table class="memname">
|
||
|
|
<tr>
|
||
|
|
<td class="memname">std::function<<a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a>(bool <a class="el" href="#aa9ee4f52203c5dec717cf45077b82776">open</a>, <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a> <a class="el" href="#a0797deb307cd89059137a4ca6075fcbf">checkbox</a>, <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">Element</a> <a class="el" href="#a83288bb2ebb6ca0eef0651285a71291e">radiobox</a>)> transform</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div><div class="memdoc">
|
||
|
|
|
||
|
|
<p class="definition">Definition at line <a class="el" href="component__options_8hpp_source.html#l00278">278</a> of file <a class="el" href="component__options_8hpp_source.html">component_options.hpp</a>.</p>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<hr/>The documentation for this struct was generated from the following file:<ul>
|
||
|
|
<li><a class="el" href="component__options_8hpp_source.html">component_options.hpp</a></li>
|
||
|
|
</ul>
|
||
|
|
</div><!-- contents -->
|
||
|
|
</div><!-- doc-content -->
|
||
|
|
<!-- HTML footer for doxygen 1.9.8-->
|
||
|
|
<!-- start footer part -->
|
||
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||
|
|
<ul>
|
||
|
|
<li class="navelem"><a class="el" href="namespaceftxui.html">ftxui</a></li><li class="navelem"><a class="el" href="structftxui_1_1DropdownOption.html">DropdownOption</a></li>
|
||
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|