C# Class Xwt.Mac.MacTextLayoutBackendHandler

Inheritance: TextLayoutBackendHandler
Datei anzeigen Open project: TheBrainTech/xwt Class Usage Examples

Public Methods

Method Description
AddAttribute ( object backend, Xwt.Drawing.TextAttribute attribute ) : void
ClearAttributes ( object backend ) : void
Create ( ) : object
Dispose ( object backend ) : void
GetBaseline ( object backend ) : double
GetCoordinateFromIndex ( object backend, int index ) : System.Point
GetIndexFromCoordinates ( object backend, double x, double y ) : int
GetMeanline ( object backend ) : double
GetSize ( object backend ) : Size
SetFont ( object backend, Xwt font ) : void
SetHeight ( object backend, double value ) : void
SetText ( object backend, string text ) : void
SetTrimming ( object backend, TextTrimming value ) : void
SetWidth ( object backend, double value ) : void

Private Methods

Method Description
CreateAttributedString ( LayoutInfo li, string overrideText = null ) : NSAttributedString
CreateFrame ( LayoutInfo li ) : CTFrame
Draw ( CGContext ctx, object layout, double x, double y ) : void

Method Details

AddAttribute() public method

public AddAttribute ( object backend, Xwt.Drawing.TextAttribute attribute ) : void
backend object
attribute Xwt.Drawing.TextAttribute
return void

ClearAttributes() public method

public ClearAttributes ( object backend ) : void
backend object
return void

Create() public method

public Create ( ) : object
return object

Dispose() public method

public Dispose ( object backend ) : void
backend object
return void

GetBaseline() public method

public GetBaseline ( object backend ) : double
backend object
return double

GetCoordinateFromIndex() public method

public GetCoordinateFromIndex ( object backend, int index ) : System.Point
backend object
index int
return System.Point

GetIndexFromCoordinates() public method

public GetIndexFromCoordinates ( object backend, double x, double y ) : int
backend object
x double
y double
return int

GetMeanline() public method

public GetMeanline ( object backend ) : double
backend object
return double

GetSize() public method

public GetSize ( object backend ) : Size
backend object
return Size

SetFont() public method

public SetFont ( object backend, Xwt font ) : void
backend object
font Xwt
return void

SetHeight() public method

public SetHeight ( object backend, double value ) : void
backend object
value double
return void

SetText() public method

public SetText ( object backend, string text ) : void
backend object
text string
return void

SetTrimming() public method

public SetTrimming ( object backend, TextTrimming value ) : void
backend object
value TextTrimming
return void

SetWidth() public method

public SetWidth ( object backend, double value ) : void
backend object
value double
return void