Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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
- newtype RequestedSize = RequestedSize (ManagedPtr RequestedSize)
- newZeroRequestedSize :: MonadIO m => m RequestedSize
- noRequestedSize :: Maybe RequestedSize
- clearRequestedSizeData :: MonadIO m => RequestedSize -> m ()
- getRequestedSizeData :: MonadIO m => RequestedSize -> m (Ptr ())
- setRequestedSizeData :: MonadIO m => RequestedSize -> Ptr () -> m ()
- getRequestedSizeMinimumSize :: MonadIO m => RequestedSize -> m Int32
- setRequestedSizeMinimumSize :: MonadIO m => RequestedSize -> Int32 -> m ()
- getRequestedSizeNaturalSize :: MonadIO m => RequestedSize -> m Int32
- setRequestedSizeNaturalSize :: MonadIO m => RequestedSize -> Int32 -> m ()
Exported types
newtype RequestedSize Source #
Memory-managed wrapper type.
Instances
Eq RequestedSize Source # | |
Defined in GI.Gtk.Structs.RequestedSize (==) :: RequestedSize -> RequestedSize -> Bool # (/=) :: RequestedSize -> RequestedSize -> Bool # | |
WrappedPtr RequestedSize Source # | |
Defined in GI.Gtk.Structs.RequestedSize | |
tag ~ 'AttrSet => Constructible RequestedSize tag Source # | |
Defined in GI.Gtk.Structs.RequestedSize new :: MonadIO m => (ManagedPtr RequestedSize -> RequestedSize) -> [AttrOp RequestedSize tag] -> m RequestedSize # |
newZeroRequestedSize :: MonadIO m => m RequestedSize Source #
Construct a RequestedSize
struct initialized to zero.
noRequestedSize :: Maybe RequestedSize Source #
A convenience alias for Nothing
:: Maybe
RequestedSize
.
Methods
Overloaded 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 ]