gtk3-0.15.10: Binding to the Gtk+ 3 graphical user interface library

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

Graphics.UI.Gtk.Layout.Stack

Contents

- Detail
- Class Hierarchy
- Types
- Constructors
- Methods
- Attributes

Description

A widget which controls the alignment and size of its child

Synopsis

- data Stack
- castToStack :: GObjectClass obj => obj -> Stack
- gTypeStack :: GType
- toStack :: StackClass o => o -> Stack
- data StackTransitionType
  - = StackTransitionTypeNone
  - | StackTransitionTypeCrossfade
  - | StackTransitionTypeSlideRight
  - | StackTransitionTypeSlideLeft
  - | StackTransitionTypeSlideUp
  - | StackTransitionTypeSlideDown
  - | StackTransitionTypeSlideLeftRight
  - | StackTransitionTypeSlideUpDown
  - | StackTransitionTypeOverUp
  - | StackTransitionTypeOverDown
  - | StackTransitionTypeOverLeft
  - | StackTransitionTypeOverRight
  - | StackTransitionTypeUnderUp
  - | StackTransitionTypeUnderDown
  - | StackTransitionTypeUnderLeft
  - | StackTransitionTypeUnderRight
  - | StackTransitionTypeOverUpDown
  - | StackTransitionTypeOverDownUp
  - | StackTransitionTypeOverLeftRight
  - | StackTransitionTypeOverRightLeft
- stackNew :: IO Stack
- stackAddNamed :: (StackClass self, WidgetClass child, GlibString name) => self -> child -> name -> IO ()
- stackAddTitled :: (StackClass self, WidgetClass child, GlibString name, GlibString title) => self -> child -> name -> title -> IO ()
- stackGetTransitionType :: StackClass self => self -> IO StackTransitionType
- stackSetTransitionType :: StackClass self => self -> StackTransitionType -> IO ()
- stackSetTransitionDuration :: StackClass self => self -> Int -> IO ()
- stackGetTransitionDuration :: StackClass self => self -> IO Int
- stackGetChildByName :: (StackClass self, GlibString name) => self -> name -> IO Widget
- stackSetVisibleChild :: (StackClass self, WidgetClass child) => self -> child -> IO ()
- stackSetVisibleChildName :: (StackClass self, GlibString name) => self -> name -> IO ()
- stackGetVisibleChildName :: (StackClass self, GlibString name) => self -> IO (Maybe name)
- stackSetVisibleChildFull :: (StackClass self, GlibString name) => self -> name -> StackTransitionType -> IO ()
- stackSetHomogeneous :: StackClass self => self -> Bool -> IO ()
- stackGetHomogeneous :: StackClass self => self -> IO Bool
- stackSetHhomogeneous :: StackClass self => self -> Bool -> IO ()
- stackGetHhomogeneous :: StackClass self => self -> IO Bool
- stackSetVhomogeneous :: StackClass self => self -> Bool -> IO ()
- stackGetVhomogeneous :: StackClass self => self -> IO Bool
- stackGetTransitionRunning :: StackClass self => self -> IO Bool
- stackSetInterpolateSize :: StackClass self => self -> Bool -> IO ()
- stackGetInterpolateSize :: StackClass self => self -> IO Bool
- stackHhomogeneous :: StackClass self => Attr self Bool
- stackHomogeneous :: StackClass self => Attr self Bool
- stackInterpolateSize :: StackClass self => Attr self Bool
- stackTransitionDuration :: StackClass self => Attr self Int
- stackTransitionRunning :: StackClass self => ReadAttr self Bool
- stackTransitionType :: StackClass self => Attr self StackTransitionType
- stackVhomogeneous :: StackClass self => Attr self Bool
- stackVisibleChild :: StackClass self => ReadWriteAttr self (Maybe Widget) Widget
- stackVisibleChildName :: StackClass self => ReadWriteAttr self (Maybe String) String

# Detail

# Class Hierarchy

    | GObject
    | +----Object
    | +----Widget
    | +----Container
    | +----Stack

# Types

data Stack Source #

#### Instances

Instances details

