YSTest: TextArea.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

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

- 文件列表
- 文件成员

TextArea.h
浏览该文件的文档.
1 /*
2 © 2011-2015 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_TextArea_h_
29 #define YSL_INC_UI_TextArea_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YWidget
33 //#include YFM_YSLib_Service_YResource
34 #include YFM_YSLib_Service_TextRenderer
35
36 namespace YSLib
37 {
38
39 namespace UI
40 {
41
45 class YF_API TextArea : public Widget,
46 public Drawing::TextState, public Drawing::TextRenderer
47 {
48 public:
49 Drawing::Rotation Rotation;
50
55 explicit
56 TextArea(const Drawing::Rect& = {}, HBrush = MakeBlankBrush(),
57 Drawing::Color = Drawing::ColorSpace::Black);
62 TextArea(const Drawing::Rect&, Drawing::FontCache&,
63 HBrush = MakeBlankBrush(), Drawing::Color = Drawing::ColorSpace::Black);
64 DefDeMoveCtor(TextArea)
69 ~TextArea() override;
70
71 using Widget::GetWidth;
72 using Widget::GetHeight;
73 };
74
75
79 class YF_API BufferedTextArea : public Widget, public Drawing::TextRegion
80 {
81 public:
82 Drawing::Rotation Rotation;
83
88 explicit
89 BufferedTextArea(const Drawing::Rect& = {}, HBrush = MakeBlankBrush(),
90 Drawing::Color = Drawing::ColorSpace::Black);
95 BufferedTextArea(const Drawing::Rect&, Drawing::FontCache&,
96 HBrush = MakeBlankBrush(), Drawing::Color = Drawing::ColorSpace::Black);
97 DefDeMoveCtor(BufferedTextArea)
98
99 using Widget::GetWidth;
100 using Widget::GetHeight;
101
106 void
107 Refresh(PaintEventArgs&&) override;
108 };
109
110 } // namespace UI;
111
112 } // namespace YSLib;
113
114 #endif
115
YSLib::Drawing::GetHeight
tr GetHeight())) inline PDefH(void
按字体高度和行距调整文本区域的底边距。
YSLib::Drawing::TextRegion
文本区域。
Definition: TextRenderer.h:490
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
UI
YSLib::Drawing::FontCache
字体缓存。
Definition: Font.h:460
YSLib::UI::BufferedTextArea::Rotation
Drawing::Rotation Rotation
屏幕指向。
Definition: TextArea.h:82
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:167
YSLib::UI::Widget
部件。
Definition: YWidget.h:369
YSLib::Drawing::TextState
文本状态。
Definition: TextBase.h:86
YSLib::UI::TextArea
文本区域。
Definition: TextArea.h:45
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::UI::HBrush
std::function< void(PaintEventArgs &&)> HBrush
画刷回调函数。
Definition: YComponent.h:81
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition: YWidgetEvent.h:323
YSLib::Drawing::Rotation
Rotation
逆时针旋转角度指示输出指向。
Definition: YGDIBase.h:895
platform::Color
颜色。
Definition: Video.h:416
YModules.h
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
YSLib::Consoles::Black
Definition: YConsole.h:53
YSLib::Drawing::TextRenderer
文本渲染器：简单实现。
Definition: TextRenderer.h:398
YSLib::UI::TextArea::Rotation
Drawing::Rotation Rotation
屏幕指向。
Definition: TextArea.h:49
YSLib::UI::BufferedTextArea
缓冲文本区域。
Definition: TextArea.h:79