YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
十六进制视图区域。 更多...
#include <HexBrowser.h>
Public 类型 | |
typedef GValueEventArgs< bool > | ViewArgs |
视图参数类型。 | |
typedef std::uintptr_t | IndexType |
索引类型。 | |
typedef vector< char > | DataType |
显示数据类型。 | |
Public 成员函数 | |
DeclEvent (HViewEvent, ViewChanged) explicit HexViewArea(const Drawing | |
视图事件委托类型。 | |
DefGetter (const ynothrow, const HexModel &, Model, model) void Load(const_path_t) | |
void | LocateViewPosition (u32) |
定位视图顶端至指定竖直位置(行数)。 | |
void | Refresh (PaintEventArgs &&) override |
刷新:按指定参数绘制界面并更新状态。 | |
void | Reset () |
void | UpdateData (u32) |
void | UpdateView (bool=false) |
更新视图。 | |
额外继承的成员函数 | |
![]() | |
typedef std::uintptr_t | IndexType |
索引类型。 | |
typedef vector< char > | DataType |
显示数据类型。 | |
![]() | |
HexView (FontCache &=FetchDefaultFontCache()) | |
DefGetter (const ynothrow, SDst, ItemHeight, GetTextLineHeightExOf(TextState)) DefGetter(const ynothrow | |
取项目行高。 | |
![]() | |
IndexType | |
ItemNum | |
Drawing::TextState | TextState |
文本状态。 | |
DataType | datCurrent |
当前显示的数据。 | |
![]() | |
static yconstexpr size_t | ItemPerLine = 8 |
每行数据总数(字节)。 | |
typedef vector<char> HexView::DataType |
显示数据类型。
在文件 HexBrowser.h 第 102 行定义.
typedef std::uintptr_t HexView::IndexType |
索引类型。
在文件 HexBrowser.h 第 101 行定义.
typedef GValueEventArgs<bool> HexViewArea::ViewArgs |
|
inline |
void HexViewArea::LocateViewPosition | ( | u32 | line | ) |
|
override |
刷新:按指定参数绘制界面并更新状态。
在文件 HexBrowser.cpp 第 109 行定义.
参考 HexView::datCurrent,YSLib::Drawing::GetHorizontalOf(),h,HexView::ItemPerLine,YSLib::Drawing::PutLine(),HexView::TextState,yconstexpr , 以及 yunseq().
void HexViewArea::Reset | ( | ) |
void HexViewArea::UpdateData | ( | u32 | pos | ) |
void HexViewArea::UpdateView | ( | bool | is_active = false | ) |