YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
textarea.h
浏览该文件的文档.
1 /*
2  © 2011-2014 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,
47 {
48 public:
50 
55  explicit
56  TextArea(const Drawing::Rect& = {}, HBrush = MakeBlankBrush(),
63  HBrush = MakeBlankBrush(), Drawing::Color = Drawing::ColorSpace::Black);
65 
66  using Widget::GetWidth;
67  using Widget::GetHeight;
68 };
69 
70 
74 class YF_API BufferedTextArea : public Widget, public Drawing::TextRegion
75 {
76 public:
78 
83  explicit
84  BufferedTextArea(const Drawing::Rect& = {}, HBrush = MakeBlankBrush(),
91  HBrush = MakeBlankBrush(), Drawing::Color = Drawing::ColorSpace::Black);
93 
94  using Widget::GetWidth;
95  using Widget::GetHeight;
96 
101  void
102  Refresh(PaintEventArgs&&) override;
103 };
104 
105 } // namespace UI;
106 
107 } // namespace YSLib;
108 
109 #endif
110 
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
Drawing::Rotation Rotation
屏幕指向。
Definition: textarea.h:77
部件绘制参数。
Definition: ywgtevt.h:276
#define YF_API
Definition: Platform.h:64
Drawing::Rotation Rotation
屏幕指向。
Definition: textarea.h:49
字体缓存。
Definition: Font.h:415
文本状态。
Definition: TextBase.h:87
文本渲染器:简单实现。
Definition: TextRenderer.h:361
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
std::function< void(PaintEventArgs &&)> HBrush
画刷回调函数。
Definition: YComponent.h:104
缓冲文本区域。
Definition: textarea.h:74
文本区域。
Definition: textarea.h:45
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
颜色。
Definition: Video.h:339
const Graphics const Size const Point const Point const Size Rotation
Definition: ygdi.h:400
部件。
Definition: ywidget.h:356