|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
下拉列表。 更多...
#include <ComboList.h>


Public 类型 | |
| using | ListType = ListBox::ListType |
| using | ViewArgs = ListBox::ViewArgs |
| 视图参数类型。 更多... | |
| using | HViewEvent = ListBox::HViewEvent |
| 视图事件委托类型。 更多... | |
| using | iterator = ystdex::subscriptive_iterator< DropDownList, IWidget > |
Public 类型 继承自 YSLib::UI::Thumb | |
| enum | StyleItem : Styles::StyleItem { ThumbBackground, EndStyle } |
| 视觉样式项目。 更多... | |
Public 属性 | |
| const ListType | List |
| const ListType lbContent | HViewEvent |
| const ListType lbContent | ViewChanged |
| const ListType lbContent lbContent | HIndexEvent |
| const ListType lbContent lbContent | Confirmed |
| const ListType lbContent lbContent lbContent | AdjustViewForContent |
Public 属性 继承自 YSLib::UI::Thumb | |
| Pressed | |
Public 属性 继承自 YSLib::UI::Widget | |
| HBrush | Background |
| 背景。 更多... | |
| Color | ForeColor = Drawing::ColorSpace::Black |
| 默认前景色。 更多... | |
| WidgetRange | |
| Children | |
| AController | Controller |
| AController *controller_ptr Renderer | Renderer |
| AController *controller_ptr Renderer *renderer_ptr View | View |
| AController *controller_ptr Renderer *renderer_ptr View *view_ptr | SPos |
| AController *controller_ptr Renderer *renderer_ptr View *view_ptr | X |
| AController *controller_ptr Renderer *renderer_ptr View *view_ptr | Y |
| AController *controller_ptr Renderer *renderer_ptr View *view_ptr | Height |
| AController *controller_ptr Renderer *renderer_ptr View *view_ptr | Width |
Protected 属性 | |
| ListBox | lbContent |
Protected 属性 继承自 YSLib::UI::Thumb | |
| CursorState | csCurrent |
| 指针设备光标状态。 更多... | |
Protected 属性 继承自 YSLib::UI::Control | |
| GetBoundControlPtr | |
Protected 属性 继承自 YSLib::UI::MLabel | |
| Drawing::Font | Font |
| 字体。 更多... | |
| Drawing::Padding | Margin |
| 文本和容器的间距。 更多... | |
| TextAlignment | HorizontalAlignment |
| 文本水平和竖直对齐属性。 更多... | |
| TextAlignment | VerticalAlignment |
| bool | AutoWrapLine |
| 启用自动换行。 更多... | |
| String | Text |
| 标签文本。 更多... | |
| Color | |
额外继承的成员函数 | |
Protected 成员函数 继承自 YSLib::UI::Thumb | |
| Thumb (const Rect &, ystdex::raw_tag) | |
| 无背景构造:使用指定边界。 更多... | |
Protected 成员函数 继承自 YSLib::UI::Control | |
| Control (const Rect &, HBrush, Drawing::Color=Drawing::ColorSpace::Black) | |
| 构造:使用指定边界、背景画刷和前景色。 更多... | |
| Control (const Control &) | |
| 复制构造:除容器为空外深复制。 更多... | |
| DefDeMoveCtor (Control) virtual PDefH(IWidget * | |
| 取按键-指针设备输入默认事件组映射。 更多... | |
| const KeyInput & | ImplRet (nullptr) void OnTouch_Close(CursorEventArgs &&) |
| 处理屏幕事件:关闭显示。 更多... | |
Protected 成员函数 继承自 YSLib::UI::MLabel | |
| MLabel (const Drawing::Font &={}, TextAlignment=TextAlignment::Left) | |
| 构造:使用指定字体。 更多... | |
| DefDeMoveCtor (MLabel) virtual DefDeDtor(MLabel) void DrawText(const Size & | |
| 绘制文本。 更多... | |
| const PaintContext &virtual void | DrawClippedText (const Graphics &, const Rect &, Drawing::TextState &) |
| 绘制剪切文本:使用指定的图形接口上下文、相对于部件的边界和文本状态。 更多... | |
相关函数 继承自 YSLib::UI::Thumb | |
| YF_API void | DecorateAsCloseButton (Thumb &) |
| 装饰 Thumb 为关闭按钮。 更多... | |
| using YSLib::UI::DropDownList::iterator = ystdex::subscriptive_iterator<DropDownList, IWidget> |
在文件 ComboList.h 第 247 行定义.
在文件 ComboList.h 第 233 行定义.
|
explicit |
在文件 ComboList.cpp 第 179 行定义.
|
override |
析构:分离顶层子部件。
| const ListType lbContent lbContent YSLib::UI::DropDownList::DefEventGetterMem | ( | ynothrow | , |
| HIndexEvent | , | ||
| Selected | , | ||
| lbContent | |||
| ) |
取项目选择状态变更事件。
取项目选中确定事件。
| const ListType lbContent YSLib::UI::DropDownList::DefGetterMem | ( | ynothrow | , |
| ListType & | , | ||
| ListRef | , | ||
| lbContent | |||
| ) |
取视图变更事件。
| const ListType lbContent lbContent lbContent YSLib::UI::DropDownList::DefSetterMem | ( | const shared_ptr< ListType > & | , |
| List | , | ||
| lbContent | |||
| ) |
设置文本列表。
按内容大小依次调整列表视图中选中和首个项目的索引。
| YSLib::UI::DropDownList::DefWidgetMemberIteration | ( | lbContent | ) | const |
|
overridevirtual |
分离顶层子部件。
刷新:按指定参数绘制界面并更新状态。
重载 YSLib::UI::Widget .
在文件 ComboList.cpp 第 255 行定义.
参考 YSLib::UI::Thumb::csCurrent, YSLib::Drawing::DrawArrow(), YSLib::UI::Widget::ForeColor, lbContent, YSLib::UI::Pressed, YSLib::Drawing::RDeg270 , 以及 YSLib::UI::Widget::Refresh().

在文件 ComboList.h 第 299 行定义.
在文件 ComboList.h 第 285 行定义.
在文件 ComboList.h 第 285 行定义.
在文件 ComboList.h 第 275 行定义.
|
protected |
| const ListType YSLib::UI::DropDownList::List |
在文件 ComboList.h 第 268 行定义.
在文件 ComboList.h 第 275 行定义.