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
ConstructorsConstructorDescriptionPattern(double x0, double y0, double x1, double y1) Pattern(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColorStopRgb(double offset, double red, double green, double blue) voidaddColorStopRgba(double offset, double red, double green, double blue, double alpha) static PatterncreateForSurfacePattern(Surface surface) voiddestroy()Frees resources.static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizevoidsetExtend(int extend) 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
-
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:RecordFrees 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()
-