mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
435 lines
38 KiB
HTML
435 lines
38 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/screen/color.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">4.0.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&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('color_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="#func-members">Functions</a> </div>
|
|
<div class="headertitle"><div class="title">color.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="color_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2screen_2color_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2screen_2color_8hppdep" id="ainclude_2ftxui_2screen_2color_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="497,5,647,45"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="3921,343,4103,383"/>
|
|
<area shape="poly" title=" " alt="" coords="660,25,933,30,1332,41,1800,60,2278,91,2488,110,2651,130,3023,179,3230,198,3392,209,3553,227,3647,243,3757,267,3873,302,3970,340,3968,345,3872,307,3755,272,3646,248,3552,232,3392,214,3230,203,3022,184,2650,135,2487,115,2277,96,1799,66,1332,46,933,35,660,30"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="3107,519,3258,559"/>
|
|
<area shape="poly" title=" " alt="" coords="484,34,381,42,268,54,164,72,123,83,93,96,57,116,31,137,14,163,8,200,8,364,13,401,29,428,54,449,89,468,140,480,239,491,554,508,983,520,1477,528,2461,535,3107,535,3107,540,2461,540,1477,533,983,526,553,513,239,496,139,486,87,473,51,453,25,431,8,403,3,364,3,200,9,161,27,133,55,112,91,91,122,78,163,67,267,49,381,36,483,29"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="3282,519,3433,559"/>
|
|
<area shape="poly" title=" " alt="" coords="569,59,556,154,545,278,545,340,548,395,558,440,566,456,575,468,612,477,702,485,1007,496,1431,504,1914,509,2825,512,3271,516,3282,518,3281,523,3270,521,2825,518,1914,514,1431,509,1007,502,701,490,611,482,572,473,561,459,553,441,543,396,539,340,540,278,551,154,564,58"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="5553,519,5703,559"/>
|
|
<area shape="poly" title=" " alt="" coords="661,24,1845,32,2758,41,3744,57,4696,79,5127,93,5508,109,5828,127,6074,148,6164,159,6231,171,6272,184,6284,191,6288,199,6288,364,6283,386,6269,407,6248,425,6220,442,6148,470,6060,492,5964,509,5867,522,5704,536,5703,531,5867,516,5963,504,6059,487,6146,464,6218,437,6245,421,6265,403,6278,384,6283,364,6283,201,6280,195,6270,189,6229,176,6163,164,6073,153,5828,132,5508,114,5126,98,4696,84,3744,62,2758,47,1845,37,661,30"/>
|
|
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="973,431,1155,471"/>
|
|
<area shape="poly" title=" " alt="" coords="572,59,569,137,570,233,580,323,590,358,603,381,620,390,653,399,749,416,973,440,973,445,748,421,651,404,618,395,599,385,585,360,575,324,565,233,564,137,567,59"/>
|
|
<area shape="rect" href="canvas_8hpp.html" title=" " alt="" coords="736,189,949,214"/>
|
|
<area shape="poly" title=" " alt="" coords="614,51,826,186,823,191,611,55"/>
|
|
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="3515,269,3743,295"/>
|
|
<area shape="poly" title=" " alt="" coords="660,26,1247,45,1649,64,2059,91,2280,110,2452,129,2843,179,3543,267,3542,272,2842,184,2451,135,2279,115,2058,96,1649,69,1247,50,660,31"/>
|
|
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="613,350,797,375"/>
|
|
<area shape="poly" title=" " alt="" coords="484,36,350,54,279,69,213,89,160,113,140,127,126,143,117,159,115,178,120,198,134,220,165,246,212,269,272,289,340,306,484,333,613,350,612,355,484,338,339,311,271,294,210,274,162,250,130,223,116,200,110,178,112,158,121,140,137,123,158,108,212,84,277,64,349,49,483,31"/>
|
|
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="585,438,754,463"/>
|
|
<area shape="poly" title=" " alt="" coords="484,31,386,36,280,47,187,66,151,79,127,95,104,124,95,153,98,185,112,220,129,251,151,279,202,327,263,365,329,394,398,415,466,430,584,444,584,449,465,435,397,420,327,399,260,369,199,331,147,283,125,254,107,222,93,186,90,153,100,122,124,91,149,74,185,61,279,41,386,30,483,25"/>
|
|
<area shape="rect" href="separator_8cpp.html" title=" " alt="" coords="6050,350,6249,375"/>
|
|
<area shape="poly" title=" " alt="" coords="661,26,1214,41,2134,70,3258,116,3844,145,4420,179,4961,215,5197,235,5500,267,5770,300,6039,340,6084,347,6083,353,6038,345,5769,305,5500,272,5197,241,4960,220,4420,184,3844,150,3258,121,2134,76,1214,46,660,31"/>
|
|
<area shape="rect" href="color__info_8hpp.html" title=" " alt="" coords="309,93,459,133"/>
|
|
<area shape="poly" title=" " alt="" coords="520,53,426,96,424,91,517,49"/>
|
|
<area shape="rect" href="screen_2color_8cpp.html" title=" " alt="" coords="145,189,327,214"/>
|
|
<area shape="poly" title=" " alt="" coords="484,33,438,40,390,52,342,70,299,95,277,117,261,143,242,190,237,188,256,141,273,114,296,91,340,65,388,47,437,35,483,28"/>
|
|
<area shape="rect" href="color__info_8cpp.html" title=" " alt="" coords="352,181,509,221"/>
|
|
<area shape="poly" title=" " alt="" coords="550,58,448,183,444,179,546,55"/>
|
|
<area shape="rect" href="screen_8hpp.html" title=" " alt="" coords="1897,93,2047,133"/>
|
|
<area shape="poly" title=" " alt="" coords="661,29,1897,105,1897,110,660,35"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="4280,431,4459,471"/>
|
|
<area shape="poly" title=" " alt="" coords="4104,383,4292,428,4290,433,4103,388"/>
|
|
<area shape="poly" title=" " alt="" coords="3907,372,3701,391,3582,409,3465,433,3397,453,3331,476,3224,521,3222,516,3329,471,3396,448,3463,428,3581,404,3700,386,3907,367"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="3457,519,3607,559"/>
|
|
<area shape="poly" title=" " alt="" coords="3908,382,3814,403,3718,433,3673,453,3630,477,3560,521,3558,516,3627,472,3671,448,3716,428,3813,398,3907,377"/>
|
|
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="3631,519,3782,559"/>
|
|
<area shape="poly" title=" " alt="" coords="3968,392,3741,521,3739,516,3966,387"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="3981,519,4131,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4014,396,4017,432,4024,470,4034,495,4046,517,4041,520,4029,497,4019,471,4011,433,4009,397"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="4155,519,4306,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4048,389,4209,516,4205,521,4045,393"/>
|
|
<area shape="poly" title=" " alt="" coords="3907,378,3768,399,3691,414,3617,433,3555,453,3495,477,3396,521,3394,516,3493,472,3553,448,3615,428,3690,409,3767,394,3906,373"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="3806,519,3957,559"/>
|
|
<area shape="poly" title=" " alt="" coords="3992,395,3898,520,3893,517,3988,392"/>
|
|
<area shape="poly" title=" " alt="" coords="4117,373,5035,468,5289,487,5400,497,5542,516,5553,518,5552,523,5541,521,5399,502,5288,493,5034,473,4117,378"/>
|
|
<area shape="poly" title=" " alt="" coords="3907,372,3553,385,3031,392,2360,396,1689,406,1400,417,1168,433,1156,435,1155,429,1168,428,1400,412,1689,401,2360,390,3031,387,3553,380,3907,366"/>
|
|
<area shape="poly" title=" " alt="" coords="4266,456,4080,461,3832,471,3553,491,3271,521,3259,523,3258,518,3270,516,3552,485,3832,466,4079,455,4266,450"/>
|
|
<area shape="poly" title=" " alt="" coords="4266,460,3975,481,3798,498,3620,521,3608,523,3607,518,3620,516,3797,493,3974,476,4266,455"/>
|
|
<area shape="poly" title=" " alt="" coords="4267,464,4049,486,3795,521,3783,523,3782,518,3794,516,4049,481,4266,458"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="4330,519,4481,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4385,482,4400,517,4395,519,4380,485"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="4505,519,4655,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4429,473,4535,516,4533,521,4427,478"/>
|
|
<area shape="poly" title=" " alt="" coords="4288,477,4125,521,4124,516,4287,472"/>
|
|
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="4679,519,4830,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4468,471,4679,518,4678,523,4467,476"/>
|
|
<area shape="poly" title=" " alt="" coords="4329,480,4262,521,4260,516,4326,475"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="4854,519,5005,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4473,462,4647,485,4843,516,4854,518,4853,523,4842,521,4646,490,4473,467"/>
|
|
<area shape="poly" title=" " alt="" coords="4266,457,3903,476,3675,494,3446,521,3433,523,3433,518,3445,516,3674,489,3902,471,4266,452"/>
|
|
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="5029,519,5179,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4473,456,4722,478,4870,495,5018,516,5029,518,5028,523,5017,521,4869,501,4721,484,4472,462"/>
|
|
<area shape="poly" title=" " alt="" coords="4267,470,3970,521,3958,524,3957,518,3969,516,4266,465"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="5203,519,5354,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4473,457,4883,488,5192,516,5204,518,5203,523,5192,521,4883,494,4472,462"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="5378,519,5529,559"/>
|
|
<area shape="poly" title=" " alt="" coords="4473,457,4629,468,4837,479,4999,483,5161,493,5367,516,5378,518,5377,523,5366,521,5160,498,4999,489,4837,484,4629,473,4473,462"/>
|
|
<area shape="poly" title=" " alt="" coords="4473,457,4629,468,4886,479,5086,481,5286,489,5404,500,5542,516,5553,518,5552,523,5541,521,5403,505,5286,495,5086,487,4886,484,4629,473,4473,463"/>
|
|
<area shape="poly" title=" " alt="" coords="963,203,3515,275,3515,280,963,209"/>
|
|
<area shape="poly" title=" " alt="" coords="826,226,718,351,713,348,822,223"/>
|
|
<area shape="poly" title=" " alt="" coords="3699,295,3921,340,3920,345,3698,300"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,292,4038,319,4211,340,4253,359,4291,382,4350,428,4347,433,4288,387,4250,364,4210,345,4038,324,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3501,287,2932,293,2157,305,1453,322,1215,333,1140,339,1099,345,1054,359,1018,373,990,395,964,432,956,452,957,460,963,468,988,475,1049,482,1259,494,1904,514,2615,527,3107,534,3107,539,2615,533,1904,519,1258,500,1048,487,987,480,960,473,952,462,951,451,959,429,986,391,1016,368,1052,354,1098,340,1139,334,1215,328,1453,317,2157,299,2932,288,3501,282"/>
|
|
<area shape="poly" title=" " alt="" coords="3694,297,3726,315,3752,341,3759,362,3752,384,3736,409,3718,431,3673,470,3626,499,3582,521,3580,516,3623,495,3670,465,3714,428,3732,406,3747,382,3753,362,3747,344,3723,319,3691,302"/>
|
|
<area shape="poly" title=" " alt="" coords="3738,297,3774,314,3802,341,3808,352,3808,362,3802,384,3789,409,3770,432,3719,520,3715,517,3766,429,3784,406,3798,382,3803,361,3803,353,3798,344,3771,318,3736,301"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3923,293,4191,293,4330,297,4453,305,4548,319,4580,329,4599,341,4614,367,4613,394,4599,420,4576,444,4546,467,4513,488,4450,521,4448,516,4511,483,4543,463,4572,440,4595,417,4608,392,4609,368,4595,345,4577,334,4546,324,4453,310,4330,302,4191,298,3923,298,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,4198,304,4481,318,4579,328,4609,334,4624,341,4638,362,4644,385,4643,410,4638,435,4618,483,4596,520,4591,517,4613,480,4633,434,4638,409,4639,386,4633,364,4621,345,4607,339,4578,333,4481,324,4198,310,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,292,3985,316,4075,329,4118,341,4131,363,4135,386,4133,411,4125,437,4101,483,4075,520,4070,517,4096,481,4120,435,4128,410,4130,387,4126,364,4114,345,4074,334,3984,321,3756,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3931,295,4212,299,4358,303,4490,311,4592,323,4628,331,4651,340,4674,358,4693,380,4723,429,4743,478,4753,517,4748,519,4738,480,4718,432,4689,383,4670,362,4648,345,4626,336,4591,328,4489,317,4358,309,4212,304,3931,300,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,4000,317,4097,330,4144,340,4165,359,4182,381,4208,431,4223,480,4231,518,4226,519,4218,481,4203,433,4178,384,4161,363,4141,345,4096,335,3999,322,3757,298"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3854,295,3967,295,4230,294,4365,296,4491,303,4602,317,4649,328,4689,340,4726,357,4762,378,4827,427,4879,477,4916,517,4912,520,4876,481,4823,432,4759,383,4724,362,4687,345,4647,333,4601,323,4491,309,4365,302,4230,299,3967,300,3853,300,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3652,304,3665,321,3675,342,3679,363,3673,384,3656,403,3631,422,3562,460,3483,494,3412,521,3410,516,3481,489,3559,455,3628,417,3653,399,3668,381,3674,363,3670,343,3660,324,3648,307"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3978,297,4256,300,4398,303,4532,310,4650,322,4743,340,4795,357,4846,378,4942,427,5023,477,5080,516,5077,521,5020,481,4940,432,4844,383,4793,362,4742,345,4649,327,4531,315,4398,308,4255,305,3978,303,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3741,296,3785,313,3823,341,3840,361,3854,384,3872,434,3881,481,3884,518,3878,519,3875,482,3866,435,3849,387,3836,364,3820,345,3782,318,3739,301"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3993,299,4290,303,4586,313,4713,324,4814,340,4878,357,4943,378,5066,427,5171,477,5246,516,5244,521,5169,481,5064,432,4941,383,4877,362,4813,345,4712,329,4586,318,4290,308,3993,304,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,4011,300,4332,304,4651,315,4788,325,4898,340,4974,357,5050,378,5197,427,5324,477,5414,516,5412,521,5322,482,5196,432,5049,383,4973,362,4897,345,4787,330,4651,320,4331,310,4011,305,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3950,300,4110,301,4380,294,4511,293,4650,299,4808,313,4994,340,5080,357,5167,378,5334,427,5479,477,5583,516,5581,521,5477,482,5333,432,5166,383,5079,362,4993,345,4808,318,4650,304,4511,299,4381,300,4110,306,3950,305,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3501,286,2941,288,2180,296,1810,304,1492,314,1261,328,1188,336,1150,345,1125,363,1104,386,1075,432,1070,429,1100,382,1122,359,1148,340,1187,331,1260,322,1492,309,1810,298,2180,291,2941,283,3501,281"/>
|
|
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="4407,343,4585,383"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,292,4326,340,4407,348,4406,354,4325,345,3757,297"/>
|
|
<area shape="rect" href="dom_2deprecated_8hpp.html" title=" " alt="" coords="1176,350,1416,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,287,2459,305,1857,323,1606,333,1416,345,1355,353,1354,347,1416,340,1606,328,1857,317,2459,300,3501,282"/>
|
|
<area shape="rect" href="table_8hpp.html" title=" " alt="" coords="1440,350,1640,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,288,2573,306,2045,323,1826,333,1659,345,1603,353,1602,347,1658,340,1825,328,2045,318,2573,301,3501,282"/>
|
|
<area shape="rect" href="automerge_8cpp.html" title=" " alt="" coords="1179,438,1389,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,287,2932,291,2161,301,1477,319,1256,331,1192,338,1166,345,1158,357,1159,370,1166,382,1179,395,1216,418,1255,436,1252,440,1214,423,1176,399,1162,386,1154,371,1153,356,1162,341,1191,332,1256,325,1476,313,2161,296,2932,286,3502,281"/>
|
|
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="1413,438,1584,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,286,3077,288,2521,296,2248,303,2008,314,1823,328,1757,336,1714,345,1696,353,1683,363,1653,385,1588,417,1530,440,1528,436,1586,412,1651,380,1680,358,1693,349,1713,340,1756,331,1822,322,2008,308,2248,298,2521,291,3077,283,3502,281"/>
|
|
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="1806,438,1973,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,298,3414,315,3369,328,3327,345,3312,355,3302,365,3291,376,3274,385,3239,394,3185,401,3035,411,2632,421,2228,426,2076,429,1986,433,1940,441,1939,435,1985,428,2076,423,2228,420,2632,416,3035,406,3185,395,3238,388,3272,380,3288,372,3298,362,3308,351,3324,340,3367,323,3413,310,3501,292"/>
|
|
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="5243,350,5421,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,292,3763,292,3985,302,4174,306,4494,306,4649,306,4814,310,5002,321,5224,340,5275,347,5275,353,5224,345,5002,326,4814,315,4649,311,4494,311,4174,312,3985,308,3763,297,3757,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,286,2956,289,2180,297,1393,315,1065,328,816,345,763,353,763,347,816,340,1064,323,1393,310,2180,292,2956,284,3502,281"/>
|
|
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="1997,431,2139,471"/>
|
|
<area shape="poly" title=" " alt="" coords="3621,309,3595,350,3577,370,3555,385,3517,397,3460,407,3298,420,3090,427,2859,429,2417,428,2251,429,2152,433,2140,435,2139,430,2152,428,2251,423,2417,422,2859,423,3090,421,3298,415,3459,402,3516,392,3552,380,3573,365,3591,346,3616,306"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,286,2922,287,2116,295,1714,302,1358,313,1081,327,983,336,918,345,871,361,809,387,694,440,692,435,806,382,869,356,917,340,982,330,1080,322,1357,307,1714,297,2116,290,2922,282,3502,281"/>
|
|
<area shape="rect" href="composite__decorator_8cpp.html" title=" " alt="" coords="2085,343,2264,383"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,286,3272,288,2967,297,2623,315,2448,328,2276,345,2264,347,2264,342,2276,340,2447,323,2623,309,2967,291,3272,283,3502,280"/>
|
|
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="2288,350,2459,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3501,287,3302,291,3045,300,2759,318,2471,345,2426,353,2425,347,2470,340,2759,312,3045,295,3302,285,3501,281"/>
|
|
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="2164,438,2327,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3631,309,3623,349,3614,369,3599,385,3575,393,3530,399,3387,410,2973,422,2557,428,2339,433,2295,441,2294,435,2338,428,2557,423,2973,417,3387,404,3530,394,3574,387,3596,380,3609,366,3618,347,3626,308"/>
|
|
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="2483,350,2645,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,288,3123,304,2890,321,2658,345,2615,353,2614,347,2657,340,2890,315,3122,299,3501,283"/>
|
|
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="2669,350,2856,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,292,3211,311,3039,326,2868,345,2821,353,2821,347,2868,340,3039,321,3211,306,3501,287"/>
|
|
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="1608,438,1781,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,287,3066,290,2502,300,2232,308,2002,317,1835,330,1783,337,1756,345,1734,365,1717,391,1700,439,1695,437,1712,388,1730,362,1753,340,1782,332,1834,325,2001,312,2232,302,2502,295,3066,285,3502,281"/>
|
|
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="5446,350,5623,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,285,3965,292,4189,297,4379,299,4701,298,4856,300,5022,306,5211,319,5434,340,5482,347,5481,353,5433,345,5210,324,5022,311,4856,305,4701,303,4379,304,4189,303,3965,297,3757,290"/>
|
|
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="5648,350,5827,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3758,282,4161,287,4703,298,5242,315,5466,327,5636,340,5684,347,5684,353,5636,345,5466,332,5242,320,4703,303,4161,293,3758,287"/>
|
|
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="5851,350,6026,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,281,4197,286,4798,296,5399,313,5649,325,5839,340,5887,347,5886,353,5838,345,5649,331,5399,318,4798,301,4197,291,3757,287"/>
|
|
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="2880,350,3067,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,297,3303,317,3079,345,3034,353,3033,347,3078,340,3302,312,3502,292"/>
|
|
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="3091,350,3261,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3548,300,3280,345,3239,353,3238,347,3280,340,3547,294"/>
|
|
<area shape="rect" href="inverted_8cpp.html" title=" " alt="" coords="2351,438,2543,463"/>
|
|
<area shape="poly" title=" " alt="" coords="3646,306,3660,345,3660,366,3650,385,3633,392,3602,399,3499,412,3186,431,2828,443,2543,450,2543,445,2828,438,3186,425,3498,406,3601,394,3632,387,3646,381,3654,365,3655,346,3641,308"/>
|
|
<area shape="rect" href="node__decorator_8hpp.html" title=" " alt="" coords="1766,343,1909,383"/>
|
|
<area shape="poly" title=" " alt="" coords="3502,289,2886,308,2483,324,2074,345,1909,358,1909,352,2073,340,2482,319,2886,303,3501,284"/>
|
|
<area shape="rect" href="paragraph_8cpp.html" title=" " alt="" coords="3337,350,3541,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3590,302,3467,352,3465,348,3588,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3757,281,4233,286,4892,296,5554,313,5830,325,6039,340,6092,347,6091,353,6038,345,5829,331,5553,318,4891,301,4233,291,3757,287"/>
|
|
<area shape="poly" title=" " alt="" coords="4458,393,4399,433,4396,428,4455,388"/>
|
|
<area shape="poly" title=" " alt="" coords="4393,372,3969,397,3745,414,3583,433,3444,468,3251,521,3249,516,3443,463,3582,428,3745,409,3968,391,4393,366"/>
|
|
<area shape="poly" title=" " alt="" coords="4393,373,4167,394,4034,411,3902,433,3815,453,3729,477,3587,521,3586,516,3727,472,3813,448,3901,428,4033,405,4166,388,4393,368"/>
|
|
<area shape="poly" title=" " alt="" coords="4393,378,4231,399,4050,433,3890,477,3759,521,3757,516,3889,472,4049,428,4230,394,4392,372"/>
|
|
<area shape="poly" title=" " alt="" coords="4515,395,4524,433,4524,453,4517,472,4492,501,4460,521,4457,516,4488,497,4512,469,4518,452,4519,433,4509,396"/>
|
|
<area shape="poly" title=" " alt="" coords="4535,390,4553,408,4568,429,4576,452,4581,476,4584,518,4578,519,4576,477,4571,454,4563,432,4549,411,4532,393"/>
|
|
<area shape="poly" title=" " alt="" coords="4407,389,4339,409,4269,433,4170,478,4090,521,4087,516,4168,473,4267,428,4337,404,4406,384"/>
|
|
<area shape="poly" title=" " alt="" coords="4537,388,4728,516,4725,521,4534,393"/>
|
|
<area shape="poly" title=" " alt="" coords="4499,397,4493,436,4485,455,4472,473,4450,484,4410,497,4307,523,4306,518,4408,492,4448,479,4469,469,4480,453,4488,434,4494,396"/>
|
|
<area shape="poly" title=" " alt="" coords="4557,385,4883,516,4881,521,4555,390"/>
|
|
<area shape="poly" title=" " alt="" coords="4393,370,4262,376,4099,388,3920,407,3742,433,3592,471,3420,521,3419,516,3591,466,3741,428,3919,401,4098,383,4262,371,4393,364"/>
|
|
<area shape="poly" title=" " alt="" coords="4576,384,4731,428,5039,516,5038,521,4730,433,4575,389"/>
|
|
<area shape="poly" title=" " alt="" coords="4394,385,4290,406,4179,433,4042,478,3928,521,3927,516,4040,473,4178,428,4288,401,4393,379"/>
|
|
<area shape="poly" title=" " alt="" coords="4599,382,4817,428,5204,517,5202,522,4815,433,4598,387"/>
|
|
<area shape="poly" title=" " alt="" coords="4599,377,4918,428,5143,470,5367,516,5378,518,5377,524,5366,521,5142,475,4917,433,4598,382"/>
|
|
<area shape="poly" title=" " alt="" coords="4599,372,4804,396,5040,428,5292,468,5542,516,5553,518,5552,523,5541,521,5291,474,5040,433,4803,401,4599,378"/>
|
|
<area shape="poly" title=" " alt="" coords="1391,345,1440,340,1631,328,1882,317,2485,300,3515,282,3515,287,2485,305,1882,322,1631,333,1440,345,1391,351"/>
|
|
<area shape="poly" title=" " alt="" coords="1753,379,1402,433,1356,441,1355,435,1401,428,1752,374"/>
|
|
<area shape="poly" title=" " alt="" coords="1753,388,1545,440,1543,435,1752,383"/>
|
|
<area shape="poly" title=" " alt="" coords="1858,393,1884,436,1880,439,1854,396"/>
|
|
<area shape="poly" title=" " alt="" coords="1901,385,2018,428,2017,433,1900,390"/>
|
|
<area shape="poly" title=" " alt="" coords="1752,376,1652,385,1215,417,754,447,754,441,1215,411,1652,380,1752,371"/>
|
|
<area shape="poly" title=" " alt="" coords="1923,379,2191,435,2190,441,1921,384"/>
|
|
<area shape="poly" title=" " alt="" coords="1796,392,1715,440,1712,436,1793,387"/>
|
|
<area shape="poly" title=" " alt="" coords="1923,372,2339,428,2384,435,2383,441,2338,433,1922,377"/>
|
|
<area shape="poly" title=" " alt="" coords="341,143,257,191,254,186,338,138"/>
|
|
<area shape="poly" title=" " alt="" coords="403,144,423,180,418,182,398,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1883,121,1486,142,1229,160,968,184,912,191,912,186,968,179,1228,155,1486,136,1883,115"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,121,3516,267,3516,272,2060,126"/>
|
|
<area shape="poly" title=" " alt="" coords="1884,119,1732,123,1552,134,1383,153,1314,167,1264,184,1196,221,1167,243,1144,267,1128,292,1121,320,1124,350,1138,381,1155,400,1176,416,1223,436,1221,440,1173,420,1151,404,1134,384,1118,351,1115,320,1123,290,1140,263,1163,239,1193,216,1262,179,1313,162,1382,148,1552,129,1732,118,1884,113"/>
|
|
<area shape="poly" title=" " alt="" coords="1884,119,1785,124,1664,135,1534,154,1406,184,1319,207,1249,232,1220,249,1195,272,1172,303,1152,344,1145,364,1146,372,1151,381,1170,395,1197,405,1268,416,1344,422,1402,428,1440,435,1439,441,1401,433,1343,427,1268,422,1195,410,1167,399,1147,384,1141,374,1140,363,1147,342,1168,300,1191,269,1217,245,1247,227,1317,202,1405,179,1533,149,1664,130,1784,118,1884,113"/>
|
|
<area shape="poly" title=" " alt="" coords="1884,129,1704,158,1596,179,1486,204,1381,233,1288,266,1214,303,1186,323,1166,344,1158,363,1160,372,1166,381,1179,389,1202,397,1273,408,1366,415,1471,420,1672,424,1794,428,1837,435,1836,441,1793,433,1672,429,1470,425,1366,421,1272,413,1201,402,1177,394,1162,385,1155,374,1153,363,1162,341,1183,319,1211,299,1286,261,1379,228,1485,198,1595,173,1703,152,1884,124"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,118,2843,179,3300,219,3756,267,3861,280,3966,292,4284,312,4532,320,4781,325,5100,340,5242,351,5242,356,5100,345,4781,331,4532,325,4284,318,3965,297,3860,286,3756,272,3299,225,2842,184,2061,124"/>
|
|
<area shape="poly" title=" " alt="" coords="1883,119,1591,126,1215,139,884,158,775,170,742,177,726,183,711,202,702,223,695,271,698,316,705,349,700,350,693,317,690,271,697,222,707,199,722,179,740,172,774,165,883,152,1215,133,1591,120,1883,114"/>
|
|
<area shape="poly" title=" " alt="" coords="1967,147,1959,195,1955,256,1961,320,1969,352,1981,381,2003,408,2030,428,2027,433,1999,412,1976,384,1964,353,1955,321,1950,256,1954,195,1962,146"/>
|
|
<area shape="poly" title=" " alt="" coords="1883,117,1597,119,1224,127,1043,136,885,148,764,163,722,173,696,184,655,215,632,249,618,291,604,343,600,363,604,382,613,398,626,413,653,436,649,440,622,417,609,401,599,384,594,363,599,342,612,289,627,247,651,212,693,179,721,168,763,158,884,142,1043,130,1224,122,1597,114,1883,112"/>
|
|
<area shape="poly" title=" " alt="" coords="1977,147,1995,275,2011,340,2021,364,2031,381,2056,397,2095,412,2186,435,2185,440,2093,417,2054,402,2027,385,2016,367,2006,341,1990,276,1972,147"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,117,2500,142,3084,179,3484,209,3795,236,4107,263,4507,292,4768,304,4971,308,5174,316,5434,340,5481,347,5480,353,5433,345,5173,321,4971,313,4767,309,4507,297,4106,268,3795,242,3484,214,3084,184,2500,147,2060,122"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,115,2607,139,3353,179,3761,207,4078,234,4395,262,4803,292,5037,304,5220,309,5403,317,5636,340,5683,347,5682,353,5636,345,5402,323,5220,314,5037,309,4803,297,4395,267,4078,240,3761,213,3353,184,2606,144,2061,121"/>
|
|
<area shape="poly" title=" " alt="" coords="2060,115,2716,137,3172,155,3637,179,4258,210,4741,233,4973,248,5222,269,5505,299,5839,340,5884,347,5883,353,5838,345,5505,304,5222,275,4973,254,4740,238,4258,215,3637,184,3172,161,2716,142,2060,120"/>
|
|
<area shape="poly" title=" " alt="" coords="1987,145,2001,181,2017,241,2024,292,2029,315,2038,337,2053,358,2075,380,2382,435,2381,441,2072,385,2048,362,2033,339,2024,316,2019,293,2012,242,1996,182,1982,147"/>
|
|
<area shape="poly" title=" " alt="" coords="2061,114,2878,134,3462,153,4060,179,4699,215,5336,267,5688,298,6039,340,6087,347,6086,353,6038,345,5688,303,5336,272,4698,220,4060,184,3461,158,2878,139,2061,119"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="color_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_1Color.html">Color</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A class representing terminal colors. <a href="classftxui_1_1Color.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_1literals.html">ftxui::literals</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="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a66d988ecc082819b1671ee2bbadebccd" id="r_a66d988ecc082819b1671ee2bbadebccd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classftxui_1_1Color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui_1_1literals.html#a66d988ecc082819b1671ee2bbadebccd">operator""_rgb</a> (unsigned long long int combined)</td></tr>
|
|
<tr class="memdesc:a66d988ecc082819b1671ee2bbadebccd"><td class="mdescLeft"> </td><td class="mdescRight">Creates a color from a combined hex RGB representation, e.g. 0x808000_rgb. <br /></td></tr>
|
|
<tr class="separator:a66d988ecc082819b1671ee2bbadebccd"><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('projectname');
|
|
|
|
if (!projectNumber) {
|
|
console.warn('Doxygen element with ID "projectnumber" not found. Cannot add version switcher.');
|
|
return;
|
|
}
|
|
|
|
const langs = ["en", "es", "fr", "ja", "zh-CH", "zh-TW"];
|
|
const lang_paths = {"en": "../../index.html", "es": "../../es/index.html", "fr": "../../fr/index.html", "ja": "../../ja/index.html", "zh-CH": "../../zh-CH/index.html", "zh-TW": "../../zh-TW/index.html"};
|
|
const lang_display = {"en": "English", "es": "Espa\u00f1ol", "fr": "Fran\u00e7ais", "ja": "\u65e5\u672c\u8a9e", "zh-CH": "\u4e2d\u6587 (\u7b80\u4f53)", "zh-TW": "\u4e2d\u6587 (\u7e41\u9ad4)"};
|
|
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": "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 currentLang = "en";
|
|
const currentVersion = "v4.0.0";
|
|
|
|
// Helper function to create a styled select element
|
|
const createSelect = (options, current, paths, label, displayMap = null) => {
|
|
const select = document.createElement('select');
|
|
select.title = label;
|
|
select.onchange = function() {
|
|
const selectedValue = this.value;
|
|
if (selectedValue in paths) {
|
|
window.location.href = paths[selectedValue];
|
|
}
|
|
};
|
|
|
|
// Sort versions: 'main' first, then others numerically descending.
|
|
options.sort((a, b) => {
|
|
if (a === 'main') return -1;
|
|
if (b === 'main') return 1;
|
|
return b.localeCompare(a, undefined, { numeric: true, sensitivity: 'base' });
|
|
});
|
|
|
|
options.forEach(v => {
|
|
const option = document.createElement('option');
|
|
option.value = v;
|
|
// Use the displayMap if provided, otherwise default to the value (v)
|
|
option.textContent = displayMap ? displayMap[v] : v;
|
|
if (v === current) {
|
|
option.selected = true;
|
|
}
|
|
select.appendChild(option);
|
|
});
|
|
|
|
// 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',
|
|
margin: '0 5px 0 0',
|
|
cursor: 'pointer'
|
|
});
|
|
return select;
|
|
};
|
|
|
|
// 1. Create Language Switcher, passing the language display names map
|
|
const langSelect = createSelect(langs, currentLang, lang_paths, 'Select Language', lang_display);
|
|
|
|
// 2. Create Version Switcher
|
|
const versionSelect = createSelect(versions, currentVersion, version_paths, 'Select Version');
|
|
|
|
// 3. Create FTXUI title.
|
|
const ftxuiTitle = document.createElement('span');
|
|
ftxuiTitle.textContent = 'FTXUI: ';
|
|
Object.assign(ftxuiTitle.style, {
|
|
color: 'white',
|
|
fontSize: '20px',
|
|
fontWeight: 'bold',
|
|
marginRight: '10px'
|
|
});
|
|
|
|
// 3. Create a container to hold both selectors
|
|
const container = document.createElement('div');
|
|
container.id = 'version-lang-switchers';
|
|
Object.assign(container.style, {
|
|
display: 'flex',
|
|
alignItems: 'center',
|
|
justifyContent: 'flex-end',
|
|
width: 'auto'
|
|
});
|
|
container.appendChild(ftxuiTitle);
|
|
container.appendChild(langSelect);
|
|
container.appendChild(versionSelect);
|
|
|
|
Object.assign(container.style, {
|
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
padding: '5px 10px',
|
|
borderRadius: '8px'
|
|
});
|
|
|
|
|
|
// Replace the Doxygen project number element with our container.
|
|
projectNumber.replaceWith(container);
|
|
|
|
// Clean up the original Doxygen project number text if it still exists nearby
|
|
const parent = container.parentElement;
|
|
if (parent) {
|
|
const textNode = Array.from(parent.childNodes).find(n => n.nodeType === 3 && n.textContent.trim() !== '');
|
|
if (textNode) {
|
|
textNode.remove();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|