Gtk::Stock Namespace Reference

## Functions

void | add (const Gtk::StockItem& item)
| Add a stock item to the list of registered stock items. More...
bool | lookup (const Gtk::StockID& stock_id, Gtk::StockItem& item)
| Fills item with the registered values for stock_id. More...
bool | lookup (const Gtk::StockID& stock_id, Glib::RefPtr< Gtk::IconSet >& iconset)
| See IconSet::lookup_default() More...
bool | lookup (const Gtk::StockID& stock_id, Gtk::IconSize size, Gtk::Image& image)
| Receive an Image of the registered stock id with the correct size. More...
std::vector< Gtk::StockID > | get_ids ()
| Retrieves a list of all known stock IDs added to an IconFactory or registered with Stock::add(). More...

## Variables

const Gtk::BuiltinStockID | DIALOG_AUTHENTICATION
const Gtk::BuiltinStockID | DIALOG_INFO
const Gtk::BuiltinStockID | DIALOG_WARNING
const Gtk::BuiltinStockID | DIALOG_ERROR
const Gtk::BuiltinStockID | DIALOG_QUESTION
const Gtk::BuiltinStockID | DND
const Gtk::BuiltinStockID | DND_MULTIPLE
const Gtk::BuiltinStockID | ABOUT
const Gtk::BuiltinStockID | ADD
const Gtk::BuiltinStockID | APPLY
const Gtk::BuiltinStockID | BOLD
const Gtk::BuiltinStockID | CANCEL
const Gtk::BuiltinStockID | CAPS_LOCK_WARNING
const Gtk::BuiltinStockID | CDROM
const Gtk::BuiltinStockID | CLEAR
const Gtk::BuiltinStockID | CLOSE
const Gtk::BuiltinStockID | COLOR_PICKER
const Gtk::BuiltinStockID | CONVERT
const Gtk::BuiltinStockID | CONNECT
const Gtk::BuiltinStockID | COPY
const Gtk::BuiltinStockID | CUT
const Gtk::BuiltinStockID | DELETE
const Gtk::BuiltinStockID | DIRECTORY
const Gtk::BuiltinStockID | DISCARD
const Gtk::BuiltinStockID | DISCONNECT
const Gtk::BuiltinStockID | EDIT
const Gtk::BuiltinStockID | EXECUTE
const Gtk::BuiltinStockID | FILE
const Gtk::BuiltinStockID | FIND
const Gtk::BuiltinStockID | FIND_AND_REPLACE
const Gtk::BuiltinStockID | FLOPPY
const Gtk::BuiltinStockID | FULLSCREEN
const Gtk::BuiltinStockID | LEAVE_FULLSCREEN
const Gtk::BuiltinStockID | GOTO_BOTTOM
const Gtk::BuiltinStockID | GOTO_FIRST
const Gtk::BuiltinStockID | GOTO_LAST
const Gtk::BuiltinStockID | GOTO_TOP
const Gtk::BuiltinStockID | GO_BACK
const Gtk::BuiltinStockID | GO_DOWN
const Gtk::BuiltinStockID | GO_FORWARD
const Gtk::BuiltinStockID | GO_UP
const Gtk::BuiltinStockID | HARDDISK
const Gtk::BuiltinStockID | HELP
const Gtk::BuiltinStockID | HOME
const Gtk::BuiltinStockID | INDEX
const Gtk::BuiltinStockID | INFO
const Gtk::BuiltinStockID | INDENT
const Gtk::BuiltinStockID | UNINDENT
const Gtk::BuiltinStockID | ITALIC
const Gtk::BuiltinStockID | JUMP_TO
const Gtk::BuiltinStockID | JUSTIFY_CENTER
const Gtk::BuiltinStockID | JUSTIFY_FILL
const Gtk::BuiltinStockID | JUSTIFY_LEFT
const Gtk::BuiltinStockID | JUSTIFY_RIGHT
const Gtk::BuiltinStockID | MISSING_IMAGE
const Gtk::BuiltinStockID | MEDIA_FORWARD
const Gtk::BuiltinStockID | MEDIA_NEXT
const Gtk::BuiltinStockID | MEDIA_PAUSE
const Gtk::BuiltinStockID | MEDIA_PLAY
const Gtk::BuiltinStockID | MEDIA_PREVIOUS
const Gtk::BuiltinStockID | MEDIA_RECORD
const Gtk::BuiltinStockID | MEDIA_REWIND
const Gtk::BuiltinStockID | MEDIA_STOP
const Gtk::BuiltinStockID | NETWORK
const Gtk::BuiltinStockID | NEW
const Gtk::BuiltinStockID | NO
const Gtk::BuiltinStockID | OK
const Gtk::BuiltinStockID | OPEN
const Gtk::BuiltinStockID | ORIENTATION_PORTRAIT
const Gtk::BuiltinStockID | ORIENTATION_LANDSCAPE
const Gtk::BuiltinStockID | ORIENTATION_REVERSE_LANDSCAPE
const Gtk::BuiltinStockID | ORIENTATION_REVERSE_PORTRAIT
const Gtk::BuiltinStockID | PASTE
const Gtk::BuiltinStockID | PREFERENCES
const Gtk::BuiltinStockID | PAGE_SETUP
const Gtk::BuiltinStockID | PRINT
const Gtk::BuiltinStockID | PRINT_ERROR
const Gtk::BuiltinStockID | PRINT_PREVIEW
const Gtk::BuiltinStockID | PRINT_REPORT
const Gtk::BuiltinStockID | PRINT_WARNING
const Gtk::BuiltinStockID | PROPERTIES
const Gtk::BuiltinStockID | QUIT
const Gtk::BuiltinStockID | REDO
const Gtk::BuiltinStockID | REFRESH
const Gtk::BuiltinStockID | REMOVE
const Gtk::BuiltinStockID | REVERT_TO_SAVED
const Gtk::BuiltinStockID | SAVE
const Gtk::BuiltinStockID | SAVE_AS
const Gtk::BuiltinStockID | SELECT_ALL
const Gtk::BuiltinStockID | SELECT_COLOR
const Gtk::BuiltinStockID | SELECT_FONT
const Gtk::BuiltinStockID | SORT_ASCENDING
const Gtk::BuiltinStockID | SORT_DESCENDING
const Gtk::BuiltinStockID | SPELL_CHECK
const Gtk::BuiltinStockID | STOP
const Gtk::BuiltinStockID | STRIKETHROUGH
const Gtk::BuiltinStockID | UNDELETE
const Gtk::BuiltinStockID | UNDERLINE
const Gtk::BuiltinStockID | UNDO
const Gtk::BuiltinStockID | YES
const Gtk::BuiltinStockID | ZOOM_100
const Gtk::BuiltinStockID | ZOOM_FIT
const Gtk::BuiltinStockID | ZOOM_IN
const Gtk::BuiltinStockID | ZOOM_OUT

