gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.StackSwitcher

Contents

Description

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.

Synopsis

Exported types

Methods

getStack

stackSwitcherGetStack Source #

Arguments

:: (HasCallStack, MonadIO m, IsStackSwitcher a) 
=> a

switcher: a StackSwitcher

-> m (Maybe Stack)

Returns: the stack, or Nothing if none has been set explicitly.

Retrieves the stack. See stackSwitcherSetStack.

Since: 3.10

new

stackSwitcherNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m StackSwitcher

Returns: a new StackSwitcher.

Create a new StackSwitcher.

Since: 3.10

setStack

stackSwitcherSetStack Source #

Arguments

:: (HasCallStack, MonadIO m, IsStackSwitcher a, IsStack b) 
=> a

switcher: a StackSwitcher

-> Maybe b

stack: a Stack

-> m () 

Sets the stack to control.

Since: 3.10

Properties

iconSize

data StackSwitcherIconSizePropertyInfo Source #

Instances

AttrInfo StackSwitcherIconSizePropertyInfo Source # 
type AttrOrigin StackSwitcherIconSizePropertyInfo Source # 
type AttrLabel StackSwitcherIconSizePropertyInfo Source # 
type AttrGetType StackSwitcherIconSizePropertyInfo Source # 
type AttrBaseTypeConstraint StackSwitcherIconSizePropertyInfo Source # 
type AttrSetTypeConstraint StackSwitcherIconSizePropertyInfo Source # 
type AttrAllowedOps StackSwitcherIconSizePropertyInfo Source # 

stack

data StackSwitcherStackPropertyInfo Source #

Instances

AttrInfo StackSwitcherStackPropertyInfo Source # 
type AttrOrigin StackSwitcherStackPropertyInfo Source # 
type AttrLabel StackSwitcherStackPropertyInfo Source # 
type AttrGetType StackSwitcherStackPropertyInfo Source # 
type AttrBaseTypeConstraint StackSwitcherStackPropertyInfo Source # 
type AttrSetTypeConstraint StackSwitcherStackPropertyInfo Source # 
type AttrAllowedOps StackSwitcherStackPropertyInfo Source #