Eq Stack Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods (==) :: Stack -> Stack -> Bool Source # (/=) :: Stack -> Stack -> Bool Source #
Ord Stack Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods compare :: Stack -> Stack -> Ordering Source # (<) :: Stack -> Stack -> Bool Source # (<=) :: Stack -> Stack -> Bool Source # (>) :: Stack -> Stack -> Bool Source # (>=) :: Stack -> Stack -> Bool Source # max :: Stack -> Stack -> Stack Source # min :: Stack -> Stack -> Stack Source #
GObjectClass Stack Source # |
Instance details Defined in Graphics.UI.Gtk.Types Methods toGObject :: Stack -> GObject Source # unsafeCastGObject :: GObject -> Stack Source #
ContainerClass Stack Source # |
Instance details Defined in Graphics.UI.Gtk.Types
WidgetClass Stack Source # |
Instance details Defined in Graphics.UI.Gtk.Types

castToStack :: GObjectClass obj => obj -> Stack Source #

gTypeStack :: GType Source #

toStack :: StackClass o => o -> Stack Source #

data StackTransitionType Source #

Constructors

StackTransitionTypeNone |
StackTransitionTypeCrossfade |
StackTransitionTypeSlideRight |
StackTransitionTypeSlideLeft |
StackTransitionTypeSlideUp |
StackTransitionTypeSlideDown |
StackTransitionTypeSlideLeftRight |
StackTransitionTypeSlideUpDown |
StackTransitionTypeOverUp |
StackTransitionTypeOverDown |
StackTransitionTypeOverLeft |
StackTransitionTypeOverRight |
StackTransitionTypeUnderUp |
StackTransitionTypeUnderDown |
StackTransitionTypeUnderLeft |
StackTransitionTypeUnderRight |
StackTransitionTypeOverUpDown |
StackTransitionTypeOverDownUp |
StackTransitionTypeOverLeftRight |
StackTransitionTypeOverRightLeft |

#### Instances

Instances details

Enum StackTransitionType Source # |

Instance details

Defined in Graphics.UI.Gtk.General.Enums

Methods

succ :: StackTransitionType -> StackTransitionType Source #

pred :: StackTransitionType -> StackTransitionType Source #

toEnum :: Int -> StackTransitionType Source #

fromEnum :: StackTransitionType -> Int Source #

enumFrom :: StackTransitionType -> [StackTransitionType] Source #

enumFromThen :: StackTransitionType -> StackTransitionType -> [StackTransitionType] Source #

enumFromTo :: StackTransitionType -> StackTransitionType -> [StackTransitionType] Source #

enumFromThenTo :: StackTransitionType -> StackTransitionType -> StackTransitionType -> [StackTransitionType] Source #

Show StackTransitionType Source # |
Instance details Defined in Graphics.UI.Gtk.General.Enums Methods showsPrec :: Int -> StackTransitionType -> ShowS Source # show :: StackTransitionType -> String Source # showList :: [StackTransitionType] -> ShowS Source #
Eq StackTransitionType Source # |
Instance details Defined in Graphics.UI.Gtk.General.Enums Methods (==) :: StackTransitionType -> StackTransitionType -> Bool Source # (/=) :: StackTransitionType -> StackTransitionType -> Bool Source #

# Constructors

stackNew :: IO Stack Source #

Creates a new `Stack` container.

# Methods

stackAddNamed :: (StackClass self, WidgetClass child, GlibString name) => self -> child -> name -> IO () Source #

Adds a child to stack . The child is identified by the name.

stackAddTitled :: (StackClass self, WidgetClass child, GlibString name, GlibString title) => self -> child -> name -> title -> IO () Source #

Adds a child to stack. The child is identified by the name. The title will be used by `StackSwitcher` to represent child in a tab bar, so it should be short.

stackGetTransitionType :: StackClass self => self -> IO StackTransitionType Source #

Gets the type of animation that will be used for transitions between pages in stack.

stackSetTransitionType :: StackClass self => self -> StackTransitionType -> IO () Source #

Sets the type of animation that will be used for transitions between pages in stack . Available types include various kinds of fades and slides. The transition type can be changed without problems at runtime, so it is possible to change the animation based on the page that is about to become current.

stackSetTransitionDuration :: StackClass self => self -> Int -> IO () Source #

Sets the duration that transitions between pages in stack will take.

