C# Class LayoutFarm.HtmlBoxes.CssRun

Represents a word inside an inline box
Because of performance, words of text are the most atomic element in the project. It should be characters, but come on, imagine the performance when drawing char by char on the device.
It may change for future versions of the library.
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
dbugId int

Private Properties

Property Type Description
FindSelectionPoint void
Offset void
OffsetY void
SetHostLine void
SetLocation void
SetSize void

Public Methods

Method Description
GetGlobalLocation ( float &globalX, float &globalY ) : CssBox
SetOwner ( CssBox owner ) : void
ToString ( ) : string

Represents this word for debugging purposes

WriteContent ( System stbuilder, int start, int length ) : void

Protected Methods

Method Description
CssRun ( CssRunKind rectKind ) : System

Init.

Private Methods

Method Description
FindSelectionPoint ( IFonts ifonts, int offset, int &selectionIndex, int &runSelectionOffsetPx ) : void
Offset ( float xdiff, float ydiff ) : void
OffsetY ( float ydiff ) : void
SetHostLine ( CssRun run, CssLineBox hostline ) : void
SetLocation ( float x, float y ) : void
SetSize ( float w, float h ) : void

Method Details

CssRun() protected method

Init.
protected CssRun ( CssRunKind rectKind ) : System
rectKind CssRunKind
return System

GetGlobalLocation() public method

public GetGlobalLocation ( float &globalX, float &globalY ) : CssBox
globalX float
globalY float
return CssBox

SetOwner() public method

public SetOwner ( CssBox owner ) : void
owner CssBox
return void

ToString() public method

Represents this word for debugging purposes
public ToString ( ) : string
return string

WriteContent() public abstract method

public abstract WriteContent ( System stbuilder, int start, int length ) : void
stbuilder System
start int
length int
return void

Property Details

dbugId public property

public int dbugId
return int