gi-gtk-3.0.37: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Structs.RequestedSize

Description

Represents a request of a screen object in a given orientation. These are primarily used in container implementations when allocating a natural size for children calling. See distributeNaturalAllocation.

Synopsis

Exported types

newtype RequestedSize Source #

Memory-managed wrapper type.

Constructors

RequestedSize (ManagedPtr RequestedSize) 

Instances

Instances details
Eq RequestedSize Source # 
Instance details

Defined in GI.Gtk.Structs.RequestedSize

BoxedPtr RequestedSize Source # 
Instance details

Defined in GI.Gtk.Structs.RequestedSize

CallocPtr RequestedSize Source # 
Instance details

Defined in GI.Gtk.Structs.RequestedSize

ManagedPtrNewtype RequestedSize Source # 
Instance details

Defined in GI.Gtk.Structs.RequestedSize

Methods

toManagedPtr :: RequestedSize -> ManagedPtr RequestedSize

tag ~ 'AttrSet => Constructible RequestedSize tag Source # 
Instance details

Defined in GI.Gtk.Structs.RequestedSize

Methods

new :: MonadIO m => (ManagedPtr RequestedSize -> RequestedSize) -> [AttrOp RequestedSize tag] -> m RequestedSize

newZeroRequestedSize :: MonadIO m => m RequestedSize Source #

Construct a RequestedSize struct initialized to zero.

Methods

Properties

data

A client pointer

clearRequestedSizeData :: MonadIO m => RequestedSize -> m () Source #

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

clear #data

getRequestedSizeData :: MonadIO m => RequestedSize -> m (Ptr ()) Source #

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

get requestedSize #data

setRequestedSizeData :: MonadIO m => RequestedSize -> Ptr () -> m () Source #

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

set requestedSize [ #data := value ]

minimumSize

The minimum size needed for allocation in a given orientation

getRequestedSizeMinimumSize :: MonadIO m => RequestedSize -> m Int32 Source #

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

get requestedSize #minimumSize

setRequestedSizeMinimumSize :: MonadIO m => RequestedSize -> Int32 -> m () Source #

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

set requestedSize [ #minimumSize := value ]

naturalSize

The natural size for allocation in a given orientation

getRequestedSizeNaturalSize :: MonadIO m => RequestedSize -> m Int32 Source #

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

get requestedSize #naturalSize

setRequestedSizeNaturalSize :: MonadIO m => RequestedSize -> Int32 -> m () Source #

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

set requestedSize [ #naturalSize := value ]