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

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

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.

Instances

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