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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
arc
(double xc, double yc, double radius, double angle1, double angle2) void
clip()
void
void
curveTo
(double x1, double y1, double x2, double y2, double x3, double y3) void
destroy()
Frees resources.void
fill()
void
static ClassHandler
void
getCurrentPoint
(Dbl x, Dbl y) static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
void
lineTo
(double x, double y) void
moveTo
(double x, double y) void
newPath()
void
paint()
void
paintWithAlpha
(double alpha) void
rectangle
(double x, double y, double width, double height) void
void
restore()
void
rotate
(double angle) void
save()
void
scale
(double x, double y) void
setAntialias
(int antialias) void
void
setFillRule
(int fill_rule) void
setLineCap
(int line_cap) void
setLineJoin
(int line_join) void
setLineWidth
(double width) void
void
setOperator
(int operator) void
void
setSourceRgb
(double red, double green, double blue) void
setSourceRgba
(double red, double green, double blue, double alpha) void
setSourceSurface
(Surface surface, double x, double y) void
void
void
stroke()
void
void
translate
(double x, double y) Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:Record
Frees 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()
-