mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
262 lines
17 KiB
HTML
262 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.10.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="1492,5,1670,45"/>
|
|
<area shape="rect" href="event_8hpp.html" title=" " alt="" coords="1144,93,1322,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1492,51,1310,96,1308,91,1491,46"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="364,277,515,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1478,31,1166,38,766,50,399,69,267,82,190,96,147,110,115,125,88,147,65,183,42,232,39,247,40,257,44,263,53,266,85,265,194,253,268,254,352,267,380,274,379,279,351,272,267,259,194,259,85,270,52,271,41,267,35,259,33,247,37,230,60,180,84,143,112,121,145,105,188,91,266,76,399,64,765,45,1166,32,1478,26"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="190,277,340,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1477,31,1131,39,685,53,290,72,158,83,117,90,95,96,60,121,36,152,29,168,28,184,32,202,41,219,99,242,202,274,201,279,97,247,38,223,27,204,23,185,24,166,31,149,56,118,93,91,115,84,157,78,289,67,685,48,1131,34,1477,26"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="15,277,166,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1478,30,1119,36,654,47,431,56,242,67,105,80,63,88,42,96,18,123,9,151,12,183,23,220,42,251,66,275,63,278,38,254,18,222,6,184,4,151,14,120,39,91,62,82,104,75,241,62,431,51,654,42,1119,30,1478,25"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="539,277,690,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1478,32,1135,44,915,56,689,71,473,91,287,116,211,131,149,147,104,164,78,183,69,202,71,210,78,220,92,232,111,242,161,255,222,262,289,263,424,261,481,262,527,267,557,274,556,279,526,272,481,267,424,267,289,269,222,267,160,260,109,247,89,236,74,223,67,212,64,201,74,180,101,160,148,142,210,126,287,111,473,86,688,66,915,50,1134,39,1478,26"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1560,277,1733,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1684,26,1855,32,2050,43,2217,62,2274,75,2293,83,2305,91,2328,124,2335,157,2327,190,2305,224,2236,236,2081,254,1733,290,1733,284,2081,249,2235,231,2302,219,2323,188,2330,157,2323,126,2302,95,2291,88,2272,80,2216,68,2049,49,1855,37,1684,31"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1183,277,1334,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1684,36,1874,63,1980,82,2082,104,2170,129,2235,157,2257,172,2270,188,2272,206,2261,223,2245,234,2217,242,2137,255,2031,263,1913,267,1548,272,1334,291,1334,285,1547,267,1913,262,2031,258,2136,250,2216,237,2242,229,2258,219,2266,204,2265,190,2253,176,2233,162,2168,134,2081,109,1979,87,1873,69,1683,41"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="88,181,239,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1478,37,1255,57,949,88,599,130,245,184,240,185,239,180,244,179,598,125,948,83,1254,52,1478,32"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1398,181,1548,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1564,59,1487,183,1482,180,1560,56"/>
|
|
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="1572,181,1723,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1596,57,1643,180,1638,182,1591,59"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1747,181,1898,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1620,51,1798,179,1794,183,1617,56"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1922,181,2072,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1640,48,1953,179,1951,184,1638,53"/>
|
|
<area shape="rect" href="terminal__input__parser_8hpp.html" title=" " alt="" coords="2374,181,2570,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1684,25,1850,29,2044,39,2226,59,2300,73,2355,91,2388,109,2417,133,2459,179,2455,183,2413,137,2385,114,2353,96,2299,78,2225,64,2043,45,1849,34,1684,30"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2096,181,2247,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1659,47,2108,179,2107,184,1657,52"/>
|
|
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="416,181,594,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,126,891,149,607,184,595,186,594,181,606,179,890,144,1130,121"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,118,934,122,706,132,599,141,508,152,441,166,419,174,405,183,399,193,396,204,400,229,411,253,426,275,421,278,407,256,395,230,391,204,394,191,402,179,416,170,439,161,507,147,599,135,705,127,934,117,1130,113"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="831,277,982,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1226,147,1208,187,1194,207,1177,223,1131,252,1081,272,1030,285,982,293,982,288,1029,280,1079,267,1129,247,1174,219,1190,203,1203,184,1221,145"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,122,706,146,503,163,432,173,390,184,356,203,325,229,281,278,277,274,322,225,353,199,388,179,431,168,503,158,705,140,1130,116"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,120,939,126,708,138,487,157,397,169,328,184,306,192,289,201,251,224,133,279,131,274,249,219,287,197,304,187,327,179,396,164,486,152,707,133,939,121,1130,114"/>
|
|
<area shape="poly" title=" " alt="" coords="1210,146,1169,192,1131,224,1073,236,955,253,690,288,689,283,954,248,1072,230,1129,219,1165,188,1206,142"/>
|
|
<area shape="poly" title=" " alt="" coords="1258,143,1295,183,1317,203,1342,219,1396,244,1452,262,1508,276,1560,284,1559,290,1507,281,1451,267,1394,249,1340,224,1314,207,1291,187,1254,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1240,147,1258,276,1253,277,1235,148"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="619,181,770,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,131,966,154,781,184,770,186,769,181,780,179,965,148,1129,125"/>
|
|
<area shape="poly" title=" " alt="" coords="1130,120,746,139,503,157,259,184,240,187,239,182,258,179,502,152,746,133,1130,115"/>
|
|
<area shape="poly" title=" " alt="" coords="1299,135,1421,179,1419,184,1297,140"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="794,181,944,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1141,139,945,185,944,180,1139,134"/>
|
|
<area shape="poly" title=" " alt="" coords="1336,133,1560,179,1573,181,1572,187,1559,184,1335,138"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="968,181,1119,221"/>
|
|
<area shape="poly" title=" " alt="" coords="1180,141,1086,184,1084,179,1178,137"/>
|
|
<area shape="poly" title=" " alt="" coords="1336,123,1522,147,1735,179,1747,181,1746,186,1734,184,1521,152,1335,129"/>
|
|
<area shape="poly" title=" " alt="" coords="1336,119,1597,140,1753,157,1909,179,1922,181,1921,186,1909,184,1753,163,1596,146,1336,124"/>
|
|
<area shape="rect" href="terminal__input__parser_8cpp.html" title=" " alt="" coords="1965,277,2160,317"/>
|
|
<area shape="poly" title=" " alt="" coords="1277,139,1337,179,1361,202,1371,211,1386,219,1418,227,1473,236,1629,255,1965,285,1965,290,1629,260,1473,242,1417,232,1384,224,1368,215,1357,205,1334,183,1274,143"/>
|
|
<area shape="poly" title=" " alt="" coords="1336,118,1741,143,2260,179,2374,188,2373,194,2259,184,1740,148,1336,123"/>
|
|
<area shape="poly" title=" " alt="" coords="1336,116,1670,135,1877,153,2085,179,2096,180,2096,186,2085,184,1877,159,1670,140,1336,121"/>
|
|
<area shape="poly" title=" " alt="" coords="486,234,455,278,451,275,482,231"/>
|
|
<area shape="poly" title=" " alt="" coords="600,222,831,275,830,280,599,227"/>
|
|
<area shape="poly" title=" " alt="" coords="445,229,314,279,312,274,443,224"/>
|
|
<area shape="poly" title=" " alt="" coords="403,224,294,245,178,272,151,279,149,274,176,267,293,240,402,218"/>
|
|
<area shape="poly" title=" " alt="" coords="539,228,594,275,590,279,536,232"/>
|
|
<area shape="poly" title=" " alt="" coords="608,219,816,240,978,249,1139,254,1345,267,1559,285,1559,290,1345,272,1139,260,978,254,815,245,607,224"/>
|
|
<area shape="poly" title=" " alt="" coords="608,219,891,253,1183,285,1182,290,890,258,608,224"/>
|
|
<area shape="poly" title=" " alt="" coords="2360,223,2355,224,2010,264,1733,290,1733,285,2010,258,2354,219,2359,218"/>
|
|
<area shape="poly" title=" " alt="" coords="2376,227,2146,279,2144,274,2375,222"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="2288,277,2460,317"/>
|
|
<area shape="poly" title=" " alt="" coords="2444,233,2396,279,2392,275,2440,229"/>
|
|
<area shape="rect" href="terminal__input__parser__test__fuzzer_8cpp.html" title=" " alt="" coords="2484,269,2654,324"/>
|
|
<area shape="poly" title=" " alt="" coords="2503,229,2543,267,2540,271,2499,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": "../v0.9/index.html", "v0.11": "../v0.11/index.html", "v0.10": "index.html"};
|
|
const currentVersion = "v0.10";
|
|
|
|
// 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>
|