NW4F Sys
Loading...
Searching...
No Matches
font_TagProcessorBase.h
Go to the documentation of this file.
1
#
ifndef
NW_FONT_TAGPROCESSORBASE_H_
2
#
define
NW_FONT_TAGPROCESSORBASE_H_
3
4
#
include
<
nw
/
ut
/
ut_Rect
.
h
>
5
#
include
<
nw
/
ut
/
ut_RuntimeTypeInfo
.
h
>
6
7
namespace
nw
{
namespace
font
{
8
9
template
<
typename
CharType>
10
struct
PrintContext
;
11
12
template
<
typename
CharType>
13
class
TagProcessorBase
14
{
15
public
:
16
NW_UT_RUNTIME_TYPEINFO_ROOT
()
17
18
typedef
PrintContext
<CharType>
ContextType
;
19
20
enum
Operation
21
{
22
OPERATION_DEFAULT
,
23
OPERATION_NO_CHAR_SPACE
,
24
OPERATION_CHAR_SPACE
,
25
OPERATION_NEXT_LINE
,
26
OPERATION_END_DRAW
,
27
NUM_OF_OPERATION
28
};
29
30
TagProcessorBase
();
31
virtual
~
TagProcessorBase
();
32
33
virtual
Operation
Process
(u16 code,
ContextType
* pContext);
34
virtual
Operation
CalcRect
(
ut
::
Rect
* pRect, u16 code,
ContextType
* pContext);
35
36
private
:
37
void
ProcessLinefeed
(
ContextType
* pContext);
38
void
ProcessTab
(
ContextType
* pContext);
39
};
40
41
} }
// namespace nw::font
42
43
#
endif
// NW_FONT_TAGPROCESSORBASE_H_
nw::font::TagProcessorBase
Definition
font_TagProcessorBase.h:14
nw::font::TagProcessorBase::Process
virtual Operation Process(u16 code, ContextType *pContext)
nw::font::TagProcessorBase::CalcRect
virtual Operation CalcRect(ut::Rect *pRect, u16 code, ContextType *pContext)
nw::font::TagProcessorBase::ProcessLinefeed
void ProcessLinefeed(ContextType *pContext)
nw::font::TagProcessorBase::~TagProcessorBase
virtual ~TagProcessorBase()
nw::font::TagProcessorBase::ContextType
PrintContext< CharType > ContextType
Definition
font_TagProcessorBase.h:18
nw::font::TagProcessorBase::ProcessTab
void ProcessTab(ContextType *pContext)
nw::font::TagProcessorBase::TagProcessorBase
TagProcessorBase()
nw::font::TagProcessorBase::Operation
Operation
Definition
font_TagProcessorBase.h:21
nw::font::TagProcessorBase::NUM_OF_OPERATION
@ NUM_OF_OPERATION
Definition
font_TagProcessorBase.h:27
nw::font::TagProcessorBase::OPERATION_NEXT_LINE
@ OPERATION_NEXT_LINE
Definition
font_TagProcessorBase.h:25
nw::font::TagProcessorBase::OPERATION_CHAR_SPACE
@ OPERATION_CHAR_SPACE
Definition
font_TagProcessorBase.h:24
nw::font::TagProcessorBase::OPERATION_DEFAULT
@ OPERATION_DEFAULT
Definition
font_TagProcessorBase.h:22
nw::font::TagProcessorBase::OPERATION_NO_CHAR_SPACE
@ OPERATION_NO_CHAR_SPACE
Definition
font_TagProcessorBase.h:23
nw::font::TagProcessorBase::OPERATION_END_DRAW
@ OPERATION_END_DRAW
Definition
font_TagProcessorBase.h:26
nw::font
Definition
font_TagProcessorBase.h:7
nw::ut
Definition
ut_CriticalSection.h:6
nw
Definition
math_Constant.cpp:5
nw::font::PrintContext
Definition
font_TagProcessorBase.h:10
nw::ut::Rect
Definition
ut_Rect.h:9
NW_UT_RUNTIME_TYPEINFO_ROOT
#define NW_UT_RUNTIME_TYPEINFO_ROOT()
Definition
ut_RuntimeTypeInfo.h:8
include
nw
font
font_TagProcessorBase.h
Generated by
1.14.0