Drag[en]gine Script Module DragonScript Script API  1.0
STDNText Class Reference

List of spans defining a span of text with potentially different styles. More...

Inheritance diagram for STDNText:
STDNode

Public Member Functions

void addSpan (STDNTextSpan span)
 Add span. More...
 
void forEachSpan (Block ablock)
 Visit spans with block with STDNTextSpan as parameter. More...
 
STDNTextSpan getSpanAt (int index)
 Span at index. More...
 
int getSpanCount ()
 Number of spans. More...
 
STDNText new ()
 Create styled text definition text node. More...
 
STDNText new (STDNText node)
 Create copy of styled text definition text node. More...
 
void removeAllSpans ()
 Remove all spans. More...
 
void visit (STDNodeVisitor visitor)
 Visit node. More...
 
- Public Member Functions inherited from STDNode
STDNode copy ()
 Create copy of styled text definition node. More...
 
String getStyle ()
 Style or null to use the parent node style. More...
 
STDNode new ()
 Create styled text definition node. More...
 
STDNode new (STDNode node)
 Create copy of styled text definition node. More...
 
void setStyle (String style)
 Set style or null to use the parent node style. More...
 
void visit (STDNodeVisitor visitor)
 Visit node. More...
 

Detailed Description

List of spans defining a span of text with potentially different styles.

Member Function Documentation

§ addSpan()

void addSpan ( STDNTextSpan  span)

Add span.

§ forEachSpan()

void forEachSpan ( Block  ablock)

Visit spans with block with STDNTextSpan as parameter.

§ getSpanAt()

STDNTextSpan getSpanAt ( int  index)

Span at index.

§ getSpanCount()

int getSpanCount ( )

Number of spans.

§ new() [1/2]

STDNText new ( )

Create styled text definition text node.

§ new() [2/2]

STDNText new ( STDNText  node)

Create copy of styled text definition text node.

§ removeAllSpans()

void removeAllSpans ( )

Remove all spans.

§ visit()

void visit ( STDNodeVisitor  visitor)

Visit node.


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