gtk-0.15.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.

Constructors

StockItem StockId DefaultGlibString [Modifier] KeyVal DefaultGlibString 

Instances

Instances details
Storable StockItem Source # 
Instance details

Defined in Graphics.UI.Gtk.General.StockItems

Methods

sizeOf :: StockItem -> Int

alignment :: StockItem -> Int

peekElemOff :: Ptr StockItem -> Int -> IO StockItem

pokeElemOff :: Ptr StockItem -> Int -> StockItem -> IO ()

peekByteOff :: Ptr b -> Int -> IO StockItem

pokeByteOff :: Ptr b -> Int -> StockItem -> IO ()

peek :: Ptr StockItem -> IO StockItem

poke :: Ptr StockItem -> StockItem -> IO ()

type StockId = DefaultGlibString Source #

A synonym for a standard button or icon.

siLabel :: StockItem -> DefaultGlibString Source #

siTransDom :: StockItem -> DefaultGlibString Source #

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