YSTest: YComponent.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

YComponent.h
浏览该文件的文档.
1 /*
2 © 2010-2016 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
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 = std::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
YSLib 命名空间。
Definition: AndroidHost.h:45
platform::Color
颜色。
Definition: Video.h:451
DefMessageTarget
#define DefMessageTarget(_id, _type)
Definition: ymsgdef.h:75
YSLib::UI::FwdDeclI
FwdDeclI(IWidget) struct InputEventArgs
YSLib::Drawing::ConstBitmapPtr
const Pixel * ConstBitmapPtr
Definition: YGraphics.h:44
YSLib::UI::HBrush
std::function< void(PaintEventArgs &&)> HBrush
画刷回调函数。
Definition: YComponent.h:81
std
Definition: memory.hpp:1100
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
YSLib::Drawing::Size
屏幕区域大小。
Definition: YGDIBase.h:293
YSLib::Drawing::BitmapPtr
Pixel * BitmapPtr
Definition: YGraphics.h:42
Drawing
UI
YModules.h
SM_Paint
#define SM_Paint
Definition: ymsgdef.h:66
YSLib::Drawing::GGraphics
二维图形接口上下文模板。
Definition: YGraphics.h:62
YSLib::UI::Styles::Panel
面板背景。
Definition: YStyle.h:312
YSLib::Drawing::GBinaryGroup< SPos >