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

359 lines
23 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">4.1.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="1995,5,2177,45"/>
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1585,93,1763,133"/>
<area shape="poly" title=" " alt="" coords="1983,51,1764,96,1763,91,1982,46"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,181,156,221"/>
<area shape="poly" title=" " alt="" coords="1981,31,1667,38,1249,51,835,70,663,82,533,96,425,114,318,138,144,184,143,179,317,133,424,109,532,91,663,77,835,65,1249,46,1667,33,1981,26"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="180,181,331,221"/>
<area shape="poly" title=" " alt="" coords="1981,29,1759,32,1456,41,1110,61,934,76,761,96,641,115,522,138,327,184,326,179,521,133,640,110,760,91,933,71,1110,56,1456,35,1759,26,1981,24"/>
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="355,181,505,221"/>
<area shape="poly" title=" " alt="" coords="1981,32,1564,51,1298,70,1030,96,884,116,739,140,506,186,505,181,738,135,883,111,1030,91,1298,64,1564,46,1981,27"/>
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="529,181,680,221"/>
<area shape="poly" title=" " alt="" coords="1981,37,1749,57,1429,88,1062,131,692,184,681,186,680,181,691,179,1062,125,1428,83,1748,52,1981,32"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="2297,181,2448,221"/>
<area shape="poly" title=" " alt="" coords="2090,59,2099,97,2108,116,2120,131,2184,151,2298,180,2297,185,2182,156,2116,136,2103,118,2094,99,2085,60"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="2472,181,2623,221"/>
<area shape="poly" title=" " alt="" coords="2104,56,2131,96,2149,115,2170,131,2209,151,2244,163,2277,169,2309,171,2376,170,2416,172,2461,179,2472,181,2471,186,2460,184,2415,178,2376,176,2309,176,2276,174,2243,168,2207,156,2167,136,2146,119,2127,100,2099,59"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2647,181,2797,221"/>
<area shape="poly" title=" " alt="" coords="2120,52,2180,101,2221,131,2280,152,2331,164,2378,169,2423,170,2517,168,2572,171,2636,179,2647,181,2646,186,2635,184,2572,176,2517,174,2423,175,2378,175,2331,169,2278,157,2218,136,2176,105,2117,56"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2821,181,2972,221"/>
<area shape="poly" title=" " alt="" coords="2138,49,2213,91,2241,113,2253,123,2271,131,2349,155,2417,167,2478,172,2536,172,2657,167,2728,170,2810,179,2822,181,2821,186,2810,184,2728,175,2657,173,2536,177,2478,177,2416,173,2348,160,2269,136,2251,127,2238,118,2210,96,2135,54"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="2996,181,3147,221"/>
<area shape="poly" title=" " alt="" coords="2160,47,2210,67,2261,91,2277,102,2288,113,2299,123,2315,131,2378,147,2457,157,2647,166,2837,169,2919,173,2985,179,2996,180,2995,186,2984,184,2919,178,2837,175,2646,171,2457,162,2377,152,2313,136,2296,127,2284,117,2273,106,2258,96,2208,72,2158,52"/>
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="2326,93,2507,133"/>
<area shape="poly" title=" " alt="" coords="2172,46,2345,91,2344,96,2171,51"/>
<area shape="poly" title=" " alt="" coords="1571,120,861,141,460,160,294,171,168,184,157,186,156,180,167,179,294,166,460,155,861,136,1571,114"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="704,181,855,221"/>
<area shape="poly" title=" " alt="" coords="1571,122,1255,141,1061,159,866,184,855,186,854,180,866,179,1060,154,1255,136,1571,116"/>
<area shape="poly" title=" " alt="" coords="1571,117,1348,119,1043,128,695,148,517,164,342,184,331,186,330,180,342,179,516,159,694,143,1043,123,1348,114,1571,111"/>
<area shape="poly" title=" " alt="" coords="1571,118,1375,122,1113,132,816,152,665,166,517,184,506,186,505,180,516,179,664,161,816,147,1113,127,1375,117,1571,113"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="879,181,1029,221"/>
<area shape="poly" title=" " alt="" coords="1571,125,1329,147,1185,164,1041,184,1030,186,1029,181,1040,179,1184,158,1328,142,1571,119"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1053,181,1225,221"/>
<area shape="poly" title=" " alt="" coords="1572,132,1237,184,1226,186,1225,181,1236,179,1571,127"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1249,181,1400,221"/>
<area shape="poly" title=" " alt="" coords="1585,139,1401,184,1400,179,1584,134"/>
<area shape="poly" title=" " alt="" coords="1571,119,1403,125,1183,137,938,156,692,184,681,186,680,180,691,179,938,150,1183,131,1402,120,1571,114"/>
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="1424,181,1575,221"/>
<area shape="poly" title=" " alt="" coords="1625,142,1539,184,1536,179,1622,137"/>
<area shape="poly" title=" " alt="" coords="1777,120,2011,142,2286,179,2298,181,2297,186,2286,184,2010,148,1777,125"/>
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1599,181,1749,221"/>
<area shape="poly" title=" " alt="" coords="1677,147,1677,181,1671,181,1671,147"/>
<area shape="poly" title=" " alt="" coords="1777,117,2084,137,2273,155,2461,179,2472,181,2471,186,2460,184,2272,160,2084,142,1777,122"/>
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="1773,181,1924,221"/>
<area shape="poly" title=" " alt="" coords="1726,137,1812,179,1809,184,1723,142"/>
<area shape="poly" title=" " alt="" coords="1777,114,1942,120,2156,132,2395,151,2636,179,2647,180,2646,186,2635,184,2395,156,2156,137,1942,126,1777,120"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1948,181,2099,221"/>
<area shape="poly" title=" " alt="" coords="1764,134,1948,179,1947,184,1763,139"/>
<area shape="poly" title=" " alt="" coords="1777,116,2310,141,2599,159,2810,179,2822,180,2821,186,2810,184,2599,164,2310,146,1777,121"/>
<area shape="poly" title=" " alt="" coords="1777,115,2394,138,2735,157,2985,179,2996,180,2995,186,2984,184,2735,162,2394,144,1777,120"/>
<area shape="rect" href="component_2util_8cpp.html" title=" " alt="" coords="2123,181,2273,221"/>
<area shape="poly" title=" " alt="" coords="1777,126,1935,149,2112,179,2123,181,2122,186,2111,184,1934,154,1776,131"/>
</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_1EntryState" id="r_structftxui_1_1EntryState"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1EntryState">EntryState</a></td></tr>
<tr class="memdesc:structftxui_1_1EntryState"><td class="mdescLeft">&#160;</td><td class="mdescRight">arguments for |ButtonOption::transform|, |CheckboxOption::transform|, |Radiobox::transform|, |MenuEntryOption::transform|, |MenuOption::transform|. <a href="namespaceftxui.html#structftxui_1_1EntryState">More...</a><br /></td></tr>
<tr class="separator:structftxui_1_1EntryState"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1UnderlineOption.html">UnderlineOption</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1AnimatedColorOption.html">AnimatedColorOption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option about a potentially animated color. <a href="structftxui_1_1AnimatedColorOption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1AnimatedColorsOption" id="r_structftxui_1_1AnimatedColorsOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1AnimatedColorsOption">AnimatedColorsOption</a></td></tr>
<tr class="separator:structftxui_1_1AnimatedColorsOption"><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:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1MenuOption.html">MenuOption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Menu component. <a href="structftxui_1_1MenuOption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1ButtonOption.html">ButtonOption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the AnimatedButton component. <a href="structftxui_1_1ButtonOption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1CheckboxOption.html">CheckboxOption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Checkbox component. <a href="structftxui_1_1CheckboxOption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><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:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1RadioboxOption.html">RadioboxOption</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option for the Radiobox component. <a href="structftxui_1_1RadioboxOption.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1ResizableSplitOption" id="r_structftxui_1_1ResizableSplitOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1ResizableSplitOption">ResizableSplitOption</a></td></tr>
<tr class="separator:structftxui_1_1ResizableSplitOption"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structftxui_1_1SliderOption" id="r_structftxui_1_1SliderOption"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#structftxui_1_1SliderOption">SliderOption&lt; T &gt;</a></td></tr>
<tr class="separator:structftxui_1_1SliderOption"><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_1EntryState" id="structftxui_1_1EntryState"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1EntryState">&#9670;&#160;</a></span>ftxui::EntryState</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::EntryState</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1AnimatedColorsOption" id="structftxui_1_1AnimatedColorsOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1AnimatedColorsOption">&#9670;&#160;</a></span>ftxui::AnimatedColorsOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::AnimatedColorsOption</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_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_1ResizableSplitOption" id="structftxui_1_1ResizableSplitOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1ResizableSplitOption">&#9670;&#160;</a></span>ftxui::ResizableSplitOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::ResizableSplitOption</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a name="structftxui_1_1SliderOption" id="structftxui_1_1SliderOption"></a>
<h2 class="memtitle"><span class="permalink"><a href="#structftxui_1_1SliderOption">&#9670;&#160;</a></span>ftxui::SliderOption</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct ftxui::SliderOption</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": "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": "../v0.10/index.html"};
const currentVersion = "v4.1.0";
// 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>