Graphics.UI.Gtk.Layout.Stack

gtk3-0.14.5: 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 #

Instances

Eq Stack # |
Methods (==) :: Stack -> Stack -> Bool # (/=) :: Stack -> Stack -> Bool #
Ord Stack # |
Methods compare :: Stack -> Stack -> Ordering # (<) :: Stack -> Stack -> Bool # (<=) :: Stack -> Stack -> Bool # (>) :: Stack -> Stack -> Bool # (>=) :: Stack -> Stack -> Bool # max :: Stack -> Stack -> Stack # min :: Stack -> Stack -> Stack #
GObjectClass Stack # |
Methods toGObject :: Stack -> GObject # unsafeCastGObject :: GObject -> Stack #
ContainerClass Stack # |
WidgetClass Stack # |

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

gTypeStack :: GType #

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

data StackTransitionType #

Constructors

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

Instances

Enum StackTransitionType # |
Methods succ :: StackTransitionType -> StackTransitionType # pred :: StackTransitionType -> StackTransitionType # toEnum :: Int -> StackTransitionType # fromEnum :: StackTransitionType -> Int # enumFrom :: StackTransitionType -> [StackTransitionType] # enumFromThen :: StackTransitionType -> StackTransitionType -> [StackTransitionType] # enumFromTo :: StackTransitionType -> StackTransitionType -> [StackTransitionType] # enumFromThenTo :: StackTransitionType -> StackTransitionType -> StackTransitionType -> [StackTransitionType] #
Eq StackTransitionType # |
Methods (==) :: StackTransitionType -> StackTransitionType -> Bool # (/=) :: StackTransitionType -> StackTransitionType -> Bool #
Show StackTransitionType # |
Methods showsPrec :: Int -> StackTransitionType -> ShowS # show :: StackTransitionType -> String # showList :: [StackTransitionType] -> ShowS #

# Constructors

stackNew :: IO Stack #

Creates a new `Stack` container.

# Methods

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

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 () #

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 #

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

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

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 () #

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

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

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

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

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 () #

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 () #

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) #

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 () #

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 () #

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 #

Gets whether stack is homogeneous. See `stackSetHomogeneous`.

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

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 #

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

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

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 #

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

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

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

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

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 #

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

# Attributes

stackHhomogeneous :: StackClass self => Attr self Bool #

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

stackHomogeneous :: StackClass self => Attr self Bool #

Homogeneous sizing.

stackInterpolateSize :: StackClass self => Attr self Bool #

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

stackTransitionDuration :: StackClass self => Attr self Int #

The animation duration, in milliseconds.

stackTransitionRunning :: StackClass self => ReadAttr self Bool #

Whether or not the transition is currently running.

stackTransitionType :: StackClass self => Attr self StackTransitionType #

The type of animation used to transition.

stackVhomogeneous :: StackClass self => Attr self Bool #

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

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

The widget currently visible in the stack.

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

The name of the widget currently visible in the stack.