Name

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.

Synopsis

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)

Introduction

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.

Datatypes

type StockId

StockIdString

A synonym for a standard button or icon.

data StockItem

data StockItem =StockItem StockIdStringModifierIntegerString

Methods

stockAddItem

Add new stock items to Gtk.

stockAddItem:: [StockItem]:: IO ()
sis
[]

stockLookupItem

Lookup an item in stock.

stockLookupItem:: StockId:: IO (Maybe StockItem)
stockId

Functions

stockListIds

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

Constants

no type info on symbol stockAdd
no type info on symbol stockApply
no type info on symbol stockBold
no type info on symbol stockCDROM
no type info on symbol stockCancel
no type info on symbol stockClear
no type info on symbol stockClose
no type info on symbol stockColorPicker
no type info on symbol stockConvert
no type info on symbol stockCopy
no type info on symbol stockCut
no type info on symbol stockDelete
no type info on symbol stockDialogError
no type info on symbol stockDialogInfo
no type info on symbol stockDialogQuestion
no type info on symbol stockDialogWarning
no type info on symbol stockDnd
no type info on symbol stockDndMultiple
no type info on symbol stockExecute
no type info on symbol stockFind
no type info on symbol stockFindAndRelpace
no type info on symbol stockFloppy
no type info on symbol stockGoBack
no type info on symbol stockGoDown
no type info on symbol stockGoForward
no type info on symbol stockGoUp
no type info on symbol stockGotoBottom
no type info on symbol stockGotoFirst
no type info on symbol stockGotoLast
no type info on symbol stockGotoTop
no type info on symbol stockHelp
no type info on symbol stockHome
no type info on symbol stockIndex
no type info on symbol stockItalic
no type info on symbol stockJumpTo
no type info on symbol stockJustifyCenter
no type info on symbol stockJustifyFill
no type info on symbol stockJustifyLeft
no type info on symbol stockJustifyRight
no type info on symbol stockMissingImage
no type info on symbol stockNew
no type info on symbol stockNo
no type info on symbol stockOk
no type info on symbol stockOpen
no type info on symbol stockPaste
no type info on symbol stockPreferences
no type info on symbol stockPrint
no type info on symbol stockPrintPreview
no type info on symbol stockProperties
no type info on symbol stockQuit
no type info on symbol stockRedo
no type info on symbol stockRefresh
no type info on symbol stockRemove
no type info on symbol stockRevertToSaved
no type info on symbol stockSave
no type info on symbol stockSaveAs
no type info on symbol stockSelectColor
no type info on symbol stockSelectFont
no type info on symbol stockSortAscending
no type info on symbol stockSortDescending
no type info on symbol stockSpellCheck
no type info on symbol stockStop
no type info on symbol stockStrikethrough
no type info on symbol stockUndelete
no type info on symbol stockUnderline
no type info on symbol stockUndo
no type info on symbol stockYes
no type info on symbol stockZoom
no type info on symbol stockZoomFit
no type info on symbol stockZoomIn
no type info on symbol stockZoomOut