Package ch.bailu.gtk.graphene
Class Quad
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.graphene.Quad
- All Implemented Interfaces:
PointerInterface
A 4 vertex quadrilateral, as represented by four #graphene_point_t.
The contents of a #graphene_quad_t are private and should never be
accessed directly.
The contents of a #graphene_quad_t are private and should never be
accessed directly.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuadAllocates a new #graphene_quad_t instance.voidComputes the bounding rectangle of @q and places it into @r.booleanChecks if the given #graphene_quad_t contains the given #graphene_point_t.voidfree()Frees the resources allocated by graphene_quad_alloc()static ClassHandlerstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeInitializes a #graphene_quad_t with the given points.initFromRect(Rect r) Initializes a #graphene_quad_t using the four corners of the
given #graphene_rect_t.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
-
Quad
-
-
Method Details
-
getClassHandler
-
allocQuad
Allocates a new #graphene_quad_t instance.
The contents of the returned instance are undefined.- Returns:
- the newly created #graphene_quad_t instance
-
bounds
Computes the bounding rectangle of @q and places it into @r.- Parameters:
r- return location for a #graphene_rect_t
-
contains
Checks if the given #graphene_quad_t contains the given #graphene_point_t.- Parameters:
p- a #graphene_point_t- Returns:
- `true` if the point is inside the #graphene_quad_t
-
free
public void free()Frees the resources allocated by graphene_quad_alloc() -
init
Initializes a #graphene_quad_t with the given points.- Parameters:
p1- the first point of the quadrilateralp2- the second point of the quadrilateralp3- the third point of the quadrilateralp4- the fourth point of the quadrilateral- Returns:
- the initialized #graphene_quad_t
-
initFromRect
Initializes a #graphene_quad_t using the four corners of the
given #graphene_rect_t.- Parameters:
r- a #graphene_rect_t- Returns:
- the initialized #graphene_quad_t
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-