stackGetTransitionDuration :: StackClass self => self -> IO Int Source #

Returns the amount of time (in milliseconds) that transitions between pages in stack will take.

stackGetChildByName :: (StackClass self, GlibString name) => self -> name -> IO Widget Source #

Finds the child of the GtkStack with the name given as the argument. Returns Nothing if there is no child with this name.

stackSetVisibleChild :: (StackClass self, WidgetClass child) => self -> child -> IO () Source #

Makes child the visible child of stack. If child is different from the currently visible child, the transition between the two will be animated with the current transition type of stack. Note that the child widget has to be visible itself (see `widgetShow`) in order to become the visible child of stack.

stackSetVisibleChildName :: (StackClass self, GlibString name) => self -> name -> IO () Source #

Makes the child with the given name visible. If child is different from the currently visible child, the transition between the two will be animated with the current transition type of stack. Note that the child widget has to be visible itself (see `widgetShow`) in order to become the visible child of stack.

stackGetVisibleChildName :: (StackClass self, GlibString name) => self -> IO (Maybe name) Source #

Returns the name of the currently visible child of stack, or Nothing if there is no visible child.

stackSetVisibleChildFull :: (StackClass self, GlibString name) => self -> name -> StackTransitionType -> IO () Source #

Makes the child with the given name visible. Note that the child widget has to be visible itself (see `widgetShow`) in order to become the visible child of stack .

stackSetHomogeneous :: StackClass self => self -> Bool -> IO () Source #

Sets the stack to be homogeneous or not. If it is homogeneous, the stack will request the same size for all its children. If it isn't, the stack may change size when a different child becomes visible.

stackGetHomogeneous :: StackClass self => self -> IO Bool Source #

Gets whether stack is homogeneous. See `stackSetHomogeneous`.

stackSetHhomogeneous :: StackClass self => self -> Bool -> IO () Source #

Sets the stack to be horizontally homogeneous or not. If it is homogeneous, the stack will request the same width for all its children. If it isn't, the stack may change width when a different child becomes visible.

stackGetHhomogeneous :: StackClass self => self -> IO Bool Source #

Gets whether stack is horizontally homogeneous. See `stackSetHhomogeneous`.

stackSetVhomogeneous :: StackClass self => self -> Bool -> IO () Source #

Sets the stack to be vertically homogeneous or not. If it is homogeneous, the stack will request the same height for all its children. If it isn't, the stack may change height when a different child becomes visible.

stackGetVhomogeneous :: StackClass self => self -> IO Bool Source #

Gets whether stack is vertically homogeneous. See `stackSetVhomogeneous`.

stackGetTransitionRunning :: StackClass self => self -> IO Bool Source #

Returns whether the stack is currently in a transition from one page to another.

stackSetInterpolateSize :: StackClass self => self -> Bool -> IO () Source #

Sets whether or not the stack will interpolate its size when changing the visible child. If the 'interpolate-size' property is set to True, stack will interpolate its size between the current one and the one it'll take after changing the visible child, according to the set transition duration.

stackGetInterpolateSize :: StackClass self => self -> IO Bool Source #

Returns whether the stack is set up to interpolate between the sizes of children on page switch.

# Attributes

stackHhomogeneous :: StackClass self => Attr self Bool Source #

True if the stack allocates the same width for all children.

stackHomogeneous :: StackClass self => Attr self Bool Source #

Homogeneous sizing.

stackInterpolateSize :: StackClass self => Attr self Bool Source #

Whether or not the size should smoothly change when changing between differently sized children.

stackTransitionDuration :: StackClass self => Attr self Int Source #

The animation duration, in milliseconds.

stackTransitionRunning :: StackClass self => ReadAttr self Bool Source #

Whether or not the transition is currently running.

stackTransitionType :: StackClass self => Attr self StackTransitionType Source #

The type of animation used to transition.

stackVhomogeneous :: StackClass self => Attr self Bool Source #

True if the stack allocates the same height for all children.

stackVisibleChild :: StackClass self => ReadWriteAttr self (Maybe Widget) Widget Source #

The widget currently visible in the stack.

stackVisibleChildName :: StackClass self => ReadWriteAttr self (Maybe String) String Source #

The name of the widget currently visible in the stack.