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 |
GI.Gtk.Objects.StackSidebar
Description
A GtkStackSidebar enables you to quickly and easily provide a consistent "sidebar" object for your user interface.
In order to use a GtkStackSidebar, you simply use a GtkStack to
organize your UI flow, and add the sidebar to your sidebar area. You
can use stackSidebarSetStack
to connect the StackSidebar
to the Stack
.
CSS nodes
GtkStackSidebar has a single CSS node with name stacksidebar and style class .sidebar.
When circumstances require it, GtkStackSidebar adds the .needs-attention style class to the widgets representing the stack pages.
- newtype StackSidebar = StackSidebar (ManagedPtr StackSidebar)
- class GObject o => IsStackSidebar o
- toStackSidebar :: (MonadIO m, IsStackSidebar o) => o -> m StackSidebar
- noStackSidebar :: Maybe StackSidebar
- stackSidebarGetStack :: (HasCallStack, MonadIO m, IsStackSidebar a) => a -> m (Maybe Stack)
- stackSidebarNew :: (HasCallStack, MonadIO m) => m StackSidebar
- stackSidebarSetStack :: (HasCallStack, MonadIO m, IsStackSidebar a, IsStack b) => a -> b -> m ()
- constructStackSidebarStack :: (IsStackSidebar o, IsStack a) => a -> IO (GValueConstruct o)
- getStackSidebarStack :: (MonadIO m, IsStackSidebar o) => o -> m (Maybe Stack)
- setStackSidebarStack :: (MonadIO m, IsStackSidebar o, IsStack a) => o -> a -> m ()
Exported types
newtype StackSidebar Source #
Constructors
StackSidebar (ManagedPtr StackSidebar) |
class GObject o => IsStackSidebar o Source #
Instances
toStackSidebar :: (MonadIO m, IsStackSidebar o) => o -> m StackSidebar Source #
Methods
getStack
Arguments
:: (HasCallStack, MonadIO m, IsStackSidebar a) | |
=> a |
|
-> m (Maybe Stack) | Returns: the associated |
Retrieves the stack.
See stackSidebarSetStack
.
Since: 3.16
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m StackSidebar | Returns: the new |
Creates a new sidebar.
Since: 3.16
setStack
Arguments
:: (HasCallStack, MonadIO m, IsStackSidebar a, IsStack b) | |
=> a |
|
-> b |
|
-> m () |
Set the Stack
associated with this StackSidebar
.
The sidebar widget will automatically update according to the order
(packing) and items within the given Stack
.
Since: 3.16
Properties
stack
constructStackSidebarStack :: (IsStackSidebar o, IsStack a) => a -> IO (GValueConstruct o) Source #
getStackSidebarStack :: (MonadIO m, IsStackSidebar o) => o -> m (Maybe Stack) Source #
setStackSidebarStack :: (MonadIO m, IsStackSidebar o, IsStack a) => o -> a -> m () Source #