mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
274 lines
19 KiB
HTML
274 lines
19 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/mouse.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('mouse_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> </div>
|
|
<div class="headertitle"><div class="title">mouse.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="mouse_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2mouse_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2component_2mouse_8hppdep" id="ainclude_2ftxui_2component_2mouse_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="1809,5,1987,45"/>
|
|
<area shape="rect" href="event_8hpp.html" title=" " alt="" coords="1233,93,1411,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1796,45,1412,101,1411,96,1795,39"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,365,156,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1794,31,1409,37,903,49,450,69,299,81,253,88,229,96,195,123,166,157,143,194,124,234,99,309,86,365,81,364,93,308,119,232,138,192,162,154,191,119,226,91,251,83,299,76,450,63,903,44,1409,31,1794,25"/>
|
|
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="180,365,331,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1795,30,1415,34,918,45,679,53,475,64,329,79,284,87,262,95,239,124,225,159,220,196,220,235,233,309,250,364,245,365,228,310,215,236,214,196,220,157,235,122,259,91,283,82,328,73,475,59,679,48,918,39,1415,29,1795,25"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="355,365,505,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1794,31,1426,38,946,51,519,70,377,82,333,89,310,96,278,121,260,149,255,182,264,220,291,266,327,306,366,338,400,362,397,367,362,342,324,309,287,269,260,222,249,182,255,148,274,117,307,91,331,84,376,77,519,65,946,45,1426,32,1794,26"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1228,365,1379,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1795,31,1431,43,1197,54,954,69,722,89,522,114,439,129,372,146,322,164,293,183,281,204,282,212,286,219,307,232,342,242,448,252,584,254,882,250,1009,254,1059,259,1099,267,1152,287,1202,312,1280,362,1277,367,1199,317,1150,292,1097,272,1059,264,1008,259,882,256,584,259,447,257,341,247,305,237,282,223,277,214,276,203,289,180,320,159,370,141,438,124,521,109,722,83,954,64,1197,48,1431,38,1795,26"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="529,365,680,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1795,31,1465,38,1036,50,642,69,500,82,416,96,369,110,333,124,303,145,276,183,270,202,276,220,287,234,299,242,324,251,354,256,388,267,572,362,570,367,386,272,352,261,323,256,296,247,284,237,272,223,264,202,272,180,299,141,330,119,368,105,415,91,499,76,642,64,1036,45,1465,32,1795,26"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1403,365,1553,405"/>
|
|
<area shape="poly" title=" " alt="" coords="2001,36,2191,63,2297,82,2399,104,2487,129,2552,157,2574,172,2587,188,2589,206,2579,223,2562,234,2534,242,2454,254,2348,261,2230,264,2001,267,1916,268,1865,272,1771,292,1678,318,1529,367,1528,362,1677,313,1770,287,1864,267,1915,263,2001,261,2230,259,2348,256,2453,249,2533,237,2560,229,2575,219,2584,204,2582,190,2570,176,2550,162,2485,134,2398,109,2296,87,2190,69,2001,41"/>
|
|
<area shape="rect" href="terminal__input__parser_8cpp.html" title=" " alt="" coords="1775,365,1970,405"/>
|
|
<area shape="poly" title=" " alt="" coords="2001,26,2180,31,2384,42,2479,51,2560,61,2620,75,2640,83,2653,91,2675,124,2682,157,2674,190,2653,223,2617,263,2581,294,2545,318,2508,335,2471,346,2434,353,2356,356,2185,344,2088,345,2037,350,1983,360,1951,367,1950,362,1981,355,2036,345,2088,340,2185,339,2356,350,2433,348,2470,341,2506,330,2542,313,2578,290,2614,259,2649,220,2669,188,2677,157,2670,126,2649,95,2638,87,2618,80,2559,67,2478,56,2384,47,2179,36,2001,31"/>
|
|
<area shape="rect" href="terminal__input__parser_8hpp.html" title=" " alt="" coords="1877,269,2073,309"/>
|
|
<area shape="poly" title=" " alt="" coords="2001,26,2172,32,2367,43,2534,62,2591,75,2610,83,2623,91,2645,124,2652,157,2645,190,2622,223,2595,238,2545,250,2398,268,2226,281,2074,288,2073,282,2226,275,2398,263,2544,245,2593,233,2619,219,2640,188,2647,157,2640,126,2619,95,2608,88,2589,80,2533,68,2367,49,2172,37,2001,31"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="1715,181,1865,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1881,59,1804,183,1799,180,1877,56"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1889,181,2040,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1913,57,1960,180,1955,182,1908,59"/>
|
|
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="2064,181,2215,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1937,51,2115,179,2112,183,1934,56"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="2239,181,2389,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1957,48,2270,179,2268,184,1955,53"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2413,181,2564,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1976,47,2425,179,2424,184,1974,52"/>
|
|
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="907,269,1086,309"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,121,1139,128,1059,140,990,158,965,169,948,183,942,193,941,203,947,226,961,248,978,267,974,271,956,251,942,228,935,203,937,191,944,180,962,165,988,153,1057,134,1139,123,1218,116"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,121,1084,127,930,139,787,158,730,170,687,184,674,192,665,202,656,213,642,224,593,245,552,254,511,260,459,272,141,367,140,362,457,267,510,255,551,249,591,240,639,219,652,209,661,199,670,188,685,179,729,165,786,152,929,134,1083,122,1219,115"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="704,365,855,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,126,1058,148,985,164,935,184,901,211,882,239,865,272,840,311,797,366,792,363,836,308,860,269,877,237,898,207,933,179,984,159,1057,143,1219,121"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,123,959,145,833,162,782,172,743,184,726,192,715,202,687,224,525,288,308,367,307,362,523,283,685,219,712,198,724,188,741,179,780,167,832,157,958,139,1219,118"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,122,1136,129,1041,141,940,159,841,184,762,216,656,267,466,367,463,362,654,262,760,211,840,179,939,154,1040,136,1135,124,1219,117"/>
|
|
<area shape="poly" title=" " alt="" coords="1322,147,1307,365,1302,364,1317,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,124,1128,133,1031,145,945,162,911,172,886,184,867,198,854,212,837,244,820,278,807,295,789,312,734,339,661,367,659,362,732,334,786,307,803,291,816,275,832,242,849,209,863,194,883,179,909,167,944,157,1030,140,1127,127,1219,119"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1578,365,1751,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1356,140,1450,219,1640,362,1637,367,1447,223,1352,144"/>
|
|
<area shape="poly" title=" " alt="" coords="1334,145,1362,222,1382,266,1407,308,1431,338,1457,363,1453,366,1427,341,1402,311,1378,269,1357,224,1329,147"/>
|
|
<area shape="rect" href="task_8hpp.html" title=" " alt="" coords="1461,181,1639,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1386,136,1501,179,1499,184,1384,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1426,119,1479,126,1538,138,1597,155,1653,179,1688,206,1745,258,1855,363,1852,367,1741,262,1684,210,1650,184,1595,160,1536,143,1479,131,1425,124"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="959,181,1109,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1246,140,1098,184,1096,179,1245,135"/>
|
|
<area shape="poly" title=" " alt="" coords="1425,130,1696,179,1715,182,1714,188,1695,184,1424,135"/>
|
|
<area shape="poly" title=" " alt="" coords="1426,122,1634,145,1877,179,1889,181,1888,186,1876,184,1634,150,1425,127"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="1133,181,1284,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1288,144,1235,183,1232,179,1285,140"/>
|
|
<area shape="poly" title=" " alt="" coords="1425,118,1708,139,1880,156,2052,179,2064,181,2063,186,2051,184,1879,161,1708,144,1425,123"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="304,181,455,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,121,883,140,675,158,466,184,455,186,454,180,466,179,674,153,883,135,1218,116"/>
|
|
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="479,181,629,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1219,124,960,147,804,164,649,184,630,187,629,182,648,179,804,158,959,141,1218,119"/>
|
|
<area shape="poly" title=" " alt="" coords="1426,115,1781,134,2003,152,2226,179,2239,181,2238,186,2226,184,2003,158,1781,139,1425,120"/>
|
|
<area shape="poly" title=" " alt="" coords="1425,113,1609,118,1852,129,2126,148,2402,179,2414,180,2413,186,2402,184,2126,154,1852,134,1608,123,1425,119"/>
|
|
<area shape="poly" title=" " alt="" coords="894,295,750,300,568,310,368,330,168,360,137,367,136,362,167,355,367,324,568,305,750,294,893,289"/>
|
|
<area shape="poly" title=" " alt="" coords="941,317,824,367,822,362,939,312"/>
|
|
<area shape="poly" title=" " alt="" coords="894,298,642,317,492,335,343,360,313,367,312,362,341,355,491,330,641,312,893,292"/>
|
|
<area shape="poly" title=" " alt="" coords="894,303,717,325,617,341,517,360,489,367,487,362,516,355,616,335,716,320,893,298"/>
|
|
<area shape="rect" href="loop_8cpp.html" title=" " alt="" coords="879,365,1029,405"/>
|
|
<area shape="poly" title=" " alt="" coords="985,323,965,366,960,363,980,321"/>
|
|
<area shape="poly" title=" " alt="" coords="1072,311,1242,362,1241,367,1071,316"/>
|
|
<area shape="poly" title=" " alt="" coords="894,314,692,360,666,367,664,362,691,355,893,308"/>
|
|
<area shape="poly" title=" " alt="" coords="1100,296,1315,318,1441,334,1565,355,1598,362,1597,367,1564,360,1440,339,1314,323,1100,301"/>
|
|
<area shape="poly" title=" " alt="" coords="1100,302,1239,324,1391,355,1419,362,1417,367,1389,360,1238,330,1099,307"/>
|
|
<area shape="rect" href="window_8cpp.html" title=" " alt="" coords="1053,365,1204,405"/>
|
|
<area shape="poly" title=" " alt="" coords="1036,315,1104,362,1100,367,1033,320"/>
|
|
<area shape="poly" title=" " alt="" coords="1447,221,1086,277,1086,272,1446,216"/>
|
|
<area shape="poly" title=" " alt="" coords="1572,232,1655,363,1651,366,1567,235"/>
|
|
<area shape="poly" title=" " alt="" coords="1582,229,1631,268,1689,307,1753,338,1815,362,1813,367,1751,343,1686,312,1628,272,1579,233"/>
|
|
<area shape="poly" title=" " alt="" coords="1653,221,1883,267,1882,272,1652,226"/>
|
|
<area shape="poly" title=" " alt="" coords="1900,316,1728,367,1727,362,1899,311"/>
|
|
<area shape="poly" title=" " alt="" coords="1946,321,1895,367,1892,363,1943,317"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="2188,365,2360,405"/>
|
|
<area shape="poly" title=" " alt="" coords="2050,311,2214,362,2213,367,2048,316"/>
|
|
<area shape="rect" href="terminal__input__parser__test__fuzzer_8cpp.html" title=" " alt="" coords="1995,357,2164,412"/>
|
|
<area shape="poly" title=" " alt="" coords="2008,316,2052,355,2048,359,2005,320"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="mouse_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">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1Mouse.html">Mouse</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta). <a href="structftxui_1_1Mouse.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>
|
|
</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>
|