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 |
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 :: IsStackSidebar o => o -> IO StackSidebar
- noStackSidebar :: Maybe StackSidebar
- data StackSidebarGetStackMethodInfo
- stackSidebarGetStack :: (HasCallStack, MonadIO m, IsStackSidebar a) => a -> m (Maybe Stack)
- stackSidebarNew :: (HasCallStack, MonadIO m) => m StackSidebar
- data StackSidebarSetStackMethodInfo
- stackSidebarSetStack :: (HasCallStack, MonadIO m, IsStackSidebar a, IsStack b) => a -> b -> m ()
- data StackSidebarStackPropertyInfo
- 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 ()
- stackSidebarStack :: AttrLabelProxy "stack"
Exported types
newtype StackSidebar Source #
GObject StackSidebar Source # | |
IsImplementorIface StackSidebar Source # | |
IsObject StackSidebar Source # | |
IsWidget StackSidebar Source # | |
IsContainer StackSidebar Source # | |
IsBin StackSidebar Source # | |
IsBuildable StackSidebar Source # | |
IsStackSidebar StackSidebar Source # | |
((~) * info (ResolveStackSidebarMethod t StackSidebar), MethodInfo * info StackSidebar p) => IsLabel t (StackSidebar -> p) Source # | |
((~) * info (ResolveStackSidebarMethod t StackSidebar), MethodInfo * info StackSidebar p) => IsLabelProxy t (StackSidebar -> p) Source # | |
HasAttributeList * StackSidebar Source # | |
type AttributeList StackSidebar Source # | |
type SignalList StackSidebar Source # | |
class GObject o => IsStackSidebar o Source #
toStackSidebar :: IsStackSidebar o => o -> IO StackSidebar Source #
Methods
getStack
data StackSidebarGetStackMethodInfo Source #
((~) * signature (m (Maybe Stack)), MonadIO m, IsStackSidebar a) => MethodInfo * StackSidebarGetStackMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsStackSidebar a) | |
=> a |
|
-> m (Maybe Stack) | Returns: the associated |
Retrieves the stack.
See stackSidebarSetStack
.
Since: 3.16
new
:: (HasCallStack, MonadIO m) | |
=> m StackSidebar | Returns: the new |
Creates a new sidebar.
Since: 3.16
setStack
data StackSidebarSetStackMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsStackSidebar a, IsStack b) => MethodInfo * StackSidebarSetStackMethodInfo a signature Source # | |
:: (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
data StackSidebarStackPropertyInfo Source #
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 #
stackSidebarStack :: AttrLabelProxy "stack" Source #