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

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

Graphics.UI.Gtk.General.StockItems

Description

A StockItem is a resource that is know throughout Gtk.

  • Defining you own IconSets as StockItems will make it possible for Gtk to choose the most appropriate sizes and enables themes to override your built in icons. A couple of constants are defined here as well. They are useful in accessing Gtk's predefined items.

Synopsis

Documentation

data StockItem Source

The description of a stock item.

type StockId = DefaultGlibString Source

A synonym for a standard button or icon.

stockAddItem :: [StockItem] -> IO () Source

Add new stock items to Gtk.

stockLookupItem :: StockId -> IO (Maybe StockItem) Source

Lookup an item in stock.

stockListIds :: IO [StockId] Source

Produce a list of all known stock identifiers.

  • Retrieve a list of all known stock identifiers. These can either be added by stockAddItem or by adding items to a IconFactory.
  • The list is sorted alphabetically (sorting is not Unicode aware).