YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
textarea.h
浏览该文件的文档.
1 /*
2  Copyright by FrankHB 2011 - 2013.
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 "ywidget.h"
32 //#include "../Core/yres.h"
33 #include "../Service/TextRenderer.h"
34 
36 
38 
39 
42 class YF_API TextArea : public Widget,
43  public Drawing::TextState, public Drawing::TextRenderer
44 {
45 public:
47 
52  explicit
53  TextArea(const Drawing::Rect& = {});
59  inline DefDeMoveCtor(TextArea)
60 
61  using Widget::GetWidth;
62  using Widget::GetHeight;
63 };
64 
65 
69 class YF_API BufferedTextArea : public Widget, public Drawing::TextRegion
70 {
71 public:
73 
78  explicit
79  BufferedTextArea(const Drawing::Rect& = {});
86 
87  using Widget::GetWidth;
88  using Widget::GetHeight;
89 
94  void
95  Refresh(PaintEventArgs&&) override;
96 };
97 
99 
100 YSL_END
101 
102 #endif
103