Files
FTXUI/en/v0.11/mouse_8hpp.html
2025-11-12 12:56:59 +00:00

260 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
&#160;<span id="projectnumber">0.11.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&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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&amp;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&amp;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> &#124;
<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="1313,5,1492,45"/>
<area shape="rect" href="event_8hpp.html" title=" " alt="" coords="991,93,1169,133"/>
<area shape="poly" title=" " alt="" coords="1319,51,1151,96,1150,91,1318,46"/>
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="1027,277,1178,317"/>
<area shape="poly" title=" " alt="" coords="1506,36,1696,63,1802,82,1904,104,1991,129,2057,157,2079,172,2091,188,2093,206,2083,223,2066,234,2039,242,1959,255,1853,263,1735,267,1506,270,1369,272,1179,290,1178,285,1369,267,1506,265,1734,262,1853,258,1958,250,2038,237,2064,229,2079,219,2088,204,2086,190,2075,176,2054,162,1990,134,1902,109,1801,87,1695,69,1505,41"/>
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="678,277,829,317"/>
<area shape="poly" title=" " alt="" coords="1300,33,993,49,604,78,417,99,256,123,190,136,136,151,97,167,74,183,66,202,68,210,74,219,85,226,103,233,161,243,322,256,585,267,678,280,677,285,585,272,322,261,160,248,102,238,82,231,70,223,63,212,60,201,70,180,94,162,134,146,188,131,255,118,416,93,603,73,993,44,1299,28"/>
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="74,277,225,317"/>
<area shape="poly" title=" " alt="" coords="1300,31,979,37,572,50,214,69,97,82,60,88,43,95,19,124,9,153,12,185,27,220,40,237,56,252,94,274,91,279,53,256,36,241,23,223,7,186,4,153,14,121,40,91,59,83,96,76,214,64,572,45,979,32,1300,26"/>
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="423,277,574,317"/>
<area shape="poly" title=" " alt="" coords="1299,32,1025,40,680,53,367,72,255,83,189,96,145,110,112,125,85,147,61,183,54,198,53,211,56,220,64,227,92,237,136,242,259,247,333,254,411,267,440,274,439,279,410,272,332,259,259,253,136,247,91,242,61,232,52,223,48,211,49,197,56,180,81,143,109,120,143,105,187,91,254,78,367,67,680,48,1025,35,1299,26"/>
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1381,277,1555,317"/>
<area shape="poly" title=" " alt="" coords="1506,26,1677,32,1872,43,2038,62,2095,75,2115,83,2127,91,2149,124,2156,157,2149,190,2127,224,2057,236,1903,254,1555,290,1554,284,1902,249,2056,231,2124,219,2144,188,2151,157,2144,126,2123,95,2112,88,2094,80,2037,68,1871,49,1677,37,1506,31"/>
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="249,277,399,317"/>
<area shape="poly" title=" " alt="" coords="1300,29,1002,30,624,38,442,46,282,58,161,75,120,85,93,96,60,122,38,153,33,169,32,185,37,202,47,220,67,240,87,252,107,258,129,260,178,259,206,261,236,267,262,274,261,279,235,272,205,266,178,264,129,265,106,263,85,257,64,244,43,223,32,205,27,186,27,168,33,150,56,118,90,91,118,79,160,69,282,53,441,41,624,33,1002,25,1300,23"/>
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="85,181,235,221"/>
<area shape="poly" title=" " alt="" coords="1300,41,847,98,554,139,258,184,236,188,235,182,257,179,553,133,847,93,1299,36"/>
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1219,181,1370,221"/>
<area shape="poly" title=" " alt="" coords="1386,59,1309,183,1304,180,1381,56"/>
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="1394,181,1545,221"/>
<area shape="poly" title=" " alt="" coords="1417,57,1464,180,1459,182,1412,59"/>
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="1569,181,1719,221"/>
<area shape="poly" title=" " alt="" coords="1441,51,1619,179,1616,183,1438,56"/>
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="1743,181,1894,221"/>
<area shape="poly" title=" " alt="" coords="1461,48,1774,179,1772,184,1459,53"/>
<area shape="rect" href="terminal__input__parser_8hpp.html" title=" " alt="" coords="2195,181,2391,221"/>
<area shape="poly" title=" " alt="" coords="1506,25,1671,29,1865,39,2048,59,2121,73,2177,91,2209,109,2238,133,2281,179,2277,183,2235,137,2206,114,2175,96,2120,78,2047,64,1865,45,1671,34,1506,30"/>
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="1918,181,2069,221"/>
<area shape="poly" title=" " alt="" coords="1480,47,1930,179,1928,184,1479,52"/>
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="813,181,992,221"/>
<area shape="poly" title=" " alt="" coords="1030,142,943,184,940,179,1027,137"/>
<area shape="poly" title=" " alt="" coords="1087,147,1103,276,1098,277,1081,148"/>
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="853,277,1003,317"/>
<area shape="poly" title=" " alt="" coords="1063,146,1006,223,951,278,947,275,1002,220,1058,143"/>
<area shape="poly" title=" " alt="" coords="977,120,932,127,886,139,842,157,803,183,785,204,772,230,758,277,753,276,767,228,780,202,799,179,840,153,885,134,931,121,976,115"/>
<area shape="poly" title=" " alt="" coords="977,121,821,129,640,142,469,160,400,171,347,184,297,204,250,229,175,279,172,274,247,225,295,199,346,179,399,166,469,155,639,136,821,124,977,116"/>
<area shape="poly" title=" " alt="" coords="977,120,816,126,635,138,481,157,429,169,402,183,395,195,394,207,399,219,407,231,434,255,464,274,461,279,430,259,403,235,394,221,389,207,390,193,398,179,427,164,480,152,634,133,815,121,977,115"/>
<area shape="poly" title=" " alt="" coords="1098,144,1126,184,1144,203,1164,219,1216,246,1273,266,1329,279,1382,287,1381,292,1328,284,1272,271,1214,251,1161,224,1140,207,1122,187,1094,147"/>
<area shape="poly" title=" " alt="" coords="977,122,815,131,632,144,474,162,419,173,388,184,366,204,350,229,331,278,326,276,345,226,362,200,385,179,418,167,473,157,631,139,814,126,976,117"/>
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="413,181,563,221"/>
<area shape="poly" title=" " alt="" coords="977,128,789,152,575,184,564,186,563,181,574,179,789,146,976,123"/>
<area shape="poly" title=" " alt="" coords="977,122,654,142,455,160,255,184,236,187,235,182,254,179,454,155,654,137,976,117"/>
<area shape="poly" title=" " alt="" coords="1141,136,1249,179,1247,184,1139,141"/>
<area shape="poly" title=" " alt="" coords="1179,134,1394,181,1393,186,1178,139"/>
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="587,181,738,221"/>
<area shape="poly" title=" " alt="" coords="978,138,738,187,737,182,977,133"/>
<area shape="poly" title=" " alt="" coords="1183,124,1358,148,1556,179,1569,181,1568,186,1555,184,1357,153,1182,130"/>
<area shape="poly" title=" " alt="" coords="1184,119,1433,141,1582,158,1731,179,1743,181,1742,186,1730,184,1582,163,1433,147,1183,124"/>
<area shape="rect" href="terminal__input__parser_8cpp.html" title=" " alt="" coords="1787,277,1981,317"/>
<area shape="poly" title=" " alt="" coords="1116,140,1163,179,1184,202,1194,211,1207,219,1283,231,1439,249,1787,284,1786,289,1438,254,1282,237,1206,224,1190,215,1180,206,1159,183,1112,144"/>
<area shape="poly" title=" " alt="" coords="1183,118,1578,143,2081,179,2195,188,2195,194,2081,184,1577,148,1183,123"/>
<area shape="poly" title=" " alt="" coords="1183,116,1507,136,1707,154,1907,179,1918,180,1917,186,1906,184,1706,159,1506,141,1183,121"/>
<area shape="poly" title=" " alt="" coords="956,225,1063,274,1061,279,954,230"/>
<area shape="poly" title=" " alt="" coords="914,234,925,276,920,277,909,235"/>
<area shape="poly" title=" " alt="" coords="862,231,785,279,782,274,859,226"/>
<area shape="poly" title=" " alt="" coords="800,218,749,224,605,236,492,241,379,249,236,272,206,279,205,274,235,267,379,244,491,235,604,230,749,219,799,213"/>
<area shape="poly" title=" " alt="" coords="808,227,575,281,573,275,807,222"/>
<area shape="poly" title=" " alt="" coords="1006,217,1381,278,1381,284,1005,222"/>
<area shape="poly" title=" " alt="" coords="800,218,570,249,411,272,382,279,381,274,410,267,569,243,799,213"/>
<area shape="poly" title=" " alt="" coords="2181,223,2176,224,1832,264,1555,290,1554,285,1831,258,2176,219,2181,218"/>
<area shape="poly" title=" " alt="" coords="2198,227,1967,279,1966,274,2197,222"/>
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="2110,277,2282,317"/>
<area shape="poly" title=" " alt="" coords="2266,233,2217,279,2214,275,2262,229"/>
<area shape="rect" href="terminal__input__parser__test__fuzzer_8cpp.html" title=" " alt="" coords="2306,269,2475,324"/>
<area shape="poly" title=" " alt="" coords="2324,229,2365,267,2361,271,2321,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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structftxui_1_1Mouse.html">Mouse</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</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">&#160;</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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</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": "index.html", "v0.10": "../v0.10/index.html"};
const currentVersion = "v0.11";
// 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>