Tanoda
Leap.Unity.GraphicalRenderer.TextWrapper.Token Struct Reference

References a contiguous sequence of characters in a string. More...

Public Member Functions

bool IsNewline (string source)
 
bool IsWhitespace (string source)
 
float GetWidth (string source, Func< char, float > charWidth)
 

Public Attributes

int start
 
int end
 

Properties

int length [get, set]
 

Detailed Description

References a contiguous sequence of characters in a string.

Definition at line 19 of file TextWrapper.cs.

Member Function Documentation

◆ GetWidth()

float Leap.Unity.GraphicalRenderer.TextWrapper.Token.GetWidth ( string  source,
Func< char, float >  charWidth 
)

Definition at line 40 of file TextWrapper.cs.

◆ IsNewline()

bool Leap.Unity.GraphicalRenderer.TextWrapper.Token.IsNewline ( string  source)

Definition at line 32 of file TextWrapper.cs.

◆ IsWhitespace()

bool Leap.Unity.GraphicalRenderer.TextWrapper.Token.IsWhitespace ( string  source)

Definition at line 36 of file TextWrapper.cs.

Member Data Documentation

◆ end

int Leap.Unity.GraphicalRenderer.TextWrapper.Token.end

Definition at line 21 of file TextWrapper.cs.

◆ start

int Leap.Unity.GraphicalRenderer.TextWrapper.Token.start

Definition at line 20 of file TextWrapper.cs.

Property Documentation

◆ length

int Leap.Unity.GraphicalRenderer.TextWrapper.Token.length
getset

Definition at line 23 of file TextWrapper.cs.


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