C# Class QuickFont.TextNodeList

A doubly linked list of text nodes
Inheritance: IEnumerable
Show file Open project: swax/QuickFont Class Usage Examples

Public Properties

Property Type Description
Head TextNode
Tail TextNode

Public Methods

Method Description
Add ( TextNode node ) : void
Crumble ( TextNode node, int baseCaseSize ) : void

Splits a word into sub-words of size less than or equal to baseCaseSize

GetEnumerator ( ) : IEnumerator
MeasureNodes ( QFontData fontData, QFontRenderOptions options ) : void
SplitNode ( TextNode node ) : TextNode

Splits a word node in two, adding both new nodes to the list in sequence.

TextNodeList ( string text ) : System

Builds a doubly linked list of text nodes from the given input string

ToString ( ) : string

Private Methods

Method Description
MeasureTextNodeLength ( TextNode node, QFontData fontData, QFontRenderOptions options ) : float

Method Details

Add() public method

public Add ( TextNode node ) : void
node TextNode
return void

Crumble() public method

Splits a word into sub-words of size less than or equal to baseCaseSize
public Crumble ( TextNode node, int baseCaseSize ) : void
node TextNode
baseCaseSize int
return void

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

MeasureNodes() public method

public MeasureNodes ( QFontData fontData, QFontRenderOptions options ) : void
fontData QFontData
options QFontRenderOptions
return void

SplitNode() public method

Splits a word node in two, adding both new nodes to the list in sequence.
public SplitNode ( TextNode node ) : TextNode
node TextNode
return TextNode

TextNodeList() public method

Builds a doubly linked list of text nodes from the given input string
public TextNodeList ( string text ) : System
text string
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Head public property

public TextNode,QuickFont Head
return TextNode

Tail public property

public TextNode,QuickFont Tail
return TextNode