## Function Documentation

void Gtk::Stock::add | ( | const Gtk::StockItem& | item | ) |

Add a stock item to the list of registered stock items.

Parameters

  item | StockItem to register. If an item already exists with the same stock ID the old item gets replaced.

Deprecated:
  Use icon names instead of StockItem, StockID and BuiltinStockID.

std::vector<Gtk::StockID> Gtk::Stock::get_ids | ( |  | ) |

Retrieves a list of all known stock IDs added to an IconFactory or registered with Stock::add().

Returns
  list of all known stock IDs.

Deprecated:
  Use icon names instead of StockItem, StockID and BuiltinStockID.

bool Gtk::Stock::lookup | ( | const Gtk::StockID& | stock_id,
|  | Gtk::StockItem& | item
| ) |  |

Fills item with the registered values for stock_id.

Parameters

  stock_id | StockID to search for.
  item | item to fill in case stockid was found.

Returns
  `true` if the item was found - `false` otherwise.

Deprecated:
  Use icon names instead of StockItem, StockID and BuiltinStockID.

bool Gtk::Stock::lookup | ( | const Gtk::StockID& | stock_id,
|  | Glib::RefPtr< Gtk::IconSet >& | iconset
| ) |  |

See IconSet::lookup_default()

Parameters

  stock_id | StockID to search for.
  iconset | to fill.

