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 [classviewStack
].
Synopsis
- newtype ViewStackPage = ViewStackPage (ManagedPtr ViewStackPage)
- class (GObject o, IsDescendantOf ViewStackPage o) => IsViewStackPage o
- toViewStackPage :: (MonadIO m, IsViewStackPage o) => o -> m ViewStackPage
- viewStackPageGetBadgeNumber :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m Word32
- viewStackPageGetChild :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m Widget
- viewStackPageGetIconName :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m (Maybe Text)
- viewStackPageGetName :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m (Maybe Text)
- viewStackPageGetNeedsAttention :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m Bool
- viewStackPageGetTitle :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m (Maybe Text)
- viewStackPageGetUseUnderline :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m Bool
- viewStackPageGetVisible :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> m Bool
- viewStackPageSetBadgeNumber :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Word32 -> m ()
- viewStackPageSetIconName :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Maybe Text -> m ()
- viewStackPageSetName :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Maybe Text -> m ()
- viewStackPageSetNeedsAttention :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Bool -> m ()
- viewStackPageSetTitle :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Maybe Text -> m ()
- viewStackPageSetUseUnderline :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Bool -> m ()
- viewStackPageSetVisible :: (HasCallStack, MonadIO m, IsViewStackPage a) => a -> Bool -> m ()
- constructViewStackPageBadgeNumber :: (IsViewStackPage o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getViewStackPageBadgeNumber :: (MonadIO m, IsViewStackPage o) => o -> m Word32
- setViewStackPageBadgeNumber :: (MonadIO m, IsViewStackPage o) => o -> Word32 -> m ()
- constructViewStackPageChild :: (IsViewStackPage o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getViewStackPageChild :: (MonadIO m, IsViewStackPage o) => o -> m Widget
- clearViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> m ()
- constructViewStackPageIconName :: (IsViewStackPage o, MonadIO m) => Text -> m (GValueConstruct o)
- getViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text)
- setViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> Text -> m ()
- clearViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> m ()
- constructViewStackPageName :: (IsViewStackPage o, MonadIO m) => Text -> m (GValueConstruct o)
- getViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text)
- setViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> Text -> m ()
- constructViewStackPageNeedsAttention :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o)
- getViewStackPageNeedsAttention :: (MonadIO m, IsViewStackPage o) => o -> m Bool
- setViewStackPageNeedsAttention :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m ()
- clearViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> m ()
- constructViewStackPageTitle :: (IsViewStackPage o, MonadIO m) => Text -> m (GValueConstruct o)
- getViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text)
- setViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> Text -> m ()
- constructViewStackPageUseUnderline :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o)
- getViewStackPageUseUnderline :: (MonadIO m, IsViewStackPage o) => o -> m Bool
- setViewStackPageUseUnderline :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m ()
- constructViewStackPageVisible :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o)
- getViewStackPageVisible :: (MonadIO m, IsViewStackPage o) => o -> m Bool
- setViewStackPageVisible :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m ()
Exported types
newtype ViewStackPage Source #
Memory-managed wrapper type.
ViewStackPage (ManagedPtr ViewStackPage) |
Instances
Eq ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage (==) :: ViewStackPage -> ViewStackPage -> Bool # (/=) :: ViewStackPage -> ViewStackPage -> Bool # | |
GObject ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage | |
ManagedPtrNewtype ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage toManagedPtr :: ViewStackPage -> ManagedPtr ViewStackPage | |
TypedObject ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage | |
HasParentTypes ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage | |
IsGValue (Maybe ViewStackPage) Source # | Convert |
Defined in GI.Adw.Objects.ViewStackPage gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ViewStackPage -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ViewStackPage) | |
type ParentTypes ViewStackPage Source # | |
Defined in GI.Adw.Objects.ViewStackPage type ParentTypes ViewStackPage = '[Object, Accessible] |
class (GObject o, IsDescendantOf ViewStackPage o) => IsViewStackPage o Source #
Type class for types which can be safely cast to ViewStackPage
, for instance with toViewStackPage
.
Instances
(GObject o, IsDescendantOf ViewStackPage o) => IsViewStackPage o Source # | |
Defined in GI.Adw.Objects.ViewStackPage |
toViewStackPage :: (MonadIO m, IsViewStackPage o) => o -> m ViewStackPage Source #
Cast to ViewStackPage
, 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, resetProperty, resetRelation, resetState, runDispose, stealData, stealQdata, thawNotify, unref, updateNextAccessibleSibling, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleParent, getAccessibleRole, getAtContext, getBadgeNumber, getBounds, getChild, getData, getFirstAccessibleChild, getIconName, getName, getNeedsAttention, getNextAccessibleSibling, getPlatformState, getProperty, getQdata, getTitle, getUseUnderline, getVisible.
Setters
setAccessibleParent, setBadgeNumber, setData, setDataFull, setIconName, setName, setNeedsAttention, setProperty, setTitle, setUseUnderline, setVisible.
getBadgeNumber
viewStackPageGetBadgeNumber Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m Word32 | Returns: the badge number for this page |
Gets the badge number for this page.
getChild
viewStackPageGetChild Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m Widget | Returns: the child to which |
Gets the stack child to which self
belongs.
getIconName
viewStackPageGetIconName Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m (Maybe Text) | Returns: the icon name of the page |
Gets the icon name of the page.
getName
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of the page |
Gets the name of the page.
getNeedsAttention
viewStackPageGetNeedsAttention Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m Bool | Returns: whether the page needs attention |
Gets whether the page requires the user attention.
getTitle
viewStackPageGetTitle Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m (Maybe Text) | Returns: the page title |
Gets the page title.
getUseUnderline
viewStackPageGetUseUnderline Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m Bool | Returns: whether underlines in the page title indicate mnemonics |
Gets whether underlines in the page title indicate mnemonics.
getVisible
viewStackPageGetVisible Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether self
is visible in its AdwViewStack
.
This is independent from the Widget:visible property of its widget.
setBadgeNumber
viewStackPageSetBadgeNumber Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the badge number for this page.
- class
viewSwitcher
- can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.
It can be used together with [propertyviewStack
{age}:needs-attention].
setIconName
viewStackPageSetIconName Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the icon name of the page.
setName
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the name of the page.
setNeedsAttention
viewStackPageSetNeedsAttention Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the page requires the user attention.
- class
viewSwitcher
- will display it as a dot next to the page icon.
setTitle
viewStackPageSetTitle Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the page title.
setUseUnderline
viewStackPageSetUseUnderline Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether underlines in the page title indicate mnemonics.
setVisible
viewStackPageSetVisible Source #
:: (HasCallStack, MonadIO m, IsViewStackPage a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether page
is visible in its AdwViewStack
.
This is independent from the Widget:visible property of
[propertyviewStackPage
:child].
Properties
badgeNumber
The badge number for this page.
- class
viewSwitcher
- can display it as a badge next to the page icon. It is commonly used to display a number of unread items within the page.
It can be used together with [propertyviewStack
{age}:needs-attention].
constructViewStackPageBadgeNumber :: (IsViewStackPage o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “badge-number
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageBadgeNumber :: (MonadIO m, IsViewStackPage o) => o -> m Word32 Source #
Get the value of the “badge-number
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #badgeNumber
setViewStackPageBadgeNumber :: (MonadIO m, IsViewStackPage o) => o -> Word32 -> m () Source #
Set the value of the “badge-number
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #badgeNumber:=
value ]
child
The stack child to which the page belongs.
constructViewStackPageChild :: (IsViewStackPage 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
.
getViewStackPageChild :: (MonadIO m, IsViewStackPage o) => o -> m Widget Source #
Get the value of the “child
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #child
iconName
The icon name of the child page.
clearViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> m () Source #
Set the value of the “icon-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#iconName
constructViewStackPageIconName :: (IsViewStackPage o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-name
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text) Source #
Get the value of the “icon-name
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #iconName
setViewStackPageIconName :: (MonadIO m, IsViewStackPage o) => o -> Text -> m () Source #
Set the value of the “icon-name
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #iconName:=
value ]
name
The name of the child page.
clearViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> m () Source #
Set the value of the “name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#name
constructViewStackPageName :: (IsViewStackPage 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
.
getViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text) Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #name
setViewStackPageName :: (MonadIO m, IsViewStackPage o) => o -> Text -> m () Source #
Set the value of the “name
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #name:=
value ]
needsAttention
Whether the page requires the user attention.
- class
viewSwitcher
- will display it as a dot next to the page icon.
constructViewStackPageNeedsAttention :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “needs-attention
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageNeedsAttention :: (MonadIO m, IsViewStackPage o) => o -> m Bool Source #
Get the value of the “needs-attention
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #needsAttention
setViewStackPageNeedsAttention :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m () Source #
Set the value of the “needs-attention
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #needsAttention:=
value ]
title
The title of the child page.
clearViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> m () Source #
Set the value of the “title
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#title
constructViewStackPageTitle :: (IsViewStackPage o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “title
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> m (Maybe Text) Source #
Get the value of the “title
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #title
setViewStackPageTitle :: (MonadIO m, IsViewStackPage o) => o -> Text -> m () Source #
Set the value of the “title
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #title:=
value ]
useUnderline
Whether an embedded underline in the title indicates a mnemonic.
constructViewStackPageUseUnderline :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-underline
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageUseUnderline :: (MonadIO m, IsViewStackPage o) => o -> m Bool Source #
Get the value of the “use-underline
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #useUnderline
setViewStackPageUseUnderline :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m () Source #
Set the value of the “use-underline
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #useUnderline:=
value ]
visible
Whether this page is visible.
This is independent from the Widget:visible property of
[propertyviewStackPage
:child].
constructViewStackPageVisible :: (IsViewStackPage o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “visible
” property. This is rarely needed directly, but it is used by new
.
getViewStackPageVisible :: (MonadIO m, IsViewStackPage o) => o -> m Bool Source #
Get the value of the “visible
” property.
When overloading is enabled, this is equivalent to
get
viewStackPage #visible
setViewStackPageVisible :: (MonadIO m, IsViewStackPage o) => o -> Bool -> m () Source #
Set the value of the “visible
” property.
When overloading is enabled, this is equivalent to
set
viewStackPage [ #visible:=
value ]