mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
396 lines
29 KiB
HTML
396 lines
29 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/dom/canvas.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">2.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('canvas_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">canvas.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="canvas_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2dom_2canvas_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2dom_2canvas_8hppdep" id="ainclude_2ftxui_2dom_2canvas_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="2734,5,2947,31"/>
|
|
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="2651,79,2879,104"/>
|
|
<area shape="poly" title=" " alt="" coords="2820,42,2779,80,2775,76,2817,38"/>
|
|
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="6607,159,6791,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2961,18,3515,28,4389,50,4901,67,5438,89,5983,116,6518,149,6607,157,6607,163,6518,155,5983,121,5438,94,4901,72,4389,55,3515,33,2961,23"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="1043,240,1222,280"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,97,2264,102,1795,112,1385,129,1248,141,1206,147,1185,154,1166,172,1152,195,1138,241,1133,239,1148,193,1162,169,1182,150,1205,142,1248,136,1384,124,1795,107,2264,96,2637,91"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="355,328,505,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,95,2130,98,1456,106,1130,113,851,124,648,137,585,145,552,154,529,171,508,192,474,241,451,290,438,329,433,327,446,288,470,238,504,189,525,167,550,150,584,140,648,132,851,118,1130,108,1456,101,2130,92,2637,90"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="180,328,331,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2122,102,1433,113,812,131,603,142,537,148,501,155,464,171,428,191,363,240,310,290,273,329,269,326,306,286,360,236,426,187,462,166,500,149,536,143,602,137,812,125,1433,108,2122,97,2637,91"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="1403,328,1553,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2436,100,2200,109,1977,127,1886,139,1817,155,1769,172,1722,193,1632,241,1557,291,1503,330,1500,326,1553,286,1629,237,1719,188,1767,167,1816,149,1885,134,1976,122,2199,104,2436,95,2637,91"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1577,328,1728,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,95,2452,97,2238,106,2039,124,1958,137,1898,155,1861,171,1825,192,1760,241,1707,291,1671,330,1667,326,1703,287,1757,237,1822,188,1858,167,1896,149,1957,132,2038,119,2238,100,2452,92,2637,89"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="879,328,1029,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2273,98,1810,107,1585,115,1388,125,1237,138,1183,146,1148,155,1116,169,1086,189,1034,238,994,288,967,329,963,326,989,285,1030,234,1083,185,1113,165,1146,149,1182,141,1236,133,1388,119,1585,109,1810,102,2273,93,2637,90"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="529,328,680,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2125,102,1447,113,848,130,656,142,600,148,577,154,564,173,558,195,557,218,561,243,577,289,595,326,591,329,572,291,556,244,552,219,553,194,559,171,574,150,599,143,655,136,848,125,1446,108,2125,97,2637,91"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1752,328,1903,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,98,2445,104,2231,115,2046,132,1981,142,1945,154,1922,172,1902,193,1870,241,1848,290,1835,328,1830,327,1843,288,1865,239,1898,189,1918,168,1942,150,1980,137,2045,126,2230,110,2445,99,2637,93"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="1053,328,1204,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,97,2396,101,2103,111,1823,128,1708,140,1620,155,1528,181,1460,210,1393,244,1304,282,1179,330,1178,325,1302,278,1390,239,1458,205,1526,176,1619,149,1707,135,1822,123,2103,106,2396,96,2637,91"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="704,328,855,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2258,99,1773,108,1329,126,1169,139,1112,146,1075,155,1032,171,989,192,911,241,846,290,801,330,797,326,843,286,908,236,987,187,1029,166,1073,149,1111,141,1168,133,1328,121,1772,103,2258,94,2637,90"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1927,328,2077,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2448,99,2238,108,2142,115,2060,125,2000,138,1980,146,1968,154,1955,173,1950,195,1950,219,1954,243,1972,290,1992,326,1987,329,1967,292,1949,245,1944,219,1944,195,1950,171,1964,150,1977,141,1998,133,2059,120,2141,110,2238,102,2448,93,2637,90"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2101,328,2252,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2452,99,2246,108,2152,116,2072,126,2013,139,1994,146,1983,154,1977,163,1974,177,1975,213,1983,251,1996,278,2012,291,2038,303,2103,325,2102,330,2036,308,2009,295,1992,282,1978,253,1969,214,1969,177,1972,161,1979,150,1992,141,2012,133,2072,121,2152,111,2246,103,2451,94,2637,90"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1228,328,1379,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2415,101,2149,110,1896,128,1792,140,1713,155,1652,180,1548,229,1342,330,1339,326,1546,224,1650,175,1712,149,1791,134,1895,122,2149,105,2415,95,2637,91"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="5,328,156,368"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,95,2127,95,1437,102,1095,109,793,120,559,135,476,144,421,155,373,171,325,191,234,240,159,290,106,330,102,326,156,286,232,236,322,187,371,166,420,149,475,139,558,130,792,115,1095,104,1437,97,2127,90,2637,90"/>
|
|
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="1195,152,1374,192"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,95,2404,98,2095,107,1745,125,1393,155,1374,157,1374,152,1392,149,1745,120,2095,102,2404,93,2637,90"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="588,152,771,192"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,97,1707,114,1177,131,957,142,790,155,771,157,771,152,790,149,957,137,1177,126,1706,109,2636,92"/>
|
|
<area shape="rect" href="dom_2deprecated_8hpp.html" title=" " alt="" coords="2006,159,2246,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2643,108,2253,155,2197,162,2197,157,2252,149,2642,103"/>
|
|
<area shape="rect" href="text_8cpp.html" title=" " alt="" coords="2007,247,2171,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2455,100,2254,109,2162,116,2084,126,2026,139,2007,146,1996,154,1989,166,1989,178,1995,191,2006,203,2036,227,2067,245,2064,250,2033,231,2002,207,1991,193,1984,179,1984,164,1992,150,2005,141,2025,134,2083,121,2161,111,2253,104,2455,94,2637,91"/>
|
|
<area shape="rect" href="table_8hpp.html" title=" " alt="" coords="2321,159,2521,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2702,110,2471,162,2470,157,2701,104"/>
|
|
<area shape="rect" href="table_8cpp.html" title=" " alt="" coords="2195,247,2366,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2637,96,2543,101,2447,111,2364,128,2333,140,2310,154,2295,175,2286,201,2283,247,2277,247,2281,200,2290,173,2307,150,2330,135,2363,123,2446,106,2543,96,2637,91"/>
|
|
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="2390,247,2561,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2734,113,2497,249,2494,245,2732,108"/>
|
|
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="2585,247,2752,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2728,113,2703,130,2683,153,2673,178,2669,203,2670,247,2664,247,2664,203,2668,176,2678,151,2699,126,2725,108"/>
|
|
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="3017,159,3195,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2828,104,3057,157,3056,162,2827,110"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,91,4834,109,5941,126,6348,137,6589,149,6642,157,6642,162,6588,155,6348,142,5941,132,4833,114,2892,96"/>
|
|
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="2776,240,2919,280"/>
|
|
<area shape="poly" title=" " alt="" coords="2732,113,2710,131,2694,153,2687,172,2694,191,2707,203,2729,215,2786,237,2784,242,2727,220,2704,207,2689,193,2682,172,2689,151,2706,127,2728,109"/>
|
|
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="2943,247,3112,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2749,117,2739,135,2732,154,2730,173,2737,190,2764,200,2824,214,2970,245,2969,250,2823,220,2762,205,2733,194,2725,174,2727,153,2734,133,2745,114"/>
|
|
<area shape="rect" href="composite__decorator_8cpp.html" title=" " alt="" coords="3219,152,3398,192"/>
|
|
<area shape="poly" title=" " alt="" coords="2873,103,3208,149,3220,151,3219,157,3207,155,2873,108"/>
|
|
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="3422,159,3593,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,98,3133,118,3410,149,3453,157,3452,162,3410,155,3133,123,2892,103"/>
|
|
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="3137,247,3299,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2809,107,2903,150,2932,171,2962,190,3053,218,3166,245,3165,250,3052,223,2960,194,2929,175,2901,154,2807,111"/>
|
|
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="3617,159,3779,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,94,3217,111,3411,127,3605,149,3648,157,3647,162,3604,155,3410,133,3216,117,2892,99"/>
|
|
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="3803,159,3990,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,93,3294,109,3543,125,3792,149,3840,157,3839,162,3791,155,3542,131,3294,114,2893,98"/>
|
|
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="3323,247,3497,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2829,105,2889,124,2951,150,2968,160,2979,171,2990,181,3006,190,3050,206,3088,216,3155,224,3224,227,3312,237,3352,245,3351,250,3311,243,3224,233,3155,230,3087,221,3048,211,3004,194,2987,185,2975,175,2964,164,2949,154,2887,129,2827,110"/>
|
|
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="4015,159,4192,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,90,3104,94,3380,103,3690,121,4002,149,4049,157,4048,162,4002,155,3690,126,3380,109,3104,99,2892,96"/>
|
|
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="4217,159,4395,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,89,3136,91,3462,99,3831,117,4019,131,4204,149,4252,157,4251,162,4203,155,4019,137,3830,123,3461,105,3136,97,2892,95"/>
|
|
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="4420,159,4595,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,92,3665,111,4094,128,4272,138,4408,149,4455,157,4454,162,4407,155,4272,143,4094,133,3665,116,2892,97"/>
|
|
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="4619,159,4806,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,92,3760,110,4249,127,4452,137,4606,149,4657,157,4656,162,4606,155,4451,143,4248,132,3760,115,2893,97"/>
|
|
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="4830,159,5001,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,91,3304,96,3860,106,4413,123,4643,135,4818,149,4865,157,4864,162,4818,155,4643,140,4413,129,3860,111,3304,101,2893,96"/>
|
|
<area shape="rect" href="inverted_8cpp.html" title=" " alt="" coords="4799,247,4991,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,91,4898,110,5966,127,6308,138,6406,143,6445,150,6453,161,6455,172,6453,183,6445,194,6427,200,6388,205,6253,215,5833,234,4992,259,4991,254,5833,228,6253,209,6387,199,6426,194,6442,190,6448,181,6450,172,6448,163,6442,154,6405,149,6308,143,5966,133,4898,115,2892,96"/>
|
|
<area shape="rect" href="node__decorator_8hpp.html" title=" " alt="" coords="2748,152,2891,192"/>
|
|
<area shape="poly" title=" " alt="" coords="2783,114,2808,150,2804,153,2778,117"/>
|
|
<area shape="rect" href="scroll__indicator_8cpp.html" title=" " alt="" coords="5655,240,5802,280"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,91,4911,110,5986,127,6331,138,6429,143,6469,150,6477,161,6479,172,6477,183,6469,194,6440,204,6380,213,6195,231,5802,257,5802,252,6195,226,6379,208,6439,199,6466,190,6472,181,6474,172,6472,163,6466,154,6429,149,6331,143,5986,132,4911,115,2892,96"/>
|
|
<area shape="rect" href="underlined_8cpp.html" title=" " alt="" coords="6147,247,6353,273"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,91,4924,109,6007,127,6354,138,6453,143,6493,150,6506,170,6505,188,6493,204,6472,217,6414,236,6347,250,6345,245,6412,231,6470,212,6490,200,6500,186,6501,171,6490,154,6452,149,6354,143,6007,132,4924,115,2892,96"/>
|
|
<area shape="rect" href="paragraph_8cpp.html" title=" " alt="" coords="5025,159,5229,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,91,3340,96,3951,107,4564,124,4819,136,5013,149,5067,157,5066,162,5012,155,4819,141,4564,130,3951,112,3339,102,2893,96"/>
|
|
<area shape="rect" href="reflect_8cpp.html" title=" " alt="" coords="5254,159,5433,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,90,3380,94,4058,103,4741,120,5025,133,5241,149,5290,157,5289,162,5240,155,5025,139,4741,126,4058,108,3380,99,2893,96"/>
|
|
<area shape="rect" href="separator_8cpp.html" title=" " alt="" coords="5457,159,5656,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,90,3415,94,4153,103,4898,120,5209,133,5445,149,5499,157,5498,162,5444,155,5209,139,4898,126,4152,108,3415,99,2892,96"/>
|
|
<area shape="rect" href="size_8cpp.html" title=" " alt="" coords="5680,159,5844,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,90,3454,90,4256,97,4676,104,5070,115,5410,130,5668,149,5713,157,5712,162,5667,155,5410,135,5070,120,4676,109,4256,102,3454,96,2892,95"/>
|
|
<area shape="rect" href="spinner_8cpp.html" title=" " alt="" coords="5868,159,6053,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,90,3486,91,4343,98,4793,105,5215,116,5580,130,5856,149,5906,157,5905,162,5855,155,5580,136,5215,121,4793,110,4343,103,3486,96,2893,95"/>
|
|
<area shape="rect" href="util_8cpp.html" title=" " alt="" coords="6077,159,6236,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2893,91,4572,109,5515,126,5860,137,6065,149,6110,157,6109,162,6064,155,5860,142,5514,131,4572,114,2892,96"/>
|
|
<area shape="rect" href="vbox_8cpp.html" title=" " alt="" coords="6261,159,6431,185"/>
|
|
<area shape="poly" title=" " alt="" coords="2892,91,4663,109,5663,126,6030,137,6248,149,6295,157,6295,162,6247,155,6030,142,5663,132,4663,114,2892,96"/>
|
|
<area shape="poly" title=" " alt="" coords="1030,272,795,294,656,311,517,331,506,333,505,327,516,325,655,305,794,289,1029,267"/>
|
|
<area shape="poly" title=" " alt="" coords="1030,268,721,289,532,307,342,331,331,332,330,327,342,325,531,301,721,283,1029,263"/>
|
|
<area shape="poly" title=" " alt="" coords="1222,281,1403,325,1402,331,1221,286"/>
|
|
<area shape="poly" title=" " alt="" coords="1236,273,1565,325,1577,328,1576,333,1564,331,1236,278"/>
|
|
<area shape="poly" title=" " alt="" coords="1082,288,994,330,992,326,1080,284"/>
|
|
<area shape="poly" title=" " alt="" coords="1030,278,871,301,692,331,681,333,680,327,691,325,870,296,1029,272"/>
|
|
<area shape="poly" title=" " alt="" coords="1236,267,1468,289,1740,325,1752,327,1751,333,1739,331,1467,295,1236,272"/>
|
|
<area shape="poly" title=" " alt="" coords="1134,294,1132,328,1127,328,1128,294"/>
|
|
<area shape="poly" title=" " alt="" coords="1043,286,855,331,854,326,1041,281"/>
|
|
<area shape="poly" title=" " alt="" coords="1236,263,1541,284,1727,302,1914,325,1927,327,1926,333,1914,331,1727,307,1540,289,1236,269"/>
|
|
<area shape="poly" title=" " alt="" coords="1235,261,1400,267,1612,279,1850,298,2089,325,2101,327,2101,333,2088,331,1850,303,1612,284,1399,273,1235,266"/>
|
|
<area shape="poly" title=" " alt="" coords="1184,284,1267,326,1265,330,1181,289"/>
|
|
<area shape="poly" title=" " alt="" coords="1030,266,864,272,649,284,409,303,168,331,157,332,156,327,167,325,409,297,649,278,864,267,1030,261"/>
|
|
<area shape="poly" title=" " alt="" coords="1241,201,1167,242,1165,238,1238,196"/>
|
|
<area shape="poly" title=" " alt="" coords="1182,185,998,207,893,223,789,243,622,287,484,330,483,325,620,281,788,237,892,218,997,202,1181,180"/>
|
|
<area shape="poly" title=" " alt="" coords="1182,181,932,201,783,219,636,243,546,262,457,286,311,330,310,325,456,281,545,257,635,237,783,213,931,196,1181,176"/>
|
|
<area shape="poly" title=" " alt="" coords="1318,200,1459,326,1455,330,1314,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1338,195,1614,325,1611,330,1336,200"/>
|
|
<area shape="poly" title=" " alt="" coords="1280,206,1264,246,1252,265,1235,282,1159,304,1030,333,1029,328,1158,298,1233,278,1247,262,1259,243,1275,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1182,192,1060,213,929,243,779,287,655,330,654,325,777,282,928,237,1059,208,1181,186"/>
|
|
<area shape="poly" title=" " alt="" coords="1357,194,1769,325,1768,330,1355,199"/>
|
|
<area shape="poly" title=" " alt="" coords="1294,206,1294,244,1289,263,1280,281,1265,299,1246,313,1205,333,1203,328,1244,309,1261,295,1276,279,1284,262,1288,243,1288,206"/>
|
|
<area shape="poly" title=" " alt="" coords="1189,198,1112,218,1032,243,916,288,820,330,818,325,914,283,1030,237,1110,213,1188,193"/>
|
|
<area shape="poly" title=" " alt="" coords="1382,192,1576,237,1930,325,1928,331,1575,243,1381,198"/>
|
|
<area shape="poly" title=" " alt="" coords="1388,187,1672,237,1881,280,2089,325,2102,328,2101,333,2088,331,1880,285,1671,243,1387,193"/>
|
|
<area shape="poly" title=" " alt="" coords="1312,202,1331,239,1334,264,1331,288,1316,329,1311,327,1326,287,1329,264,1326,241,1307,204"/>
|
|
<area shape="poly" title=" " alt="" coords="1182,178,1041,184,864,195,668,214,473,243,401,260,329,283,152,330,151,325,328,277,399,255,472,237,668,209,863,190,1041,179,1181,173"/>
|
|
<area shape="poly" title=" " alt="" coords="785,190,1043,239,1043,244,784,196"/>
|
|
<area shape="poly" title=" " alt="" coords="642,202,459,330,456,326,639,198"/>
|
|
<area shape="poly" title=" " alt="" coords="622,200,303,330,301,325,620,195"/>
|
|
<area shape="poly" title=" " alt="" coords="722,197,926,326,923,330,719,202"/>
|
|
<area shape="poly" title=" " alt="" coords="668,206,615,329,610,327,663,204"/>
|
|
<area shape="poly" title=" " alt="" coords="742,194,1081,325,1079,330,740,199"/>
|
|
<area shape="poly" title=" " alt="" coords="696,203,736,279,768,326,763,329,732,281,692,206"/>
|
|
<area shape="poly" title=" " alt="" coords="592,198,425,243,139,330,137,325,424,237,590,193"/>
|
|
<area shape="poly" title=" " alt="" coords="2233,155,2276,149,2674,101,2674,107,2277,155,2234,160"/>
|
|
<area shape="poly" title=" " alt="" coords="2118,198,2096,248,2091,246,2113,196"/>
|
|
<area shape="poly" title=" " alt="" coords="2391,194,2301,249,2298,245,2389,190"/>
|
|
<area shape="poly" title=" " alt="" coords="2735,197,2522,250,2521,245,2734,192"/>
|
|
<area shape="poly" title=" " alt="" coords="2776,201,2690,250,2687,245,2773,196"/>
|
|
<area shape="poly" title=" " alt="" coords="2832,204,2844,239,2839,241,2827,206"/>
|
|
<area shape="poly" title=" " alt="" coords="2879,195,3001,245,2999,250,2876,200"/>
|
|
<area shape="poly" title=" " alt="" coords="2905,189,3165,245,3164,250,2904,194"/>
|
|
<area shape="poly" title=" " alt="" coords="2905,182,3312,237,3353,245,3352,250,3311,243,2904,187"/>
|
|
<area shape="poly" title=" " alt="" coords="2905,180,3005,189,3536,219,4055,238,4498,250,4799,255,4799,260,4498,255,4055,243,3536,224,3004,195,2904,186"/>
|
|
<area shape="poly" title=" " alt="" coords="2905,181,3005,189,3309,206,3566,217,4003,226,4441,228,5003,237,5655,254,5655,259,5003,243,4441,234,4003,231,3566,222,3309,212,3004,195,2904,186"/>
|
|
<area shape="poly" title=" " alt="" coords="2905,181,3005,189,3432,211,3794,223,4112,227,4409,227,5024,224,5386,228,5814,237,6147,251,6146,256,5814,243,5386,233,5024,230,4409,232,4112,232,3794,228,3432,216,3004,195,2904,186"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="canvas_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_1Canvas.html">Canvas</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="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('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": "../v4.0.0/index.html", "v3.0.0": "../v3.0.0/index.html", "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 = "v2.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>
|