Returns
  `true` if the item was found - `false` otherwise.

Deprecated:
  Use icon names instead of StockItem, StockID and BuiltinStockID.

bool Gtk::Stock::lookup | ( | const Gtk::StockID& | stock_id,
|  | Gtk::IconSize | size,
|  | Gtk::Image& | image
| ) |  |

Receive an Image of the registered stock id with the correct size.

Parameters

  stock_id | StockID to search for.
  size | IconSize of the desired Image.
  image | Image to fill.

Returns
  `true` if the item was found - `false` otherwise

Deprecated:
  Use icon names instead of StockItem, StockID and BuiltinStockID.

## Variable Documentation

const Gtk::BuiltinStockID Gtk::Stock::ABOUT

Deprecated:
  Use named icon "help-about" or the label "_About".

const Gtk::BuiltinStockID Gtk::Stock::ADD

Deprecated:
  Use named icon "list-add" or the label "_Add".

const Gtk::BuiltinStockID Gtk::Stock::APPLY

Deprecated:
  Do not use an icon. Use label "_Apply".

const Gtk::BuiltinStockID Gtk::Stock::BOLD

Deprecated:
  Use named icon "format-text-bold".

const Gtk::BuiltinStockID Gtk::Stock::CANCEL

Deprecated:
  Do not use an icon. Use label "_Cancel".

const Gtk::BuiltinStockID Gtk::Stock::CAPS_LOCK_WARNING

Deprecated:
  Use named icon "dialog-warning-symbolic".

const Gtk::BuiltinStockID Gtk::Stock::CDROM

Deprecated:
  Use named icon "media-optical".

const Gtk::BuiltinStockID Gtk::Stock::CLEAR

Deprecated:
  Use named icon "edit-clear".

const Gtk::BuiltinStockID Gtk::Stock::CLOSE

Deprecated:
  Use named icon "window-close" or the label "_Close".

const Gtk::BuiltinStockID Gtk::Stock::COLOR_PICKER

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::CONNECT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::CONVERT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::COPY

Deprecated:
  Use the named icon edit-copy or the label "_Copy".

const Gtk::BuiltinStockID Gtk::Stock::CUT

Deprecated:
  Use the named icon edit-cut or the label "Cu_t".

const Gtk::BuiltinStockID Gtk::Stock::DELETE

Deprecated:
  Use the named icon edit-delete or the label "_Delete".

const Gtk::BuiltinStockID Gtk::Stock::DIALOG_AUTHENTICATION

Deprecated:
  Use named icon "dialog-password".

const Gtk::BuiltinStockID Gtk::Stock::DIALOG_ERROR

Deprecated:
  Use named icon "dialog-error".

const Gtk::BuiltinStockID Gtk::Stock::DIALOG_INFO

Deprecated:
  Use named icon "dialog-information".

const Gtk::BuiltinStockID Gtk::Stock::DIALOG_QUESTION

Deprecated:
  Use named icon "dialog-question".

const Gtk::BuiltinStockID Gtk::Stock::DIALOG_WARNING

Deprecated:
  Use named icon "dialog-warning".

const Gtk::BuiltinStockID Gtk::Stock::DIRECTORY

Deprecated:
  Use named icon "folder".

const Gtk::BuiltinStockID Gtk::Stock::DISCARD

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::DISCONNECT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::DND

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::DND_MULTIPLE

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::EDIT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::EXECUTE

Deprecated:
  Use named icon "system-run".

const Gtk::BuiltinStockID Gtk::Stock::FILE

Deprecated:
  Use named icon "text-x-generic".

const Gtk::BuiltinStockID Gtk::Stock::FIND

Deprecated:
  Use named icon "edit-find".

const Gtk::BuiltinStockID Gtk::Stock::FIND_AND_REPLACE

Deprecated:
  Use named icon "edit-find-replace".

const Gtk::BuiltinStockID Gtk::Stock::FLOPPY

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::FULLSCREEN

Deprecated:
  Use named icon "view-fullscreen".

const Gtk::BuiltinStockID Gtk::Stock::GO_BACK

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "go-previous".

