C# Class gbrainy.Core.Libraries.CairoContext

Inheritance: Cairo.Context
Mostrar archivo Open project: GNOME/gbrainy

Public Methods

Method Description
CairoContext ( Cairo s, string font, int dpis ) : System
CairoContext ( IntPtr handle ) : System
DrawImage ( SVGImage image, double x, double y, double width, double height ) : void
DrawImageFromAssembly ( string resource, double x, double y, double width, double height ) : void
DrawImageFromFile ( string filename, double x, double y, double width, double height ) : void
DrawStringWithWrapping ( double x, double y, string str, double max_width ) : void
DrawTextAlignedRight ( double x, double y, string str ) : void
DrawTextCentered ( double x, double y, string str ) : void
FillGradient ( double x, double y, double w, double h, Cairo color ) : void
MeasureString ( string str, double max_width, bool wrapping, double &width, double &height ) : void
SetPangoFontSize ( double size ) : void
ShowPangoText ( string str ) : void
ShowPangoText ( string str, bool bold, double width, double rotation ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SetText ( string text ) : void
UpdateFontSize ( ) : void

Method Details

CairoContext() public method

public CairoContext ( Cairo s, string font, int dpis ) : System
s Cairo
font string
dpis int
return System

CairoContext() public method

public CairoContext ( IntPtr handle ) : System
handle System.IntPtr
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DrawImage() public method

public DrawImage ( SVGImage image, double x, double y, double width, double height ) : void
image SVGImage
x double
y double
width double
height double
return void

DrawImageFromAssembly() public method

public DrawImageFromAssembly ( string resource, double x, double y, double width, double height ) : void
resource string
x double
y double
width double
height double
return void

DrawImageFromFile() public method

public DrawImageFromFile ( string filename, double x, double y, double width, double height ) : void
filename string
x double
y double
width double
height double
return void

DrawStringWithWrapping() public method

public DrawStringWithWrapping ( double x, double y, string str, double max_width ) : void
x double
y double
str string
max_width double
return void

DrawTextAlignedRight() public method

public DrawTextAlignedRight ( double x, double y, string str ) : void
x double
y double
str string
return void

DrawTextCentered() public method

public DrawTextCentered ( double x, double y, string str ) : void
x double
y double
str string
return void

FillGradient() public method

public FillGradient ( double x, double y, double w, double h, Cairo color ) : void
x double
y double
w double
h double
color Cairo
return void

MeasureString() public method

public MeasureString ( string str, double max_width, bool wrapping, double &width, double &height ) : void
str string
max_width double
wrapping bool
width double
height double
return void

SetPangoFontSize() public method

public SetPangoFontSize ( double size ) : void
size double
return void

ShowPangoText() public method

public ShowPangoText ( string str ) : void
str string
return void

ShowPangoText() public method

public ShowPangoText ( string str, bool bold, double width, double rotation ) : void
str string
bold bool
width double
rotation double
return void