]> Pileus Git - ~andy/gtk/blob - gtk/gtkstock.h
get sizes an icon set can render without falling back to missing image
[~andy/gtk] / gtk / gtkstock.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2000 Red Hat, Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 /*
21  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
22  * file for a list of people on the GTK+ Team.  See the ChangeLog
23  * files for a list of changes.  These files are distributed with
24  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
25  */
26
27 #ifndef __GTK_STOCK_H__
28 #define __GTK_STOCK_H__
29
30
31 #include <gdk/gdk.h>
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif /* __cplusplus */
36
37 typedef struct _GtkStockItem GtkStockItem;
38
39 struct _GtkStockItem
40 {
41   gchar *stock_id;
42   gchar *label;
43   GdkModifierType modifier;
44   guint keyval;
45   gchar *translation_domain;
46 };
47
48 void     gtk_stock_add        (const GtkStockItem  *items,
49                                guint                n_items);
50 void     gtk_stock_add_static (const GtkStockItem  *items,
51                                guint                n_items);
52 gboolean gtk_stock_lookup     (const gchar         *stock_id,
53                                GtkStockItem        *item);
54
55 /* Should free the list (and free each string in it also).
56  * This function is only useful for GUI builders and such.
57  */
58 GSList*  gtk_stock_list_ids  (void);
59
60 GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
61 void          gtk_stock_item_free (GtkStockItem       *item);
62
63
64 /* Stock IDs (not all are stock items; some are images only) */
65 #define GTK_STOCK_MISSING_IMAGE    "gtk-missing-image"
66
67 #define GTK_STOCK_DIALOG_INFO      "gtk-dialog-info"
68 #define GTK_STOCK_DIALOG_WARNING   "gtk-dialog-warning"
69 #define GTK_STOCK_DIALOG_ERROR     "gtk-dialog-error"
70 #define GTK_STOCK_DIALOG_QUESTION  "gtk-dialog-question"
71
72 #define GTK_STOCK_ADD              "gtk-add"
73 #define GTK_STOCK_APPLY            "gtk-apply"
74 #define GTK_STOCK_BOLD             "gtk-bold"
75 #define GTK_STOCK_CANCEL           "gtk-cancel"
76 #define GTK_STOCK_CDROM            "gtk-cdrom"
77 #define GTK_STOCK_CLEAR            "gtk-clear"
78 #define GTK_STOCK_CLOSE            "gtk-close"
79 #define GTK_STOCK_CONVERT          "gtk-convert"
80 #define GTK_STOCK_COPY             "gtk-copy"
81 #define GTK_STOCK_CUT              "gtk-cut"
82 #define GTK_STOCK_DELETE           "gtk-delete"
83 #define GTK_STOCK_EXECUTE          "gtk-execute"
84 #define GTK_STOCK_FIND             "gtk-find"
85 #define GTK_STOCK_FIND_AND_REPLACE "gtk-find-and-replace"
86 #define GTK_STOCK_FLOPPY           "gtk-floppy"
87 #define GTK_STOCK_GOTO_BOTTOM      "gtk-goto-bottom"
88 #define GTK_STOCK_GOTO_FIRST       "gtk-goto-first"
89 #define GTK_STOCK_GOTO_LAST        "gtk-goto-last"
90 #define GTK_STOCK_GOTO_TOP         "gtk-goto-top"
91 #define GTK_STOCK_GO_BACK          "gtk-go-back"
92 #define GTK_STOCK_GO_DOWN          "gtk-go-down"
93 #define GTK_STOCK_GO_FORWARD       "gtk-go-forward"
94 #define GTK_STOCK_GO_UP            "gtk-up"
95 #define GTK_STOCK_HELP             "gtk-help"
96 #define GTK_STOCK_HOME             "gtk-home"
97 #define GTK_STOCK_INDEX            "gtk-index"
98 #define GTK_STOCK_ITALIC           "gtk-italic"
99 #define GTK_STOCK_JUMP_TO          "gtk-jump-to"
100 #define GTK_STOCK_JUSTIFY_CENTER   "gtk-justify-center"
101 #define GTK_STOCK_JUSTIFY_FILL     "gtk-justify-fill"
102 #define GTK_STOCK_JUSTIFY_LEFT     "gtk-justify-left"
103 #define GTK_STOCK_JUSTIFY_RIGHT    "gtk-justify-right"
104 #define GTK_STOCK_NEW              "gtk-new"
105 #define GTK_STOCK_NO               "gtk-no"
106 #define GTK_STOCK_OK               "gtk-ok"
107 #define GTK_STOCK_OPEN             "gtk-open"
108 #define GTK_STOCK_PASTE            "gtk-paste"
109 #define GTK_STOCK_PREFERENCES      "gtk-preferences"
110 #define GTK_STOCK_PRINT            "gtk-print"
111 #define GTK_STOCK_PRINT_PREVIEW    "gtk-print-preview"
112 #define GTK_STOCK_PROPERTIES       "gtk-properties"
113 #define GTK_STOCK_QUIT             "gtk-quit"
114 #define GTK_STOCK_REDO             "gtk-redo"
115 #define GTK_STOCK_REFRESH          "gtk-refresh"
116 #define GTK_STOCK_REMOVE           "gtk-remove"
117 #define GTK_STOCK_REVERT_TO_SAVED  "gtk-revert-to-saved"
118 #define GTK_STOCK_SAVE             "gtk-save"
119 #define GTK_STOCK_SAVE_AS          "gtk-save-as"
120 #define GTK_STOCK_SELECT_COLOR     "gtk-select-color"
121 #define GTK_STOCK_SELECT_FONT      "gtk-select-font"
122 #define GTK_STOCK_SORT_ASCENDING   "gtk-sort-ascending"
123 #define GTK_STOCK_SORT_DESCENDING  "gtk-sort-descending"
124 #define GTK_STOCK_SPELL_CHECK      "gtk-spell-check"
125 #define GTK_STOCK_STOP             "gtk-stop"
126 #define GTK_STOCK_STRIKETHROUGH    "gtk-strikethrough"
127 #define GTK_STOCK_UNDELETE         "gtk-undelete"
128 #define GTK_STOCK_UNDERLINE        "gtk-underline"
129 #define GTK_STOCK_UNDO             "gtk-undo"
130 #define GTK_STOCK_YES              "gtk-yes"
131 #define GTK_STOCK_ZOOM_100         "gtk-zoom-100"
132 #define GTK_STOCK_ZOOM_FIT         "gtk-zoom-fit"
133 #define GTK_STOCK_ZOOM_IN          "gtk-zoom-in"
134 #define GTK_STOCK_ZOOM_OUT         "gtk-zoom-out"
135
136 #ifdef __cplusplus
137 }
138 #endif /* __cplusplus */
139
140
141 #endif /* __GTK_STOCK_H__ */