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 |
A Requisition
-struct represents the desired size of a widget. See
[GtkWidget’s geometry management section][geometry-management] for
more information.
Synopsis
- newtype Requisition = Requisition (ManagedPtr Requisition)
- newZeroRequisition :: MonadIO m => m Requisition
- noRequisition :: Maybe Requisition
- requisitionCopy :: (HasCallStack, MonadIO m) => Requisition -> m Requisition
- requisitionFree :: (HasCallStack, MonadIO m) => Requisition -> m ()
- requisitionNew :: (HasCallStack, MonadIO m) => m Requisition
- getRequisitionHeight :: MonadIO m => Requisition -> m Int32
- setRequisitionHeight :: MonadIO m => Requisition -> Int32 -> m ()
- getRequisitionWidth :: MonadIO m => Requisition -> m Int32
- setRequisitionWidth :: MonadIO m => Requisition -> Int32 -> m ()
Exported types
newtype Requisition Source #
Memory-managed wrapper type.
Instances
Eq Requisition Source # | |
Defined in GI.Gtk.Structs.Requisition (==) :: Requisition -> Requisition -> Bool # (/=) :: Requisition -> Requisition -> Bool # | |
IsGValue Requisition Source # | Convert |
Defined in GI.Gtk.Structs.Requisition toGValue :: Requisition -> IO GValue # fromGValue :: GValue -> IO Requisition # | |
BoxedObject Requisition Source # | |
Defined in GI.Gtk.Structs.Requisition boxedType :: Requisition -> IO GType # | |
tag ~ 'AttrSet => Constructible Requisition tag Source # | |
Defined in GI.Gtk.Structs.Requisition new :: MonadIO m => (ManagedPtr Requisition -> Requisition) -> [AttrOp Requisition tag] -> m Requisition # |
newZeroRequisition :: MonadIO m => m Requisition Source #
Construct a Requisition
struct initialized to zero.
noRequisition :: Maybe Requisition Source #
A convenience alias for Nothing
:: Maybe
Requisition
.
Methods
Overloaded methods
copy
:: (HasCallStack, MonadIO m) | |
=> Requisition |
|
-> m Requisition | Returns: a copy of |
Copies a Requisition
.
free
:: (HasCallStack, MonadIO m) | |
=> Requisition |
|
-> m () |
Frees a Requisition
.
new
:: (HasCallStack, MonadIO m) | |
=> m Requisition | Returns: a new empty |
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 ]