Package ch.bailu.gtk.graphene
Klasse Size
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.graphene.Size
- Alle implementierten Schnittstellen:
PointerInterface
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic SizeAllocates a new #graphene_size_t.booleanChecks whether the two give #graphene_size_t are equal.voidfree()Frees the resources allocated by graphene_size_alloc().static ClassHandlerfloatthe heightfloatthe widthstatic intstatic longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizeinit(float width, float height) Initializes a #graphene_size_t using the given @width and @height.initFromSize(Size src) Initializes a #graphene_size_t using the width and height of
the given @src.voidinterpolate(Size b, double factor, Size res) Linearly interpolates the two given #graphene_size_t using the given
interpolation @factor.voidScales the components of a #graphene_size_t using the given @factor.voidsetFieldHeight(float height) the heightvoidsetFieldWidth(float width) the widthstatic Sizezero()A constant pointer to a zero #graphene_size_t, useful for
equality checks and interpolations.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
WIDTH
the width- Siehe auch:
-
HEIGHT
the height- Siehe auch:
-
-
Konstruktordetails
-
Size
-
Size
public Size()
-
-
Methodendetails
-
getClassHandler
-
setFieldWidth
public void setFieldWidth(float width) the width -
getFieldWidth
public float getFieldWidth()the width -
setFieldHeight
public void setFieldHeight(float height) the height -
getFieldHeight
public float getFieldHeight()the height -
allocSize
Allocates a new #graphene_size_t.
The contents of the returned value are undefined.- Gibt zurück:
- the newly allocated #graphene_size_t
-
equal
Checks whether the two give #graphene_size_t are equal.- Parameter:
b- a #graphene_size_t- Gibt zurück:
- `true` if the sizes are equal
-
free
public void free()Frees the resources allocated by graphene_size_alloc(). -
init
Initializes a #graphene_size_t using the given @width and @height.- Parameter:
width- the widthheight- the height- Gibt zurück:
- the initialized #graphene_size_t
-
initFromSize
Initializes a #graphene_size_t using the width and height of
the given @src.- Parameter:
src- a #graphene_size_t- Gibt zurück:
- the initialized #graphene_size_t
-
interpolate
Linearly interpolates the two given #graphene_size_t using the given
interpolation @factor.- Parameter:
b- a #graphene_size_tfactor- the linear interpolation factorres- return location for the interpolated size
-
scale
Scales the components of a #graphene_size_t using the given @factor.- Parameter:
factor- the scaling factorres- return location for the scaled size
-
zero
A constant pointer to a zero #graphene_size_t, useful for
equality checks and interpolations.- Gibt zurück:
- a constant size
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-