YSTest: YComponent.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

YComponent.h
浏览该文件的文档.
1 /*
2 © 2010-2016, 2019 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_UI_YComponent_h_
29 #define YSL_INC_UI_YComponent_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_YGraphics // for ystdex::optional_function;
33 #include YFM_YSLib_Core_YFunc
34 #include YFM_YSLib_Core_YMessageDefinition
35 #include <typeinfo> // for mandated header;
36
37 namespace YSLib
38 {
39
45 namespace Drawing
46 {
47
49 class Image;
50
51 } // namespace Drawing;
52
53 namespace UI
54 {
55
56 class AController;
58 struct CursorEventArgs;
60 class GUIState;
61 FwdDeclI(IWidget)
63
64 struct InputEventArgs;
65 struct KeyEventArgs;
66 struct PaintEventArgs;
67 class Renderer;
68 struct RoutedEventArgs;
69 struct UIEventArgs;
70 class WidgetController;
72 class Panel;
74
75
76 //类型别名。
81 using HBrush = ystdex::optional_function<void(PaintEventArgs&&)>;
82
83
85 using Drawing::Pixel;
86 using Drawing::BitmapPtr;
87 using Drawing::ConstBitmapPtr;
88 using Drawing::Color;
89
90 using Drawing::Point;
91 using Drawing::Vec;
92 using Drawing::Size;
93 using Drawing::Rect;
94
95 using Drawing::Graphics;
97 using Drawing::PaintContext;
98
99 } // namespace UI;
100
102 namespace Messaging
103 {
104
106 DefMessageTarget(SM_Paint, shared_ptr<UI::IWidget>)
107
108 } // namespace Messaging;
109
110 } // namespace YSLib;
111
112 #endif
113
YSLib::Drawing::Color
The boundary is out of the const Rect SDst SPos SPos SPos Color
Definition: YDraw.h:128
YSLib::Drawing::Size
屏幕区域大小。
Definition: YGDIBase.h:536
YSLib::UI::Panel
面板。
Definition: YPanel.h:46
YSLib::UI::FwdDeclI
FwdDeclI(IWidget) struct InputEventArgs
YSLib::Drawing::Graphics
GGraphics< BitmapPtr > Graphics
Definition: YGraphics.h:163
YSLib::UI::InputEventArgs
输入事件参数类。
Definition: YWidgetEvent.h:140
ystdex::function_base
函数包装类模板。
Definition: function.hpp:578
YSLib::UI::RoutedEventArgs
路由事件参数基类。
Definition: YWidgetEvent.h:100
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: YGDIBase.h:520
YSLib::UI::Renderer
部件渲染器。
Definition: YRenderer.h:47
YSLib::UI::KeyEventArgs
按键输入事件参数类。
Definition: YWidgetEvent.h:193
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:788
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:46
SM_Paint
#define SM_Paint
Definition: YMessageDefinition.h:65
YModules.h
YSLib 用户界面模块配置文件。
YSLib::UI::UIEventArgs
用户界面事件参数基类。
Definition: YWidgetEvent.h:61
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition: YWidgetEvent.h:330
YSLib::UI::WidgetController
部件控制器。
Definition: YWidgetEvent.h:733
YSLib::Drawing::ConstBitmapPtr
const Pixel * ConstBitmapPtr
Definition: YGraphics.h:44
YSLib::Drawing::Vec
GBinaryGroup< SPos > Vec
屏幕二维向量（直角坐标表示）。
Definition: YGDIBase.h:527
DefMessageTarget
#define DefMessageTarget(_id, _type)
Definition: YMessageDefinition.h:74
YSLib::Drawing::BitmapPtr
Pixel * BitmapPtr
Definition: YGraphics.h:42