Gtk2HsContentsIndex
Graphics.UI.Gtk.General.Structs
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Description
Synopsis
type Point = (Int, Int)
data Rectangle = Rectangle Int Int Int Int
data Color = Color Word16 Word16 Word16
data GCValues = GCValues {
foreground :: Color
background :: Color
function :: Function
fill :: Fill
tile :: (Maybe Pixmap)
stipple :: (Maybe Pixmap)
clipMask :: (Maybe Pixmap)
subwindowMode :: SubwindowMode
tsXOrigin :: Int
tsYOrigin :: Int
clipXOrigin :: Int
clipYOrigin :: Int
graphicsExposure :: Bool
lineWidth :: Int
lineStyle :: LineStyle
capStyle :: CapStyle
joinStyle :: JoinStyle
}
pokeGCValues :: Ptr GCValues -> GCValues -> IO CInt
newGCValues :: GCValues
widgetGetState :: WidgetClass w => w -> IO StateType
widgetGetSavedState :: WidgetClass w => w -> IO StateType
type Allocation = Rectangle
data Requisition = Requisition Int Int
treeIterSize :: Int
textIterSize :: Int
inputError :: Int32
dialogGetUpper :: DialogClass dc => dc -> IO VBox
dialogGetActionArea :: DialogClass dc => dc -> IO HBox
fileSelectionGetButtons :: FileSelectionClass fsel => fsel -> IO (Button, Button)
data ResponseId
= ResponseNone
| ResponseReject
| ResponseAccept
| ResponseDeleteEvent
| ResponseOk
| ResponseCancel
| ResponseClose
| ResponseYes
| ResponseNo
| ResponseApply
| ResponseHelp
| ResponseUser Int
fromResponse :: Integral a => ResponseId -> a
toResponse :: Integral a => a -> ResponseId
toolbarChildButton :: CInt
toolbarChildToggleButton :: CInt
toolbarChildRadioButton :: CInt
type IconSize = Int
iconSizeInvalid :: IconSize
iconSizeMenu :: IconSize
iconSizeSmallToolbar :: IconSize
iconSizeLargeToolbar :: IconSize
iconSizeButton :: IconSize
iconSizeDialog :: IconSize
comboGetList :: Combo -> IO List
priorityLow :: Int
priorityDefaultIdle :: Int
priorityHighIdle :: Int
priorityDefault :: Int
priorityHigh :: Int
drawingAreaGetDrawWindow :: DrawingArea -> IO DrawWindow
drawingAreaGetSize :: DrawingArea -> IO (Int, Int)
pangoScale :: Integer
styleGetForeground :: StateType -> Style -> IO GC
styleGetBackground :: StateType -> Style -> IO GC
styleGetLight :: StateType -> Style -> IO GC
styleGetMiddle :: StateType -> Style -> IO GC
styleGetDark :: StateType -> Style -> IO GC
styleGetText :: StateType -> Style -> IO GC
styleGetBase :: StateType -> Style -> IO GC
styleGetAntiAliasing :: StateType -> Style -> IO GC
Documentation
type Point = (Int, Int)
Represents the x and y coordinate of a point.
data Rectangle

Rectangle

  • for Events
  • Specifies x, y, width and height
Constructors
Rectangle Int Int Int Int
show/hide Instances
data Color

Color

  • Specifies a color with three integer values for red, green and blue. All values range from 0 (least intense) to 65535 (highest intensity).
Constructors
Color Word16 Word16 Word16
show/hide Instances
data GCValues

Intermediate data structure for GCs.

  • If graphicsExposure is set then copying portions into a drawable will generate an "exposure" event, even if the destination area is not currently visible.
Constructors
GCValues
foreground :: Color
background :: Color
function :: Function
fill :: Fill
tile :: (Maybe Pixmap)
stipple :: (Maybe Pixmap)
clipMask :: (Maybe Pixmap)
subwindowMode :: SubwindowMode
tsXOrigin :: Int
tsYOrigin :: Int
clipXOrigin :: Int
clipYOrigin :: Int
graphicsExposure :: Bool
lineWidth :: Int
lineStyle :: LineStyle
capStyle :: CapStyle
joinStyle :: JoinStyle
show/hide Instances
pokeGCValues :: Ptr GCValues -> GCValues -> IO CInt
newGCValues :: GCValues
widgetGetState :: WidgetClass w => w -> IO StateType

Retrieve the current state of the widget.

  • The state refers to different modes of user interaction, see StateType for more information.
widgetGetSavedState :: WidgetClass w => w -> IO StateType

