mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
388 lines
36 KiB
HTML
388 lines
36 KiB
HTML
<!-- HTML header for doxygen 1.9.8-->
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
<title>FTXUI: 类列表</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>
|
||
<script type="text/javascript" src="doxygen-awesome-fragment-copy-button.js"></script>
|
||
<script type="text/javascript" src="doxygen-awesome-paragraph-link.js"></script>
|
||
<script type="text/javascript" src="doxygen-awesome-interactive-toc.js"></script>
|
||
<script type="text/javascript" src="doxygen-awesome-tabs.js"></script>
|
||
<script type="module">
|
||
DoxygenAwesomeFragmentCopyButton.init()
|
||
DoxygenAwesomeParagraphLink.init()
|
||
DoxygenAwesomeInteractiveToc.init()
|
||
DoxygenAwesomeTabs.init()
|
||
await new Promise(r => window.addEventListener('DOMContentLoaded', r));
|
||
// Remove title when a img[alt='title-img'] is present.
|
||
// Find an image with the alt "img-title".
|
||
const img = document.querySelector("img[alt='title-img']");
|
||
const header = document.querySelector(".headertitle");
|
||
if (img && header) {
|
||
// Hide the header title progressively.
|
||
header.style.display = "none";
|
||
// Show progressively the image.
|
||
img.style.maxHeight = "40vh";
|
||
img.style.maxWidth = "100%";
|
||
img.style.objectFit = "contain";
|
||
}
|
||
// In the "examples.html" page. Turn every link with text
|
||
// "examples/<...>
|
||
//
|
||
// Add a "demo" link toward.
|
||
// https://arthursonzogni.github.io/FTXUI/examples/?file=<...>
|
||
const examples = document.querySelectorAll("a")
|
||
examples.forEach((example) => {
|
||
if (!example.textContent.startsWith("examples/")) {
|
||
return;
|
||
}
|
||
// Remove the ".cpp" extension from the example name.
|
||
const exampleName = example.textContent.replace("examples/", "").replace(".cpp", "");
|
||
const a = document.createElement("a");
|
||
a.textContent = "[demo]";
|
||
a.href = "https://arthursonzogni.github.io/FTXUI/examples/?file=" + exampleName;
|
||
a.style.marginRight= "1em";
|
||
a.style.fontWeight = "bold";
|
||
example.parentElement.insertBefore(a, example)
|
||
});
|
||
// If the current URL ends with -example.html, we can add a link to the demo
|
||
// as well using the div.title textContent.
|
||
const url = new URL(window.location.href);
|
||
if (url.pathname.endsWith("-example.html")) {
|
||
// Get the title text.
|
||
const title = document.querySelector("div.title").textContent;
|
||
const example = title.replace("examples/", "").replace(".cpp", "");
|
||
// Create a link to the demo.
|
||
const a = document.createElement("a");
|
||
a.textContent = "[demo]";
|
||
a.href = "https://arthursonzogni.github.io/FTXUI/examples/?file=" + example;
|
||
a.style.marginLeft = "1em";
|
||
a.style.fontWeight = "bold";
|
||
a.style.display = "inline-block";
|
||
// Insert the link after the title.
|
||
const titleDiv = document.querySelector("div.title");
|
||
if (titleDiv) {
|
||
titleDiv.insertBefore(a, titleDiv.nextSibling);
|
||
}
|
||
}
|
||
</script>
|
||
<script type="module">
|
||
// Click on the navtree, except for the main page where this is already done
|
||
// automatically.
|
||
let delay = 0;
|
||
while(true) {
|
||
const navtree = document.querySelector("div.item.selected");
|
||
if (!navtree) {
|
||
delay *= 2;
|
||
delay += 1;
|
||
await new Promise(resolve => setTimeout(resolve, delay));
|
||
continue;
|
||
}
|
||
// Include only selected navtree items.
|
||
console.log("navtree.textContent", navtree.textContent);
|
||
if (!navtree.textContent.includes("Getting Started") &&
|
||
!navtree.textContent.includes("Installation") &&
|
||
!navtree.textContent.includes("ftxui / screen") &&
|
||
!navtree.textContent.includes("ftxui / dom") &&
|
||
!navtree.textContent.includes("ftxui / component") &&
|
||
!navtree.textContent.includes("Reference")) {
|
||
break;
|
||
}
|
||
// Find the first link inside the navtree.
|
||
const link = navtree.querySelector("a");
|
||
if (link) {
|
||
// Simulate a click on the link.
|
||
link.click();
|
||
break;
|
||
}
|
||
}
|
||
</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-awesome.css" rel="stylesheet" type="text/css"/>
|
||
<link href="stylesheet.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 id="projectrow">
|
||
<td id="projectalign">
|
||
<div id="projectname">FTXUI<span id="projectnumber"> 6.1.9</span>
|
||
</div>
|
||
<div id="projectbrief">C++ functional terminal UI.</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<!-- end header part -->
|
||
<!-- 制作者 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','搜索',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('annotated.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">载入中...</div>
|
||
<div class="SRStatus" id="Searching">搜索中...</div>
|
||
<div class="SRStatus" id="NoMatches">未找到</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="header">
|
||
<div class="headertitle"><div class="title">类列表</div></div>
|
||
</div><!--header-->
|
||
<div class="contents">
|
||
<div class="textblock">这里列出了所有类、结构、联合以及接口定义等,并附带简要说明:</div><div class="directory">
|
||
<div class="levels">[详情级别 <span onclick="javascript:dynsection.toggleLevel(1);">1</span><span onclick="javascript:dynsection.toggleLevel(2);">2</span><span onclick="javascript:dynsection.toggleLevel(3);">3</span>]</div><table class="directory">
|
||
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_0_" class="arrow" onclick="dynsection.toggleFolder('0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui.html" target="_self">ftxui</a></td><td class="desc">#include "ftxui/component/component_base.hpp" // 用于 <a class="el" href="group__component.html#classftxui_1_1ComponentBase" title="它将自身实现为 ftxui::Element。它通过响应 ftxui::Event 来实现键盘导航。">ComponentBase</a> </td></tr>
|
||
<tr id="row_0_0_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_0_" class="arrow" onclick="dynsection.toggleFolder('0_0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1animation.html" target="_self">animation</a></td><td class="desc">FTXUI <a class="el" href="namespaceftxui_1_1animation.html" title="FTXUI ftxui::animation:: 命名空间">ftxui::animation</a>:: 命名空间 </td></tr>
|
||
<tr id="row_0_0_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1animation_1_1Animator.html" target="_self">Animator</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_0_1_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1animation_1_1Params.html" target="_self">Params</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_1_" class="arrow" onclick="dynsection.toggleFolder('0_1_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1box__helper.html" target="_self">box_helper</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_1_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1box__helper_1_1Element.html" target="_self">Element</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_2_" class="arrow" onclick="dynsection.toggleFolder('0_2_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1flexbox__helper.html" target="_self">flexbox_helper</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_2_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1flexbox__helper_1_1Block.html" target="_self">Block</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_2_1_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1flexbox__helper_1_1Global.html" target="_self">Global</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_2_2_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1flexbox__helper_1_1Line.html" target="_self">Line</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_3_" class="arrow" onclick="dynsection.toggleFolder('0_3_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceftxui_1_1task.html" target="_self">task</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_3_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1task_1_1PendingTask.html" target="_self">PendingTask</a></td><td class="desc"><a class="el" href="structftxui_1_1task_1_1PendingTask.html" title="PendingTask 表示一个计划在特定时间或尽快执行的任务。">PendingTask</a> 表示一个计划在特定时间或尽快执行的任务。 </td></tr>
|
||
<tr id="row_0_3_1_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1task_1_1TaskQueue.html" target="_self">TaskQueue</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_3_2_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1task_1_1TaskRunner.html" target="_self">TaskRunner</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_4_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1AnimatedColorOption" target="_self">AnimatedColorOption</a></td><td class="desc">可能是动画颜色的选项。 </td></tr>
|
||
<tr id="row_0_5_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1AnimatedColorsOption.html" target="_self">AnimatedColorsOption</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_6_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1AnimationTask.html" target="_self">AnimationTask</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_7_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1AutoReset.html" target="_self">AutoReset</a></td><td class="desc">为变量赋值,当超出作用域时恢复其旧值。 </td></tr>
|
||
<tr id="row_0_8_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#structftxui_1_1Box" target="_self">Box</a></td><td class="desc">Box是一个表示2D空间中矩形区域的结构体。 </td></tr>
|
||
<tr id="row_0_9_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1ButtonOption" target="_self">ButtonOption</a></td><td class="desc">AnimatedButton 组件的选项。 </td></tr>
|
||
<tr id="row_0_10_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#structftxui_1_1Canvas" target="_self">Canvas</a></td><td class="desc"><a class="el" href="group__dom.html#structftxui_1_1Canvas" title="Canvas 是一个与绘图操作相关的可绘制缓冲区。">Canvas</a> 是一个与绘图操作相关的可绘制缓冲区。 </td></tr>
|
||
<tr id="row_0_11_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1CapturedMouseInterface.html" target="_self">CapturedMouseInterface</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_12_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1CheckboxOption" target="_self">CheckboxOption</a></td><td class="desc">Checkbox 组件的选项。 </td></tr>
|
||
<tr id="row_0_13_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#classftxui_1_1Color" target="_self">Color</a></td><td class="desc"><a class="el" href="group__screen.html#classftxui_1_1Color" title="Color 是一个表示终端用户界面中颜色的类。">Color</a> 是一个表示终端用户界面中颜色的类。 </td></tr>
|
||
<tr id="row_0_14_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#structftxui_1_1ColorInfo" target="_self">ColorInfo</a></td><td class="desc">ColorInfo是一个包含终端颜色调色板信息的结构。 颜色调色板信息。 </td></tr>
|
||
<tr id="row_0_15_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#classftxui_1_1ComponentBase" target="_self">ComponentBase</a></td><td class="desc">它将自身实现为 ftxui::Element。它通过响应 <a class="el" href="group__component.html#structftxui_1_1Event" title="代表一个事件。它可以是按键事件、终端大小调整等等...">ftxui::Event</a> 来实现键盘导航。 </td></tr>
|
||
<tr id="row_0_16_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstRef.html" target="_self">ConstRef</a></td><td class="desc">一个适配器。拥有或引用一个不可变对象。 </td></tr>
|
||
<tr id="row_0_17_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_17_" class="arrow" onclick="dynsection.toggleFolder('0_17_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringListRef.html" target="_self">ConstStringListRef</a></td><td class="desc">一个适配器。引用一个字符串列表。 </td></tr>
|
||
<tr id="row_0_17_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringListRef_1_1Adapter.html" target="_self">Adapter</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_18_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ConstStringRef.html" target="_self">ConstStringRef</a></td><td class="desc">一个适配器。拥有或引用一个常量字符串。为了方便,这个 类将多个不可变字符串转换为共享表示。 </td></tr>
|
||
<tr id="row_0_19_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#structftxui_1_1Dimensions" target="_self">Dimensions</a></td><td class="desc"><a class="el" href="group__screen.html#structftxui_1_1Dimensions" title="Dimensions 是一个表示终端大小的结构。">Dimensions</a> 是一个表示终端大小的结构。 </td></tr>
|
||
<tr id="row_0_20_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1DropdownOption" target="_self">DropdownOption</a></td><td class="desc">Dropdown 组件的选项。下拉菜单是打开/关闭单选框的复选框。 </td></tr>
|
||
<tr id="row_0_21_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1EntryState.html" target="_self">EntryState</a></td><td class="desc">来自 |ButtonOption|、|CheckboxOption|、 |RadioboxOption|、|MenuEntryOption|、|MenuOption| 的转换参数。 </td></tr>
|
||
<tr id="row_0_22_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1Event" target="_self">Event</a></td><td class="desc">代表一个事件。它可以是按键事件、终端大小调整等等.. </td></tr>
|
||
<tr id="row_0_23_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#structftxui_1_1FlexboxConfig" target="_self">FlexboxConfig</a></td><td class="desc"><a class="el" href="group__dom.html#structftxui_1_1FlexboxConfig" title="FlexboxConfig 是一个配置结构体,定义了弹性盒子容器的布局属性。">FlexboxConfig</a> 是一个配置结构体,定义了弹性盒子容器的布局属性。 </td></tr>
|
||
<tr id="row_0_24_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#classftxui_1_1Image" target="_self">Image</a></td><td class="desc">像素的矩形网格。 </td></tr>
|
||
<tr id="row_0_25_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1InputOption" target="_self">InputOption</a></td><td class="desc">Input 组件的选项。 </td></tr>
|
||
<tr id="row_0_26_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1InputState.html" target="_self">InputState</a></td><td class="desc">用于定义 Input 组件的样式。 </td></tr>
|
||
<tr id="row_0_27_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_27_" class="arrow" onclick="dynsection.toggleFolder('0_27_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#structftxui_1_1LinearGradient" target="_self">LinearGradient</a></td><td class="desc">一个表示线性渐变颜色效果设置的类。 </td></tr>
|
||
<tr id="row_0_27_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1LinearGradient_1_1Stop.html" target="_self">Stop</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_28_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#classftxui_1_1Loop" target="_self">Loop</a></td><td class="desc"><a class="el" href="group__component.html#classftxui_1_1Loop" title="Loop 是一个管理组件事件循环的类。">Loop</a> 是一个管理组件事件循环的类。 </td></tr>
|
||
<tr id="row_0_29_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1MenuEntryOption" target="_self">MenuEntryOption</a></td><td class="desc">MenuEntry 组件的选项。 </td></tr>
|
||
<tr id="row_0_30_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1MenuOption" target="_self">MenuOption</a></td><td class="desc">Menu 组件的选项。 </td></tr>
|
||
<tr id="row_0_31_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1Mouse" target="_self">Mouse</a></td><td class="desc">一个鼠标事件。它包含鼠标的坐标、按下的按钮以及修饰符(shift、ctrl、meta)。 </td></tr>
|
||
<tr id="row_0_32_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_32_" class="arrow" onclick="dynsection.toggleFolder('0_32_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#classftxui_1_1Node" target="_self">Node</a></td><td class="desc"><a class="el" href="group__dom.html#classftxui_1_1Node" title="Node 是 DOM 树中所有元素的基类。">Node</a> 是 DOM 树中所有元素的基类。 </td></tr>
|
||
<tr id="row_0_32_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Node_1_1Status.html" target="_self">Status</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_33_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1NodeDecorator.html" target="_self">NodeDecorator</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_34_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#structftxui_1_1Pixel" target="_self">Pixel</a></td><td class="desc">一个 Unicode 字符及其相关样式。 </td></tr>
|
||
<tr id="row_0_35_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1RadioboxOption" target="_self">RadioboxOption</a></td><td class="desc">Radiobox 组件的选项。 </td></tr>
|
||
<tr id="row_0_36_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ReceiverImpl.html" target="_self">ReceiverImpl</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_37_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1Ref.html" target="_self">Ref</a></td><td class="desc">一个适配器。拥有或引用一个可变对象。 </td></tr>
|
||
<tr id="row_0_38_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_38_" class="arrow" onclick="dynsection.toggleFolder('0_38_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#structftxui_1_1Requirement" target="_self">Requirement</a></td><td class="desc"><a class="el" href="group__dom.html#structftxui_1_1Requirement" title="Requirement 是一个结构体,用于定义终端用户界面中 Node 的布局要求。">Requirement</a> 是一个结构体,用于定义终端用户界面中 <a class="el" href="group__dom.html#classftxui_1_1Node" title="Node 是 DOM 树中所有元素的基类。">Node</a> 的布局要求。 </td></tr>
|
||
<tr id="row_0_38_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Requirement_1_1Focused.html" target="_self">Focused</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_39_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1ResizableSplitOption.html" target="_self">ResizableSplitOption</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_40_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_40_" class="arrow" onclick="dynsection.toggleFolder('0_40_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__screen.html#classftxui_1_1Screen" target="_self">Screen</a></td><td class="desc">像素的矩形网格。 </td></tr>
|
||
<tr id="row_0_40_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1Screen_1_1Cursor.html" target="_self">Cursor</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_41_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_41_" class="arrow" onclick="dynsection.toggleFolder('0_41_')">▼</span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#classftxui_1_1ScreenInteractive" target="_self">ScreenInteractive</a></td><td class="desc"><a class="el" href="group__component.html#classftxui_1_1ScreenInteractive" title="ScreenInteractive 是一个可以处理事件、运行主循环和管理组件的 Screen。">ScreenInteractive</a> 是一个可以处理事件、运行主循环和管理组件的 <code><a class="el" href="group__screen.html#classftxui_1_1Screen" title="像素的矩形网格。">Screen</a></code>。 </td></tr>
|
||
<tr id="row_0_41_0_" class="odd"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1ScreenInteractive_1_1Private.html" target="_self">Private</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_42_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#classftxui_1_1Selection" target="_self">Selection</a></td><td class="desc">代表终端用户界面中的选择。 </td></tr>
|
||
<tr id="row_0_43_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1SenderImpl.html" target="_self">SenderImpl</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_44_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1SliderOption.html" target="_self">SliderOption</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_45_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1StringRef.html" target="_self">StringRef</a></td><td class="desc">一个适配器。拥有或引用一个常量字符串。为了方便,这个 类将多个可变字符串转换为共享表示。 </td></tr>
|
||
<tr id="row_0_46_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__dom.html#classftxui_1_1Table" target="_self">Table</a></td><td class="desc"><a class="el" href="group__dom.html#classftxui_1_1Table" title="Table 是一个绘制表格的实用工具。">Table</a> 是一个绘制表格的实用工具。 </td></tr>
|
||
<tr id="row_0_47_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1TableSelection.html" target="_self">TableSelection</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_48_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classftxui_1_1TerminalInputParser.html" target="_self">TerminalInputParser</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_49_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1UnderlineOption" target="_self">UnderlineOption</a></td><td class="desc">下划线效果的选项。 </td></tr>
|
||
<tr id="row_0_50_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="structftxui_1_1WindowOptions.html" target="_self">WindowOptions</a></td><td class="desc"></td></tr>
|
||
<tr id="row_0_51_" class="odd"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="group__component.html#structftxui_1_1WindowRenderState" target="_self">WindowRenderState</a></td><td class="desc">传递给 <code>Window</code> 组件渲染函数的 State。 </td></tr>
|
||
</table>
|
||
</div><!-- directory -->
|
||
</div><!-- contents -->
|
||
</div><!-- doc-content -->
|
||
<!-- HTML footer for doxygen 1.9.8-->
|
||
<!-- 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": "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"];
|
||
const version_paths = {"main": "index.html"};
|
||
const currentLang = "zh-CH";
|
||
const currentVersion = "main";
|
||
|
||
// 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>
|