1Gtk2::Stock(3)        User Contributed Perl Documentation       Gtk2::Stock(3)
2
3
4

NAME

6       Gtk2::Stock
7

Gtk2::StockItem

9       When a Gtk2::StockItem is returned from a function or required as a
10       parameter a hash reference with the following key/value pairs will be
11       required/returned.
12
13         {
14             stock_id => (string),
15             label => (string),
16             modifier => (Gtk2::Gdk::ModifierType),
17             keyval => (integer),
18             translation_domain => (string),
19         }
20

Stock Items

22         +-----------------------------------+-------------------+-------------+
23         | Stock-Id                          | Label             | Mod-Key     |
24         +-----------------------------------+-------------------+-------------+
25         | gtk-about                         | _About            |             |
26         | gtk-add                           | _Add              |             |
27         | gtk-apply                         | _Apply            |             |
28         | gtk-bold                          | _Bold             |             |
29         | gtk-cancel                        | _Cancel           |             |
30         | gtk-cdrom                         | _CD-Rom           |             |
31         | gtk-clear                         | _Clear            |             |
32         | gtk-close                         | _Close            | <control>-W |
33         | gtk-connect                       | C_onnect          |             |
34         | gtk-convert                       | _Convert          |             |
35         | gtk-copy                          | _Copy             | <control>-C |
36         | gtk-cut                           | Cu_t              | <control>-X |
37         | gtk-delete                        | _Delete           |             |
38         | gtk-dialog-error                  | Error             |             |
39         | gtk-dialog-info                   | Information       |             |
40         | gtk-dialog-question               | Question          |             |
41         | gtk-dialog-warning                | Warning           |             |
42         | gtk-discard                       | _Discard          |             |
43         | gtk-disconnect                    | _Disconnect       |             |
44         | gtk-edit                          | _Edit             |             |
45         | gtk-execute                       | _Execute          |             |
46         | gtk-find                          | _Find             | <control>-F |
47         | gtk-find-and-replace              | Find and _Replace | <control>-R |
48         | gtk-floppy                        | _Floppy           |             |
49         | gtk-fullscreen                    | _Fullscreen       |             |
50         | gtk-go-back                       | _Back             |             |
51         | gtk-go-down                       | _Down             |             |
52         | gtk-go-forward                    | _Forward          |             |
53         | gtk-go-up                         | _Up               |             |
54         | gtk-goto-bottom                   | _Bottom           |             |
55         | gtk-goto-first                    | _First            |             |
56         | gtk-goto-last                     | _Last             |             |
57         | gtk-goto-top                      | _Top              |             |
58         | gtk-harddisk                      | _Harddisk         |             |
59         | gtk-help                          | _Help             | <control>-H |
60         | gtk-home                          | _Home             |             |
61         | gtk-indent                        | Increase Indent   |             |
62         | gtk-index                         | _Index            |             |
63         | gtk-info                          | _Information      |             |
64         | gtk-italic                        | _Italic           |             |
65         | gtk-jump-to                       | _Jump to          |             |
66         | gtk-justify-center                | _Center           |             |
67         | gtk-justify-fill                  | _Fill             |             |
68         | gtk-justify-left                  | _Left             |             |
69         | gtk-justify-right                 | _Right            |             |
70         | gtk-leave-fullscreen              | _Leave Fullscreen |             |
71         | gtk-media-forward                 | _Forward          |             |
72         | gtk-media-next                    | _Next             |             |
73         | gtk-media-pause                   | P_ause            |             |
74         | gtk-media-play                    | _Play             |             |
75         | gtk-media-previous                | Pre_vious         |             |
76         | gtk-media-record                  | _Record           |             |
77         | gtk-media-rewind                  | R_ewind           |             |
78         | gtk-media-stop                    | _Stop             |             |
79         | gtk-network                       | _Network          |             |
80         | gtk-new                           | _New              | <control>-N |
81         | gtk-no                            | _No               |             |
82         | gtk-ok                            | _OK               |             |
83         | gtk-open                          | _Open             | <control>-O |
84         | gtk-orientation-landscape         | Landscape         |             |
85         | gtk-orientation-portrait          | Portrait          |             |
86         | gtk-orientation-reverse-landscape | Reverse landscape |             |
87         | gtk-orientation-reverse-portrait  | Reverse portrait  |             |
88         | gtk-page-setup                    | Page Set_up       |             |
89         | gtk-paste                         | _Paste            | <control>-V |
90         | gtk-preferences                   | _Preferences      |             |
91         | gtk-print                         | _Print            |             |
92         | gtk-print-preview                 | Print Pre_view    |             |
93         | gtk-properties                    | _Properties       |             |
94         | gtk-quit                          | _Quit             | <control>-Q |
95         | gtk-redo                          | _Redo             |             |
96         | gtk-refresh                       | _Refresh          |             |
97         | gtk-remove                        | _Remove           |             |
98         | gtk-revert-to-saved               | _Revert           |             |
99         | gtk-save                          | _Save             | <control>-S |
100         | gtk-save-as                       | Save _As          |             |
101         | gtk-select-all                    | Select _All       |             |
102         | gtk-select-color                  | _Color            |             |
103         | gtk-select-font                   | _Font             |             |
104         | gtk-sort-ascending                | _Ascending        |             |
105         | gtk-sort-descending               | _Descending       |             |
106         | gtk-spell-check                   | _Spell Check      |             |
107         | gtk-stop                          | _Stop             |             |
108         | gtk-strikethrough                 | _Strikethrough    |             |
109         | gtk-undelete                      | _Undelete         |             |
110         | gtk-underline                     | _Underline        |             |
111         | gtk-undo                          | _Undo             |             |
112         | gtk-unindent                      | Decrease Indent   |             |
113         | gtk-yes                           | _Yes              |             |
114         | gtk-zoom-100                      | _Normal Size      |             |
115         | gtk-zoom-fit                      | Best _Fit         |             |
116         | gtk-zoom-in                       | Zoom _In          |             |
117         | gtk-zoom-out                      | Zoom _Out         |             |
118         +-----------------------------------+-------------------+-------------+
119

METHODS

121   Gtk2::Stock->add (...)
122       •   ... (list) of Gtk2::StockItem's to be added
123
124   list = Gtk2::Stock->list_ids
125       Returns a list of strings, the stock-ids.
126
127   scalar = Gtk2::Stock->lookup ($stock_id)
128       •   $stock_id (string)
129
130       Returns a hash reference, a Gtk2::StockItem.
131
132   Gtk2::Stock->set_translate_func ($domain, $func, $data=undef)
133       •   $domain (string)
134
135       •   $func (scalar)
136
137       •   $data (scalar)
138
139       Since: gtk+ 2.8
140

SEE ALSO

142       Gtk2
143
145       Copyright (C) 2003-2011 by the gtk2-perl team.
146
147       This software is licensed under the LGPL.  See Gtk2 for a full notice.
148
149
150
151perl v5.36.0                      2022-07-22                    Gtk2::Stock(3)
Impressum