gtk-0.12.0: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk

Contents

Description

This module gathers all publicly available functions from the Gtk binding.

Synopsis

General things, initialization

Drawing and other Low-Level Operations

cairo integration

Global Cairo settings.

cairoFontMapSetResolution :: FontMap -> Double -> IO ()

cairoFontMapGetResolution :: FontMap -> IO Double

cairoCreateContext :: Maybe FontMap -> IO PangoContext

cairoContextSetResolution :: PangoContext -> Double -> IO ()

cairoContextGetResolution :: PangoContext -> IO Double

cairoContextSetFontOptions :: PangoContext -> FontOptions -> IO ()

cairoContextGetFontOptions :: PangoContext -> IO FontOptions

Functions for the Render monad.

renderWithDrawable

Arguments

:: DrawableClass drawable 
=> drawable

drawable - a Drawable

-> Render a

A newly created Cairo context.

-> IO a 

Creates a Cairo context for drawing to a Drawable.

setSourceColor :: Color -> Render ()

setSourcePixbuf

Arguments

:: Pixbuf 
-> Double

x

-> Double

y

-> Render () 

Sets the given pixbuf as the source pattern for the Cairo context. The pattern has an extend mode of ExtendNone and is aligned so that the origin of pixbuf is (x, y).

region :: Region -> Render ()

Adds the given region to the current path of the Render context.

updateContext :: PangoContext -> Render ()

createLayout :: String -> Render PangoLayout

updateLayout :: PangoLayout -> Render ()

showGlyphString :: GlyphItem -> Render ()

showLayoutLine :: LayoutLine -> Render ()

showLayout :: PangoLayout -> Render ()

glyphStringPath :: GlyphItem -> Render ()

layoutLinePath :: LayoutLine -> Render ()

layoutPath :: PangoLayout -> Render ()

Windows

Display widgets,

Buttons and toggles

Numeric/text data entry

Multiline text editor

Tree and list widget

Menus, combo box, toolbar

Action-based menus and toolbars

Selectors (file/font/color)

Special-purpose features

File chooser

Layout containers

Ornaments

Printing

Recent

Scrolling

Miscellaneous

Abstract base classes

Cross-process embedding

Non-widgets

Pango text layout modules