Drag[en]gine Script Module DragonScript  1.21
Dragengine.Utils.StyledText.Converter.StyledTextConverter Class Reference

Create styled text rendering pages from styled text definition. More...

Inheritance diagram for Dragengine.Utils.StyledText.Converter.StyledTextConverter:
Dragengine.Utils.StyledText.Definition.Nodes.DefaultSTDNodeVisitor Dragengine.Utils.StyledText.Definition.Nodes.STDNodeVisitor

Public Member Functions

void forEachPage (Block ablock)
 Visit pages with block with StyledTextRendering as parameter. More...
 
StyledTextDefinition getDefinition ()
 Styled text definition. More...
 
StyledTextRendering getPageAt (int number)
 Page at index. More...
 
int getPageCount ()
 Number of pages. More...
 
int getPageHeight ()
 Ppage height. More...
 
int getPageWidth ()
 Page width. More...
 
StyledTextConverter new (StyledTextDefinition definition)
 Create styled text converter. More...
 
void setPageSize (int width, int height)
 Set page size. More...
 
void visitImage (STDNImage node)
 Visit image node. More...
 
void visitText (STDNText node)
 Visit text node. More...
 
void visitVideo (STDNVideo node)
 Visit video node. More...
 
- Public Member Functions inherited from Dragengine.Utils.StyledText.Definition.Nodes.DefaultSTDNodeVisitor
DefaultSTDNodeVisitor new ()
 Create default styled text definition node visitor. More...
 
void visitNode (STDNode node)
 Visit node. More...
 

Protected Member Functions

void beginNewPage ()
 Begin new page. More...
 
RectArea getFreeArea (RectArea area)
 Free area in regard to blockers. More...
 
bool isPunctuation (int char)
 Character is a punctuation character. More...
 
bool isWhiteSpace (int char)
 Character is a white space character. More...
 

Detailed Description

Create styled text rendering pages from styled text definition.

Member Function Documentation

◆ beginNewPage()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.beginNewPage ( )
protected

Begin new page.

◆ forEachPage()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.forEachPage ( Block  ablock)

Visit pages with block with StyledTextRendering as parameter.

◆ getDefinition()

StyledTextDefinition Dragengine.Utils.StyledText.Converter.StyledTextConverter.getDefinition ( )

Styled text definition.

◆ getFreeArea()

RectArea Dragengine.Utils.StyledText.Converter.StyledTextConverter.getFreeArea ( RectArea  area)
protected

Free area in regard to blockers.

◆ getPageAt()

StyledTextRendering Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageAt ( int  number)

Page at index.

◆ getPageCount()

int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageCount ( )

Number of pages.

◆ getPageHeight()

int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageHeight ( )

Ppage height.

◆ getPageWidth()

int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageWidth ( )

Page width.

◆ isPunctuation()

bool Dragengine.Utils.StyledText.Converter.StyledTextConverter.isPunctuation ( int char  )
protected

Character is a punctuation character.

◆ isWhiteSpace()

bool Dragengine.Utils.StyledText.Converter.StyledTextConverter.isWhiteSpace ( int char  )
protected

Character is a white space character.

◆ new()

StyledTextConverter Dragengine.Utils.StyledText.Converter.StyledTextConverter.new ( StyledTextDefinition  definition)

Create styled text converter.

◆ setPageSize()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.setPageSize ( int  width,
int  height 
)

Set page size.

◆ visitImage()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitImage ( STDNImage  node)

◆ visitText()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitText ( STDNText  node)

◆ visitVideo()

void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitVideo ( STDNVideo  node)

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