Gtk2HsContentsIndex
Graphics.UI.Gtk.Ornaments.Frame
Description
This container adds a frame around its contents. This is useful to logically separate items in a dialog box.
Synopsis
data Frame
class BinClass o => FrameClass o
castToFrame :: GObjectClass obj => obj -> Frame
frameNew :: IO Frame
frameSetLabel :: FrameClass f => f -> String -> IO ()
frameGetLabel :: FrameClass f => f -> IO String
frameSetLabelWidget :: (FrameClass f, WidgetClass w) => f -> w -> IO ()
frameGetLabelWidget :: FrameClass f => f -> IO (Maybe Widget)
frameSetLabelAlign :: FrameClass f => f -> Float -> IO ()
frameGetLabelAlign :: FrameClass f => f -> IO Float
data ShadowType
= ShadowNone
| ShadowIn
| ShadowOut
| ShadowEtchedIn
| ShadowEtchedOut
frameSetShadowType :: FrameClass f => f -> ShadowType -> IO ()
frameGetShadowType :: FrameClass f => f -> IO ShadowType
Documentation
data Frame
Instances
FrameClass Frame
BinClass Frame
ContainerClass Frame
WidgetClass Frame
ObjectClass Frame
GObjectClass Frame
class BinClass o => FrameClass o
Instances
FrameClass Frame
FrameClass AspectFrame
castToFrame :: GObjectClass obj => obj -> Frame
frameNew :: IO Frame

Create a new frame without a label.

frameSetLabel :: FrameClass f => f -> String -> IO ()
Replace the label of the frame.
frameGetLabel :: FrameClass f => f -> IO String

Retrieve the label of the frame.

  • An exception is thrown if a non-Label widget was set.
frameSetLabelWidget :: (FrameClass f, WidgetClass w) => f -> w -> IO ()
Replace the label with a (label) widget.
frameGetLabelWidget :: FrameClass f => f -> IO (Maybe Widget)
Get the label widget for the frame.
frameSetLabelAlign :: FrameClass f => f -> Float -> IO ()

Specify where the label should be placed.

  • A value of 0.0 means left justified (the default), a value of 1.0 means right justified.
frameGetLabelAlign :: FrameClass f => f -> IO Float
Get the label's horazontal alignment.
data ShadowType
Shadow types
Constructors
ShadowNone
ShadowIn
ShadowOut
ShadowEtchedIn
ShadowEtchedOut
Instances
Enum ShadowType
frameSetShadowType :: FrameClass f => f -> ShadowType -> IO ()
Set the shadow type of the frame.
frameGetShadowType :: FrameClass f => f -> IO ShadowType
Set the shadow type of the frame.
Produced by Haddock version 0.6