Package ch.bailu.gtk.cairo
Class Context
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.cairo.Context
- All Implemented Interfaces:
PointerInterface
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarc(double xc, double yc, double radius, double angle1, double angle2) voidclip()voidvoidcurveTo(double x1, double y1, double x2, double y2, double x3, double y3) voiddestroy()Frees resources.voidfill()voidstatic ClassHandlervoidgetCurrentPoint(Dbl x, Dbl y) static intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizevoidvoidlineTo(double x, double y) voidmoveTo(double x, double y) voidnewPath()voidpaint()voidpaintWithAlpha(double alpha) voidrectangle(double x, double y, double width, double height) voidvoidrestore()voidrotate(double angle) voidsave()voidscale(double x, double y) voidsetAntialias(int antialias) voidvoidsetFillRule(int fill_rule) voidsetLineCap(int line_cap) voidsetLineJoin(int line_join) voidsetLineWidth(double width) voidvoidsetOperator(int operator) voidvoidsetSourceRgb(double red, double green, double blue) voidsetSourceRgba(double red, double green, double blue, double alpha) voidsetSourceSurface(Surface surface, double x, double y) voidvoidvoidstroke()voidvoidtranslate(double x, double y) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
Context
-
-
Method Details
-
getClassHandler
-
save
public void save() -
restore
public void restore() -
rotate
public void rotate(double angle) - Parameters:
angle-
-
paint
public void paint() -
paintWithAlpha
public void paintWithAlpha(double alpha) - Parameters:
alpha-
-
setSourceSurface
- Parameters:
surface-x-y-
-
setSource
- Parameters:
source-
-
closePath
public void closePath() -
setOperator
public void setOperator(int operator) - Parameters:
operator-
-
setLineWidth
public void setLineWidth(double width) - Parameters:
width-
-
setAntialias
public void setAntialias(int antialias) - Parameters:
antialias-
-
moveTo
public void moveTo(double x, double y) - Parameters:
x-y-
-
lineTo
public void lineTo(double x, double y) - Parameters:
x-y-
-
arc
public void arc(double xc, double yc, double radius, double angle1, double angle2) - Parameters:
xc-yc-radius-angle1-angle2-
-
setFillRule
public void setFillRule(int fill_rule) - Parameters:
fill_rule-
-
curveTo
public void curveTo(double x1, double y1, double x2, double y2, double x3, double y3) - Parameters:
x1-y1-x2-y2-x3-y3-
-
stroke
public void stroke() -
fill
public void fill() -
fillPreserve
public void fillPreserve() -
rectangle
public void rectangle(double x, double y, double width, double height) - Parameters:
x-y-width-height-
-
setDash
- Parameters:
dashes-num_dashes-offset-
-
setLineCap
public void setLineCap(int line_cap) - Parameters:
line_cap-
-
setLineJoin
public void setLineJoin(int line_join) - Parameters:
line_join-
-
setSourceRgba
public void setSourceRgba(double red, double green, double blue, double alpha) - Parameters:
red-green-blue-alpha-
-
setSourceRgb
public void setSourceRgb(double red, double green, double blue) - Parameters:
red-green-blue-
-
destroy
public void destroy()Description copied from class:RecordFrees resources. Free memory allocated for this record. Object is invalid afterwards and should not be accessed. -
resetClip
public void resetClip() -
clip
public void clip() -
newPath
public void newPath() -
setMatrix
- Parameters:
matrix-
-
transform
- Parameters:
matrix-
-
identityMatrix
public void identityMatrix() -
showText
- Parameters:
utf8-
-
showText
- Parameters:
utf8-
-
getSource
- Returns:
-
getCurrentPoint
- Parameters:
x-y-
-
translate
public void translate(double x, double y) - Parameters:
x-y-
-
scale
public void scale(double x, double y) - Parameters:
x-y-
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-