Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
The GtkStackSwitcher widget acts as a controller for a
Stack
; it shows a row of buttons to switch between
the various pages of the associated stack widget.
All the content for the buttons comes from the child properties
of the Stack
.
It is possible to associate multiple StackSwitcher
widgets
with the same stack widget.
The GtkStackSwitcher widget was added in 3.10.
CSS nodes
GtkStackSwitcher has a single CSS node named stackswitcher and style class .stack-switcher.
When circumstances require it, GtkStackSwitcher adds the .needs-attention style class to the widgets representing the stack pages.
- newtype StackSwitcher = StackSwitcher (ManagedPtr StackSwitcher)
- class GObject o => IsStackSwitcher o
- toStackSwitcher :: IsStackSwitcher o => o -> IO StackSwitcher
- noStackSwitcher :: Maybe StackSwitcher
- data StackSwitcherGetStackMethodInfo
- stackSwitcherGetStack :: (HasCallStack, MonadIO m, IsStackSwitcher a) => a -> m (Maybe Stack)
- stackSwitcherNew :: (HasCallStack, MonadIO m) => m StackSwitcher
- data StackSwitcherSetStackMethodInfo
- stackSwitcherSetStack :: (HasCallStack, MonadIO m, IsStackSwitcher a, IsStack b) => a -> Maybe b -> m ()
- data StackSwitcherIconSizePropertyInfo
- constructStackSwitcherIconSize :: IsStackSwitcher o => Int32 -> IO (GValueConstruct o)
- getStackSwitcherIconSize :: (MonadIO m, IsStackSwitcher o) => o -> m Int32
- setStackSwitcherIconSize :: (MonadIO m, IsStackSwitcher o) => o -> Int32 -> m ()
- stackSwitcherIconSize :: AttrLabelProxy "iconSize"
- data StackSwitcherStackPropertyInfo
- clearStackSwitcherStack :: (MonadIO m, IsStackSwitcher o) => o -> m ()
- constructStackSwitcherStack :: (IsStackSwitcher o, IsStack a) => a -> IO (GValueConstruct o)
- getStackSwitcherStack :: (MonadIO m, IsStackSwitcher o) => o -> m (Maybe Stack)
- setStackSwitcherStack :: (MonadIO m, IsStackSwitcher o, IsStack a) => o -> a -> m ()
- stackSwitcherStack :: AttrLabelProxy "stack"
Exported types
newtype StackSwitcher Source #
GObject StackSwitcher Source # | |
IsImplementorIface StackSwitcher Source # | |
IsObject StackSwitcher Source # | |
IsWidget StackSwitcher Source # | |
IsContainer StackSwitcher Source # | |
IsBox StackSwitcher Source # | |
IsOrientable StackSwitcher Source # | |
IsBuildable StackSwitcher Source # | |
IsStackSwitcher StackSwitcher Source # | |
((~) * info (ResolveStackSwitcherMethod t StackSwitcher), MethodInfo * info StackSwitcher p) => IsLabel t (StackSwitcher -> p) Source # | |
((~) * info (ResolveStackSwitcherMethod t StackSwitcher), MethodInfo * info StackSwitcher p) => IsLabelProxy t (StackSwitcher -> p) Source # | |
HasAttributeList * StackSwitcher Source # | |
type AttributeList StackSwitcher Source # | |
type SignalList StackSwitcher Source # | |
class GObject o => IsStackSwitcher o Source #
toStackSwitcher :: IsStackSwitcher o => o -> IO StackSwitcher Source #
Methods
getStack
data StackSwitcherGetStackMethodInfo Source #
((~) * signature (m (Maybe Stack)), MonadIO m, IsStackSwitcher a) => MethodInfo * StackSwitcherGetStackMethodInfo a signature Source # | |
stackSwitcherGetStack Source #
:: (HasCallStack, MonadIO m, IsStackSwitcher a) | |
=> a |
|
-> m (Maybe Stack) | Returns: the stack, or |
Retrieves the stack.
See stackSwitcherSetStack
.
Since: 3.10
new
:: (HasCallStack, MonadIO m) | |
=> m StackSwitcher | Returns: a new |
Create a new StackSwitcher
.
Since: 3.10
setStack
data StackSwitcherSetStackMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsStackSwitcher a, IsStack b) => MethodInfo * StackSwitcherSetStackMethodInfo a signature Source # | |
stackSwitcherSetStack Source #
:: (HasCallStack, MonadIO m, IsStackSwitcher a, IsStack b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the stack to control.
Since: 3.10
Properties
iconSize
data StackSwitcherIconSizePropertyInfo Source #
constructStackSwitcherIconSize :: IsStackSwitcher o => Int32 -> IO (GValueConstruct o) Source #
getStackSwitcherIconSize :: (MonadIO m, IsStackSwitcher o) => o -> m Int32 Source #
setStackSwitcherIconSize :: (MonadIO m, IsStackSwitcher o) => o -> Int32 -> m () Source #
stackSwitcherIconSize :: AttrLabelProxy "iconSize" Source #
stack
data StackSwitcherStackPropertyInfo Source #
clearStackSwitcherStack :: (MonadIO m, IsStackSwitcher o) => o -> m () Source #
constructStackSwitcherStack :: (IsStackSwitcher o, IsStack a) => a -> IO (GValueConstruct o) Source #
getStackSwitcherStack :: (MonadIO m, IsStackSwitcher o) => o -> m (Maybe Stack) Source #
setStackSwitcherStack :: (MonadIO m, IsStackSwitcher o, IsStack a) => o -> a -> m () Source #
stackSwitcherStack :: AttrLabelProxy "stack" Source #