28 #ifndef YSL_INC_UI_ComboList_h_
29 #define YSL_INC_UI_ComboList_h_ 1
32 #include YFM_YSLib_UI_TextList
33 #include YFM_YSLib_UI_Scroll
34 #include YFM_YSLib_Service_FileSystem
71 ListBox(
const Rect& = {},
const shared_ptr<ListType>& = {});
90 DefEventGetter(ynothrow, HIndexEvent, Selected, tlContent.Selected) \
99 DefSetterMem(const shared_ptr<ListType>&, List, tlContent)
182 operator=(const IO::
Path&);
189 operator/=(const
String&);
195 operator/=(const IO::Path&);
214 SetPath(const IO::Path&);
291 DefSetterMem(const shared_ptr<ListType>&, List, lbContent)
#define DefEventGetter(_q, _tEventHandler, _name, _member)
定义事件访问器。
#define ImplBodyMem(_m, _n,...)
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
#define DefWidgetMemberIteration(...)
定义部件成员下标及部件成员迭代器起始、终止和范围操作。
#define DefWidgetMemberIterationBase(_tBase,...)
定义基于基类的部件成员下标及部件成员迭代器起始、终止和范围操作。
TextList::HViewEvent HViewEvent
void UpdateView(TextList &tl, bool is_active)
GIHEvent< UIEventArgs && > ItemType
TextList::ViewArgs ViewArgs
IO::Path pthDirectory
目录的完整路径。
#define DefGetter(_q, _t, _n,...)
#define DefSetterMem(_t, _n, _m)
PDefH(void, Activate, Console &console, Drawing::Color fc=Drawing::ColorSpace::White) ImplExpr(Activate(console
激活:使用指定屏幕、有效性、前景色和默认背景色。
void SetSelected(ListType::size_type)
按指定项目索引设置选中项目。
YSLib 标准字符串(使用 UCS-2 作为内部编码)。
ListBox::ViewArgs ViewArgs
视图参数类型。
TextList::IndexType IndexType
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
void AdjustViewForContent()
按内容大小依次调整视图中选中和首个项目的索引,然后按需调整竖直偏移量。
ListBox::HViewEvent HViewEvent
视图事件委托类型。
Selected const shared_ptr< ListType > const pair< Color, Color > viewer Contains
ListBox::ListType ListType
DefGetterMem(const ynothrow, ListType::size_type, SelectedIndex, viewer) SDst GetFullViewHeight() const
取完整视图高。
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
#define DefEventGetterMem(_q, _tEventHandler, _name, _member)
void AdjustViewLength()
调整视图长度。
#define DefPredMem(_q, _n, _m)
Selected const shared_ptr< ListType > const pair< Color, Color > Selected
TextList::ListType ListType
GValueEventArgs< bool > ViewArgs
视图参数类型。
TextList::ItemType ItemType