Package ch.bailu.gtk.gtk
Class Requisition
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.Requisition
- All Implemented Interfaces:
PointerInterface
A `GtkRequisition` represents the desired size of a widget. See
[GtkWidget’s geometry management section](class.Widget.html#height-for-width-geometry-management) for
more information.
[GtkWidget’s geometry management section](class.Widget.html#height-for-width-geometry-management) for
more information.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies a `GtkRequisition`.void
free()
Frees a `GtkRequisition`.static ClassHandler
int
the widget’s desired heightint
the widget’s desired widthstatic int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
setFieldHeight
(int height) the widget’s desired heightvoid
setFieldWidth
(int width) the widget’s desired widthMethods 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
-
Field Details
-
WIDTH
the widget’s desired width- See Also:
-
HEIGHT
the widget’s desired height- See Also:
-
-
Constructor Details
-
Requisition
-
Requisition
public Requisition()Allocates a new `GtkRequisition`.
The struct is initialized to zero.
-
-
Method Details
-
getClassHandler
-
setFieldWidth
public void setFieldWidth(int width) the widget’s desired width -
getFieldWidth
public int getFieldWidth()the widget’s desired width -
setFieldHeight
public void setFieldHeight(int height) the widget’s desired height -
getFieldHeight
public int getFieldHeight()the widget’s desired height -
copy
Copies a `GtkRequisition`.- Returns:
- a copy of @requisition
-
free
public void free()Frees a `GtkRequisition`. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-