const Gtk::BuiltinStockID Gtk::Stock::GO_DOWN

Deprecated:
  Use named icon "go-down".

const Gtk::BuiltinStockID Gtk::Stock::GO_FORWARD

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "go-next".

const Gtk::BuiltinStockID Gtk::Stock::GO_UP

Deprecated:
  Use named icon "go-up".

const Gtk::BuiltinStockID Gtk::Stock::GOTO_BOTTOM

Deprecated:
  Use named icon "go-bottom".

const Gtk::BuiltinStockID Gtk::Stock::GOTO_FIRST

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "go-first".

const Gtk::BuiltinStockID Gtk::Stock::GOTO_LAST

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "go-last".

const Gtk::BuiltinStockID Gtk::Stock::GOTO_TOP

Deprecated:
  Use named icon "go-top".

const Gtk::BuiltinStockID Gtk::Stock::HARDDISK

Deprecated:
  Use named icon "drive-harddisk".

const Gtk::BuiltinStockID Gtk::Stock::HELP

Deprecated:
  Use named icon "help-browser".

const Gtk::BuiltinStockID Gtk::Stock::HOME

Deprecated:
  Use named icon "go-home".

const Gtk::BuiltinStockID Gtk::Stock::INDENT

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "format-indent-more".

const Gtk::BuiltinStockID Gtk::Stock::INDEX

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::INFO

Deprecated:
  Use named icon "dialog-information".

const Gtk::BuiltinStockID Gtk::Stock::ITALIC

Deprecated:
  Use named icon "format-text-italic".

const Gtk::BuiltinStockID Gtk::Stock::JUMP_TO

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "go-jump".

const Gtk::BuiltinStockID Gtk::Stock::JUSTIFY_CENTER

Deprecated:
  Use named icon "format-justify-center".

const Gtk::BuiltinStockID Gtk::Stock::JUSTIFY_FILL

Deprecated:
  Use named icon "format-justify-fill".

const Gtk::BuiltinStockID Gtk::Stock::JUSTIFY_LEFT

Deprecated:
  Use named icon "format-justify-left".

const Gtk::BuiltinStockID Gtk::Stock::JUSTIFY_RIGHT

Deprecated:
  Use named icon "format-justify-right".

const Gtk::BuiltinStockID Gtk::Stock::LEAVE_FULLSCREEN

Deprecated:
  Use named icon "view-restore".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_FORWARD

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "media-seek-forward" or the label "_Forward".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_NEXT

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "media-skip-forward" or the label "_Next".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_PAUSE

Deprecated:
  Use named icon "media-playback-pause" or the label "P_ause".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_PLAY

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "media-playback-start" or the label "_Play".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_PREVIOUS

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "media-skip-backward" or the label "Pre_vious".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_RECORD

Deprecated:
  Use named icon "media-record" or the label "_Record".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_REWIND

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "media-seek-backward" or the label "R_ewind".

const Gtk::BuiltinStockID Gtk::Stock::MEDIA_STOP

Deprecated:
  Use named icon "media-playback-stop" or the label "_Stop".

const Gtk::BuiltinStockID Gtk::Stock::MISSING_IMAGE

Deprecated:
  Use named icon "image-missing".

const Gtk::BuiltinStockID Gtk::Stock::NETWORK

Deprecated:
  Use named icon "network-workgroup".

const Gtk::BuiltinStockID Gtk::Stock::NEW

Deprecated:
  Use named icon "document-new" or the label "_New".

const Gtk::BuiltinStockID Gtk::Stock::NO

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::OK

Deprecated:
  Do not use an icon. Use label "_OK".

const Gtk::BuiltinStockID Gtk::Stock::OPEN

Deprecated:
  Use named icon "document-open" or the label "_Open".

const Gtk::BuiltinStockID Gtk::Stock::ORIENTATION_LANDSCAPE

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::ORIENTATION_PORTRAIT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::ORIENTATION_REVERSE_LANDSCAPE

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::ORIENTATION_REVERSE_PORTRAIT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::PAGE_SETUP

Deprecated:
  Use named icon "document-page-setup" or the label "Page Set_up".