Retrieve the current state of the widget.

  • If a widget is turned insensitive, the previous state is stored in a specific location. This function retrieves this previous state.
type Allocation = Rectangle

Allocation

  • for Widget's size_allocate signal
data Requisition

Requisition

  • for Widget's size_request
Constructors
Requisition Int Int
show/hide Instances
treeIterSize :: Int
textIterSize :: Int
inputError :: Int32
dialogGetUpper :: DialogClass dc => dc -> IO VBox

Get the upper part of a dialog.

  • The upper part of a dialog window consists of a VBox. Add the required widgets into this box.
dialogGetActionArea :: DialogClass dc => dc -> IO HBox

Extract the action area of a dialog box.

  • This is useful to add some special widgets that cannot be added with dialogAddActionWidget.
fileSelectionGetButtons :: FileSelectionClass fsel => fsel -> IO (Button, Button)
Extract the buttons of a fileselection.
data ResponseId
Some constructors that can be used as response numbers for dialogs.
Constructors
ResponseNoneGTK returns this if a response widget has no response_id, or if the dialog gets programmatically hidden or destroyed.
ResponseRejectGTK won't return these unless you pass them in as the response for an action widget. They are for your convenience.
ResponseAccept(as above)
ResponseDeleteEventIf the dialog is deleted.
ResponseOk

"Ok" was pressed.

  • This value is returned from the "Ok" stock dialog button.
ResponseCancel

"Cancel" was pressed.

  • These value is returned from the "Cancel" stock dialog button.
ResponseClose

"Close" was pressed.

  • This value is returned from the "Close" stock dialog button.
ResponseYes

"Yes" was pressed.

  • This value is returned from the "Yes" stock dialog button.
ResponseNo

"No" was pressed.

  • This value is returned from the "No" stock dialog button.
ResponseApply

"Apply" was pressed.

  • This value is returned from the "Apply" stock dialog button.
ResponseHelp

"Help" was pressed.

  • This value is returned from the "Help" stock dialog button.
ResponseUser Int

A user-defined response

  • This value is returned from a user defined button
show/hide Instances
fromResponse :: Integral a => ResponseId -> a
toResponse :: Integral a => a -> ResponseId
toolbarChildButton :: CInt
toolbarChildToggleButton :: CInt
toolbarChildRadioButton :: CInt
type IconSize = Int
iconSizeInvalid :: IconSize
iconSizeMenu :: IconSize
iconSizeSmallToolbar :: IconSize
iconSizeLargeToolbar :: IconSize
iconSizeButton :: IconSize
iconSizeDialog :: IconSize
comboGetList :: Combo -> IO List
Extract the List container from a Combo box.
priorityLow :: Int
priorityDefaultIdle :: Int
priorityHighIdle :: Int
priorityDefault :: Int
priorityHigh :: Int
For installing idle callbacks: Priorities.
drawingAreaGetDrawWindow :: DrawingArea -> IO DrawWindow
Retrieves the Drawable part.
drawingAreaGetSize :: DrawingArea -> IO (Int, Int)

Returns the current size.

  • This information may be out of date if the use is resizing the window.
pangoScale :: Integer

Internal unit of measuring sizes.

  • The ref constant pangoScale constant represents the scale between dimensions used for distances in text rendering and device units. (The definition of device units is dependent on the output device; it will typically be pixels for a screen, and points for a printer.) When setting font sizes, device units are always considered to be points (as in "12 point font"), rather than pixels.
styleGetForeground :: StateType -> Style -> IO GC

Retrieve the GC for the foreground color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetBackground :: StateType -> Style -> IO GC

Retrieve the GC for the background color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetLight :: StateType -> Style -> IO GC

Retrieve the GC for a light color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetMiddle :: StateType -> Style -> IO GC

Retrieve the GC for a middle color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetDark :: StateType -> Style -> IO GC

Retrieve the GC for a dark color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetText :: StateType -> Style -> IO GC

Retrieve the GC for the text color.

  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetBase :: StateType -> Style -> IO GC

Retrieve the GC for the base color.

  • The base color is the standard text background of a widget.
  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
styleGetAntiAliasing :: StateType -> Style -> IO GC

Retrieve the GC for drawing anti-aliased text.

  • The anti-aliasing color is the color which is used when the rendering of a character does not make it clear if a certain pixel shoud be set or not. This color is between the text and the base color.
  • The parameter state determines for which widget state (one of StateType) the GC should be recieved. Use widgetGetState to determine the current state of the widget.
Produced by Haddock version 0.7