C# Class QuickFont.TextNodeList

A doubly linked list of text nodes
Inheritance: IEnumerable
Afficher le fichier Open project: swax/QuickFont Class Usage Examples

Méthodes publiques

Свойство Type Description
Head TextNode
Tail TextNode

Méthodes publiques

Méthode 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

Méthode Description
MeasureTextNodeLength ( TextNode node, QFontData fontData, QFontRenderOptions options ) : float

Method Details

Add() public méthode

public Add ( TextNode node ) : void
node TextNode
Résultat void

Crumble() public méthode

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
Résultat void

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

MeasureNodes() public méthode

public MeasureNodes ( QFontData fontData, QFontRenderOptions options ) : void
fontData QFontData
options QFontRenderOptions
Résultat void

SplitNode() public méthode

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

TextNodeList() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Head public_oe property

public TextNode,QuickFont Head
Résultat TextNode

Tail public_oe property

public TextNode,QuickFont Tail
Résultat TextNode