const Gtk::BuiltinStockID Gtk::Stock::PASTE

Deprecated:
  Use the named icon edit-paste or the label "_Paste".

const Gtk::BuiltinStockID Gtk::Stock::PREFERENCES

Deprecated:
  Use named icon "preferences-system" or the label "_Preferences".

const Gtk::BuiltinStockID Gtk::Stock::PRINT

Deprecated:
  Use named icon "document-print" or the label "_Print".

const Gtk::BuiltinStockID Gtk::Stock::PRINT_ERROR

Deprecated:
  Use named icon "printer-error".

const Gtk::BuiltinStockID Gtk::Stock::PRINT_PREVIEW

Deprecated:
  Use label "Pre_view".

const Gtk::BuiltinStockID Gtk::Stock::PRINT_REPORT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::PRINT_WARNING

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::PROPERTIES

Deprecated:
  Use named icon "document-properties" or the label "_Properties".

const Gtk::BuiltinStockID Gtk::Stock::QUIT

Deprecated:
  Use named icon "application-exit" or the label "_Quit".

const Gtk::BuiltinStockID Gtk::Stock::REDO

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "edit-redo" or the label "_Redo".

const Gtk::BuiltinStockID Gtk::Stock::REFRESH

Deprecated:
  Use named icon "view-refresh" or the label "_Refresh".

const Gtk::BuiltinStockID Gtk::Stock::REMOVE

Deprecated:
  Use named icon "list-remove" or the label "_Remove".

const Gtk::BuiltinStockID Gtk::Stock::REVERT_TO_SAVED

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "document-revert" or the label "_Revert".

const Gtk::BuiltinStockID Gtk::Stock::SAVE

Deprecated:
  Use named icon "document-save" or the label "_Save".

const Gtk::BuiltinStockID Gtk::Stock::SAVE_AS

Deprecated:
  Use named icon "document-save-as" or the label "Save _As".

const Gtk::BuiltinStockID Gtk::Stock::SELECT_ALL

Deprecated:
  Use named icon "edit-select-all" or the label "Select _All".

const Gtk::BuiltinStockID Gtk::Stock::SELECT_COLOR

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::SELECT_FONT

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::SORT_ASCENDING

Deprecated:
  Use named icon "view-sort-ascending".

const Gtk::BuiltinStockID Gtk::Stock::SORT_DESCENDING

Deprecated:
  Use named icon "view-sort-descending".

const Gtk::BuiltinStockID Gtk::Stock::SPELL_CHECK

Deprecated:
  Use named icon "tools-check-spelling".

const Gtk::BuiltinStockID Gtk::Stock::STOP

Deprecated:
  Use named icon "process-stop" or the label "_Stop".

const Gtk::BuiltinStockID Gtk::Stock::STRIKETHROUGH

Deprecated:
  Use named icon "format-text-strikethrough" or the label "_Strikethrough".

const Gtk::BuiltinStockID Gtk::Stock::UNDELETE

left-to-right languages:

right-to-left languages:

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::UNDERLINE

Deprecated:
  Use named icon "format-text-underline" or the label "_Underline".

const Gtk::BuiltinStockID Gtk::Stock::UNDO

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "edit-undo" or the label "_Undo".

const Gtk::BuiltinStockID Gtk::Stock::UNINDENT

left-to-right languages:

right-to-left languages:

Deprecated:
  Use named icon "format-indent-less".

const Gtk::BuiltinStockID Gtk::Stock::YES

Deprecated:
  No replacement available.

const Gtk::BuiltinStockID Gtk::Stock::ZOOM_100

Deprecated:
  Use named icon "zoom-original" or the label "_Normal Size".

const Gtk::BuiltinStockID Gtk::Stock::ZOOM_FIT

Deprecated:
  Use named icon "zoom-fit-best" or the label "Best _Fit".

const Gtk::BuiltinStockID Gtk::Stock::ZOOM_IN

Deprecated:
  Use named icon "zoom-in" or the label "Zoom _In".

const Gtk::BuiltinStockID Gtk::Stock::ZOOM_OUT

Deprecated:
  Use named icon "zoom-out" or the label "Zoom _Out".