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
,
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
)
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
:
77
Drawing::Rotation
Rotation
;
78
83
explicit
84
BufferedTextArea
(
const
Drawing::Rect
& = {},
HBrush
= MakeBlankBrush(),
85
Drawing::Color
=
Drawing::ColorSpace::Black
);
90
BufferedTextArea
(
const
Drawing::Rect
&,
Drawing::FontCache
&,
91
HBrush
= MakeBlankBrush(),
Drawing::Color
=
Drawing::ColorSpace::Black
);
92
DefDeMoveCtor
(
BufferedTextArea
)
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
YSLib::UI::Refresh
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
YSLib::UI::BufferedTextArea::Rotation
Drawing::Rotation Rotation
屏幕指向。
Definition:
textarea.h:77
YModules.h
YSLib::UI::PaintEventArgs
部件绘制参数。
Definition:
ywgtevt.h:276
YF_API
#define YF_API
Definition:
Platform.h:64
YSLib::UI::TextArea::Rotation
Drawing::Rotation Rotation
屏幕指向。
Definition:
textarea.h:49
platform::Consoles::Black
Definition:
Video.h:460
YSLib::Drawing::FontCache
字体缓存。
Definition:
Font.h:415
YSLib::Drawing::TextState
文本状态。
Definition:
TextBase.h:87
YSLib::Drawing::TextRenderer
文本渲染器:简单实现。
Definition:
TextRenderer.h:361
YSLib::Drawing::Rect
屏幕标准矩形:表示屏幕矩形区域。
Definition:
ygdibase.h:416
YSLib::UI::HBrush
std::function< void(PaintEventArgs &&)> HBrush
画刷回调函数。
Definition:
YComponent.h:104
YSLib::UI::BufferedTextArea
缓冲文本区域。
Definition:
textarea.h:74
YSLib::UI::TextArea
文本区域。
Definition:
textarea.h:45
YSLib::UI::DefDeMoveCtor
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
platform::Color
颜色。
Definition:
Video.h:339
YSLib::Drawing::TextRegion
文本区域。
Definition:
TextRenderer.h:449
YSLib::Drawing::Rotation
const Graphics const Size const Point const Point const Size Rotation
Definition:
ygdi.h:400
YSLib::UI::Widget
部件。
Definition:
ywidget.h:356
YFramework
include
YSLib
UI
textarea.h
生成于 2014年 五月 30日 星期五 00:14:51 , 为 YSTest使用
1.8.7