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">5.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="2253,5,2403,45"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="2435,431,2618,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2240,32,1763,50,1101,84,781,108,513,135,408,150,328,167,278,184,265,192,261,201,261,283,261,339,267,360,285,380,318,392,384,403,599,419,894,431,1238,440,1938,447,2435,447,2435,452,1938,452,1238,445,894,437,598,425,384,408,317,397,283,385,263,363,255,340,256,283,256,199,261,189,275,179,327,162,407,145,512,130,781,102,1101,79,1763,44,2239,27"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="2541,607,2691,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2240,30,1763,34,1093,44,763,53,479,64,272,78,208,87,174,96,144,116,124,138,113,164,109,200,109,452,115,487,129,511,152,526,181,535,254,544,336,556,397,565,489,573,745,583,1071,588,1431,590,2118,592,2375,596,2530,604,2541,606,2540,611,2529,609,2375,601,2118,598,1431,595,1070,593,745,588,488,578,397,571,336,561,254,550,180,541,149,531,125,514,110,489,104,452,104,200,108,163,120,135,141,112,172,91,207,81,272,73,479,59,763,47,1093,39,1763,28,2239,24"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1667,607,1818,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2239,30,1742,33,1037,42,690,51,390,62,172,77,104,86,69,96,40,116,21,138,11,165,8,200,8,452,12,488,23,514,43,536,73,556,98,563,148,570,306,583,777,602,1294,615,1667,622,1667,627,1294,620,777,608,306,588,147,576,97,569,71,561,39,540,18,517,6,489,3,452,3,200,6,163,17,135,36,112,67,91,103,81,172,72,390,57,689,45,1037,37,1742,27,2239,24"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1842,607,1993,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2239,30,1752,33,1064,43,726,52,434,63,222,78,155,86,121,96,92,116,72,138,62,165,59,200,59,452,63,488,76,515,99,536,132,556,163,564,224,570,418,581,976,593,1536,598,1830,604,1842,606,1841,611,1829,609,1536,603,976,598,418,586,223,576,162,569,130,561,96,541,72,518,58,490,53,452,53,200,57,163,68,135,88,112,119,91,154,81,221,72,434,58,726,46,1064,38,1752,28,2239,24"/>
|
|
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="348,519,529,559"/>
|
|
<area shape="poly" title=" " alt="" coords="2240,30,1884,33,1384,42,1123,51,879,62,669,77,511,96,449,102,387,101,273,98,227,104,208,110,191,120,178,133,168,150,162,173,160,200,160,364,165,395,178,423,198,446,223,466,253,484,284,498,349,518,347,523,282,503,250,488,220,471,194,450,173,425,160,397,155,364,155,200,157,172,163,148,174,130,188,116,206,106,226,99,273,93,387,96,449,96,510,91,669,72,879,57,1123,45,1383,37,1884,27,2240,24"/>
|
|
<area shape="rect" href="canvas_8hpp.html" title=" " alt="" coords="2755,189,2968,214"/>
|
|
<area shape="poly" title=" " alt="" coords="2417,40,2512,62,2614,91,2743,141,2840,186,2837,191,2741,146,2612,96,2511,67,2416,46"/>
|
|
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="3010,269,3238,295"/>
|
|
<area shape="poly" title=" " alt="" coords="2416,33,2532,50,2676,78,2831,120,2908,147,2981,179,3020,200,3057,225,3112,267,3109,271,3054,229,3018,205,2979,184,2906,152,2829,125,2675,83,2532,55,2416,38"/>
|
|
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="504,350,683,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2240,46,690,345,652,353,651,347,689,340,2239,41"/>
|
|
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="296,350,480,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2240,38,2029,62,1778,96,1373,165,981,240,441,353,440,347,980,235,1372,160,1777,91,2028,56,2239,33"/>
|
|
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="3707,350,3877,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2324,59,2320,97,2321,141,2331,184,2341,203,2355,219,2375,230,2409,240,2511,253,2643,261,2792,264,3079,264,3251,267,3389,285,3526,307,3738,347,3737,353,3525,312,3388,290,3250,272,3079,269,2792,269,2643,266,2510,259,2408,245,2373,235,2352,223,2337,206,2326,186,2315,142,2314,97,2318,59"/>
|
|
<area shape="rect" href="linear__gradient_8cpp.html" title=" " alt="" coords="3901,343,4049,383"/>
|
|
<area shape="poly" title=" " alt="" coords="2417,34,2601,57,2815,91,3136,155,3448,226,3905,340,3903,345,3447,232,3135,160,2814,96,2600,62,2416,39"/>
|
|
<area shape="rect" href="separator_8cpp.html" title=" " alt="" coords="4073,350,4271,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2417,31,2650,54,2931,91,3295,157,3647,232,3940,301,4128,347,4127,353,3939,306,3646,238,3294,162,2930,96,2649,59,2416,36"/>
|
|
<area shape="rect" href="linear__gradient_8hpp.html" title=" " alt="" coords="2115,181,2291,221"/>
|
|
<area shape="poly" title=" " alt="" coords="2308,58,2218,183,2214,180,2304,55"/>
|
|
<area shape="rect" href="color__info_8hpp.html" title=" " alt="" coords="2416,93,2565,133"/>
|
|
<area shape="poly" title=" " alt="" coords="2377,49,2456,91,2454,96,2374,54"/>
|
|
<area shape="rect" href="screen_2color_8cpp.html" title=" " alt="" coords="2366,189,2549,214"/>
|
|
<area shape="poly" title=" " alt="" coords="2351,55,2406,132,2450,187,2446,190,2402,135,2346,58"/>
|
|
<area shape="rect" href="color__info_8cpp.html" title=" " alt="" coords="2573,181,2731,221"/>
|
|
<area shape="poly" title=" " alt="" coords="2417,33,2499,52,2540,69,2579,91,2602,111,2621,135,2646,180,2642,182,2616,138,2598,115,2576,95,2538,74,2497,57,2416,38"/>
|
|
<area shape="rect" href="screen_8hpp.html" title=" " alt="" coords="4325,93,4475,133"/>
|
|
<area shape="poly" title=" " alt="" coords="2417,28,4325,106,4325,112,2417,33"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="2997,519,3176,559"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,465,2997,521,2997,526,2631,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2545,482,2609,605,2604,608,2540,484"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="3414,607,3565,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,452,2747,458,2887,470,3038,489,3189,516,3261,535,3332,559,3448,604,3446,609,3331,564,3260,541,3187,521,3038,494,2886,475,2747,464,2632,458"/>
|
|
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="3763,607,3914,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,456,2922,478,3098,495,3274,516,3409,536,3514,555,3753,604,3764,606,3763,612,3751,609,3513,560,3408,541,3273,521,3097,500,2921,483,2632,461"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="2017,607,2167,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2447,477,2390,497,2333,521,2302,541,2271,561,2210,588,2152,609,2150,604,2208,583,2268,556,2299,536,2331,516,2388,492,2446,472"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="2191,607,2342,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2466,478,2425,498,2386,521,2329,566,2286,608,2282,605,2326,562,2382,516,2423,493,2464,474"/>
|
|
<area shape="poly" title=" " alt="" coords="2422,468,2297,489,2163,521,2116,541,2068,561,2002,579,1949,589,1830,609,1819,612,1818,606,1829,604,1948,584,2000,574,2066,556,2114,536,2162,516,2296,484,2421,463"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="2366,607,2517,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2514,484,2453,608,2448,605,2509,482"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2715,607,2866,647"/>
|
|
<area shape="poly" title=" " alt="" coords="2568,476,2763,604,2760,609,2565,481"/>
|
|
<area shape="poly" title=" " alt="" coords="2426,477,2347,497,2265,521,2217,541,2169,561,2078,589,1993,611,1992,606,2077,584,2167,556,2215,536,2263,516,2345,492,2425,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2422,459,530,536,529,531,2422,454"/>
|
|
<area shape="poly" title=" " alt="" coords="2984,560,2704,609,2692,612,2691,606,2704,604,2983,554"/>
|
|
<area shape="poly" title=" " alt="" coords="3190,559,3403,604,3414,606,3413,612,3402,609,3189,564"/>
|
|
<area shape="poly" title=" " alt="" coords="3190,544,3446,566,3600,583,3752,604,3764,606,3763,611,3752,609,3599,588,3446,571,3190,549"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="4113,607,4263,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3189,539,3363,545,3590,556,3845,575,4102,604,4113,606,4112,611,4101,609,3845,580,3590,561,3363,550,3189,544"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="2890,607,3041,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3050,569,2994,609,2991,604,3047,564"/>
|
|
<area shape="poly" title=" " alt="" coords="2984,546,2627,564,2403,583,2179,609,2168,611,2167,606,2178,604,2403,577,2626,559,2983,540"/>
|
|
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="3065,607,3215,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3108,569,3130,605,3126,608,3103,572"/>
|
|
<area shape="poly" title=" " alt="" coords="2984,548,2699,569,2526,587,2354,609,2343,611,2342,606,2353,604,2526,581,2699,564,2983,543"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="3239,607,3390,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3151,561,3266,604,3264,609,3149,566"/>
|
|
<area shape="poly" title=" " alt="" coords="2983,543,2772,545,2485,555,2159,575,1993,590,1830,609,1819,611,1818,606,1829,604,1992,585,2159,570,2485,550,2772,540,2983,537"/>
|
|
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="3589,607,3739,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3190,549,3371,572,3578,604,3589,606,3588,611,3577,609,3371,577,3189,554"/>
|
|
<area shape="poly" title=" " alt="" coords="2984,552,2774,575,2530,609,2518,611,2517,606,2529,604,2773,570,2983,547"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="3938,607,4089,647"/>
|
|
<area shape="poly" title=" " alt="" coords="3190,541,3519,561,3723,579,3927,604,3938,606,3937,611,3926,609,3722,584,3519,566,3190,546"/>
|
|
<area shape="poly" title=" " alt="" coords="3009,565,2856,609,2855,604,3008,560"/>
|
|
<area shape="poly" title=" " alt="" coords="2984,544,2799,549,2556,559,2281,579,2004,609,1993,611,1992,606,2004,604,2281,573,2555,554,2799,543,2984,539"/>
|
|
<area shape="poly" title=" " alt="" coords="2913,215,3087,267,3085,272,2912,220"/>
|
|
<area shape="poly" title=" " alt="" coords="2784,219,2743,224,2401,255,2111,271,1855,278,1617,281,1379,284,1123,292,834,311,492,345,444,353,444,347,492,340,833,306,1123,287,1379,278,1617,275,1855,273,2111,266,2401,249,2742,219,2783,213"/>
|
|
<area shape="poly" title=" " alt="" coords="3066,301,3006,320,2943,345,2911,366,2898,376,2878,385,2775,408,2619,436,2618,431,2774,403,2876,380,2895,371,2908,361,2940,340,3004,315,3065,296"/>
|
|
<area shape="poly" title=" " alt="" coords="3227,296,3263,314,3292,341,3299,362,3292,384,3277,408,3260,430,3218,469,3173,499,3132,521,3130,516,3170,494,3214,465,3256,427,3273,405,3287,382,3293,362,3287,344,3260,318,3225,301"/>
|
|
<area shape="poly" title=" " alt="" coords="3076,302,3029,321,2980,345,2954,364,2930,385,2642,609,2639,604,2926,381,2951,359,2977,340,3027,316,3074,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3215,294,3304,314,3341,326,3367,341,3397,371,3421,406,3442,443,3458,481,3479,553,3489,606,3484,607,3474,554,3453,483,3437,445,3417,408,3393,374,3364,345,3339,331,3303,319,3214,300"/>
|
|
<area shape="poly" title=" " alt="" coords="3224,294,3351,315,3408,327,3449,340,3509,369,3568,403,3675,479,3763,551,3821,604,3818,608,3760,555,3672,483,3565,408,3506,374,3447,345,3407,333,3350,320,3223,299"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,293,3432,315,3513,327,3573,340,3662,369,3751,403,3920,478,4061,551,4157,604,4155,609,4059,555,3918,483,3749,408,3660,374,3571,345,3512,333,3431,320,3251,299"/>
|
|
<area shape="poly" title=" " alt="" coords="3104,306,3071,344,3031,394,2994,454,2967,519,2961,566,2964,606,2959,607,2956,565,2961,518,2989,452,3027,391,3067,340,3100,303"/>
|
|
<area shape="poly" title=" " alt="" coords="3006,299,2874,319,2817,331,2777,345,2764,354,2756,365,2747,375,2733,385,2678,405,2629,414,2584,415,2541,412,2498,409,2453,409,2404,416,2349,433,2274,472,2207,521,2151,570,2112,608,2108,604,2147,566,2203,517,2272,468,2347,428,2403,410,2453,403,2498,403,2541,407,2584,410,2628,409,2676,400,2731,380,2744,371,2752,361,2761,350,2775,340,2816,326,2873,314,3005,294"/>
|
|
<area shape="poly" title=" " alt="" coords="3249,297,3284,314,3313,341,3324,360,3330,379,3329,418,3315,456,3291,494,3261,529,3228,561,3169,609,3166,604,3225,557,3257,526,3287,491,3310,454,3324,417,3324,380,3319,362,3309,344,3281,319,3247,301"/>
|
|
<area shape="poly" title=" " alt="" coords="2997,298,2912,316,2869,329,2828,345,2813,354,2803,365,2793,376,2777,385,2722,403,2672,409,2626,407,2583,402,2541,398,2498,399,2451,410,2400,433,2375,450,2354,471,2317,520,2292,568,2276,607,2271,605,2287,566,2313,517,2350,468,2372,446,2397,428,2450,404,2497,394,2541,393,2584,397,2627,402,2672,403,2720,397,2775,380,2790,371,2800,361,2810,350,2825,340,2867,324,2911,310,2996,293"/>
|
|
<area shape="poly" title=" " alt="" coords="3215,295,3290,314,3320,326,3339,341,3358,374,3367,411,3369,449,3365,487,3347,557,3326,607,3321,605,3342,555,3360,486,3363,449,3362,411,3353,376,3335,344,3317,331,3288,319,3213,300"/>
|
|
<area shape="poly" title=" " alt="" coords="2997,297,2988,297,1904,306,1179,320,936,331,864,338,835,345,815,368,801,389,792,410,789,428,791,446,797,462,823,493,865,519,920,542,985,561,1059,577,1223,600,1392,614,1546,621,1667,623,1667,628,1546,626,1392,619,1223,605,1058,582,984,566,918,547,862,524,820,497,793,465,786,447,784,428,787,408,796,387,811,364,832,340,863,332,935,326,1179,315,1904,301,2988,292,2996,292"/>
|
|
<area shape="poly" title=" " alt="" coords="3216,294,3323,315,3369,327,3403,340,3447,369,3489,404,3562,479,3619,552,3655,605,3650,608,3615,555,3558,483,3485,408,3444,374,3400,345,3368,332,3322,320,3215,299"/>
|
|
<area shape="poly" title=" " alt="" coords="3025,300,2951,318,2879,345,2864,355,2854,365,2844,376,2828,385,2788,395,2737,398,2617,397,2556,398,2501,402,2456,413,2439,422,2426,432,2413,452,2407,474,2405,498,2407,522,2419,569,2434,605,2429,607,2414,571,2402,523,2400,498,2401,473,2408,450,2422,429,2436,417,2454,408,2500,397,2556,392,2617,392,2737,393,2788,389,2826,380,2840,371,2850,361,2861,351,2876,340,2950,312,3023,295"/>
|
|
<area shape="poly" title=" " alt="" coords="3237,294,3388,315,3457,327,3506,340,3581,369,3655,403,3795,478,3911,551,3989,604,3986,609,3908,555,3792,483,3653,408,3579,374,3505,345,3456,333,3388,320,3236,299"/>
|
|
<area shape="poly" title=" " alt="" coords="3094,304,3034,345,2938,426,2900,466,2855,520,2825,566,2802,608,2798,605,2820,563,2851,517,2896,462,2934,422,3030,341,3091,300"/>
|
|
<area shape="poly" title=" " alt="" coords="2997,297,2988,297,1911,307,1191,320,948,331,877,338,848,345,842,353,840,362,848,381,972,412,1257,477,1842,606,1841,611,1256,482,971,417,845,385,835,362,837,351,845,340,876,333,948,326,1190,315,1911,301,2988,292,2996,292"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,1869,309,1134,322,877,332,796,338,753,345,736,353,724,362,696,385,573,461,473,521,470,516,571,457,693,381,720,358,733,348,751,340,795,333,877,327,1134,317,1869,304,2991,292,2996,292"/>
|
|
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="3099,343,3277,383"/>
|
|
<area shape="poly" title=" " alt="" coords="3144,304,3175,341,3170,344,3140,307"/>
|
|
<area shape="rect" href="dom_2deprecated_8hpp.html" title=" " alt="" coords="859,350,1099,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2997,296,2979,297,2693,310,2450,315,2038,313,1840,312,1627,315,1385,325,1099,345,1037,353,1037,347,1098,340,1384,320,1626,310,1839,307,2038,307,2450,309,2692,304,2979,292,2996,291"/>
|
|
<area shape="rect" href="table_8hpp.html" title=" " alt="" coords="1123,350,1323,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2739,308,2525,312,2162,310,1987,310,1799,314,1586,324,1335,345,1282,353,1281,347,1334,340,1586,319,1799,308,1987,304,2162,305,2525,307,2738,303,2991,292,2996,292"/>
|
|
<area shape="rect" href="automerge_8cpp.html" title=" " alt="" coords="4295,350,4505,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,283,3708,298,3995,315,4284,340,4337,347,4337,353,4284,345,3995,320,3708,304,3252,288"/>
|
|
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="4529,350,4700,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,280,3488,282,3803,290,4159,308,4340,322,4518,340,4563,347,4562,353,4517,345,4340,327,4158,313,3803,295,3488,287,3252,285"/>
|
|
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="4725,350,4891,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,283,3998,302,4411,318,4582,328,4712,340,4758,347,4757,353,4712,345,4582,334,4411,324,3998,307,3252,288"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2642,311,2347,314,1845,305,1603,301,1344,304,1049,317,702,345,650,353,649,347,701,340,1049,312,1343,299,1603,296,1845,300,2347,308,2642,306,2991,292,2996,292"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,295,2940,297,2701,304,2404,307,1715,310,1027,318,730,329,492,345,443,353,442,347,492,340,730,323,1026,313,1715,304,2404,301,2701,298,2940,292,2996,289"/>
|
|
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="4915,343,5058,383"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,282,3614,287,4091,297,4561,314,4756,326,4904,340,4916,342,4915,347,4904,345,4756,331,4561,319,4090,302,3614,292,3252,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,293,3492,317,3688,340,3733,347,3732,353,3688,345,3491,323,3251,298"/>
|
|
<area shape="rect" href="composite__decorator_8cpp.html" title=" " alt="" coords="1347,343,1525,383"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2769,307,2582,311,2263,310,2109,310,1945,314,1758,325,1538,345,1526,347,1525,341,1537,340,1758,320,1945,309,2109,304,2263,304,2582,306,2769,302,2991,292,2996,292"/>
|
|
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="1549,350,1720,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2799,307,2637,310,2360,310,2227,311,2085,316,1923,326,1732,345,1686,353,1686,347,1732,340,1923,321,2085,311,2227,306,2360,305,2636,305,2799,301,2991,292,2996,292"/>
|
|
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="5083,350,5245,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,282,3644,287,4169,297,4690,314,4906,326,5071,340,5115,347,5114,353,5070,345,4906,331,4690,320,4169,302,3644,292,3252,287"/>
|
|
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="1744,350,1907,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2827,306,2689,310,2454,311,2219,318,2081,328,1919,345,1875,353,1875,347,1918,340,2081,323,2219,313,2454,306,2689,304,2827,301,2991,292,2996,292"/>
|
|
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="1931,350,2117,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2748,310,2559,315,2371,323,2130,345,2082,353,2081,347,2129,340,2371,318,2559,310,2748,305,2991,292,2996,292"/>
|
|
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="2141,350,2315,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,297,2991,297,2804,309,2658,316,2513,325,2327,345,2283,353,2282,347,2326,340,2512,320,2658,310,2804,304,2990,292,2996,292"/>
|
|
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="5270,350,5447,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,282,3678,286,4257,297,4835,314,5075,326,5258,340,5306,347,5305,353,5257,345,5075,331,4834,319,4257,302,3678,292,3252,287"/>
|
|
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="5472,350,5651,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,281,3714,285,4352,295,4992,312,5258,325,5460,340,5509,347,5508,353,5460,345,5258,330,4991,317,4352,300,3714,290,3252,287"/>
|
|
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="5675,350,5850,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,281,3750,284,4446,292,5148,310,5441,323,5663,340,5711,347,5710,353,5662,345,5441,329,5148,315,4446,298,3750,289,3252,286"/>
|
|
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="2339,350,2525,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2997,298,2745,322,2538,345,2492,353,2491,347,2537,340,2744,317,2996,292"/>
|
|
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="2549,350,2720,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3033,299,2739,345,2697,353,2696,347,2738,340,3032,294"/>
|
|
<area shape="rect" href="hyperlink_8cpp.html" title=" " alt="" coords="5874,350,6073,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,281,3785,284,4539,293,5303,310,5622,323,5863,340,5916,347,5915,353,5862,345,5621,329,5303,316,4539,298,3785,289,3252,286"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,292,3258,292,3435,303,3574,309,3713,318,3890,340,3901,342,3900,347,3889,345,3712,324,3574,314,3435,309,3257,297,3252,297"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,285,3617,302,3839,318,4062,340,4112,347,4111,353,4061,345,3839,324,3616,308,3252,290"/>
|
|
<area shape="poly" title=" " alt="" coords="3086,380,2618,440,2618,435,3085,375"/>
|
|
<area shape="poly" title=" " alt="" coords="3170,395,3146,432,3098,520,3094,517,3142,429,3165,393"/>
|
|
<area shape="poly" title=" " alt="" coords="3093,389,3025,408,2957,433,2892,466,2806,515,2648,609,2645,604,2803,510,2890,461,2955,428,3023,403,3091,384"/>
|
|
<area shape="poly" title=" " alt="" coords="3222,390,3469,604,3466,608,3218,394"/>
|
|
<area shape="poly" title=" " alt="" coords="3252,385,3365,428,3795,604,3793,609,3363,433,3251,390"/>
|
|
<area shape="poly" title=" " alt="" coords="3292,381,3506,428,4123,604,4121,609,3505,433,3290,386"/>
|
|
<area shape="poly" title=" " alt="" coords="3138,391,3100,414,3059,444,3020,479,2988,520,2978,542,2972,565,2968,607,2962,606,2966,564,2973,540,2983,517,3016,475,3055,439,3097,410,3135,387"/>
|
|
<area shape="poly" title=" " alt="" coords="3085,373,2705,399,2526,416,2462,425,2425,433,2408,441,2395,451,2367,473,2319,497,2271,521,2123,609,2120,604,2268,516,2316,493,2364,468,2392,447,2405,437,2423,428,2461,420,2525,411,2704,394,3085,367"/>
|
|
<area shape="poly" title=" " alt="" coords="3197,396,3202,472,3200,516,3191,560,3178,586,3161,608,3157,605,3173,583,3185,558,3195,515,3197,472,3191,397"/>
|
|
<area shape="poly" title=" " alt="" coords="3085,376,2932,397,2846,413,2762,433,2628,475,2499,524,2306,609,2304,604,2497,520,2627,470,2761,428,2845,408,2931,392,3085,371"/>
|
|
<area shape="poly" title=" " alt="" coords="3205,394,3308,605,3303,608,3201,396"/>
|
|
<area shape="poly" title=" " alt="" coords="3085,372,2622,401,2397,418,2269,433,2125,472,1987,521,1868,570,1783,609,1781,604,1866,565,1985,516,2124,467,2267,428,2397,413,2622,396,3085,367"/>
|
|
<area shape="poly" title=" " alt="" coords="3236,387,3631,604,3628,609,3233,392"/>
|
|
<area shape="poly" title=" " alt="" coords="3086,383,2982,403,2873,433,2757,476,2645,525,2477,609,2475,604,2643,521,2755,471,2871,428,2981,398,3084,377"/>
|
|
<area shape="poly" title=" " alt="" coords="3274,384,3429,428,3617,491,3804,556,3954,604,3952,609,3802,561,3615,496,3427,433,3272,389"/>
|
|
<area shape="poly" title=" " alt="" coords="3115,390,3068,409,3021,433,2957,477,2897,526,2810,608,2807,604,2894,522,2954,473,3019,428,3066,404,3113,385"/>
|
|
<area shape="poly" title=" " alt="" coords="3085,373,2674,402,2478,419,2366,433,2196,505,1961,609,1958,604,2194,500,2365,428,2477,413,2673,396,3085,368"/>
|
|
<area shape="poly" title=" " alt="" coords="1072,346,1122,340,1408,320,1650,310,1863,307,2062,307,2474,309,2716,304,3003,292,3010,292,3010,297,3003,297,2717,310,2474,315,2062,313,1864,312,1651,315,1409,325,1123,345,1073,351"/>
|
|
<area shape="poly" title=" " alt="" coords="2101,205,1674,207,1392,213,1096,224,813,241,567,266,465,282,383,300,322,321,300,333,286,344,273,367,273,390,284,414,302,438,353,482,405,516,403,521,350,487,298,442,279,417,268,392,268,366,282,341,297,328,319,316,381,295,464,277,566,261,813,236,1096,219,1391,208,1674,202,2101,199"/>
|
|
<area shape="poly" title=" " alt="" coords="2305,218,2310,219,2502,239,2694,255,3010,273,3010,279,2694,260,2501,244,2309,224,2304,223"/>
|
|
<area shape="poly" title=" " alt="" coords="2305,214,2354,219,2606,236,2802,243,2999,250,3251,267,3571,295,3711,312,3890,340,3901,342,3900,347,3889,345,3710,317,3571,300,3250,272,2998,255,2802,249,2605,242,2353,224,2304,219"/>
|
|
<area shape="poly" title=" " alt="" coords="2481,147,2464,189,2459,187,2476,145"/>
|
|
<area shape="poly" title=" " alt="" coords="2539,137,2618,179,2615,184,2537,142"/>
|
|
<area shape="poly" title=" " alt="" coords="4312,118,4081,123,3753,134,3373,154,2987,184,2930,191,2929,186,2986,179,3373,148,3753,129,4081,118,4312,113"/>
|
|
<area shape="poly" title=" " alt="" coords="4312,122,4036,144,3898,162,3842,172,3800,184,3781,193,3768,203,3755,214,3736,224,3695,235,3641,244,3510,260,3239,278,3238,273,3509,254,3640,239,3693,229,3734,219,3752,210,3765,199,3778,188,3798,179,3841,167,3897,157,4036,139,4311,117"/>
|
|
<area shape="poly" title=" " alt="" coords="4403,147,4403,350,4397,350,4397,147"/>
|
|
<area shape="poly" title=" " alt="" coords="4428,142,4607,348,4603,352,4424,146"/>
|
|
<area shape="poly" title=" " alt="" coords="4444,138,4791,348,4788,352,4441,143"/>
|
|
<area shape="poly" title=" " alt="" coords="4312,126,3735,184,3526,201,3363,209,3285,216,3202,227,3109,245,3000,272,2971,285,2941,297,2877,306,2783,314,2520,324,2186,329,1816,331,1112,334,848,338,690,345,644,353,643,347,689,340,847,332,1112,329,1816,326,2186,324,2520,318,2783,308,2877,301,2939,292,2968,280,2998,267,3108,240,3201,222,3285,211,3363,204,3526,196,3734,179,4311,120"/>
|
|
<area shape="poly" title=" " alt="" coords="4312,119,4115,125,3844,136,3534,155,3220,184,3153,194,3101,204,3048,214,2980,224,2767,245,2585,260,2277,275,1969,283,1572,297,1268,307,1031,310,795,319,656,329,492,345,444,353,443,347,492,340,656,324,795,313,1031,305,1268,302,1572,292,1968,277,2277,269,2585,255,2766,240,2980,219,3047,209,3099,199,3152,188,3220,179,3534,150,3844,131,4115,119,4311,114"/>
|
|
<area shape="poly" title=" " alt="" coords="4458,136,4560,179,4943,340,4941,345,4558,184,4456,141"/>
|
|
<area shape="poly" title=" " alt="" coords="4335,140,4218,184,3986,280,3819,352,3817,347,3984,275,4216,179,4333,135"/>
|
|
<area shape="poly" title=" " alt="" coords="4478,135,4623,179,4918,275,5131,347,5130,352,4916,280,4622,184,4477,140"/>
|
|
<area shape="poly" title=" " alt="" coords="4489,131,4699,179,5060,274,5320,347,5319,353,5059,279,4698,184,4488,136"/>
|
|
<area shape="poly" title=" " alt="" coords="4489,125,4633,149,4795,179,5008,224,5216,273,5518,347,5516,352,5215,278,5007,230,4794,184,4632,154,4488,131"/>
|
|
<area shape="poly" title=" " alt="" coords="4489,122,4680,145,4903,179,5143,223,5377,271,5715,347,5714,353,5376,277,5142,228,4902,184,4679,151,4488,127"/>
|
|
<area shape="poly" title=" " alt="" coords="4489,119,4730,142,5023,179,5289,222,5548,271,5922,347,5920,353,5547,276,5288,227,5022,184,4730,148,4488,125"/>
|
|
<area shape="poly" title=" " alt="" coords="4357,143,4008,345,4006,340,4354,138"/>
|
|
<area shape="poly" title=" " alt="" coords="4375,145,4184,352,4181,348,4371,142"/>
|
|
</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": "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 currentLang = "en";
|
|
const currentVersion = "v5.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>
|