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 [classleaflet
].
Synopsis
- newtype LeafletPage = LeafletPage (ManagedPtr LeafletPage)
- class (GObject o, IsDescendantOf LeafletPage o) => IsLeafletPage o
- toLeafletPage :: (MonadIO m, IsLeafletPage o) => o -> m LeafletPage
- leafletPageGetChild :: (HasCallStack, MonadIO m, IsLeafletPage a) => a -> m Widget
- leafletPageGetName :: (HasCallStack, MonadIO m, IsLeafletPage a) => a -> m (Maybe Text)
- leafletPageGetNavigatable :: (HasCallStack, MonadIO m, IsLeafletPage a) => a -> m Bool
- leafletPageSetName :: (HasCallStack, MonadIO m, IsLeafletPage a) => a -> Maybe Text -> m ()
- leafletPageSetNavigatable :: (HasCallStack, MonadIO m, IsLeafletPage a) => a -> Bool -> m ()
- constructLeafletPageChild :: (IsLeafletPage o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getLeafletPageChild :: (MonadIO m, IsLeafletPage o) => o -> m Widget
- clearLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> m ()
- constructLeafletPageName :: (IsLeafletPage o, MonadIO m) => Text -> m (GValueConstruct o)
- getLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> m (Maybe Text)
- setLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> Text -> m ()
- constructLeafletPageNavigatable :: (IsLeafletPage o, MonadIO m) => Bool -> m (GValueConstruct o)
- getLeafletPageNavigatable :: (MonadIO m, IsLeafletPage o) => o -> m Bool
- setLeafletPageNavigatable :: (MonadIO m, IsLeafletPage o) => o -> Bool -> m ()
Exported types
newtype LeafletPage Source #
Memory-managed wrapper type.
LeafletPage (ManagedPtr LeafletPage) |
Instances
Eq LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage (==) :: LeafletPage -> LeafletPage -> Bool # (/=) :: LeafletPage -> LeafletPage -> Bool # | |
GObject LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage | |
ManagedPtrNewtype LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage toManagedPtr :: LeafletPage -> ManagedPtr LeafletPage | |
TypedObject LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage | |
HasParentTypes LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage | |
IsGValue (Maybe LeafletPage) Source # | Convert |
Defined in GI.Adw.Objects.LeafletPage gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe LeafletPage -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe LeafletPage) | |
type ParentTypes LeafletPage Source # | |
Defined in GI.Adw.Objects.LeafletPage type ParentTypes LeafletPage = '[Object] |
class (GObject o, IsDescendantOf LeafletPage o) => IsLeafletPage o Source #
Type class for types which can be safely cast to LeafletPage
, for instance with toLeafletPage
.
Instances
(GObject o, IsDescendantOf LeafletPage o) => IsLeafletPage o Source # | |
Defined in GI.Adw.Objects.LeafletPage |
toLeafletPage :: (MonadIO m, IsLeafletPage o) => o -> m LeafletPage Source #
Cast to LeafletPage
, 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, getName, getNavigatable, getProperty, getQdata.
Setters
getChild
:: (HasCallStack, MonadIO m, IsLeafletPage a) | |
=> a |
|
-> m Widget | Returns: the child to which |
Gets the leaflet child to which self
belongs.
getName
:: (HasCallStack, MonadIO m, IsLeafletPage a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of |
Gets the name of self
.
getNavigatable
leafletPageGetNavigatable Source #
:: (HasCallStack, MonadIO m, IsLeafletPage a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether the child can be navigated to when folded.
setName
:: (HasCallStack, MonadIO m, IsLeafletPage a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the name of the self
.
setNavigatable
leafletPageSetNavigatable Source #
:: (HasCallStack, MonadIO m, IsLeafletPage a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
can be navigated to when folded.
If FALSE
, the child will be ignored by [methodleaflet
.get_adjacent_child],
[methodleaflet
.navigate], and swipe gestures.
This can be used used to prevent switching to widgets like separators.
Properties
child
The leaflet child to which the page belongs.
constructLeafletPageChild :: (IsLeafletPage 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
.
getLeafletPageChild :: (MonadIO m, IsLeafletPage o) => o -> m Widget Source #
Get the value of the “child
” property.
When overloading is enabled, this is equivalent to
get
leafletPage #child
name
The name of the child page.
clearLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> m () Source #
Set the value of the “name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
constructLeafletPageName :: (IsLeafletPage o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “name
” property. This is rarely needed directly, but it is used by new
.
getLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> m (Maybe Text) Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
leafletPage #name
setLeafletPageName :: (MonadIO m, IsLeafletPage o) => o -> Text -> m () Source #
Set the value of the “name
” property.
When overloading is enabled, this is equivalent to
set
leafletPage [ #name:=
value ]
navigatable
Whether the child can be navigated to when folded.
If FALSE
, the child will be ignored by
[methodleaflet
.get_adjacent_child], [methodleaflet
.navigate], and swipe
gestures.
This can be used used to prevent switching to widgets like separators.
constructLeafletPageNavigatable :: (IsLeafletPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “navigatable
” property. This is rarely needed directly, but it is used by new
.
getLeafletPageNavigatable :: (MonadIO m, IsLeafletPage o) => o -> m Bool Source #
Get the value of the “navigatable
” property.
When overloading is enabled, this is equivalent to
get
leafletPage #navigatable
setLeafletPageNavigatable :: (MonadIO m, IsLeafletPage o) => o -> Bool -> m () Source #
Set the value of the “navigatable
” property.
When overloading is enabled, this is equivalent to
set
leafletPage [ #navigatable:=
value ]