|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
基本按钮。 更多...
#include <button.h>


Public 类型 | |
| enum | StyleItem : Styles::StyleItem { ThumbBackground, EndStyle } |
| 视觉样式项目。 更多... | |
Public 属性 | |
| 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 成员函数 | |
| 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 属性 | |
| CursorState | csCurrent |
| 指针设备光标状态。 更多... | |
Protected 属性 继承自 YSLib::UI::Control | |
| GetBoundControlPtr | |
Private 属性 | |
| Drawing::Hue | hue = 180 |
相关函数 | |
(请注意: 这些不是成员函数.) | |
| YF_API void | DecorateAsCloseButton (Thumb &) |
| 装饰 Thumb 为关闭按钮。 更多... | |
|
explicit |
构造:使用指定边界和色调。
|
explicitprotected |
无背景构造:使用指定边界。
在文件 button.cpp 第 89 行定义.
参考 csCurrent, YSLib::UI::Invalidate(), YSLib::UI::Outside, YSLib::UI::Over, YSLib::UI::Pressed , 以及 yunseq.

| YSLib::UI::Thumb::DefDeMoveCtor | ( | Thumb | ) | const |
判断按钮当前是否处于按下状态。
装饰 Thumb 为关闭按钮。
在指定 Thumb 上增加 Click 事件响应:关闭父容器;增加 Paint 事件响应:绘制“×”。
在文件 button.cpp 第 127 行定义.
|
protected |