28 #ifndef INC_YReader_HexBrowser_h_
29 #define INC_YReader_HexBrowser_h_ 1
33 #include YFM_YSLib_UI_Scroll
34 #include YFM_YSLib_Service_File
35 #include YFM_YSLib_Service_TextLayout
36 #include YFM_Helper_Initialization
72 operator=(unique_ptr<
File>&& file_ptr)
86 DefGetterMem(const ynothrow, ptrdiff_t, Position, GetSource())
90 GetSource().Seek(
args...))
92 DefFwdFn(const,
int, CheckEOF, GetSource().CheckEOF())
131 GetTextLineHeightExOf(TextState))
181 using HexView::GetItemHeight;
182 using HexView::GetItemNum;
static yconstexpr size_t ItemPerLine
每行数据总数(字节)。
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
#define DefPred(_q, _n,...)
yconstfn const string _tParams && args
DeclEvent(HViewEvent, ViewChanged) DeclEvent(HIndexEvent
视图变更事件。
void UpdateView(TextList &tl, bool is_active)
Drawing::TextState TextState
文本状态。
std::uint16_t SDst
屏幕坐标距离。
std::uintptr_t IndexType
索引类型。
#define DefGetter(_q, _t, _n,...)
#define DefFwdTmpl(_q, _t, _n,...)
传递模板。
#define DefFwdFn(_q, _t, _n,...)
传递函数。
PDefH(void, Activate, Console &console, Drawing::Color fc=Drawing::ColorSpace::White) ImplExpr(Activate(console
激活:使用指定屏幕、有效性、前景色和默认背景色。
不可复制对象:禁止派生类调用默认原型的复制构造函数和复制赋值操作符。
YF_API u16 FetchResizedLineN(const TextState &ts, SDst)
取指定文本状态和文本区域高所能显示的最大文本行数。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
HexModel(const char *path)
YF_API Drawing::FontCache & FetchDefaultFontCache()
取默认字体缓存。
DeclDelegate(HScrollEvent, ScrollEventArgs) class YF_API ATrack
轨道。
void LocateViewPosition(SDst)
定位视图顶端至指定竖直位置。
unsigned long Reset(COMPtr< _iCOM > &ptr) ynothrow
unique_ptr< File > pSource
文件数据源。
vector< char > DataType
显示数据类型。
const IWidget &wgt ImplRet(wgt.GetView().IsVisible()) bool YF_API Contains(const IWidget &
判断点是否在部件的可视区域内。
#define DefDeMoveAssignment(_t)
DefGetterMem(const ynothrow, ListType::size_type, SelectedIndex, viewer) SDst GetFullViewHeight() const
取完整视图高。
#define yconstexpr
指定编译时常量表达式。
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
DataType datCurrent
当前显示的数据。