YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::UI::FileBox类 参考

文件列表框。 更多...

#include <ComboList.h>

类 YSLib::UI::FileBox 继承关系图:
YSLib::UI::FileBox 的协作图:

Public 成员函数

 FileBox (const Rect &={})
 
 DefDeMoveCtor (FileBox) bool operator
 导航至绝对路径。 更多...
 
bool operator/= (const String &)
 导航至子目录。 更多...
 
bool operator/= (const IO::Path &)
 导航至相对路径。 更多...
 
ListType ListItems () const
 遍历目录中的项目,更新至列表。 更多...
 
- Public 成员函数 继承自 YSLib::UI::ListBox
 ListBox (const Rect &={}, const shared_ptr< ListType > &={})
 
 DefDeMoveCtor (ListBox) DefWidgetMemberIterationBase(ScrollableContainer
 
tlContent DefPredMem (const ynothrow, Selected, tlContent) PDefH(bool
 
tlContent ListType::size_type i ImplBodyMem (tlContent, Contains, i) DefGetterMem(const ynothrow
 
tlContent ListType::size_type
i tlContent 
DefGetterMem (const ynothrow, ListType::size_type, SelectedIndex, tlContent) DefGetterMem(const ynothrow
 
tlContent ListType::size_type
i tlContent const ListType
tlContent 
DefGetterMem (ynothrow, ListType &, ListRef, tlContent) DefEventGetter(ynothrow
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged 
DefEventGetter (ynothrow, HIndexEvent, Selected, tlContent.Selected) DefEventGetter(ynothrow
 < 视图变更事件。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed 
DefSetterMem (const shared_ptr< ListType > &, List, tlContent) PDefH(void
 < 项目选中确定事件。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
ImplBodyMem (tlContent, SetSelected, i) PDefH(void
 按内容大小依次调整列表视图中选中和首个项目的索引。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
ImplBodyMem (tlContent, AdjustViewForContent,) PDefH(void
 调整视图长度。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
ImplBodyMem (tlContent, AdjustViewLength,) PDefH(void
 清除选中项。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
ImplBodyMem (tlContent, ClearSelected,) PDefH(IndexType
 查找项。 更多...
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
i const ItemType &text 
ImplBodyMem (tlContent, Find, text) PDefH(void
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
i const ItemType &text 
ImplBodyMem (tlContent, ResetView,) void ResizeForPreferred(const Size &sup
 按指定大小上限和内容调整大小。 更多...
 
- Public 成员函数 继承自 YSLib::UI::ScrollableContainer
 ScrollableContainer (const Rect &={})
 
 DefDeMoveCtor (ScrollableContainer) DefWidgetMemberIteration(hsbHorizontal
 
- Public 成员函数 继承自 YSLib::UI::Widget
 Widget (const Rect &={})
 
 Widget (const Rect &, HBrush, 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 &)
 复制构造:除容器指针为空外深复制。 更多...
 
 DefDelMoveCtor (Widget) virtual ~Widget()
 since build 428 更多...
 
 ImplI (IWidget) DefGetter(override
 
 WidgetRange ()) static HBrush MakeBlankBrush()
 取空白画刷。 更多...
 
 ImplI (IWidget) DefGetter(const override
 
AController *controller_ptr DefGetterMem (const ynothrow, SDst, Height, GetView()) ImplI(IWidget) DefGetter(const override
 
AController *controller_ptr
Renderer *renderer_ptr 
ImplI (IWidget) DefGetter(const override
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
DefGetterMem (const ynothrow, SDst, Width, GetView()) DefGetterMem(const ynothrow
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) DefGetterMem(const ynothrow
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) DefSetterMem(SDst
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) DefSetterMem(SDst
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) DefSetterMem(SDst
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) DefSetterMem(SDst
 
AController *controller_ptr
Renderer *renderer_ptr View
*view_ptr 
GetView ()) void SetRenderer(unique_ptr< Renderer >)
 设置渲染器为指定指针指向的对象,同时更新渲染器状态。 更多...
 
void SetView (unique_ptr< View > &&)
 设置渲染器为指定指针指向的对象,同时更新渲染器状态。 更多...
 
virtual void Refresh (PaintEventArgs &&)
 刷新:按指定参数绘制界面并更新状态。 更多...
 

Public 属性

DefGetter(const ynothrow,
const IO::Path &, Directory,
pthDirectory) IO bool 
SetPath (const IO::Path &)
 取目录的完整路径。 更多...
 
- Public 属性 继承自 YSLib::UI::ListBox
tlContent Contains
 
tlContent ListType::size_type i HeadIndex
 
tlContent ListType::size_type
i tlContent const ListType 
List
 
tlContent ListType::size_type
i tlContent const ListType
tlContent 
HViewEvent
 
tlContent ListType::size_type
i tlContent const ListType
tlContent 
ViewChanged
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged 
HIndexEvent
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged 
Confirmed
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed 
SetSelected
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
AdjustViewForContent
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
AdjustViewLength
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
ClearSelected
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
Find
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
i const ItemType &text 
ResetView
 
tlContent ListType::size_type
i tlContent const ListType
tlContent tlContent
ViewChanged tlContent
Confirmed ListType::size_type
i const ItemType &text Size 
s = {})
 
- 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 属性

IO::Path pthDirectory
 目录的完整路径。 更多...
 
- Protected 属性 继承自 YSLib::UI::ListBox
TextList tlContent
 
- Protected 属性 继承自 YSLib::UI::ScrollableContainer
HorizontalScrollBar hsbHorizontal
 控制水平可视区域的水平滚动条。 更多...
 
VerticalScrollBar vsbVertical
 控制竖直可视区域的竖直滚动条。 更多...
 
- Protected 属性 继承自 YSLib::UI::Control
 GetBoundControlPtr
 

额外继承的成员函数

- Public 类型 继承自 YSLib::UI::ListBox
using ListType = TextList::ListType
 
using ViewArgs = TextList::ViewArgs
 
using HViewEvent = TextList::HViewEvent
 
using IndexType = TextList::IndexType
 
using ItemType = TextList::ItemType
 
using iterator = ystdex::subscriptive_iterator< ListBox, IWidget >
 
- Public 类型 继承自 YSLib::UI::ScrollableContainer
using iterator = ystdex::subscriptive_iterator< ScrollableContainer, IWidget >
 
- Protected 成员函数 继承自 YSLib::UI::ScrollableContainer
Size FixLayout (const Size &)
 固定布局。 更多...
 
- 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 &&)
 处理屏幕事件:关闭显示。 更多...
 

详细描述

文件列表框。

自从
build 205

在文件 ComboList.h162 行定义.

构造及析构函数说明

YSLib::UI::FileBox::FileBox ( const Rect r = {})
explicit
自从
build 337

在文件 ComboList.cpp114 行定义.

参考 YSLib::UI::ListBox::Contains, ListItems(), YSLib::UI::ListBox::ResetView , 以及 YSLib::UI::UpdateView().

函数调用图:

成员函数说明

YSLib::UI::FileBox::DefDeMoveCtor ( FileBox  )

导航至绝对路径。

自从
build 414
FileBox::ListType YSLib::UI::FileBox::ListItems ( ) const

遍历目录中的项目,更新至列表。

自从
build 414

在文件 ComboList.cpp169 行定义.

参考 YSLib::IO::ListFiles() , 以及 pthDirectory.

参考自 FileBox().

函数调用图:

这是这个函数的调用关系图:

bool YSLib::UI::FileBox::operator/= ( const String d)

导航至子目录。

自从
build 414

在文件 ComboList.cpp146 行定义.

参考 pthDirectory.

bool YSLib::UI::FileBox::operator/= ( const IO::Path d)

导航至相对路径。

自从
build 414

在文件 ComboList.cpp151 行定义.

参考 pthDirectory.

类成员变量说明

IO::Path YSLib::UI::FileBox::pthDirectory
protected

目录的完整路径。

自从
build 414

在文件 ComboList.h169 行定义.

参考自 ListItems() , 以及 operator/=().

bool YSLib::UI::FileBox::SetPath

取目录的完整路径。

自从
build 414

取当前选中项的路径。

设置路径,若成功则刷新列表。

返回
是否成功。
自从
build 298

在文件 ComboList.h214 行定义.


该类的文档由以下文件生成: