Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An auxiliary class used by [classsqueezer
].
Synopsis
- newtype SqueezerPage = SqueezerPage (ManagedPtr SqueezerPage)
- class (GObject o, IsDescendantOf SqueezerPage o) => IsSqueezerPage o
- toSqueezerPage :: (MonadIO m, IsSqueezerPage o) => o -> m SqueezerPage
- squeezerPageGetChild :: (HasCallStack, MonadIO m, IsSqueezerPage a) => a -> m Widget
- squeezerPageGetEnabled :: (HasCallStack, MonadIO m, IsSqueezerPage a) => a -> m Bool
- squeezerPageSetEnabled :: (HasCallStack, MonadIO m, IsSqueezerPage a) => a -> Bool -> m ()
- constructSqueezerPageChild :: (IsSqueezerPage o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getSqueezerPageChild :: (MonadIO m, IsSqueezerPage o) => o -> m Widget
- constructSqueezerPageEnabled :: (IsSqueezerPage o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> m Bool
- setSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> Bool -> m ()
Exported types
newtype SqueezerPage Source #
Memory-managed wrapper type.
SqueezerPage (ManagedPtr SqueezerPage) |
Instances
Eq SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage (==) :: SqueezerPage -> SqueezerPage -> Bool # (/=) :: SqueezerPage -> SqueezerPage -> Bool # | |
GObject SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage | |
ManagedPtrNewtype SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage toManagedPtr :: SqueezerPage -> ManagedPtr SqueezerPage | |
TypedObject SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage | |
HasParentTypes SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage | |
IsGValue (Maybe SqueezerPage) Source # | Convert |
Defined in GI.Adw.Objects.SqueezerPage gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe SqueezerPage -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe SqueezerPage) | |
type ParentTypes SqueezerPage Source # | |
Defined in GI.Adw.Objects.SqueezerPage type ParentTypes SqueezerPage = '[Object] |
class (GObject o, IsDescendantOf SqueezerPage o) => IsSqueezerPage o Source #
Type class for types which can be safely cast to SqueezerPage
, for instance with toSqueezerPage
.
Instances
(GObject o, IsDescendantOf SqueezerPage o) => IsSqueezerPage o Source # | |
Defined in GI.Adw.Objects.SqueezerPage |
toSqueezerPage :: (MonadIO m, IsSqueezerPage o) => o -> m SqueezerPage Source #
Cast to SqueezerPage
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getChild, getData, getEnabled, getProperty, getQdata.
Setters
getChild
:: (HasCallStack, MonadIO m, IsSqueezerPage a) | |
=> a |
|
-> m Widget | Returns: the child to which |
Deprecated: (Since version 1.4)See the migration guide
Returns the squeezer child to which self
belongs.
getEnabled
squeezerPageGetEnabled Source #
:: (HasCallStack, MonadIO m, IsSqueezerPage a) | |
=> a |
|
-> m Bool | Returns: whether |
Deprecated: (Since version 1.4)See the migration guide
Gets whether self
is enabled.
setEnabled
squeezerPageSetEnabled Source #
:: (HasCallStack, MonadIO m, IsSqueezerPage a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 1.4)See the migration guide
Sets whether self
is enabled.
If a child is disabled, it will be ignored when looking for the child fitting the available size best.
This allows to programmatically and prematurely hide a child even if it fits in the available space.
This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.
Properties
child
The the squeezer child to which the page belongs.
constructSqueezerPageChild :: (IsSqueezerPage o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “child
” property. This is rarely needed directly, but it is used by new
.
getSqueezerPageChild :: (MonadIO m, IsSqueezerPage o) => o -> m Widget Source #
Get the value of the “child
” property.
When overloading is enabled, this is equivalent to
get
squeezerPage #child
enabled
Whether the child is enabled.
If a child is disabled, it will be ignored when looking for the child fitting the available size best.
This allows to programmatically and prematurely hide a child even if it fits in the available space.
This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.
constructSqueezerPageEnabled :: (IsSqueezerPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “enabled
” property. This is rarely needed directly, but it is used by new
.
getSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> m Bool Source #
Get the value of the “enabled
” property.
When overloading is enabled, this is equivalent to
get
squeezerPage #enabled
setSqueezerPageEnabled :: (MonadIO m, IsSqueezerPage o) => o -> Bool -> m () Source #
Set the value of the “enabled
” property.
When overloading is enabled, this is equivalent to
set
squeezerPage [ #enabled:=
value ]