Requisition

A [GtkRequisition-struct|GtkRequisition-struct] represents the desired size of a widget. See [GtkWidget’s geometry management section][geometry-management] for more information.

Constructors

this
this(GtkRequisition* gtkRequisition, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Allocates a new [GtkRequisition-struct|GtkRequisition-struct] and initializes its elements to zero.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

copy
Requisition copy()

Copies a gtk.Requisition

free
void free()

Frees a gtk.Requisition

getRequisitionStruct
GtkRequisition* getRequisitionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Properties

height
int height [@property getter]
int height [@property setter]

the widget’s desired height

width
int width [@property getter]
int width [@property setter]

the widget’s desired width

Static functions

getType
GType getType()

Variables

gtkRequisition
GtkRequisition* gtkRequisition;

the main Gtk struct