Drag[en]gine Script Module DragonScript
1.21
|
Create styled text rendering pages from styled text definition. More...
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... | |
Create styled text rendering pages from styled text definition.
|
protected |
Begin new page.
void Dragengine.Utils.StyledText.Converter.StyledTextConverter.forEachPage | ( | Block | ablock | ) |
Visit pages with block with StyledTextRendering as parameter.
StyledTextDefinition Dragengine.Utils.StyledText.Converter.StyledTextConverter.getDefinition | ( | ) |
Styled text definition.
|
protected |
Free area in regard to blockers.
StyledTextRendering Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageAt | ( | int | number | ) |
Page at index.
int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageCount | ( | ) |
Number of pages.
int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageHeight | ( | ) |
Ppage height.
int Dragengine.Utils.StyledText.Converter.StyledTextConverter.getPageWidth | ( | ) |
Page width.
|
protected |
Character is a punctuation character.
|
protected |
Character is a white space character.
StyledTextConverter Dragengine.Utils.StyledText.Converter.StyledTextConverter.new | ( | StyledTextDefinition | definition | ) |
Create styled text converter.
void Dragengine.Utils.StyledText.Converter.StyledTextConverter.setPageSize | ( | int | width, |
int | height | ||
) |
Set page size.
void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitImage | ( | STDNImage | node | ) |
Visit image node.
Reimplemented from Dragengine.Utils.StyledText.Definition.Nodes.DefaultSTDNodeVisitor.
void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitText | ( | STDNText | node | ) |
Visit text node.
Reimplemented from Dragengine.Utils.StyledText.Definition.Nodes.DefaultSTDNodeVisitor.
void Dragengine.Utils.StyledText.Converter.StyledTextConverter.visitVideo | ( | STDNVideo | node | ) |
Visit video node.
Reimplemented from Dragengine.Utils.StyledText.Definition.Nodes.DefaultSTDNodeVisitor.