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

Portabilityportable (depends on GHC)
Safe HaskellSafe-Infered



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.



data StockItem Source

The description of a stock item.


type StockId = StringSource

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).