|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
复选按钮。 更多...
#include <Selector.h>


Public 成员函数 | |
| CheckButton (const Rect &={}) | |
| 构造:使用指定边界。 | |
| void | Refresh (PaintEventArgs &&) override |
| 刷新:按指定参数绘制界面并更新状态。 | |
Public 成员函数 继承自 YSLib::UI::CheckBox | |
| CheckBox (const Rect &={}) | |
| 构造:使用指定边界。 | |
| CheckBox (CheckBox &&)=default | |
| bool | IsTicked () const ynothrow |
| GEvent< void(HTickedEvent::EventArgsType)> & | GetTicked () ynothrow |
| 复选框选中事件。 | |
| void | SetTicked (bool) |
| 设置选中状态并检查复选框选中事件。 | |
| void | Tick (bool) |
| 设置选中状态并触发复选框选中事件。 | |
Public 成员函数 继承自 YSLib::UI::Thumb | |
| Thumb (const Rect &={}, Drawing::Hue=180) | |
| 构造:使用指定边界和色调。 | |
| Thumb (Thumb &&)=default | |
| bool | IsPressed () 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 |
| 取控制器。 | |
| virtual WidgetRange | GetChildren () 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 > &&) |
| 设置渲染器为指定指针指向的对象,同时更新渲染器状态。 | |
Public 成员函数 继承自 YSLib::UI::IWidget | |
| virtual | ~IWidget () |
额外继承的成员函数 | |
Public 类型 继承自 YSLib::UI::CheckBox | |
| typedef GValueEventArgs< bool > | TickedArgs |
| 复选框选中状态参数类型。 | |
| typedef GHEvent< void(TickedArgs)> | HTickedEvent |
| 复选框选中事件委托类型。 | |
Public 属性 继承自 YSLib::UI::Control | |
| std::function< IWidget *(const KeyInput &)> | BoundControlPtr |
| 按键-指针设备输入事件组映射。 | |
Protected 成员函数 继承自 YSLib::UI::CheckBox | |
| void | PaintBox (const Graphics &, const Rect &) |
| 绘制复选框。 | |
Protected 属性 继承自 YSLib::UI::CheckBox | |
| bool | bTicked |
Protected 属性 继承自 YSLib::UI::MLabel | |
| Drawing::Font | Font |
| 字体。 | |
| Drawing::Padding | Margin |
| 文本和容器的间距。 | |
| TextAlignment | HorizontalAlignment |
| 文本水平和竖直对齐属性。 | |
| TextAlignment | VerticalAlignment |
| bool | AutoWrapLine |
| 启用自动换行。 | |
| String | Text |
| 标签文本。 | |
|
explicit |
构造:使用指定边界。
在文件 Selector.cpp 第 142 行定义.
参考 YSLib::UI::MLabel::Margin , 以及 YSLib::Drawing::Padding::Top.
|
overridevirtual |
刷新:按指定参数绘制界面并更新状态。
重载 YSLib::UI::CheckBox .
在文件 Selector.cpp 第 149 行定义.
参考 YSLib::UI::MLabel::DrawText(),YSLib::UI::Widget::ForeColor,YSLib::UI::GetSizeOf(),YSLib::Drawing::Padding::Left,YSLib::UI::MLabel::Margin , 以及 YSLib::UI::CheckBox::PaintBox().
