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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
|
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <gtk/gtk.h>
#include "GtkTypes.h"
#include "GdkTypes.h"
#include "MiscTypes.h"
#include "GtkDefs.h"
#ifndef boolSV
# define boolSV(b) ((b) ? &sv_yes : &sv_no)
#endif
MODULE = Gtk::Gnome::Pixmap PACKAGE = Gtk::Gnome::Pixmap PREFIX = gnome_pixmap_
#ifdef GNOME_PIXMAP
Gtk::Gnome::Pixmap_Sink
new_from_file(Class, filename, width=0, height=0)
SV * Class
char * filename
int width
int height
CODE:
if (items==4)
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_file_at_size(filename, width, height));
else
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_file(filename));
OUTPUT:
RETVAL
Gtk::Gnome::Pixmap_Sink
new_from_file_at_size(Class, filename, width, height)
SV * Class
char * filename
int width
int height
CODE:
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_file_at_size(filename, width, height));
OUTPUT:
RETVAL
Gtk::Gnome::Pixmap_Sink
new_from_xpm_d(Class, data, ...)
SV * Class
CODE:
{
char ** lines = (char**)malloc(sizeof(char*)*(items-1));
int i;
for(i=1;i<items;i++)
lines[i-1] = SvPV(ST(i),na);
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_xpm_d(lines));
free(lines);
}
OUTPUT:
RETVAL
Gtk::Gnome::Pixmap_Sink
new_from_xpm_d_at_size(Class, width, height, data, ...)
SV * Class
int width
int height
CODE:
{
char ** lines = (char**)malloc(sizeof(char*)*(items-2));
int i;
for(i=2;i<items;i++)
lines[i-2] = SvPV(ST(i),na);
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_xpm_d_at_size(lines, width, height));
free(lines);
}
OUTPUT:
RETVAL
Gtk::Gnome::Pixmap_Sink
new_from_rgb_d(Class, data, alpha, rgb_width, rgb_height, width=0, height=0)
SV * Class
char * data
char * alpha
int rgb_width
int rgb_height
int width
int height
CODE:
if (items==7)
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_rgb_d_at_size(data,alpha,rgb_width, rgb_height, width, height));
else
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_rgb_d(data, alpha, rgb_width, rgb_height));
OUTPUT:
RETVAL
Gtk::Gnome::Pixmap_Sink
new_from_rgb_d_at_size(Class, data, alpha, rgb_width, rgb_height, width, height)
SV * Class
char * data
char * alpha
int rgb_width
int rgb_height
int width
int height
CODE:
RETVAL = GNOME_PIXMAP(gnome_pixmap_new_from_rgb_d_at_size(data,alpha,rgb_width, rgb_height, width, height));
OUTPUT:
RETVAL
void
load_file(pixmap, filename, width=0, height=0)
Gtk::Gnome::Pixmap pixmap
char * filename
int width
int height
CODE:
if (items==4)
gnome_pixmap_load_file_at_size(pixmap, filename, width, height);
else
gnome_pixmap_load_file(pixmap, filename);
void
load_file_at_size(pixmap, filename, width, height)
Gtk::Gnome::Pixmap pixmap
char * filename
int width
int height
CODE:
gnome_pixmap_load_file_at_size(pixmap, filename, width, height);
void
load_xpm_d(pixmap, data, ...)
Gtk::Gnome::Pixmap pixmap
CODE:
{
char ** lines = (char**)malloc(sizeof(char*)*(items-1));
int i;
for(i=1;i<items;i++)
lines[i-1] = SvPV(ST(i),na);
gnome_pixmap_load_xpm_d(pixmap, lines);
free(lines);
}
void
load_xpm_d_at_size(pixmap, width, height, data, ...)
Gtk::Gnome::Pixmap pixmap
int width
int height
CODE:
{
char ** lines = (char**)malloc(sizeof(char*)*(items-2));
int i;
for(i=2;i<items;i++)
lines[i-2] = SvPV(ST(i),na);
gnome_pixmap_load_xpm_d_at_size(pixmap, lines, width, height);
free(lines);
}
void
load_rgb_d(pixmap, data, alpha, rgb_width, rgb_height, width=0, height=0)
Gtk::Gnome::Pixmap pixmap
char * data
char * alpha
int rgb_width
int rgb_height
int width
int height
CODE:
if (items==7)
gnome_pixmap_load_rgb_d_at_size(pixmap, data, alpha,rgb_width, rgb_height, width, height);
else
gnome_pixmap_load_rgb_d(pixmap, data, alpha, rgb_width, rgb_height);
void
load_rgb_d_at_size(pixmap, data, alpha, rgb_width, rgb_height, width, height)
Gtk::Gnome::Pixmap pixmap
char * data
char * alpha
int rgb_width
int rgb_height
int width
int height
CODE:
gnome_pixmap_load_rgb_d_at_size(pixmap, data,alpha,rgb_width, rgb_height, width, height);
#endif
|