gi-gtk-3.0.27: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.Requisition

Contents

Description

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

Synopsis

Exported types

newtype Requisition Source #

Memory-managed wrapper type.

Instances
BoxedObject Requisition Source # 
Instance details

Defined in GI.Gtk.Structs.Requisition

tag ~ AttrSet => Constructible Requisition tag Source # 
Instance details

Defined in GI.Gtk.Structs.Requisition

newZeroRequisition :: MonadIO m => m Requisition Source #

Construct a Requisition struct initialized to zero.

Methods

copy

requisitionCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Requisition

requisition: a Requisition

-> m Requisition

Returns: a copy of requisition

Copies a Requisition.

free

requisitionFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Requisition

requisition: a Requisition

-> m () 

Frees a Requisition.

new

requisitionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Requisition

Returns: a new empty Requisition. The newly allocated Requisition should be freed with requisitionFree.

Allocates a new Requisition-struct and initializes its elements to zero.

Since: 3.0

Properties

height

the widget’s desired height

getRequisitionHeight :: MonadIO m => Requisition -> m Int32 Source #

Get the value of the “height” field. When overloading is enabled, this is equivalent to

get requisition #height

setRequisitionHeight :: MonadIO m => Requisition -> Int32 -> m () Source #

Set the value of the “height” field. When overloading is enabled, this is equivalent to

set requisition [ #height := value ]

width

the widget’s desired width

getRequisitionWidth :: MonadIO m => Requisition -> m Int32 Source #

Get the value of the “width” field. When overloading is enabled, this is equivalent to

get requisition #width

setRequisitionWidth :: MonadIO m => Requisition -> Int32 -> m () Source #

Set the value of the “width” field. When overloading is enabled, this is equivalent to

set requisition [ #width := value ]