ui/gtk/image.h

changeset 146
dd0ae1c62a72
parent 140
c03c338a7dcf
child 167
161511838ea6
equal deleted inserted replaced
145:853685152c1d 146:dd0ae1c62a72
27 */ 27 */
28 28
29 #ifndef IMAGE_H 29 #ifndef IMAGE_H
30 #define IMAGE_H 30 #define IMAGE_H
31 31
32 #include "../ui/toolkit.h" 32 #include "../ui/image.h"
33 33
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 extern "C" { 35 extern "C" {
36 #endif 36 #endif
37 37
38 void ui_image_init(); 38 #if GTK_MAJOR_VERSION >= 3 && GTK_MINOR_VERSION >= 10
39 #define UI_SUPPORTS_SCALE
40 #endif
41
42
43 struct UiIcon {
44 GtkIconInfo *info;
45 };
46
47 struct UiImage {
48 GdkPixbuf *pixbuf;
49 };
50
51 void ui_image_init(void);
39 52
40 GdkPixbuf* ui_get_image(char *name); 53 GdkPixbuf* ui_get_image(char *name);
41 54
42 55
43 #ifdef __cplusplus 56 #ifdef __cplusplus

mercurial