33 |
#ifndef PG_IMAGE_H |
#ifndef PG_IMAGE_H |
34 |
#define PG_IMAGE_H |
#define PG_IMAGE_H |
35 |
|
|
|
#ifdef SWIG |
|
|
%include "swigcommon.h" |
|
|
%module pgimage |
|
|
%{ |
|
|
#include "pgimage.h" |
|
|
%} |
|
|
#endif |
|
|
|
|
36 |
#include "pgthemewidget.h" |
#include "pgthemewidget.h" |
37 |
|
|
38 |
/** |
/** |
61 |
@param freeimage if true the imagedata is handled by the widget |
@param freeimage if true the imagedata is handled by the widget |
62 |
@param style widgetstyle to use |
@param style widgetstyle to use |
63 |
*/ |
*/ |
|
#ifdef SWIG |
|
|
%name(PG_ImageSurface) PG_Image(PG_Widget* parent, const PG_Point& p, SDL_Surface* image, bool freeimage = true, const char* style = "ThemeWidget"); |
|
|
#else |
|
64 |
PG_Image(PG_Widget* parent, const PG_Point& p, SDL_Surface* image, bool freeimage = true, const char* style = "ThemeWidget"); |
PG_Image(PG_Widget* parent, const PG_Point& p, SDL_Surface* image, bool freeimage = true, const char* style = "ThemeWidget"); |
|
#endif |
|
65 |
|
|
66 |
/** |
/** |
67 |
Contructor of the PG_Image class (loading from file) |
Contructor of the PG_Image class (loading from file) |
72 |
@param style widgetstyle to use |
@param style widgetstyle to use |
73 |
This constructor creates the widget and loads the image from a file using a colorkey. |
This constructor creates the widget and loads the image from a file using a colorkey. |
74 |
*/ |
*/ |
|
#ifdef SWIG |
|
|
%name(PG_ImageColorKey) PG_Image(PG_Widget* parent, const PG_Point& p, const char* filename, Uint32 colorkey, const char* style); |
|
|
#else |
|
75 |
PG_Image(PG_Widget* parent, const PG_Point& p, const char* filename, Uint32 colorkey, const char* style); |
PG_Image(PG_Widget* parent, const PG_Point& p, const char* filename, Uint32 colorkey, const char* style); |
|
#endif |
|
76 |
|
|
77 |
/** |
/** |
78 |
Set the colorkey of the image |
Set the colorkey of the image |