gtk3-0.15.10: Binding to the Gtk+ 3 graphical user interface library

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

Graphics.UI.Gtk.General.StockItems

Description

A StockItem is a resource that is know throughout Gtk.

- Defining you own `IconSet`s as `StockItem`s 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

- data StockItem = StockItem StockId DefaultGlibString [Modifier] KeyVal DefaultGlibString
- type StockId = DefaultGlibString
- siStockId :: StockItem -> StockId
- siLabel :: StockItem -> DefaultGlibString
- siModifier :: StockItem -> [Modifier]
- siKeyval :: StockItem -> KeyVal
- siTransDom :: StockItem -> DefaultGlibString
- stockAddItem :: [StockItem] -> IO ()
- stockLookupItem :: StockId -> IO (Maybe StockItem)
- stockListIds :: IO [StockId]
- stockAbout :: StockId
- stockAdd :: StockId
- stockApply :: StockId
- stockBold :: StockId
- stockCancel :: StockId
- stockCapsLockWarning :: StockId
- stockCDROM :: StockId
- stockClear :: StockId
- stockClose :: StockId
- stockColorPicker :: StockId
- stockConvert :: StockId
- stockConnect :: StockId
- stockCopy :: StockId
- stockCut :: StockId
- stockDelete :: StockId
- stockDialogAuthentication :: StockId
- stockDialogError :: StockId
- stockDialogInfo :: StockId
- stockDialogQuestion :: StockId
- stockDialogWarning :: StockId
- stockDirectory :: StockId
- stockDiscard :: StockId
- stockDisconnect :: StockId
- stockDnd :: StockId
- stockDndMultiple :: StockId
- stockEdit :: StockId
- stockExecute :: StockId
- stockFile :: StockId
- stockFind :: StockId
- stockFindAndRelpace :: StockId
- stockFloppy :: StockId
- stockFullscreen :: StockId
- stockGotoBottom :: StockId
- stockGotoFirst :: StockId
- stockGotoLast :: StockId
- stockGotoTop :: StockId
- stockGoBack :: StockId
- stockGoDown :: StockId
- stockGoForward :: StockId
- stockGoUp :: StockId
- stockHarddisk :: StockId
- stockHelp :: StockId
- stockHome :: StockId
- stockIndent :: StockId
- stockIndex :: StockId
- stockInfo :: StockId
- stockItalic :: StockId
- stockJumpTo :: StockId
- stockJustifyCenter :: StockId
- stockJustifyFill :: StockId
- stockJustifyLeft :: StockId
- stockJustifyRight :: StockId
- stockLeaveFullscreen :: StockId
- stockMediaForward :: StockId
- stockMediaNext :: StockId
- stockMediaPause :: StockId
- stockMediaPlay :: StockId
- stockMediaPrevious :: StockId
- stockMediaRecord :: StockId
- stockMediaRewind :: StockId
- stockMediaStop :: StockId
- stockMissingImage :: StockId
- stockNetwork :: StockId
- stockNew :: StockId
- stockNo :: StockId
- stockOk :: StockId
- stockOpen :: StockId
- stockOrientationLandscape :: StockId
- stockOrientationReverseLandscape :: StockId
- stockOrientationPortrait :: StockId
- stockOrientationReversePortrait :: StockId
- stockPageSetup :: StockId
- stockPaste :: StockId
- stockPreferences :: StockId
- stockPrint :: StockId
- stockPrintError :: StockId
- stockPrintPaused :: StockId
- stockPrintReport :: StockId
- stockPrintWarning :: StockId
- stockPrintPreview :: StockId
- stockProperties :: StockId
- stockQuit :: StockId
- stockRedo :: StockId
- stockRefresh :: StockId
- stockRemove :: StockId
- stockRevertToSaved :: StockId
- stockSave :: StockId
- stockSaveAs :: StockId
- stockSelectAll :: StockId
- stockSelectColor :: StockId
- stockSelectFont :: StockId
- stockSortAscending :: StockId
- stockSortDescending :: StockId
- stockSpellCheck :: StockId
- stockStop :: StockId
- stockStrikethrough :: StockId
- stockUndelete :: StockId
- stockUnderline :: StockId
- stockUndo :: StockId
- stockUnindent :: StockId
- stockYes :: StockId
- stockZoom100 :: StockId
- stockZoomFit :: StockId
- stockZoomIn :: StockId
- stockZoomOut :: StockId

# 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 Source #

alignment :: StockItem -> Int Source #

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

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

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

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

peek :: Ptr StockItem -> IO StockItem Source #

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

type StockId = DefaultGlibString Source #

A synonym for a standard button or icon.

siStockId :: StockItem -> StockId Source #

siLabel :: StockItem -> DefaultGlibString Source #

siModifier :: StockItem -> [Modifier] Source #

siKeyval :: StockItem -> KeyVal 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).

stockAbout :: StockId Source #

stockAdd :: StockId Source #

stockApply :: StockId Source #

stockBold :: StockId Source #

stockCancel :: StockId Source #

stockCapsLockWarning :: StockId Source #

stockCDROM :: StockId Source #

stockClear :: StockId Source #

stockClose :: StockId Source #

stockColorPicker :: StockId Source #

stockConvert :: StockId Source #

stockConnect :: StockId Source #

stockCopy :: StockId Source #

stockCut :: StockId Source #

stockDelete :: StockId Source #

stockDialogAuthentication :: StockId Source #

stockDialogError :: StockId Source #

stockDialogInfo :: StockId Source #

stockDialogQuestion :: StockId Source #

stockDialogWarning :: StockId Source #

stockDirectory :: StockId Source #

stockDiscard :: StockId Source #

stockDisconnect :: StockId Source #

stockDnd :: StockId Source #

stockDndMultiple :: StockId Source #

stockEdit :: StockId Source #

stockExecute :: StockId Source #

stockFile :: StockId Source #

stockFind :: StockId Source #

stockFindAndRelpace :: StockId Source #

stockFloppy :: StockId Source #

stockFullscreen :: StockId Source #

stockGotoBottom :: StockId Source #

stockGotoFirst :: StockId Source #

stockGotoLast :: StockId Source #

stockGotoTop :: StockId Source #

stockGoBack :: StockId Source #

stockGoDown :: StockId Source #

stockGoForward :: StockId Source #

stockGoUp :: StockId Source #

stockHarddisk :: StockId Source #

stockHelp :: StockId Source #

stockHome :: StockId Source #

stockIndent :: StockId Source #

stockIndex :: StockId Source #

stockInfo :: StockId Source #

stockItalic :: StockId Source #

stockJumpTo :: StockId Source #

stockJustifyCenter :: StockId Source #

stockJustifyFill :: StockId Source #

stockJustifyLeft :: StockId Source #

stockJustifyRight :: StockId Source #

stockLeaveFullscreen :: StockId Source #

stockMediaForward :: StockId Source #

stockMediaNext :: StockId Source #

stockMediaPause :: StockId Source #

stockMediaPlay :: StockId Source #

stockMediaPrevious :: StockId Source #

stockMediaRecord :: StockId Source #

stockMediaRewind :: StockId Source #

stockMediaStop :: StockId Source #

stockMissingImage :: StockId Source #

stockNetwork :: StockId Source #

stockNew :: StockId Source #

stockNo :: StockId Source #

stockOk :: StockId Source #

stockOpen :: StockId Source #

stockOrientationLandscape :: StockId Source #

stockOrientationReverseLandscape :: StockId Source #

stockOrientationPortrait :: StockId Source #

stockOrientationReversePortrait :: StockId Source #

stockPageSetup :: StockId Source #

stockPaste :: StockId Source #

stockPreferences :: StockId Source #

stockPrint :: StockId Source #

stockPrintError :: StockId Source #

stockPrintPaused :: StockId Source #

stockPrintReport :: StockId Source #

stockPrintWarning :: StockId Source #

stockPrintPreview :: StockId Source #

stockProperties :: StockId Source #

stockQuit :: StockId Source #

stockRedo :: StockId Source #

stockRefresh :: StockId Source #

stockRemove :: StockId Source #

stockRevertToSaved :: StockId Source #

stockSave :: StockId Source #

stockSaveAs :: StockId Source #

stockSelectAll :: StockId Source #

stockSelectColor :: StockId Source #

stockSelectFont :: StockId Source #

stockSortAscending :: StockId Source #

stockSortDescending :: StockId Source #

stockSpellCheck :: StockId Source #

stockStop :: StockId Source #

stockStrikethrough :: StockId Source #

stockUndelete :: StockId Source #

stockUnderline :: StockId Source #

stockUndo :: StockId Source #

stockUnindent :: StockId Source #

stockYes :: StockId Source #

stockZoom100 :: StockId Source #

stockZoomFit :: StockId Source #

stockZoomIn :: StockId Source #

stockZoomOut :: StockId Source #