Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
- General things, initialization
- Drawing and other Low-Level Operations
- Global Cairo settings.
- Functions for the
Render
monad. - 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
- Layout containers
- Ornaments
- Printing
- Recent
- Scrolling
- Miscellaneous
- Abstract base classes
- Cross-process embedding
- Non-widgets
- Pango text layout modules
This module gathers all publicly available functions from the Gtk binding.
- module Graphics.UI.Gtk.General.General
- module Graphics.UI.Gtk.General.IconFactory
- module Graphics.UI.Gtk.General.IconTheme
- module Graphics.UI.Gtk.General.StockItems
- module Graphics.UI.Gtk.General.Selection
- module Graphics.UI.Gtk.General.Drag
- module Graphics.UI.Gtk.Gdk.Keys
- module Graphics.UI.Gtk.General.Style
- module Graphics.UI.Gtk.General.RcStyle
- module Graphics.UI.Gtk.General.Clipboard
- module Graphics.UI.Gtk.Gdk.AppLaunchContext
- module Graphics.UI.Gtk.Gdk.Cursor
- module Graphics.UI.Gtk.Gdk.Drawable
- module Graphics.UI.Gtk.Gdk.DrawWindow
- module Graphics.UI.Gtk.Gdk.Region
- module Graphics.UI.Gtk.Gdk.EventM
- module Graphics.UI.Gtk.Gdk.Pixbuf
- module Graphics.UI.Gtk.Gdk.Pixmap
- module Graphics.UI.Gtk.Gdk.Screen
- module Graphics.UI.Gtk.Gdk.Keymap
- module Graphics.UI.Gtk.Gdk.Display
- module Graphics.UI.Gtk.Gdk.DisplayManager
- module Graphics.UI.Gtk.Gdk.Gdk
- cairoFontMapGetDefault :: IO FontMap
- 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
- renderWithDrawable :: DrawableClass drawable => drawable -> Render a -> IO a
- setSourceColor :: Color -> Render ()
- setSourcePixbuf :: Pixbuf -> Double -> Double -> Render ()
- region :: Region -> Render ()
- 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 ()
- module Graphics.UI.Gtk.Windows.Window
- module Graphics.UI.Gtk.Windows.OffscreenWindow
- module Graphics.UI.Gtk.Windows.Invisible
- module Graphics.UI.Gtk.Windows.Dialog
- module Graphics.UI.Gtk.Windows.AboutDialog
- module Graphics.UI.Gtk.Windows.Assistant
- module Graphics.UI.Gtk.Windows.MessageDialog
- module Graphics.UI.Gtk.Windows.WindowGroup
- module Graphics.UI.Gtk.Display.AccelLabel
- module Graphics.UI.Gtk.Display.Image
- module Graphics.UI.Gtk.Display.Label
- module Graphics.UI.Gtk.Display.ProgressBar
- module Graphics.UI.Gtk.Display.Spinner
- module Graphics.UI.Gtk.Display.Statusbar
- module Graphics.UI.Gtk.Display.StatusIcon
- module Graphics.UI.Gtk.Display.InfoBar
- module Graphics.UI.Gtk.Buttons.Button
- module Graphics.UI.Gtk.Buttons.CheckButton
- module Graphics.UI.Gtk.Buttons.RadioButton
- module Graphics.UI.Gtk.Buttons.ToggleButton
- module Graphics.UI.Gtk.Buttons.LinkButton
- module Graphics.UI.Gtk.Buttons.ScaleButton
- module Graphics.UI.Gtk.Buttons.VolumeButton
- module Graphics.UI.Gtk.Entry.Editable
- module Graphics.UI.Gtk.Entry.Entry
- module Graphics.UI.Gtk.Entry.EntryBuffer
- module Graphics.UI.Gtk.Entry.EntryCompletion
- module Graphics.UI.Gtk.Entry.HScale
- module Graphics.UI.Gtk.Entry.VScale
- module Graphics.UI.Gtk.Entry.SpinButton
- module Graphics.UI.Gtk.Multiline.TextIter
- module Graphics.UI.Gtk.Multiline.TextMark
- module Graphics.UI.Gtk.Multiline.TextBuffer
- module Graphics.UI.Gtk.Multiline.TextTag
- module Graphics.UI.Gtk.Multiline.TextTagTable
- module Graphics.UI.Gtk.Multiline.TextView
- module Graphics.UI.Gtk.ModelView.CellEditable
- module Graphics.UI.Gtk.ModelView.CellLayout
- module Graphics.UI.Gtk.ModelView.CellRenderer
- module Graphics.UI.Gtk.ModelView.CellRendererSpinner
- module Graphics.UI.Gtk.ModelView.CellRendererCombo
- module Graphics.UI.Gtk.ModelView.CellRendererPixbuf
- module Graphics.UI.Gtk.ModelView.CellRendererProgress
- module Graphics.UI.Gtk.ModelView.CellRendererText
- module Graphics.UI.Gtk.ModelView.CellRendererAccel
- module Graphics.UI.Gtk.ModelView.CellRendererSpin
- module Graphics.UI.Gtk.ModelView.CellRendererToggle
- module Graphics.UI.Gtk.ModelView.CellView
- module Graphics.UI.Gtk.ModelView.CustomStore
- module Graphics.UI.Gtk.ModelView.IconView
- module Graphics.UI.Gtk.ModelView.ListStore
- module Graphics.UI.Gtk.ModelView.TreeDrag
- module Graphics.UI.Gtk.ModelView.TreeModel
- module Graphics.UI.Gtk.ModelView.TreeModelSort
- module Graphics.UI.Gtk.ModelView.TreeSortable
- module Graphics.UI.Gtk.ModelView.TreeModelFilter
- module Graphics.UI.Gtk.ModelView.TreeRowReference
- module Graphics.UI.Gtk.ModelView.TreeSelection
- module Graphics.UI.Gtk.ModelView.TreeStore
- module Graphics.UI.Gtk.ModelView.TreeView
- module Graphics.UI.Gtk.ModelView.TreeViewColumn
- module Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.Combo
- module Graphics.UI.Gtk.MenuComboToolbar.ComboBox
- module Graphics.UI.Gtk.MenuComboToolbar.ComboBoxEntry
- module Graphics.UI.Gtk.MenuComboToolbar.Menu
- module Graphics.UI.Gtk.MenuComboToolbar.MenuBar
- module Graphics.UI.Gtk.MenuComboToolbar.MenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.MenuShell
- module Graphics.UI.Gtk.MenuComboToolbar.OptionMenu
- module Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.TearoffMenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.Toolbar
- module Graphics.UI.Gtk.MenuComboToolbar.ToolItem
- module Graphics.UI.Gtk.MenuComboToolbar.ToolItemGroup
- module Graphics.UI.Gtk.MenuComboToolbar.ToolPalette
- module Graphics.UI.Gtk.MenuComboToolbar.ToolButton
- module Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton
- module Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton
- module Graphics.UI.Gtk.MenuComboToolbar.RadioToolButton
- module Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem
- module Graphics.UI.Gtk.MenuComboToolbar.SeparatorToolItem
- module Graphics.UI.Gtk.ActionMenuToolbar.Action
- module Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup
- module Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction
- module Graphics.UI.Gtk.ActionMenuToolbar.RadioAction
- module Graphics.UI.Gtk.ActionMenuToolbar.RecentAction
- module Graphics.UI.Gtk.ActionMenuToolbar.UIManager
- module Graphics.UI.Gtk.Selectors.ColorSelection
- module Graphics.UI.Gtk.Selectors.ColorSelectionDialog
- module Graphics.UI.Gtk.Selectors.ColorButton
- module Graphics.UI.Gtk.Selectors.FileSelection
- module Graphics.UI.Gtk.Selectors.FontSelection
- module Graphics.UI.Gtk.Selectors.FontSelectionDialog
- module Graphics.UI.Gtk.Selectors.FontButton
- module Graphics.UI.Gtk.Selectors.HSV
- module Graphics.UI.Gtk.Special.Ruler
- module Graphics.UI.Gtk.Special.HRuler
- module Graphics.UI.Gtk.Special.VRuler
- module Graphics.UI.Gtk.Selectors.FileChooser
- module Graphics.UI.Gtk.Selectors.FileChooserDialog
- module Graphics.UI.Gtk.Selectors.FileChooserWidget
- module Graphics.UI.Gtk.Selectors.FileChooserButton
- module Graphics.UI.Gtk.Selectors.FileFilter
- module Graphics.UI.Gtk.Layout.Alignment
- module Graphics.UI.Gtk.Layout.AspectFrame
- module Graphics.UI.Gtk.Layout.HBox
- module Graphics.UI.Gtk.Layout.HButtonBox
- module Graphics.UI.Gtk.Layout.Fixed
- module Graphics.UI.Gtk.Layout.HPaned
- module Graphics.UI.Gtk.Layout.Layout
- module Graphics.UI.Gtk.Layout.Notebook
- module Graphics.UI.Gtk.Layout.Expander
- module Graphics.UI.Gtk.Layout.Table
- module Graphics.UI.Gtk.Layout.VBox
- module Graphics.UI.Gtk.Layout.VButtonBox
- module Graphics.UI.Gtk.Layout.VPaned
- module Graphics.UI.Gtk.Ornaments.Frame
- module Graphics.UI.Gtk.Ornaments.HSeparator
- module Graphics.UI.Gtk.Ornaments.VSeparator
- module Graphics.UI.Gtk.Printing.PaperSize
- module Graphics.UI.Gtk.Printing.PageSetup
- module Graphics.UI.Gtk.Printing.PrintContext
- module Graphics.UI.Gtk.Printing.PrintOperation
- module Graphics.UI.Gtk.Printing.PrintSettings
- module Graphics.UI.Gtk.Recent.RecentChooserMenu
- module Graphics.UI.Gtk.Recent.RecentChooserWidget
- module Graphics.UI.Gtk.Recent.RecentFilter
- module Graphics.UI.Gtk.Recent.RecentManager
- module Graphics.UI.Gtk.Recent.RecentInfo
- module Graphics.UI.Gtk.Recent.RecentChooser
- module Graphics.UI.Gtk.Scrolling.HScrollbar
- module Graphics.UI.Gtk.Scrolling.ScrolledWindow
- module Graphics.UI.Gtk.Scrolling.VScrollbar
- module Graphics.UI.Gtk.Misc.Accessible
- module Graphics.UI.Gtk.Misc.Adjustment
- module Graphics.UI.Gtk.Misc.Arrow
- module Graphics.UI.Gtk.Misc.Calendar
- module Graphics.UI.Gtk.Misc.DrawingArea
- module Graphics.UI.Gtk.Misc.EventBox
- module Graphics.UI.Gtk.Misc.HandleBox
- module Graphics.UI.Gtk.Misc.IMMulticontext
- module Graphics.UI.Gtk.Misc.IMContextSimple
- module Graphics.UI.Gtk.Misc.SizeGroup
- module Graphics.UI.Gtk.Misc.Tooltip
- module Graphics.UI.Gtk.Misc.Tooltips
- module Graphics.UI.Gtk.Misc.Viewport
- module Graphics.UI.Gtk.Abstract.Box
- module Graphics.UI.Gtk.Abstract.ButtonBox
- module Graphics.UI.Gtk.Abstract.Container
- module Graphics.UI.Gtk.Abstract.Bin
- module Graphics.UI.Gtk.Abstract.Misc
- module Graphics.UI.Gtk.Abstract.IMContext
- module Graphics.UI.Gtk.Abstract.Object
- module Graphics.UI.Gtk.Abstract.Paned
- module Graphics.UI.Gtk.Abstract.Range
- module Graphics.UI.Gtk.Abstract.Scale
- module Graphics.UI.Gtk.Abstract.Scrollbar
- module Graphics.UI.Gtk.Abstract.Separator
- module Graphics.UI.Gtk.Abstract.Widget
- module Graphics.UI.Gtk.Embedding.Plug
- module Graphics.UI.Gtk.Embedding.Socket
- module System.Glib.Signals
- module System.Glib.Attributes
- module System.Glib.GObject
- module Graphics.UI.Gtk.Builder
- module Graphics.Rendering.Pango.Context
- module Graphics.Rendering.Pango.Markup
- module Graphics.Rendering.Pango.Layout
- module Graphics.Rendering.Pango.Rendering
- module Graphics.Rendering.Pango.Font
- module Graphics.Rendering.Pango.Enums
General things, initialization
module Graphics.UI.Gtk.General.Drag
module Graphics.UI.Gtk.Gdk.Keys
Drawing and other Low-Level Operations
module Graphics.UI.Gtk.Gdk.Cursor
module Graphics.UI.Gtk.Gdk.Drawable
module Graphics.UI.Gtk.Gdk.Region
module Graphics.UI.Gtk.Gdk.EventM
module Graphics.UI.Gtk.Gdk.Pixbuf
module Graphics.UI.Gtk.Gdk.Pixmap
module Graphics.UI.Gtk.Gdk.Screen
module Graphics.UI.Gtk.Gdk.Keymap
module Graphics.UI.Gtk.Gdk.Display
module Graphics.UI.Gtk.Gdk.Gdk
cairo integration
Global Cairo settings.
cairoFontMapGetDefault :: IO FontMap
Retrieve the default Graphics.Rendering.Pango.FontMap
that contains a
list of available fonts.
- One purpose of creating an explicit
Graphics.Rendering.Pango.Font.FontMap
is to set a different scaling factor between font sizes (in points, pt) and Cairo units (in pixels). The default is 96dpi (dots per inch) which corresponds to an average screen as output medium. A 10pt font will therefore scale to10pt * (1/72 pt/inch) * (96 pixel/inch) = 13.3 pixel
.
cairoFontMapSetResolution :: FontMap -> Double -> IO ()
Set the scaling factor between font size and Cairo units.
- Value is in dots per inch (dpi). See
cairoFontMapGetDefault
.
cairoFontMapGetResolution :: FontMap -> IO Double
Ask for the scaling factor between font size and Cairo units.
- Value is in dots per inch (dpi). See
cairoFontMapGetDefault
.
cairoCreateContext :: Maybe FontMap -> IO PangoContext
Create a PangoContext
.
- If no
FontMap
is specified, it uses the defaultFontMap
that has a scaling factor of 96 dpi. SeecairoFontMapGetDefault
.
cairoContextSetResolution :: PangoContext -> Double -> IO ()
Set the scaling factor of the PangoContext
.
- Supplying zero or a negative value will result in the resolution value
of the underlying
FontMap
to be used. See alsocairoFontMapGetDefault
.
cairoContextGetResolution :: PangoContext -> IO Double
Ask for the scaling factor of the PangoContext
.
- A negative value will be returned if no resolution has been set.
See
cairoContextSetResolution
.
cairoContextSetFontOptions :: PangoContext -> FontOptions -> IO ()
Set Cairo font options.
- Apply the given font options to the context. Values set through this
functions override those that are set by
updateContext
.
cairoContextGetFontOptions :: PangoContext -> IO FontOptions
Retrieve Cairo font options.
Functions for the Render
monad.
:: DrawableClass drawable | |
=> drawable |
|
-> Render a | A newly created Cairo context. |
-> IO a |
Creates a Cairo context for drawing to a Drawable
.
setSourceColor :: Color -> 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)
.
updateContext :: PangoContext -> Render ()
Update a PangoContext
with respect to changes in a Render
environment.
- The
PangoContext
must have been created withcairoCreateContext
. AnyPangoLayout
s that have been previously created with this context have to be update usingGraphics.Rendering.Pango.Layout.layoutContextChanged
.
createLayout :: String -> Render PangoLayout
Create a PangoLayout
within a Render
context.
- This is a convenience function that creates a new
PangoContext
within thisRender
context and creates a newPangoLayout
. If the transformation or target surface of theRender
context change,updateLayout
has to be called on this layout.
updateLayout :: PangoLayout -> Render ()
Propagate changed to the Render
context to a PangoLayout
.
- This is a convenience function that calls
updateContext
on the (private)PangoContext
of the given layout to propagate changes from theRender
context to thePangoContext
and then callsGraphics.Rendering.Pango.Layout.layoutContextChanged
on the layout. This function is necessary forcreateLayout
since a privatePangoContext
is created that is not visible to the user.
showGlyphString :: GlyphItem -> Render ()
Draw a glyph string.
- The origin of the glyphs (the left edge of the baseline) will be drawn at the current point of the cairo context.
showLayoutLine :: LayoutLine -> Render ()
Draw a LayoutLine
.
- The origin of the glyphs (the left edge of the baseline) will be drawn at the current point of the cairo context.
showLayout :: PangoLayout -> Render ()
Draw a PangoLayout
.
- The top-left corner of the
PangoLayout
will be drawn at the current point of the cairo context.
glyphStringPath :: GlyphItem -> Render ()
Add the extent of a glyph string to the current path.
- The origin of the glyphs (the left edge of the line) will be at the current point of the cairo context.
layoutLinePath :: LayoutLine -> Render ()
Add the extent of a layout line to the current path.
- The origin of the glyphs (the left edge of the line) will be at the current point of the cairo context.
layoutPath :: PangoLayout -> Render ()
Add the layout to the current path.
- Adds the top-left corner of the text to the current path. Afterwards,
the path position is at the bottom-right corner of the
PangoLayout
.
Windows
Display widgets,
Buttons and toggles
Numeric/text data entry
module Graphics.UI.Gtk.Entry.Entry
module Graphics.UI.Gtk.Entry.HScale
module Graphics.UI.Gtk.Entry.VScale
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
module Graphics.UI.Gtk.Layout.HBox
module Graphics.UI.Gtk.Layout.Fixed
module Graphics.UI.Gtk.Layout.Table
module Graphics.UI.Gtk.Layout.VBox
Ornaments
Printing
Recent
Scrolling
Miscellaneous
module Graphics.UI.Gtk.Misc.Arrow
module Graphics.UI.Gtk.Misc.Tooltip
Abstract base classes
module Graphics.UI.Gtk.Abstract.Box
module Graphics.UI.Gtk.Abstract.Bin
Cross-process embedding
Non-widgets
module System.Glib.Signals
module System.Glib.Attributes
module System.Glib.GObject
module Graphics.UI.Gtk.Builder