Package ch.bailu.gtk.graphene
Class Graphene
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Package
ch.bailu.gtk.graphene.Graphene

Constructor Summary

Method Summary
Modifier and TypeMethodDescriptionstatic Box
boxEmpty()
A degenerate #graphene_box_t that can only be expanded.static Box
A degenerate #graphene_box_t that cannot be expanded.static Box
A #graphene_box_t with the minimum vertex set at (1, 1, 1) and the
maximum vertex set at (0, 0, 0).static Box
boxOne()
A #graphene_box_t with the minimum vertex set at (0, 0, 0) and the
maximum vertex set at (1, 1, 1).static Box
A #graphene_box_t with the minimum vertex set at (1, 1, 1) and the
maximum vertex set at (1, 1, 1).static Box
boxZero()
A #graphene_box_t with both the minimum and maximum vertices set at (0, 0, 0).static ClassHandler
static Point3D
Retrieves a constant point with all three coordinates set to 0.static Point
Returns a point fixed at (0, 0).static Rect
Allocates a new #graphene_rect_t.static Rect
rectZero()
Returns a degenerate rectangle with origin fixed at (0, 0) and
a size of 0, 0.static Size
sizeZero()
A constant pointer to a zero #graphene_size_t, useful for
equality checks and interpolations.static Vec2
vec2One()
Retrieves a constant vector with (1, 1) components.static Vec2
Retrieves a constant vector with (1, 0) components.static Vec2
Retrieves a constant vector with (0, 1) components.static Vec2
vec2Zero()
Retrieves a constant vector with (0, 0) components.static Vec3
vec3One()
Provides a constant pointer to a vector with three components,
all sets to 1.static Vec3
Provides a constant pointer to a vector with three components
with values set to (1, 0, 0).static Vec3
Provides a constant pointer to a vector with three components
with values set to (0, 1, 0).static Vec3
Provides a constant pointer to a vector with three components
with values set to (0, 0, 1).static Vec3
vec3Zero()
Provides a constant pointer to a vector with three components,
all sets to 0.static Vec4
vec4One()
Retrieves a pointer to a #graphene_vec4_t with all its
components set to 1.static Vec4
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 0, 0, 1).static Vec4
Retrieves a pointer to a #graphene_vec4_t with its
components set to (1, 0, 0, 0).static Vec4
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 1, 0, 0).static Vec4
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 0, 1, 0).static Vec4
vec4Zero()
Retrieves a pointer to a #graphene_vec4_t with all its
components set to 0.Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull

Constructor Details

Graphene
public Graphene()


Method Details

getClassHandler

boxEmpty
A degenerate #graphene_box_t that can only be expanded.
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

boxInfinite
A degenerate #graphene_box_t that cannot be expanded.
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

boxMinusOne
A #graphene_box_t with the minimum vertex set at (1, 1, 1) and the
maximum vertex set at (0, 0, 0).
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

boxOne
A #graphene_box_t with the minimum vertex set at (0, 0, 0) and the
maximum vertex set at (1, 1, 1).
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

boxOneMinusOne
A #graphene_box_t with the minimum vertex set at (1, 1, 1) and the
maximum vertex set at (1, 1, 1).
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

boxZero
A #graphene_box_t with both the minimum and maximum vertices set at (0, 0, 0).
The returned value is owned by Graphene and should not be modified or freed. Returns:
 a #graphene_box_t

point3dZero
Retrieves a constant point with all three coordinates set to 0. Returns:
 a zero point

pointZero
Returns a point fixed at (0, 0). Returns:
 a fixed point

rectAlloc
Allocates a new #graphene_rect_t.
The contents of the returned rectangle are undefined. Returns:
 the newly allocated rectangle

rectZero
Returns a degenerate rectangle with origin fixed at (0, 0) and
a size of 0, 0. Returns:
 a fixed rectangle

sizeZero
A constant pointer to a zero #graphene_size_t, useful for
equality checks and interpolations. Returns:
 a constant size

vec2One
Retrieves a constant vector with (1, 1) components. Returns:
 the one vector

vec2XAxis
Retrieves a constant vector with (1, 0) components. Returns:
 the X axis vector

vec2YAxis
Retrieves a constant vector with (0, 1) components. Returns:
 the Y axis vector

vec2Zero
Retrieves a constant vector with (0, 0) components. Returns:
 the zero vector

vec3One
Provides a constant pointer to a vector with three components,
all sets to 1. Returns:
 a constant vector

vec3XAxis
Provides a constant pointer to a vector with three components
with values set to (1, 0, 0). Returns:
 a constant vector

vec3YAxis
Provides a constant pointer to a vector with three components
with values set to (0, 1, 0). Returns:
 a constant vector

vec3ZAxis
Provides a constant pointer to a vector with three components
with values set to (0, 0, 1). Returns:
 a constant vector

vec3Zero
Provides a constant pointer to a vector with three components,
all sets to 0. Returns:
 a constant vector

vec4One
Retrieves a pointer to a #graphene_vec4_t with all its
components set to 1. Returns:
 a constant vector

vec4WAxis
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 0, 0, 1). Returns:
 a constant vector

vec4XAxis
Retrieves a pointer to a #graphene_vec4_t with its
components set to (1, 0, 0, 0). Returns:
 a constant vector

vec4YAxis
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 1, 0, 0). Returns:
 a constant vector

vec4ZAxis
Retrieves a pointer to a #graphene_vec4_t with its
components set to (0, 0, 1, 0). Returns:
 a constant vector

vec4Zero
Retrieves a pointer to a #graphene_vec4_t with all its
components set to 0. Returns:
 a constant vector
