StockItems —
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 you built in icons. A couple of constants are defined here as well. They are useful in accessing Gtk's predefined items.
type
StockId |
data
StockItem |
stockAdd <no type information> |
stockApply <no type information> |
stockBold <no type information> |
stockCDROM <no type information> |
stockCancel <no type information> |
stockClear <no type information> |
stockClose <no type information> |
stockColorPicker <no type information> |
stockConvert <no type information> |
stockCopy <no type information> |
stockCut <no type information> |
stockDelete <no type information> |
stockDialogError <no type information> |
stockDialogInfo <no type information> |
stockDialogQuestion <no type information> |
stockDialogWarning <no type information> |
stockDnd <no type information> |
stockDndMultiple <no type information> |
stockExecute <no type information> |
stockFind <no type information> |
stockFindAndRelpace <no type information> |
stockFloppy <no type information> |
stockGoBack <no type information> |
stockGoDown <no type information> |
stockGoForward <no type information> |
stockGoUp <no type information> |
stockGotoBottom <no type information> |
stockGotoFirst <no type information> |
stockGotoLast <no type information> |
stockGotoTop <no type information> |
stockHelp <no type information> |
stockHome <no type information> |
stockIndex <no type information> |
stockItalic <no type information> |
stockJumpTo <no type information> |
stockJustifyCenter <no type information> |
stockJustifyFill <no type information> |
stockJustifyLeft <no type information> |
stockJustifyRight <no type information> |
stockMissingImage <no type information> |
stockNew <no type information> |
stockNo <no type information> |
stockOk <no type information> |
stockOpen <no type information> |
stockPaste <no type information> |
stockPreferences <no type information> |
stockPrint <no type information> |
stockPrintPreview <no type information> |
stockProperties <no type information> |
stockQuit <no type information> |
stockRedo <no type information> |
stockRefresh <no type information> |
stockRemove <no type information> |
stockRevertToSaved <no type information> |
stockSave <no type information> |
stockSaveAs <no type information> |
stockSelectColor <no type information> |
stockSelectFont <no type information> |
stockSortAscending <no type information> |
stockSortDescending <no type information> |
stockSpellCheck <no type information> |
stockStop <no type information> |
stockStrikethrough <no type information> |
stockUndelete <no type information> |
stockUnderline <no type information> |
stockUndo <no type information> |
stockYes <no type information> |
stockZoom <no type information> |
stockZoomFit <no type information> |
stockZoomIn <no type information> |
stockZoomOut <no type information> |
stockListIds:: IO [StockId] |
stockAddItem:: [StockItem] -> IO () |
stockLookupItem:: StockId -> IO (Maybe StockItem) |
The StockItem structure is completely marshaled to haskell. It is possible to marshal all strings lazily because the string pointers are valid throughout the lifetime of the application. The only drawback it that a stock item that is replaced by the another item with the same name will never be freed. This deficiency is built into Gtk however.
Produce a list of all known stock identifiers.
| stockListIds |
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).