mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
258 lines
17 KiB
HTML
258 lines
17 KiB
HTML
<!-- HTML header for doxygen 1.8.14-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="cache-control" content="max-age=86400"/>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.12.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>FTXUI: include/ftxui/component/mouse.hpp File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">FTXUI
|
|
 <span id="projectnumber">0.9.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('mouse_8hpp.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Data Structures</a> |
|
|
<a href="#namespaces">Namespaces</a> </div>
|
|
<div class="headertitle"><div class="title">mouse.hpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><div id="dynsection-0" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
|
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><img src="mouse_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2mouse_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2component_2mouse_8hppdep" id="ainclude_2ftxui_2component_2mouse_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="1137,5,1316,45"/>
|
|
<area shape="rect" href="event_8hpp.html" title=" " alt="" coords="1043,93,1221,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1197,57,1155,95,1151,91,1194,53"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="927,277,1078,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1125,42,1074,62,1052,76,1033,95,1019,116,1009,140,999,191,998,239,1002,276,997,277,993,239,994,190,1004,138,1014,114,1029,92,1049,72,1072,57,1123,37"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="1102,277,1253,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1331,35,1528,61,1639,79,1745,101,1838,126,1907,154,1930,170,1943,187,1946,205,1935,223,1923,231,1902,238,1843,249,1677,262,1406,272,1253,289,1253,284,1405,267,1676,257,1842,244,1901,233,1920,227,1932,220,1940,204,1938,189,1926,174,1904,159,1836,131,1744,106,1638,85,1527,66,1330,40"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="225,277,375,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1124,30,858,33,528,42,370,51,233,62,128,77,92,86,69,96,36,122,14,153,9,169,9,185,13,202,24,220,36,231,54,241,105,259,166,273,225,283,224,288,165,278,104,264,52,246,33,235,19,223,8,204,3,186,4,168,9,150,32,119,67,91,91,81,127,72,232,57,370,45,528,37,858,27,1123,24"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="399,277,550,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1124,29,901,31,623,40,484,48,356,60,247,76,165,96,122,110,88,125,61,147,37,183,31,198,29,211,32,220,40,227,69,237,113,242,236,247,309,254,387,267,417,274,415,279,386,272,309,259,235,253,112,247,67,242,37,232,28,223,24,211,25,197,32,180,58,143,86,120,120,105,163,91,246,71,355,55,484,43,623,35,901,26,1124,24"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1417,277,1591,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1330,28,1497,41,1593,52,1689,68,1779,87,1858,112,1920,143,1942,160,1958,180,1967,202,1965,212,1958,224,1915,234,1820,250,1591,285,1591,280,1819,245,1914,229,1955,219,1960,211,1961,202,1954,183,1939,164,1917,147,1856,117,1778,92,1688,73,1592,58,1497,47,1330,34"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="574,277,725,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1124,35,849,53,508,84,346,104,206,128,103,154,70,168,50,183,42,202,44,210,50,220,67,233,89,244,146,259,215,265,292,266,445,262,510,262,562,267,593,274,591,279,561,272,510,267,445,267,292,272,215,271,145,264,87,249,64,238,46,223,39,213,37,201,46,180,67,164,102,149,205,122,345,99,508,79,849,48,1123,30"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="61,181,211,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1124,40,919,63,682,96,452,136,223,184,212,186,211,181,222,179,451,131,681,91,919,58,1124,34"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="235,181,386,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1124,49,387,188,386,183,1123,44"/>
|
|
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="1246,181,1397,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1246,56,1313,180,1309,182,1241,59"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1421,181,1571,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1269,51,1468,179,1465,183,1266,55"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1595,181,1746,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1288,48,1624,179,1622,184,1286,53"/>
|
|
<area shape="rect" href="terminal__input__parser_8hpp.html" title=" " alt="" coords="2047,181,2243,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1330,24,1501,28,1703,38,1894,58,1971,73,2029,91,2062,109,2091,133,2133,179,2129,183,2087,137,2059,114,2027,96,1970,78,1893,63,1703,44,1501,33,1330,30"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="1770,181,1921,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1309,47,1469,91,1780,179,1779,184,1467,96,1308,52"/>
|
|
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="789,181,968,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1065,140,935,184,933,179,1063,135"/>
|
|
<area shape="poly" title=" " alt="" coords="1113,146,1018,278,1014,275,1108,143"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="751,277,902,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,123,905,132,771,145,660,162,623,173,603,183,597,192,596,201,603,219,661,242,764,274,763,279,659,247,600,223,590,201,593,190,600,179,621,168,659,157,770,140,904,127,1029,118"/>
|
|
<area shape="poly" title=" " alt="" coords="1133,147,1135,183,1141,221,1153,250,1167,275,1162,277,1148,252,1136,222,1129,183,1128,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,117,922,122,795,132,658,152,524,184,468,204,414,230,330,279,327,274,412,225,466,200,522,179,657,147,794,127,922,116,1029,112"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,121,910,128,779,140,659,158,611,170,576,184,547,204,522,229,487,278,483,275,518,226,544,200,574,179,610,165,658,153,778,134,910,122,1029,116"/>
|
|
<area shape="poly" title=" " alt="" coords="1144,145,1162,185,1175,203,1191,219,1244,251,1303,272,1362,285,1417,291,1417,296,1362,290,1302,277,1242,256,1188,223,1171,207,1157,187,1139,148"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,123,901,131,763,145,649,162,610,172,590,183,584,194,582,205,590,230,607,254,628,274,624,278,603,257,585,232,577,205,579,192,586,179,608,167,647,157,763,139,901,126,1029,117"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="614,181,765,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1030,136,778,184,765,187,764,181,777,179,1029,131"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,120,672,139,448,157,223,184,212,186,211,180,222,179,447,152,671,133,1029,115"/>
|
|
<area shape="poly" title=" " alt="" coords="1029,123,747,145,576,162,406,184,387,187,386,182,405,179,576,157,747,140,1028,118"/>
|
|
<area shape="poly" title=" " alt="" coords="1187,137,1281,179,1279,184,1185,141"/>
|
|
<area shape="poly" title=" " alt="" coords="1226,134,1421,180,1420,185,1224,139"/>
|
|
<area shape="poly" title=" " alt="" coords="1236,125,1399,149,1583,179,1595,181,1595,186,1582,184,1399,154,1235,131"/>
|
|
<area shape="rect" href="terminal__input__parser_8cpp.html" title=" " alt="" coords="1700,277,1895,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1160,142,1204,190,1235,219,1286,242,1331,255,1372,261,1412,263,1497,261,1546,261,1603,267,1700,280,1700,285,1602,272,1546,267,1497,266,1412,268,1372,266,1330,260,1284,247,1232,224,1200,194,1156,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1235,120,1934,179,2048,189,2047,194,1933,184,1235,126"/>
|
|
<area shape="poly" title=" " alt="" coords="1236,120,1475,142,1618,158,1759,179,1770,181,1769,186,1758,184,1617,164,1475,147,1235,125"/>
|
|
<area shape="poly" title=" " alt="" coords="916,227,979,274,976,279,913,232"/>
|
|
<area shape="poly" title=" " alt="" coords="864,235,840,278,835,275,859,232"/>
|
|
<area shape="poly" title=" " alt="" coords="953,223,1118,274,1116,279,952,228"/>
|
|
<area shape="poly" title=" " alt="" coords="776,224,665,237,579,244,494,253,387,272,358,279,357,274,386,267,493,248,578,239,665,232,776,219"/>
|
|
<area shape="poly" title=" " alt="" coords="777,225,562,272,535,279,534,274,561,267,775,219"/>
|
|
<area shape="poly" title=" " alt="" coords="982,215,1418,280,1417,285,981,221"/>
|
|
<area shape="poly" title=" " alt="" coords="821,229,697,279,695,274,819,224"/>
|
|
<area shape="poly" title=" " alt="" coords="2034,223,2029,224,1688,272,1592,286,1591,280,1688,267,2028,219,2033,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2063,227,1868,279,1867,274,2061,222"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1962,277,2134,317"/>
|
|
<area shape="poly" title=" " alt="" coords="2118,233,2070,279,2066,275,2114,229"/>
|
|
<area shape="rect" href="terminal__input__parser__test__fuzzer_8cpp.html" title=" " alt="" coords="2158,269,2327,324"/>
|
|
<area shape="poly" title=" " alt="" coords="2177,229,2217,267,2214,271,2173,233"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="mouse_8hpp_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
|
Data Structures</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1Mouse.html">Mouse</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta). <a href="structftxui_1_1Mouse.html#details">More...</a><br /></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
|
Namespaces</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.14-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
</div>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const projectNumber = document.getElementById('projectnumber');
|
|
if (!projectNumber) {
|
|
console.warn('Doxygen element with ID "projectnumber" not found. Cannot add version switcher.');
|
|
return;
|
|
}
|
|
|
|
const versions = ["main", "v6.1.9", "v6.1.8", "v6.1.7", "v6.1.6", "v6.1.5", "v6.1.4", "v6.1.3", "v6.1.2", "v6.1.1", "v6.1.0", "v6.0.2", "v6.0.1", "v6.0.0", "v5.0.0", "v4.1.1", "v4.1.0", "v4.0.0", "v3.0.0", "v2.0.0", "v0.9", "v0.11", "v0.10"];
|
|
const version_paths = {"main": "../../index.html", "v6.1.9": "../v6.1.9/index.html", "v6.1.8": "../v6.1.8/index.html", "v6.1.7": "../v6.1.7/index.html", "v6.1.6": "../v6.1.6/index.html", "v6.1.5": "../v6.1.5/index.html", "v6.1.4": "../v6.1.4/index.html", "v6.1.3": "../v6.1.3/index.html", "v6.1.2": "../v6.1.2/index.html", "v6.1.1": "../v6.1.1/index.html", "v6.1.0": "../v6.1.0/index.html", "v6.0.2": "../v6.0.2/index.html", "v6.0.1": "../v6.0.1/index.html", "v6.0.0": "../v6.0.0/index.html", "v5.0.0": "../v5.0.0/index.html", "v4.1.1": "../v4.1.1/index.html", "v4.1.0": "../v4.1.0/index.html", "v4.0.0": "../v4.0.0/index.html", "v3.0.0": "../v3.0.0/index.html", "v2.0.0": "../v2.0.0/index.html", "v0.9": "index.html", "v0.11": "../v0.11/index.html", "v0.10": "../v0.10/index.html"};
|
|
const currentVersion = "v0.9";
|
|
|
|
// Sort versions: 'main' first, then others numerically descending.
|
|
versions.sort((a, b) => {
|
|
if (a === 'main') return -1;
|
|
if (b === 'main') return 1;
|
|
return b.localeCompare(a, undefined, { numeric: true, sensitivity: 'base' });
|
|
});
|
|
|
|
const select = document.createElement('select');
|
|
select.onchange = function() {
|
|
const selectedVersion = this.value;
|
|
// Navigate directly to the pre-calculated relative path.
|
|
if (selectedVersion !== currentVersion) {
|
|
window.location.href = version_paths[selectedVersion];
|
|
}
|
|
};
|
|
|
|
versions.forEach(v => {
|
|
const option = document.createElement('option');
|
|
option.value = v;
|
|
option.textContent = v;
|
|
if (v === currentVersion) {
|
|
option.selected = true;
|
|
}
|
|
select.appendChild(option);
|
|
});
|
|
|
|
// Replace the Doxygen project number element with our dropdown.
|
|
projectNumber.replaceWith(select);
|
|
|
|
// Apply some styling to make it look good.
|
|
Object.assign(select.style, {
|
|
backgroundColor: 'rgba(0, 0, 0, 0.8)',
|
|
color: 'white',
|
|
border: '1px solid rgba(255, 255, 255, 0.2)',
|
|
padding: '5px',
|
|
borderRadius: '5px',
|
|
fontSize: '14px',
|
|
fontFamily: 'inherit',
|
|
marginLeft: '10px',
|
|
cursor: 'pointer'
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|