mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
286 lines
21 KiB
HTML
286 lines
21 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_base.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
|
|
 <span id="projectnumber">6.0.2</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('component__base_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> |
|
|
<a href="#namespaces">Namespaces</a> |
|
|
<a href="#typedef-members">Typedefs</a> </div>
|
|
<div class="headertitle"><div class="title">component_base.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__base_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2component__base_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2component_2component__base_8hppdep" id="ainclude_2ftxui_2component_2component__base_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="1661,5,1839,45"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1529,181,1707,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1730,58,1634,183,1630,180,1725,55"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="180,269,331,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,31,1426,37,1150,49,884,68,775,81,692,96,632,113,571,134,456,183,358,232,288,272,285,267,356,228,454,178,569,129,630,108,691,91,774,75,884,63,1150,44,1426,32,1647,26"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1948,269,2099,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1776,55,1804,92,1825,129,1838,160,1853,189,1880,219,1920,247,1963,267,1961,272,1917,252,1876,223,1848,192,1833,162,1820,131,1800,95,1772,58"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="355,269,505,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,31,1448,37,1205,49,973,68,877,81,805,96,753,113,700,134,601,183,518,232,458,271,455,267,515,228,599,179,698,129,751,108,804,91,877,76,972,63,1205,44,1448,32,1647,26"/>
|
|
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="529,269,680,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,31,1466,36,1249,47,1044,67,960,80,897,96,855,113,813,134,736,183,671,232,626,271,623,267,668,228,733,179,811,130,853,108,896,91,959,75,1043,61,1249,42,1466,31,1647,26"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="2123,269,2273,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1789,52,1835,92,1862,128,1879,160,1898,190,1930,219,1956,229,2005,242,2123,269,2122,275,2003,247,1955,234,1927,224,1894,194,1875,163,1858,131,1831,95,1786,56"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="2297,269,2448,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1803,49,1836,69,1868,91,1901,127,1922,160,1944,191,1959,205,1981,219,2022,239,2060,251,2094,256,2127,258,2197,258,2238,260,2285,267,2297,269,2296,274,2284,272,2237,265,2197,263,2126,263,2093,262,2058,256,2021,244,1978,224,1956,209,1940,194,1918,163,1897,130,1864,95,1833,73,1800,54"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="704,269,855,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,29,1477,31,1276,40,1177,49,1088,61,1012,76,956,96,927,113,900,134,853,183,816,232,792,271,787,268,812,229,849,180,897,130,924,109,954,91,1011,71,1087,55,1177,44,1276,35,1477,26,1647,23"/>
|
|
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="2472,269,2623,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1820,48,1863,67,1905,91,1927,108,1943,126,1967,160,1991,191,2008,205,2031,219,2091,244,2144,257,2192,263,2239,263,2338,258,2395,259,2461,267,2472,269,2471,274,2460,272,2395,264,2338,263,2239,268,2192,268,2143,263,2090,249,2029,224,2005,210,1987,195,1962,163,1939,129,1923,112,1902,96,1861,72,1818,53"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="5,269,156,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,31,1401,36,1088,48,783,67,658,80,563,96,496,113,430,134,303,183,195,232,117,272,114,267,192,228,301,178,428,129,495,108,561,91,657,75,783,62,1088,42,1401,31,1647,25"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="2647,269,2797,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1842,47,1894,66,1945,91,1968,108,1986,125,2012,159,2039,191,2057,206,2082,219,2133,234,2198,245,2355,255,2513,258,2636,267,2647,269,2646,274,2635,272,2513,264,2354,260,2198,250,2131,240,2080,224,2054,210,2035,195,2008,162,1982,128,1965,112,1942,96,1892,71,1840,52"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="879,269,1029,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1648,41,1529,61,1465,77,1403,96,1333,126,1282,157,1232,189,1163,224,1092,251,1024,272,1022,267,1090,245,1161,219,1229,185,1280,153,1331,121,1401,91,1463,72,1528,56,1647,35"/>
|
|
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="2821,269,2972,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1853,43,1920,62,1986,91,2011,107,2030,124,2059,159,2087,191,2107,206,2132,219,2195,237,2275,248,2368,254,2467,256,2660,258,2744,261,2810,267,2822,268,2821,274,2810,272,2743,266,2660,264,2467,262,2368,259,2275,253,2194,242,2130,224,2104,210,2084,195,2055,162,2027,128,2008,111,1983,96,1918,67,1852,48"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="1053,269,1204,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1648,50,1571,70,1494,96,1425,126,1374,155,1324,186,1258,224,1166,272,1164,267,1255,219,1321,182,1371,150,1423,122,1492,91,1570,65,1646,45"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="2996,269,3147,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1853,37,1941,57,1987,72,2030,91,2056,107,2076,124,2106,158,2136,191,2156,206,2183,219,2257,239,2353,251,2462,256,2579,258,2808,258,2906,260,2985,267,2996,268,2995,274,2984,272,2906,266,2808,264,2579,264,2462,262,2352,256,2256,244,2181,224,2154,210,2133,195,2102,162,2073,127,2053,111,2027,96,1985,77,1940,62,1852,42"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1403,269,1553,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1695,54,1652,76,1605,106,1559,141,1519,183,1505,204,1495,228,1484,270,1478,269,1490,226,1501,202,1515,180,1555,137,1601,101,1649,72,1692,49"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1773,269,1924,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1764,57,1844,268,1839,270,1759,59"/>
|
|
<area shape="rect" href="component_2util_8cpp.html" title=" " alt="" coords="3171,269,3321,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1853,32,1963,52,2020,69,2075,91,2110,117,2151,157,2192,195,2227,219,2267,232,2314,242,2425,254,2552,260,2688,261,2954,258,3068,260,3160,267,3171,268,3170,274,3159,272,3068,265,2954,264,2688,266,2552,265,2424,260,2313,247,2265,237,2225,224,2189,199,2148,160,2107,121,2073,96,2018,74,1961,57,1852,37"/>
|
|
<area shape="rect" href="window_8cpp.html" title=" " alt="" coords="1228,269,1379,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1670,52,1616,71,1563,96,1491,140,1424,188,1326,271,1322,267,1421,184,1488,135,1561,91,1614,66,1668,47"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="968,93,1151,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1647,42,1151,103,1151,98,1647,37"/>
|
|
<area shape="rect" href="loop_8hpp.html" title=" " alt="" coords="2238,93,2417,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1854,38,2220,91,2238,94,2237,99,2219,96,1853,43"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="2414,181,2587,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1853,24,2000,27,2168,36,2249,45,2323,57,2384,72,2430,91,2454,110,2472,134,2496,180,2491,182,2468,137,2450,114,2427,96,2383,77,2322,62,2248,50,2167,42,1999,32,1853,29"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,210,865,240,534,258,342,272,331,274,330,268,342,267,534,252,865,234,1515,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,222,1936,267,1949,269,1947,275,1935,272,1720,227"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,210,999,235,720,253,517,272,506,274,505,268,516,267,720,247,999,229,1515,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,208,1150,226,921,245,692,272,681,274,680,268,691,267,921,240,1150,221,1514,203"/>
|
|
<area shape="poly" title=" " alt="" coords="1722,212,1903,235,2110,267,2123,269,2122,274,2110,272,1903,240,1721,217"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1577,269,1749,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1637,232,1656,268,1651,270,1632,235"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,207,1978,229,2132,246,2285,267,2297,269,2296,274,2284,272,2131,251,1977,234,1721,212"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,210,1222,231,1044,249,866,272,855,274,854,269,866,267,1044,243,1222,226,1515,205"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,206,2111,233,2313,250,2461,267,2472,268,2471,274,2460,272,2313,256,2110,239,1721,212"/>
|
|
<area shape="poly" title=" " alt="" coords="1515,210,746,243,168,272,157,274,156,268,167,267,746,237,1515,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,205,2196,231,2450,248,2636,267,2647,268,2646,274,2635,272,2450,254,2196,236,1721,210"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,214,1297,237,1041,272,1030,274,1029,269,1040,267,1296,232,1515,209"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,205,2327,235,2633,253,2810,267,2822,268,2821,274,2810,272,2633,258,2327,241,1721,210"/>
|
|
<area shape="poly" title=" " alt="" coords="1516,221,1216,272,1205,274,1204,269,1215,267,1515,216"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,204,2418,234,2777,252,2985,267,2996,268,2995,274,2984,272,2777,257,2418,239,1721,209"/>
|
|
<area shape="poly" title=" " alt="" coords="1577,231,1510,272,1507,267,1574,226"/>
|
|
<area shape="poly" title=" " alt="" coords="1682,224,1799,267,1797,272,1680,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1721,203,2508,232,2920,251,3160,267,3171,268,3170,274,3159,272,2920,256,2508,238,1721,209"/>
|
|
<area shape="poly" title=" " alt="" coords="1536,228,1373,272,1372,267,1535,222"/>
|
|
<area shape="poly" title=" " alt="" coords="1165,128,1529,184,1528,189,1164,133"/>
|
|
<area shape="poly" title=" " alt="" coords="955,130,804,153,637,184,461,229,315,272,313,267,459,223,636,179,803,147,954,125"/>
|
|
<area shape="poly" title=" " alt="" coords="960,139,776,184,619,230,487,272,486,267,617,225,775,179,959,134"/>
|
|
<area shape="poly" title=" " alt="" coords="996,141,879,184,653,272,651,267,877,179,994,136"/>
|
|
<area shape="poly" title=" " alt="" coords="1014,142,943,184,809,271,806,267,941,179,1012,138"/>
|
|
<area shape="poly" title=" " alt="" coords="955,124,733,146,603,163,475,184,382,204,290,228,139,272,138,267,289,222,381,199,473,179,602,157,732,140,954,119"/>
|
|
<area shape="poly" title=" " alt="" coords="1001,142,977,160,959,183,951,204,948,227,952,269,947,270,943,227,946,203,954,180,974,156,998,138"/>
|
|
<area shape="poly" title=" " alt="" coords="1121,138,1145,156,1164,180,1170,204,1167,228,1157,251,1146,270,1141,268,1152,249,1162,227,1165,204,1160,183,1142,160,1118,142"/>
|
|
<area shape="poly" title=" " alt="" coords="1122,136,1230,179,1436,267,1434,272,1228,184,1120,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1165,115,1306,122,1466,134,1615,153,1675,165,1720,179,1744,193,1774,216,1830,267,1827,271,1770,221,1741,198,1718,184,1673,170,1614,158,1465,139,1305,127,1165,121"/>
|
|
<area shape="poly" title=" " alt="" coords="1114,137,1186,179,1243,225,1287,267,1283,271,1239,229,1183,184,1112,142"/>
|
|
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="969,181,1150,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1062,147,1062,181,1057,181,1057,147"/>
|
|
<area shape="rect" href="loop_8cpp.html" title=" " alt="" coords="2239,181,2389,221"/>
|
|
<area shape="poly" title=" " alt="" coords="2325,147,2320,182,2314,181,2320,146"/>
|
|
<area shape="poly" title=" " alt="" coords="2379,137,2464,179,2462,184,2376,142"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="component__base_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:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">It implement rendering itself as <a class="el" href="namespaceftxui.html#a2bc31f2d685189e5c61d2293a1f51b4f">ftxui::Element</a>. It implement keyboard navigation by responding to <a class="el" href="structftxui_1_1Event.html" title="Represent an event. It can be key press event, a terminal resize, or more ...">ftxui::Event</a>. <a href="classftxui_1_1ComponentBase.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </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  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1animation.html">ftxui::animation</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:af1479ede01dbf087342534ab4ada11d3" id="r_af1479ede01dbf087342534ab4ada11d3"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#af1479ede01dbf087342534ab4ada11d3">Component</a> = std::shared_ptr<<a class="el" href="classftxui_1_1ComponentBase.html">ComponentBase</a>></td></tr>
|
|
<tr class="separator:af1479ede01dbf087342534ab4ada11d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d4ccad0c8a07d5b0cb4b2e690ffc90c" id="r_a3d4ccad0c8a07d5b0cb4b2e690ffc90c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a3d4ccad0c8a07d5b0cb4b2e690ffc90c">Components</a> = std::vector<<a class="el" href="namespaceftxui.html#af1479ede01dbf087342534ab4ada11d3">Component</a>></td></tr>
|
|
<tr class="separator:a3d4ccad0c8a07d5b0cb4b2e690ffc90c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
</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": "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": "../v0.10/index.html"};
|
|
const currentVersion = "v6.0.2";
|
|
|
|
// 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>
|