C# Class gbrainy.Core.Libraries.CairoContext

Inheritance: Cairo.Context
Afficher le fichier Open project: GNOME/gbrainy

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
SetText ( string text ) : void
UpdateFontSize ( ) : void

Method Details

CairoContext() public méthode

public CairoContext ( Cairo s, string font, int dpis ) : System
s Cairo
font string
dpis int
Résultat System

CairoContext() public méthode

public CairoContext ( IntPtr handle ) : System
handle System.IntPtr
Résultat System

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DrawImage() public méthode

public DrawImage ( SVGImage image, double x, double y, double width, double height ) : void
image SVGImage
x double
y double
width double
height double
Résultat void

DrawImageFromAssembly() public méthode

public DrawImageFromAssembly ( string resource, double x, double y, double width, double height ) : void
resource string
x double
y double
width double
height double
Résultat void

DrawImageFromFile() public méthode

public DrawImageFromFile ( string filename, double x, double y, double width, double height ) : void
filename string
x double
y double
width double
height double
Résultat void

DrawStringWithWrapping() public méthode

public DrawStringWithWrapping ( double x, double y, string str, double max_width ) : void
x double
y double
str string
max_width double
Résultat void

DrawTextAlignedRight() public méthode

public DrawTextAlignedRight ( double x, double y, string str ) : void
x double
y double
str string
Résultat void

DrawTextCentered() public méthode

public DrawTextCentered ( double x, double y, string str ) : void
x double
y double
str string
Résultat void

FillGradient() public méthode

public FillGradient ( double x, double y, double w, double h, Cairo color ) : void
x double
y double
w double
h double
color Cairo
Résultat void

MeasureString() public méthode

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

SetPangoFontSize() public méthode

public SetPangoFontSize ( double size ) : void
size double
Résultat void

ShowPangoText() public méthode

public ShowPangoText ( string str ) : void
str string
Résultat void

ShowPangoText() public méthode

public ShowPangoText ( string str, bool bold, double width, double rotation ) : void
str string
bold bool
width double
rotation double
Résultat void