|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
带滚动条的文本列表框。 更多...
#include <ComboList.h>


Public 类型 | |
| typedef TextList::ListType | ListType |
| typedef TextList::ViewArgs | ViewArgs |
| typedef TextList::HViewEvent | HViewEvent |
| typedef TextList::IndexType | IndexType |
| typedef TextList::ItemType | ItemType |
| typedef ystdex::subscriptive_iterator < ListBox, IWidget > | Iterator |
Public 类型 继承自 YSLib::UI::ScrollableContainer | |
| typedef ystdex::subscriptive_iterator < ScrollableContainer, IWidget > | Iterator |
Public 成员函数 | |
| ListBox (const Rect &={}, const shared_ptr< ListType > &={}) | |
| ListBox (ListBox &&)=default | |
| Iterator | GetBegin () |
| Iterator | GetEnd () |
| WidgetRange | GetChildren () override |
| IWidget & | operator[] (size_t idx) ynoexcept |
| size_t | GetChildrenCount () const ynothrow |
| bool | IsSelected () const ynothrow |
| bool | Contains (ListType::size_type i) |
| ListType::size_type | GetHeadIndex () const ynothrow |
| ListType::size_type | GetSelectedIndex () const ynothrow |
| const ListType & | GetList () const ynothrow |
| ListType & | GetListRef () ynothrow |
| GEvent< void(HViewEvent::EventArgsType)> & | GetViewChanged () ynothrow |
| 视图变更事件。 | |
| GEvent< void(HIndexEvent::EventArgsType)> & | GetSelected () ynothrow |
| 项目选择状态变更事件。 | |
| GEvent< void(HIndexEvent::EventArgsType)> & | GetConfirmed () ynothrow |
| 项目选中确定事件。 | |
| void | SetList (const shared_ptr< ListType > &_tempArgName) |
| 设置文本列表。 | |
| void | SetSelected (ListType::size_type i) |
| 设置选中项。 | |
| void | AdjustViewForContent () |
| 按内容大小依次调整列表视图中选中和首个项目的索引。 | |
| void | AdjustViewLength () |
| 调整视图长度。 | |
| void | ClearSelected () |
| 清除选中项。 | |
| IndexType | Find (const ItemType &text) |
| 查找项。 | |
| void | ResetView () |
| void | ResizeForPreferred (const Size &sup, Size s={}) |
| 按指定大小上限和内容调整大小。 | |
| void | UpdateView () |
Public 成员函数 继承自 YSLib::UI::ScrollableContainer | |
| ScrollableContainer (const Rect &={}) | |
| ScrollableContainer (ScrollableContainer &&)=default | |
| Iterator | GetBegin () |
| Iterator | GetEnd () |
| WidgetRange | GetChildren () override |
| IWidget & | operator[] (size_t idx) ynoexcept |
| size_t | GetChildrenCount () const ynothrow |
Public 成员函数 继承自 YSLib::UI::Control | |
| Control (const Rect &={}) | |
| 构造:使用指定边界,默认背景(同 Widget 默认构造)。 | |
| Control (const Rect &, NoBackgroundTag) | |
| 构造:使用指定边界,无背景。 | |
| Control (const Control &) | |
| 复制构造:除容器为空外深复制。 | |
| Control (Control &&)=default | |
| virtual IWidget * | GetBoundControlPtr (const KeyInput &) |
| 取按键-指针设备输入默认事件组映射。 | |
| void | OnTouch_Close (TouchEventArgs &&) |
| 处理屏幕事件:关闭显示。 | |
Public 成员函数 继承自 YSLib::UI::Widget | |
| Widget (const Rect &={}, Color=Drawing::ColorSpace::White, Color=Drawing::ColorSpace::Black) | |
| template<typename _tView , typename _tRenderer , typename _tController > | |
| Widget (_tView &&pView_=make_unique< View >(), _tRenderer &&pRenderer_=make_unique< Renderer >(), _tController &&pController_={}) | |
| 构造:使用视图指针、渲染器指针和控制器指针,无背景。 | |
| Widget (const Widget &) | |
| 复制构造:除容器指针为空外深复制。 | |
| Widget (Widget &&)=default | |
| virtual | ~Widget () |
| 析构:虚实现。 | |
| SPos | GetX () const ynothrow |
| SPos | GetY () const ynothrow |
| SDst | GetWidth () const ynothrow |
| SDst | GetHeight () const ynothrow |
| virtual Renderer & | GetRenderer () const ynothrow |
| 取渲染器。 | |
| virtual View & | GetView () const ynothrow |
| 取部件视图。 | |
| virtual AController & | GetController () const override |
| 取控制器。 | |
| void | SetX (SDst _tempArgName) |
| void | SetY (SDst _tempArgName) |
| void | SetWidth (SDst _tempArgName) |
| void | SetHeight (SDst _tempArgName) |
| void | SetRenderer (unique_ptr< Renderer > &&) |
| 设置渲染器为指定指针指向的对象,同时更新渲染器状态。 | |
| void | SetView (unique_ptr< View > &&) |
| 设置渲染器为指定指针指向的对象,同时更新渲染器状态。 | |
| virtual void | Refresh (PaintEventArgs &&) |
| 刷新:按指定参数绘制界面并更新状态。 | |
Public 成员函数 继承自 YSLib::UI::IWidget | |
| virtual | ~IWidget () |
Protected 属性 | |
| TextList | tlContent |
Protected 属性 继承自 YSLib::UI::ScrollableContainer | |
| HorizontalScrollBar | hsbHorizontal |
| 控制水平可视区域的水平滚动条。 | |
| VerticalScrollBar | vsbVertical |
| 控制竖直可视区域的竖直滚动条。 | |
额外继承的成员函数 | |
Public 属性 继承自 YSLib::UI::Control | |
| std::function< IWidget *(const KeyInput &)> | BoundControlPtr |
| 按键-指针设备输入事件组映射。 | |
Protected 成员函数 继承自 YSLib::UI::ScrollableContainer | |
| Size | FixLayout (const Size &) |
| 固定布局。 | |
在文件 ComboList.h 第 50 行定义.
在文件 ComboList.h 第 52 行定义.
在文件 ComboList.h 第 54 行定义.
在文件 ComboList.h 第 56 行定义.
在文件 ComboList.h 第 48 行定义.
在文件 ComboList.h 第 49 行定义.
|
inlinedefault |
|
inline |
按内容大小依次调整列表视图中选中和首个项目的索引。
在文件 ComboList.h 第 111 行定义.
|
inline |
|
inline |
|
inline |
在文件 ComboList.h 第 75 行定义.
|
inline |
在文件 ComboList.h 第 72 行定义.
|
inlineoverridevirtual |
|
inline |
在文件 ComboList.h 第 72 行定义.
|
inline |
项目选中确定事件。
在文件 ComboList.h 第 89 行定义.
|
inline |
在文件 ComboList.h 第 72 行定义.
|
inline |
在文件 ComboList.h 第 78 行定义.
|
inline |
|
inline |
在文件 ComboList.h 第 84 行定义.
|
inline |
项目选择状态变更事件。
在文件 ComboList.h 第 87 行定义.
|
inline |
|
inline |
视图变更事件。
在文件 ComboList.h 第 85 行定义.
|
inline |
|
inline |
在文件 ComboList.h 第 72 行定义.
|
inline |
在文件 ComboList.h 第 138 行定义.
按指定大小上限和内容调整大小。
| sup | 指定调整的大小的上限,当为 Size() 时忽略大小限制。 |
| s | 指定大小,分量为 0 时对应分量大小由内容确定(其中宽度含边距)。 |
在文件 ComboList.cpp 第 90 行定义.
参考 YSL_BEGIN::defMinScrollBarWidth(),YSLib::Drawing::GetHorizontalOf(),YSLib::Drawing::Size::Height,SetSizeOf(),UpdateView(),YSLib::Drawing::Size::Width , 以及 yunseq().

|
inline |
|
inline |
|
inline |
|
protected |
在文件 ComboList.h 第 63 行定义.