


Public Member Functions | |
| PG_Image (PG_Widget *parent, const PG_Point &p, const char *filename, Uint8 drawmode=BKMODE_TILE, const char *style="ThemeWidget") | |
| Contructor of the PG_Image class (loading from file). | |
| PG_Image (PG_Widget *parent, const PG_Point &p, SDL_Surface *image, bool freeimage=true, Uint8 drawmode=BKMODE_TILE, const char *style="ThemeWidget") | |
| Contructor of the PG_Image class (image from surface). | |
| PG_Image (PG_Widget *parent, const PG_Point &p, const char *filename, Uint32 colorkey, Uint8 drawmode=BKMODE_TILE, const char *style="ThemeWidget") | |
| Contructor of the PG_Image class (loading from file). | |
| void | SetColorKey (Uint32 key) |
| Set the colorkey of the image. | |
| void | SetDrawMode (Uint8 mode) |
| @ Set mode of drawing (BKMODE_TILE | BKMODE_STRETCH | BKMODE_3TILEH | BKMODE_3TILEV | BKMODE_9TILE) | |
| Uint8 | GetDrawMode () |
| bool | LoadImage (const char *filename) |
| Display an image in the widget. | |
| bool | LoadImage (const char *filename, Uint32 key) |
| Display an image in the widget using a colorkey. | |
| bool | SetImage (SDL_Surface *image, bool bFreeImage=true) |
| Display an image in the widget. | |
| ~PG_Image () | |
Protected Member Functions | |
| void | eventDraw (SDL_Surface *surface, const PG_Rect &rect) |
| overridable eventhandler to draw the object surface | |
| void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
| overridable eventhandler to blit the widget contents to the screen | |
Protected Attributes | |
| Uint8 | my_DrawMode |
| SDL_Surface * | my_cachedSrf |
|
||||||||||||||||||||||||
|
Contructor of the PG_Image class (loading from file). Creates the widget and loads the image from a file
|
|
||||||||||||||||||||||||||||
|
Contructor of the PG_Image class (image from surface). Creates the widget and loads the image from an SDL_Surface
|
|
||||||||||||||||||||||||||||
|
Contructor of the PG_Image class (loading from file). Creates the widget and loads the image from a file using a colorkey
|
|
|
|
|
||||||||||||||||
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_ThemeWidget. |
|
||||||||||||
|
overridable eventhandler to draw the object surface
Reimplemented from PG_ThemeWidget. |
|
|
|
|
||||||||||||
|
Display an image in the widget using a colorkey.
Reimplemented from PG_ThemeWidget. |
|
|
Display an image in the widget.
Reimplemented from PG_ThemeWidget. |
|
|
Set the colorkey of the image.
|
|
|
@ Set mode of drawing (BKMODE_TILE | BKMODE_STRETCH | BKMODE_3TILEH | BKMODE_3TILEV | BKMODE_9TILE)
|
|
||||||||||||
|
Display an image in the widget.
Reimplemented from PG_ThemeWidget. |
|
|
|
|
|
|