OpenClonk
C4MarkupTag Class Referenceabstract

#include <C4Markup.h>

Inheritance diagram for C4MarkupTag:
[legend]
Collaboration diagram for C4MarkupTag:
[legend]

Public Member Functions

 C4MarkupTag ()=default
 
virtual ~C4MarkupTag ()=default
 
virtual void Apply (C4BltTransform &rBltTrf, bool fDoClr, DWORD &dwClr)=0
 
virtual const char * TagName () const =0
 
virtual std::string OpeningTag () const
 
virtual std::string ClosingTag () const
 

Public Attributes

C4MarkupTagpPrev {nullptr}
 
C4MarkupTagpNext {nullptr}
 

Detailed Description

Definition at line 22 of file C4Markup.h.

Constructor & Destructor Documentation

◆ C4MarkupTag()

C4MarkupTag::C4MarkupTag ( )
default

◆ ~C4MarkupTag()

virtual C4MarkupTag::~C4MarkupTag ( )
virtualdefault

Member Function Documentation

◆ Apply()

virtual void C4MarkupTag::Apply ( C4BltTransform rBltTrf,
bool  fDoClr,
DWORD dwClr 
)
pure virtual

Implemented in C4MarkupTagColor, and C4MarkupTagItalic.

Referenced by C4Markup::Apply(), C4MarkupTagColor::C4MarkupTagColor(), and C4MarkupTagItalic::C4MarkupTagItalic().

Here is the caller graph for this function:

◆ ClosingTag()

std::string C4MarkupTag::ClosingTag ( ) const
virtual

Definition at line 29 of file C4Markup.cpp.

References s.

30 {
31  return "</"s + TagName() + ">";
32 }
virtual const char * TagName() const =0
#define s

◆ OpeningTag()

std::string C4MarkupTag::OpeningTag ( ) const
virtual

Reimplemented in C4MarkupTagColor.

Definition at line 24 of file C4Markup.cpp.

References s.

Referenced by C4MarkupTagColor::TagName().

25 {
26  return "<"s + TagName() + ">";
27 }
virtual const char * TagName() const =0
#define s
Here is the caller graph for this function:

◆ TagName()

virtual const char* C4MarkupTag::TagName ( ) const
pure virtual

Implemented in C4MarkupTagColor, and C4MarkupTagItalic.

Member Data Documentation

◆ pNext

C4MarkupTag * C4MarkupTag::pNext {nullptr}

Definition at line 25 of file C4Markup.h.

Referenced by C4Markup::Apply(), and C4Markup::~C4Markup().

◆ pPrev

C4MarkupTag* C4MarkupTag::pPrev {nullptr}

Definition at line 25 of file C4Markup.h.


The documentation for this class was generated from the following files: