File indexing completed on 2024-05-12 17:10:55
0001 #include <glib.h> 0002 0003 /* --- PANGO --- */ 0004 0005 #define PANGO_IS_LAYOUT(layout) (layout != 0) 0006 0007 typedef int PangoAlignment; 0008 0009 typedef void *PangoFontDescription; 0010 typedef void *PangoContext; 0011 0012 typedef struct _PangoLayout { 0013 int bounding_width; 0014 int bounding_height; 0015 } PangoLayout; 0016 0017 extern void pango_layout_get_pixel_size(PangoLayout *layout, int *pwidth, int *pheight); 0018 0019 /* --- GDK --- */ 0020 0021 typedef struct _GdkGC GdkGC; 0022 typedef struct _GdkPixbuf GdkPixbuf; 0023 0024 typedef struct _GdkPixmap { 0025 int width; 0026 int height; 0027 } GdkPixmap; 0028 0029 typedef struct _GdkColor { 0030 unsigned short red; 0031 unsigned short green; 0032 unsigned short blue; 0033 } GdkColor; 0034 0035 extern void gdk_color_parse(gchar *s, GdkColor *c); 0036 0037 #define gdk_pixbuf_new_from_inline(v, n, b, p) (0) 0038 0039 extern void g_object_unref(void *x); 0040 extern int gdk_pixbuf_get_width(GdkPixbuf *pixbuf); 0041 extern int gdk_pixbuf_get_height(GdkPixbuf *pixbuf); 0042 extern int gdk_pixbuf_get_colorspace(GdkPixbuf *pixbuf); 0043 extern int gdk_pixbuf_get_bits_per_sample(GdkPixbuf *pixbuf); 0044 0045 typedef enum { 0046 GDK_COLORSPACE_RGB 0047 } GdkColorspace; 0048 0049 #define GDK_INTERP_BILINEAR (2) 0050 0051 extern GdkPixbuf *gdk_pixbuf_new(GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, int w, int h); 0052 extern GdkPixbuf *gdk_pixbuf_new_from_file(gchar *file, GError **error); 0053 extern GdkPixbuf *gdk_pixbuf_new_subpixbuf(GdkPixbuf *source, int x, int y, int w, int h); 0054 extern void gdk_pixbuf_scale(GdkPixbuf *source, GdkPixbuf *dest, int x, int y, int w, int h, double source_x, double source_y, double scale_x, double scale_y, int interp); 0055 0056 extern void gdk_drawable_get_size(GdkPixmap *pixmap, int *width, int *height); 0057 0058 /* --- GTK --- */ 0059 0060 typedef void *GtkWidget; 0061 typedef void *GtkTable; 0062 typedef void *GtkImage; 0063 typedef void *GtkFileChooser; 0064 0065 typedef struct _decor_extents_t { 0066 int left, right, top, bottom; 0067 } decor_extents_t; 0068 0069 /* --- WNCK --- */ 0070 0071 typedef enum { 0072 WNCK_WINDOW_ACTION_MOVE = 1 << 0, 0073 WNCK_WINDOW_ACTION_RESIZE = 1 << 1, 0074 WNCK_WINDOW_ACTION_SHADE = 1 << 2, 0075 WNCK_WINDOW_ACTION_STICK = 1 << 3, 0076 WNCK_WINDOW_ACTION_MAXIMIZE_HORIZONTALLY = 1 << 4, 0077 WNCK_WINDOW_ACTION_MAXIMIZE_VERTICALLY = 1 << 5, 0078 WNCK_WINDOW_ACTION_CHANGE_WORKSPACE = 1 << 6, /* includes pin/unpin */ 0079 WNCK_WINDOW_ACTION_CLOSE = 1 << 7, 0080 WNCK_WINDOW_ACTION_UNMAXIMIZE_HORIZONTALLY = 1 << 8, 0081 WNCK_WINDOW_ACTION_UNMAXIMIZE_VERTICALLY = 1 << 9, 0082 WNCK_WINDOW_ACTION_UNSHADE = 1 << 10, 0083 WNCK_WINDOW_ACTION_UNSTICK = 1 << 11, 0084 WNCK_WINDOW_ACTION_MINIMIZE = 1 << 12, 0085 WNCK_WINDOW_ACTION_UNMINIMIZE = 1 << 13, 0086 WNCK_WINDOW_ACTION_MAXIMIZE = 1 << 14, 0087 WNCK_WINDOW_ACTION_UNMAXIMIZE = 1 << 15, 0088 WNCK_WINDOW_ACTION_FULLSCREEN = 1 << 16, 0089 WNCK_WINDOW_ACTION_ABOVE = 1 << 17, 0090 WNCK_WINDOW_ACTION_BELOW = 1 << 18 0091 } WnckWindowActions; 0092 0093 typedef enum { 0094 WNCK_WINDOW_STATE_MINIMIZED = 1 << 0, 0095 WNCK_WINDOW_STATE_MAXIMIZED_HORIZONTALLY = 1 << 1, 0096 WNCK_WINDOW_STATE_MAXIMIZED_VERTICALLY = 1 << 2, 0097 WNCK_WINDOW_STATE_SHADED = 1 << 3, 0098 WNCK_WINDOW_STATE_SKIP_PAGER = 1 << 4, 0099 WNCK_WINDOW_STATE_SKIP_TASKLIST = 1 << 5, 0100 WNCK_WINDOW_STATE_STICKY = 1 << 6, 0101 WNCK_WINDOW_STATE_HIDDEN = 1 << 7, 0102 WNCK_WINDOW_STATE_FULLSCREEN = 1 << 8, 0103 WNCK_WINDOW_STATE_DEMANDS_ATTENTION = 1 << 9, 0104 WNCK_WINDOW_STATE_URGENT = 1 << 10, 0105 WNCK_WINDOW_STATE_ABOVE = 1 << 11, 0106 WNCK_WINDOW_STATE_BELOW = 1 << 12 0107 } WnckWindowState; 0108