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 |
No description available in the introspection data.
Synopsis
- newtype ViewSwitcher = ViewSwitcher (ManagedPtr ViewSwitcher)
- class (GObject o, IsDescendantOf ViewSwitcher o) => IsViewSwitcher o
- toViewSwitcher :: (MonadIO m, IsViewSwitcher o) => o -> m ViewSwitcher
- viewSwitcherGetIconSize :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> m IconSize
- viewSwitcherGetNarrowEllipsize :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> m EllipsizeMode
- viewSwitcherGetPolicy :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> m ViewSwitcherPolicy
- viewSwitcherGetStack :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> m (Maybe Stack)
- viewSwitcherNew :: (HasCallStack, MonadIO m) => m ViewSwitcher
- viewSwitcherSetIconSize :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> IconSize -> m ()
- viewSwitcherSetNarrowEllipsize :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> EllipsizeMode -> m ()
- viewSwitcherSetPolicy :: (HasCallStack, MonadIO m, IsViewSwitcher a) => a -> ViewSwitcherPolicy -> m ()
- viewSwitcherSetStack :: (HasCallStack, MonadIO m, IsViewSwitcher a, IsStack b) => a -> Maybe b -> m ()
- constructViewSwitcherIconSize :: (IsViewSwitcher o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getViewSwitcherIconSize :: (MonadIO m, IsViewSwitcher o) => o -> m Int32
- setViewSwitcherIconSize :: (MonadIO m, IsViewSwitcher o) => o -> Int32 -> m ()
- constructViewSwitcherNarrowEllipsize :: (IsViewSwitcher o, MonadIO m) => EllipsizeMode -> m (GValueConstruct o)
- getViewSwitcherNarrowEllipsize :: (MonadIO m, IsViewSwitcher o) => o -> m EllipsizeMode
- setViewSwitcherNarrowEllipsize :: (MonadIO m, IsViewSwitcher o) => o -> EllipsizeMode -> m ()
- constructViewSwitcherPolicy :: (IsViewSwitcher o, MonadIO m) => ViewSwitcherPolicy -> m (GValueConstruct o)
- getViewSwitcherPolicy :: (MonadIO m, IsViewSwitcher o) => o -> m ViewSwitcherPolicy
- setViewSwitcherPolicy :: (MonadIO m, IsViewSwitcher o) => o -> ViewSwitcherPolicy -> m ()
- clearViewSwitcherStack :: (MonadIO m, IsViewSwitcher o) => o -> m ()
- constructViewSwitcherStack :: (IsViewSwitcher o, MonadIO m, IsStack a) => a -> m (GValueConstruct o)
- getViewSwitcherStack :: (MonadIO m, IsViewSwitcher o) => o -> m (Maybe Stack)
- setViewSwitcherStack :: (MonadIO m, IsViewSwitcher o, IsStack a) => o -> a -> m ()
Exported types
newtype ViewSwitcher Source #
Memory-managed wrapper type.
ViewSwitcher (ManagedPtr ViewSwitcher) |
Instances
Eq ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher (==) :: ViewSwitcher -> ViewSwitcher -> Bool (/=) :: ViewSwitcher -> ViewSwitcher -> Bool | |
GObject ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher | |
ManagedPtrNewtype ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher toManagedPtr :: ViewSwitcher -> ManagedPtr ViewSwitcher | |
TypedObject ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher glibType :: IO GType | |
IsGValue ViewSwitcher Source # | Convert |
Defined in GI.Handy.Objects.ViewSwitcher toGValue :: ViewSwitcher -> IO GValue fromGValue :: GValue -> IO ViewSwitcher | |
HasParentTypes ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher | |
type ParentTypes ViewSwitcher Source # | |
Defined in GI.Handy.Objects.ViewSwitcher type ParentTypes ViewSwitcher = '[Box, Container, Widget, Object, ImplementorIface, Buildable, Orientable] |
class (GObject o, IsDescendantOf ViewSwitcher o) => IsViewSwitcher o Source #
Type class for types which can be safely cast to ViewSwitcher
, for instance with toViewSwitcher
.
Instances
(GObject o, IsDescendantOf ViewSwitcher o) => IsViewSwitcher o Source # | |
Defined in GI.Handy.Objects.ViewSwitcher |
toViewSwitcher :: (MonadIO m, IsViewSwitcher o) => o -> m ViewSwitcher Source #
Cast to ViewSwitcher
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getIconSize
viewSwitcherGetIconSize Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> m IconSize | Returns: the icon size of the images |
getNarrowEllipsize
viewSwitcherGetNarrowEllipsize Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> m EllipsizeMode | Returns: |
Get the ellipsizing position of the narrow mode label. See
viewSwitcherSetNarrowEllipsize
.
Since: 0.0.10
getPolicy
viewSwitcherGetPolicy Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> m ViewSwitcherPolicy | Returns: the policy of |
Gets the policy of self
.
Since: 0.0.10
getStack
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> m (Maybe Stack) | Returns: the |
new
:: (HasCallStack, MonadIO m) | |
=> m ViewSwitcher | Returns: a new |
Creates a new ViewSwitcher
widget.
Since: 0.0.10
setIconSize
viewSwitcherSetIconSize Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> IconSize |
|
-> m () |
Change the icon size hint for the icons in a ViewSwitcher
.
Since: 0.0.10
setNarrowEllipsize
viewSwitcherSetNarrowEllipsize Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> EllipsizeMode |
|
-> m () |
Set the mode used to ellipsize the text in narrow mode if there is not enough space to render the entire string.
Since: 0.0.10
setPolicy
viewSwitcherSetPolicy Source #
:: (HasCallStack, MonadIO m, IsViewSwitcher a) | |
=> a |
|
-> ViewSwitcherPolicy |
|
-> m () |
Sets the policy of self
.
Since: 0.0.10
setStack
:: (HasCallStack, MonadIO m, IsViewSwitcher a, IsStack b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the Stack
to control.
Since: 0.0.10
Properties
iconSize
Use the "icon-size" property to hint the icons to use, you almost certainly
want to leave this as IconSizeButton
.
Since: 0.0.10
constructViewSwitcherIconSize :: (IsViewSwitcher o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-size
” property. This is rarely needed directly, but it is used by new
.
getViewSwitcherIconSize :: (MonadIO m, IsViewSwitcher o) => o -> m Int32 Source #
Get the value of the “icon-size
” property.
When overloading is enabled, this is equivalent to
get
viewSwitcher #iconSize
setViewSwitcherIconSize :: (MonadIO m, IsViewSwitcher o) => o -> Int32 -> m () Source #
Set the value of the “icon-size
” property.
When overloading is enabled, this is equivalent to
set
viewSwitcher [ #iconSize:=
value ]
narrowEllipsize
The preferred place to ellipsize the string, if the narrow mode label does
not have enough room to display the entire string, specified as a
EllipsizeMode
.
Note that setting this property to a value other than EllipsizeModeNone
has the side-effect that the label requests only enough space to display
the ellipsis.
Since: 0.0.10
constructViewSwitcherNarrowEllipsize :: (IsViewSwitcher o, MonadIO m) => EllipsizeMode -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “narrow-ellipsize
” property. This is rarely needed directly, but it is used by new
.
getViewSwitcherNarrowEllipsize :: (MonadIO m, IsViewSwitcher o) => o -> m EllipsizeMode Source #
Get the value of the “narrow-ellipsize
” property.
When overloading is enabled, this is equivalent to
get
viewSwitcher #narrowEllipsize
setViewSwitcherNarrowEllipsize :: (MonadIO m, IsViewSwitcher o) => o -> EllipsizeMode -> m () Source #
Set the value of the “narrow-ellipsize
” property.
When overloading is enabled, this is equivalent to
set
viewSwitcher [ #narrowEllipsize:=
value ]
policy
The ViewSwitcherPolicy
the view switcher should use to determine which
mode to use.
Since: 0.0.10
constructViewSwitcherPolicy :: (IsViewSwitcher o, MonadIO m) => ViewSwitcherPolicy -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “policy
” property. This is rarely needed directly, but it is used by new
.
getViewSwitcherPolicy :: (MonadIO m, IsViewSwitcher o) => o -> m ViewSwitcherPolicy Source #
Get the value of the “policy
” property.
When overloading is enabled, this is equivalent to
get
viewSwitcher #policy
setViewSwitcherPolicy :: (MonadIO m, IsViewSwitcher o) => o -> ViewSwitcherPolicy -> m () Source #
Set the value of the “policy
” property.
When overloading is enabled, this is equivalent to
set
viewSwitcher [ #policy:=
value ]
stack
The Stack
the view switcher controls.
Since: 0.0.10
clearViewSwitcherStack :: (MonadIO m, IsViewSwitcher o) => o -> m () Source #
Set the value of the “stack
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#stack
constructViewSwitcherStack :: (IsViewSwitcher o, MonadIO m, IsStack a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “stack
” property. This is rarely needed directly, but it is used by new
.
getViewSwitcherStack :: (MonadIO m, IsViewSwitcher o) => o -> m (Maybe Stack) Source #
Get the value of the “stack
” property.
When overloading is enabled, this is equivalent to
get
viewSwitcher #stack
setViewSwitcherStack :: (MonadIO m, IsViewSwitcher o, IsStack a) => o -> a -> m () Source #
Set the value of the “stack
” property.
When overloading is enabled, this is equivalent to
set
viewSwitcher [ #stack:=
value ]