OpenClonk
C4MarkupTagItalic Class Reference

#include <C4Markup.h>

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

Public Member Functions

 C4MarkupTagItalic ()
 
void Apply (C4BltTransform &rBltTrf, bool fDoClr, DWORD &dwClr) override
 
const char * TagName () const override
 
virtual std::string OpeningTag () const
 
virtual std::string ClosingTag () const
 

Public Attributes

C4MarkupTagpPrev {nullptr}
 
C4MarkupTagpNext {nullptr}
 

Detailed Description

Definition at line 37 of file C4Markup.h.

Constructor & Destructor Documentation

◆ C4MarkupTagItalic()

C4MarkupTagItalic::C4MarkupTagItalic ( )
inline

Definition at line 40 of file C4Markup.h.

References C4MarkupTag::Apply().

40 : C4MarkupTag() { } // ctor
C4MarkupTag()=default
Here is the call graph for this function:

Member Function Documentation

◆ Apply()

void C4MarkupTagItalic::Apply ( C4BltTransform rBltTrf,
bool  fDoClr,
DWORD dwClr 
)
overridevirtual

Implements C4MarkupTag.

Definition at line 34 of file C4Markup.cpp.

References C4BltTransform::mat.

35 {
36  // do sheering
37  rBltTrf.mat[1]-=0.3f;
38 }

◆ ClosingTag()

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

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
virtualinherited

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()

const char* C4MarkupTagItalic::TagName ( ) const
inlineoverridevirtual

Implements C4MarkupTag.

Definition at line 43 of file C4Markup.h.

43 { return "i"; }

Member Data Documentation

◆ pNext

C4MarkupTag * C4MarkupTag::pNext {nullptr}
inherited

Definition at line 25 of file C4Markup.h.

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

◆ pPrev

C4MarkupTag* C4MarkupTag::pPrev {nullptr}
inherited

Definition at line 25 of file C4Markup.h.


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