Package ch.bailu.gtk.cairo
Class Pattern
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.cairo.Pattern
- All Implemented Interfaces:
PointerInterface
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPattern
(double x0, double y0, double x1, double y1) Pattern
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColorStopRgb
(double offset, double red, double green, double blue) void
addColorStopRgba
(double offset, double red, double green, double blue, double alpha) static Pattern
createForSurfacePattern
(Surface surface) void
destroy()
Frees resources.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
setExtend
(int extend) 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
-
Pattern
-
Pattern
public Pattern(double x0, double y0, double x1, double y1) - Parameters:
x0
-y0
-x1
-y1
-
-
-
Method Details
-
getClassHandler
-
createForSurfacePattern
- Parameters:
surface
-- Returns:
-
addColorStopRgb
public void addColorStopRgb(double offset, double red, double green, double blue) - Parameters:
offset
-red
-green
-blue
-
-
addColorStopRgba
public void addColorStopRgba(double offset, double red, double green, double blue, double alpha) - Parameters:
offset
-red
-green
-blue
-alpha
-
-
setExtend
public void setExtend(int extend) - Parameters:
extend
-
-
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. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-