File: gdk_imlib_types.h

package info (click to toggle)
imlib 1.9.14-31
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,176 kB
  • ctags: 1,095
  • sloc: ansic: 49,353; sh: 7,378; makefile: 215; python: 5
file content (110 lines) | stat: -rw-r--r-- 3,108 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#include <gdk/gdk.h>

#ifndef SYSTEM_IMRC
#define SYSTEM_IMRC "/etc/imrc"
#endif /* endef SYSTEM_IMRC */

typedef struct _GdkImlibBorder GdkImlibBorder;
typedef struct _GdkImlibColor GdkImlibColor;
typedef struct _GdkImlibColorModifier GdkImlibColorModifier;
typedef struct _GdkImlibImage GdkImlibImage;
typedef struct _GdkImlibSaveInfo GdkImlibSaveInfo;
typedef struct _GdkImlibInitParams GdkImlibInitParams;
typedef struct _GdkImlibModifierMap GdkImlibModifierMap;

struct _GdkImlibBorder
  {
    gint                left, right;
    gint                top, bottom;
  };

struct _GdkImlibColor
  {
    gint                r, g, b;
    gint                pixel;
  };

struct _GdkImlibColorModifier
  {
    gint                gamma;
    gint                brightness;
    gint                contrast;
  };

struct _GdkImlibModifierMap
  {
    unsigned char       rmap[256], gmap[256], bmap[256];
  };

struct _GdkImlibImage
  {
    gint                rgb_width, rgb_height;
    unsigned char      *rgb_data;
    unsigned char      *alpha_data;
    gchar              *filename;
/* the below information is private */
    gint                width, height;
    GdkImlibColor       shape_color;
    GdkImlibBorder      border;
    GdkPixmap          *pixmap;
    GdkBitmap          *shape_mask;
    gchar               cache;
    GdkImlibColorModifier mod, rmod, gmod, bmod;
    GdkImlibModifierMap *map;
    int                 ref_count;
    GHashTable          *pixmaps;
  };

struct _GdkImlibSaveInfo
  {
    int                 quality;
    int                 scaling;
    int                 xjustification;
    int                 yjustification;
    int                 page_size;
    char                color;
  };

struct _GdkImlibInitParams
  {
    int                 flags;
    int                 visualid;
    char               *palettefile;
    char                sharedmem;
    char                sharedpixmaps;
    char                paletteoverride;
    char                remap;
    char                fastrender;
    char                hiquality;
    char                dither;
    int                 imagecachesize;
    int                 pixmapcachesize;
  };

#define PARAMS_VISUALID        1<<0
#define PARAMS_PALETTEFILE     1<<1
#define PARAMS_SHAREDMEM       1<<2
#define PARAMS_SHAREDPIXMAPS   1<<3
#define PARAMS_PALETTEOVERRIDE 1<<4
#define PARAMS_REMAP           1<<5
#define PARAMS_FASTRENDER      1<<6
#define PARAMS_HIQUALITY       1<<7
#define PARAMS_DITHER          1<<8
#define PARAMS_IMAGECACHESIZE  1<<9
#define PARAMS_PIXMAPCACHESIZE 1<<10

#define PAGE_SIZE_EXECUTIVE    0
#define PAGE_SIZE_LETTER       1
#define PAGE_SIZE_LEGAL        2
#define PAGE_SIZE_A4           3
#define PAGE_SIZE_A3           4
#define PAGE_SIZE_A5           5
#define PAGE_SIZE_FOLIO        6

#define RT_PLAIN_PALETTE       0
#define RT_PLAIN_PALETTE_FAST  1
#define RT_DITHER_PALETTE      2
#define RT_DITHER_PALETTE_FAST 3
#define RT_PLAIN_TRUECOL       4
/* a special high-quality renderer for people with 15 and 16bpp that dithers */
#define RT_DITHER_TRUECOL      5