NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::tui::surface类 参考

像素网格基类 更多...

#include <screen.hpp>

类 neforce::tui::surface 继承关系图:
[图例]

Public 成员函数

 surface (int dimx, int dimy)
 构造函数
int dimx () const noexcept
 获取宽度
int dimy () const noexcept
 获取高度
stringat (int x, int y)
 有边界检查的字符访问
cellcell_at (int x, int y)
 有边界检查的 cell 访问
cellfast_cell_at (int x, int y) noexcept
 无边界检查的 cell 访问
virtual void clear ()
 清空所有 cell

详细描述

像素网格基类

管理一维 cell 数组和二维坐标映射。

在文件 screen.hpp111 行定义.

构造及析构函数说明

◆ surface()

neforce::tui::surface::surface ( int dimx,
int dimy )

构造函数

参数
dimx宽度
dimy高度

引用了 dimx(), dimy() , 以及 surface().

被这些函数引用 surface().

成员函数说明

◆ at()

string & neforce::tui::surface::at ( int x,
int y )
nodiscard

有边界检查的字符访问

参数
x列坐标
y行坐标
返回
字符引用

◆ cell_at()

cell & neforce::tui::surface::cell_at ( int x,
int y )
nodiscard

有边界检查的 cell 访问

参数
x列坐标
y行坐标
返回
cell 引用

◆ dimx()

int neforce::tui::surface::dimx ( ) const
inlinenodiscardnoexcept

获取宽度

返回
列数

在文件 screen.hpp126 行定义.

被这些函数引用 neforce::tui::screen::resize(), neforce::tui::screen::screen() , 以及 surface().

◆ dimy()

int neforce::tui::surface::dimy ( ) const
inlinenodiscardnoexcept

获取高度

返回
行数

在文件 screen.hpp132 行定义.

被这些函数引用 neforce::tui::screen::resize(), neforce::tui::screen::screen() , 以及 surface().

◆ fast_cell_at()

cell & neforce::tui::surface::fast_cell_at ( int x,
int y )
inlinenodiscardnoexcept

无边界检查的 cell 访问

参数
x列坐标
y行坐标
返回
cell 引用

在文件 screen.hpp156 行定义.


该类的文档由以下文件生成: