Gtk2HsContentsIndex
Graphics.UI.Gtk.General.StockItems
Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
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
data StockItem = StockItem {
siStockId :: StockId
siLabel :: String
siModifier :: [Modifier]
siKeyval :: KeyVal
siTransDom :: String
}
type StockId = String
siStockId :: StockItem -> StockId
siLabel :: StockItem -> String
siModifier :: StockItem -> [Modifier]
siKeyval :: StockItem -> KeyVal
siTransDom :: StockItem -> String
stockAddItem :: [StockItem] -> IO ()
stockLookupItem :: StockId -> IO (Maybe StockItem)
stockListIds :: IO [StockId]
stockAbout :: StockId
stockAdd :: StockId
stockApply :: StockId
stockBold :: StockId
stockCancel :: 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
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
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
stockPaste :: StockId
stockPreferences :: StockId
stockPrint :: 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
The description of a stock item.
Constructors
StockItem
siStockId :: StockId
siLabel :: String
siModifier :: [Modifier]
siKeyval :: KeyVal
siTransDom :: String
show/hide Instances
Storable StockItem
type StockId = String
A synonym for a standard button or icon.
siStockId :: StockItem -> StockId
siLabel :: StockItem -> String
siModifier :: StockItem -> [Modifier]
siKeyval :: StockItem -> KeyVal
siTransDom :: StockItem -> String
stockAddItem :: [StockItem] -> IO ()
Add new stock items to Gtk.
stockLookupItem :: StockId -> IO (Maybe StockItem)
Lookup an item in stock.
stockListIds :: IO [StockId]

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
<images/stock-icons/stock_about_24.png>
stockAdd :: StockId
<images/stock-icons/stock_add_24.png>
stockApply :: StockId
<images/stock-icons/stock_apply_20.png>
stockBold :: StockId
<images/stock-icons/stock_text_bold_24.png>
stockCancel :: StockId
<images/stock-icons/stock_cancel_20.png>
stockCDROM :: StockId
<images/stock-icons/stock_cdrom_24.png>
stockClear :: StockId
<images/stock-icons/stock_clear_24.png>
stockClose :: StockId
<images/stock-icons/stock_close_24.png>
stockColorPicker :: StockId
<images/stock-icons/stock_color_picker_25.png>
stockConvert :: StockId
<images/stock-icons/stock_convert_24.png>
stockConnect :: StockId
<images/stock-icons/stock_connect_24.png>
stockCopy :: StockId
<images/stock-icons/stock_copy_24.png>
stockCut :: StockId
<images/stock-icons/stock_cut_24.png>
stockDelete :: StockId
<images/stock-icons/stock_trash_24.png>
stockDialogAuthentication :: StockId
<images/stock-icons/stock_dialog_authentication_48.png>
stockDialogError :: StockId
<images/stock-icons/stock_dialog_error_48.png>
stockDialogInfo :: StockId
<images/stock-icons/stock_dialog_info_48.png>
stockDialogQuestion :: StockId
<images/stock-icons/stock_dialog_question_48.png>
stockDialogWarning :: StockId
<images/stock-icons/stock_dialog_warning_48.png>
stockDirectory :: StockId
<images/stock-icons/stock_directory_24.png>
stockDisconnect :: StockId
<images/stock-icons/stock_disconnect_24.png>
stockDnd :: StockId
<images/stock-icons/stock_dnd_32.png>
stockDndMultiple :: StockId
<images/stock-icons/stock_dnd_multiple_32.png>
stockEdit :: StockId
<images/stock-icons/stock_edit_24.png>
stockExecute :: StockId
<images/stock-icons/stock_exec_24.png>
stockFile :: StockId
<images/stock-icons/stock_file_24.png>
stockFind :: StockId
<images/stock-icons/stock_search_24.png>
stockFindAndRelpace :: StockId
<images/stock-icons/stock_search_replace_24.png>
stockFloppy :: StockId
<images/stock-icons/stock_save_24.png>
stockFullscreen :: StockId
<images/stock-icons/stock_fullscreen_24.png>
stockGotoBottom :: StockId
<images/stock-icons/stock_bottom_24.png>
stockGotoFirst :: StockId
<images/stock-icons/stock_first_24.png>
stockGotoLast :: StockId
<images/stock-icons/stock_last_24.png>
stockGotoTop :: StockId
<images/stock-icons/stock_top_24.png>
stockGoBack :: StockId
<images/stock-icons/stock_left_arrow_24.png>
stockGoDown :: StockId
<images/stock-icons/stock_down_arrow_24.png>
stockGoForward :: StockId
<images/stock-icons/stock_right_arrow_24.png>
stockGoUp :: StockId
<images/stock-icons/stock_up_arrow_24.png>
stockHarddisk :: StockId
<images/stock-icons/stock_harddisk_24.png>
stockHelp :: StockId
<images/stock-icons/stock_help_24.png>
stockHome :: StockId
<images/stock-icons/stock_home_24.png>
stockIndent :: StockId
<images/stock-icons/stock_text_indent_24.png>
stockIndex :: StockId
<images/stock-icons/stock_index_24.png>
stockInfo :: StockId
<images/stock-icons/stock_info_24.png>
stockItalic :: StockId
<images/stock-icons/stock_text_italic_24.png>
stockJumpTo :: StockId
<images/stock-icons/stock_jump_to_24.png>
stockJustifyCenter :: StockId
<images/stock-icons/stock_align_center_24.png>
stockJustifyFill :: StockId
<images/stock-icons/stock_align_justify_24.png>
stockJustifyLeft :: StockId
<images/stock-icons/stock_align_left_24.png>
stockJustifyRight :: StockId
<images/stock-icons/stock_align_right_24.png>
stockMediaForward :: StockId
<images/stock-icons/stock_media_forward_24.png>
stockMediaNext :: StockId
<images/stock-icons/stock_media_next_24.png>
stockMediaPause :: StockId
<images/stock-icons/stock_media_pause_24.png>
stockMediaPlay :: StockId
<images/stock-icons/stock_media_play_24.png>
stockMediaPrevious :: StockId
<images/stock-icons/stock_media_previous_24.png>
stockMediaRecord :: StockId
<images/stock-icons/stock_media_record_24.png>
stockMediaRewind :: StockId
<images/stock-icons/stock_media_rewind_24.png>
stockMediaStop :: StockId
<images/stock-icons/stock_media_stop_24.png>
stockMissingImage :: StockId
<images/stock-icons/stock_broken_image_24.png>
stockNetwork :: StockId
<images/stock-icons/stock_network_24.png>
stockNew :: StockId
<images/stock-icons/stock_new_24.png>
stockNo :: StockId
<images/stock-icons/stock_no_20.png>
stockOk :: StockId
<images/stock-icons/stock_ok_20.png>
stockOpen :: StockId
<images/stock-icons/stock_open_24.png>
stockOrientationLandscape :: StockId
<images/stock-icons/stock_orientation_landscape_24.png>
stockOrientationReverseLandscape :: StockId
<images/stock-icons/stock_orientation_reverse_landscape_24.png>
stockOrientationPortrait :: StockId
<images/stock-icons/stock_orientation_portrait_24.png>
stockOrientationReversePortrait :: StockId
<images/stock-icons/stock_orientation_reverse_portrait_24.png>
stockPaste :: StockId
<images/stock-icons/stock_paste_24.png>
stockPreferences :: StockId
<images/stock-icons/stock_preferences_24.png>
stockPrint :: StockId
<images/stock-icons/stock_print_24.png>
stockPrintPreview :: StockId
<images/stock-icons/stock_print_preview_24.png>
stockProperties :: StockId
<images/stock-icons/stock_properties_24.png>
stockQuit :: StockId
<images/stock-icons/stock_exit_24.png>
stockRedo :: StockId
<images/stock-icons/stock_redo_24.png>
stockRefresh :: StockId
<images/stock-icons/stock_refresh_24.png>
stockRemove :: StockId
<images/stock-icons/stock_remove_24.png>
stockRevertToSaved :: StockId
<images/stock-icons/stock_revert_24.png>
stockSave :: StockId
<images/stock-icons/stock_save_24.png>
stockSaveAs :: StockId
<images/stock-icons/stock_save_as_24.png>
stockSelectAll :: StockId
<images/stock-icons/stock_select_all_24.png>
stockSelectColor :: StockId
<images/stock-icons/stock_colorselector_24.png>
stockSelectFont :: StockId
<images/stock-icons/stock_font_24.png>
stockSortAscending :: StockId
<images/stock-icons/stock_sort_ascending_24.png>
stockSortDescending :: StockId
<images/stock-icons/stock_sort_descending_24.png>
stockSpellCheck :: StockId
<images/stock-icons/stock_spellcheck_24.png>
stockStop :: StockId
<images/stock-icons/stock_stop_24.png>
stockStrikethrough :: StockId
<images/stock-icons/stock_text_strikethrough_24.png>
stockUndelete :: StockId
<images/stock-icons/stock_undelete_24.png>
stockUnderline :: StockId
<images/stock-icons/stock_text_underline_24.png>
stockUndo :: StockId
<images/stock-icons/stock_undo_24.png>
stockUnindent :: StockId
<images/stock-icons/stock_text_unindent_24.png>
stockYes :: StockId
<images/stock-icons/stock_yes_20.png>
stockZoom100 :: StockId
<images/stock-icons/stock_zoom_1_24.png>
stockZoomFit :: StockId
<images/stock-icons/stock_zoom_fit_24.png>
stockZoomIn :: StockId
<images/stock-icons/stock_zoom_in_24.png>
stockZoomOut :: StockId
<images/stock-icons/stock_zoom_out_24.png>
Produced by Haddock version 0.8