mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
245 lines
14 KiB
HTML
245 lines
14 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/event.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.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&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('event_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">event.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="event_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2component_2event_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2component_2event_8hppdep" id="ainclude_2ftxui_2component_2event_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="983,5,1162,45"/>
|
|
<area shape="rect" href="screen__interactive_8hpp.html" title=" " alt="" coords="525,93,703,133"/>
|
|
<area shape="poly" title=" " alt="" coords="970,48,704,98,703,93,969,43"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="5,189,156,229"/>
|
|
<area shape="poly" title=" " alt="" coords="969,30,847,35,697,46,534,65,372,96,301,117,231,142,120,191,118,186,229,137,299,111,371,91,533,60,696,40,847,30,969,25"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="180,189,331,229"/>
|
|
<area shape="poly" title=" " alt="" coords="970,29,863,33,736,43,600,63,532,78,467,96,414,116,363,142,283,191,280,186,360,137,412,111,465,91,531,73,599,58,736,38,863,27,970,23"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="355,189,505,229"/>
|
|
<area shape="poly" title=" " alt="" coords="970,32,850,38,717,49,597,68,549,81,514,96,489,116,468,141,440,190,435,187,463,138,485,112,511,91,547,76,596,63,716,44,849,32,969,27"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="529,189,680,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1007,52,888,96,650,191,649,186,886,91,1005,47"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="704,189,855,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1028,55,957,96,809,191,806,186,954,91,1025,50"/>
|
|
<area shape="rect" href="screen__interactive_8cpp.html" title=" " alt="" coords="1054,189,1227,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1025,55,1004,73,988,95,982,114,988,132,1003,150,1021,165,1063,186,1060,191,1018,169,999,154,984,135,977,114,984,92,1000,69,1021,51"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="879,189,1029,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1021,55,997,73,978,95,966,118,960,143,956,189,951,188,955,142,961,116,973,92,993,69,1018,50"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="1263,93,1413,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1145,47,1281,91,1279,96,1143,52"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="1437,93,1588,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,43,1427,91,1438,93,1437,98,1425,96,1175,48"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="1612,93,1763,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,34,1373,57,1601,91,1612,93,1611,98,1600,96,1373,63,1175,40"/>
|
|
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="1787,93,1937,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,30,1448,51,1612,69,1776,91,1787,93,1786,98,1775,96,1611,74,1447,57,1176,35"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="1961,93,2112,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,27,1520,46,1735,65,1950,91,1962,92,1961,98,1950,96,1734,70,1520,52,1175,33"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="2136,93,2287,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,25,1355,31,1592,42,1857,61,2125,91,2136,92,2135,98,2124,96,1857,66,1591,47,1355,36,1176,31"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="2311,93,2461,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,24,1382,27,1662,37,1979,57,2141,72,2300,91,2311,92,2310,98,2299,96,2141,77,1979,62,1661,42,1382,33,1175,29"/>
|
|
<area shape="rect" href="terminal__input__parser_8cpp.html" title=" " alt="" coords="1251,189,1446,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1049,57,1037,76,1028,95,1026,114,1034,132,1055,154,1077,167,1099,173,1123,174,1176,172,1207,173,1240,179,1271,186,1270,191,1239,184,1206,179,1176,178,1123,180,1098,178,1075,172,1052,158,1029,135,1021,115,1023,94,1032,73,1044,54"/>
|
|
<area shape="rect" href="terminal__input__parser_8hpp.html" title=" " alt="" coords="1043,93,1239,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1098,55,1128,91,1124,95,1094,58"/>
|
|
<area shape="rect" href="toggle_8cpp.html" title=" " alt="" coords="2485,93,2636,133"/>
|
|
<area shape="poly" title=" " alt="" coords="1176,23,1409,25,1731,33,2100,53,2289,70,2474,91,2486,92,2485,98,2474,96,2289,75,2100,59,1731,38,1409,30,1176,28"/>
|
|
<area shape="poly" title=" " alt="" coords="511,128,349,151,168,184,140,191,138,186,167,179,348,145,510,123"/>
|
|
<area shape="poly" title=" " alt="" coords="520,139,343,184,317,191,316,186,341,179,519,134"/>
|
|
<area shape="poly" title=" " alt="" coords="566,142,468,191,466,186,563,137"/>
|
|
<area shape="poly" title=" " alt="" coords="613,147,609,189,604,188,608,147"/>
|
|
<area shape="poly" title=" " alt="" coords="660,138,747,186,745,191,658,142"/>
|
|
<area shape="poly" title=" " alt="" coords="717,125,871,148,1043,179,1074,186,1073,191,1041,184,870,153,717,130"/>
|
|
<area shape="poly" title=" " alt="" coords="701,134,867,179,892,186,891,191,865,184,700,139"/>
|
|
<area shape="poly" title=" " alt="" coords="1143,147,1143,189,1138,189,1138,147"/>
|
|
<area shape="poly" title=" " alt="" coords="1196,136,1308,186,1306,191,1194,141"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="1471,189,1643,229"/>
|
|
<area shape="poly" title=" " alt="" coords="1250,133,1459,179,1488,186,1487,191,1457,184,1249,139"/>
|
|
<area shape="rect" href="terminal__input__parser__test__fuzzer_8cpp.html" title=" " alt="" coords="1667,181,1836,236"/>
|
|
<area shape="poly" title=" " alt="" coords="1253,131,1367,144,1457,152,1545,161,1656,179,1667,181,1666,186,1655,184,1544,166,1456,157,1367,149,1252,136"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="event_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_1Event.html">Event</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Represent an event. It can be key press event, a terminal resize, or more ... <a href="structftxui_1_1Event.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": "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>
|