[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/include pgimage.h,1.3,1.3.6.1 pgthemewidget.
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/include pgimage.h,1.3,1.3.6.1 pgthemewidget.h,1.3.6.3,1.3.6.4 |
Date: |
Sat, 25 Jan 2003 11:53:59 -0500 |
Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv10783/include
Modified Files:
Tag: devel-1-0
pgimage.h pgthemewidget.h
Log Message:
colorkey improvements
Index: pgimage.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgimage.h,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** pgimage.h 15 Apr 2002 13:35:35 -0000 1.3
--- pgimage.h 25 Jan 2003 16:53:57 -0000 1.3.6.1
***************
*** 53,57 ****
public:
/**
! Contructor of the PG_Image class
@param parent pointer to the parent widget or NULL
@param p position of the PG_Image widget
--- 53,57 ----
public:
/**
! Contructor of the PG_Image class (loading from file)
@param parent pointer to the parent widget or NULL
@param p position of the PG_Image widget
***************
*** 63,67 ****
/**
! Contructor of the PG_Image class
@param parent pointer to the parent widget or NULL
@param p position of the PG_Image widget
--- 63,67 ----
/**
! Contructor of the PG_Image class (image from surface)
@param parent pointer to the parent widget or NULL
@param p position of the PG_Image widget
***************
*** 76,79 ****
--- 76,100 ----
#endif
+ /**
+ Contructor of the PG_Image class (loading from file)
+ @param parent pointer to the parent widget or NULL
+ @param p position of the PG_Image widget
+ @param filename image-file to load
+ @param colorkey colorkey (0xRRGGBB)
+ @param style widgetstyle to use
+ This constructor creates the widget and loads the image from a file
using a colorkey.
+ */
+ #ifdef SWIG
+ %name(PG_ImageColorKey) PG_Image(PG_Widget* parent, const PG_Point& p,
const char* filename, Uint32 colorkey, const char* style);
+ #else
+ PG_Image(PG_Widget* parent, const PG_Point& p, const char* filename,
Uint32 colorkey, const char* style);
+ #endif
+
+ /**
+ Set the colorkey of the image
+ @param key colorkey (0xRRGGBB);
+ */
+ void SetColorKey(Uint32 key);
+
protected:
Index: pgthemewidget.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgthemewidget.h,v
retrieving revision 1.3.6.3
retrieving revision 1.3.6.4
diff -C2 -r1.3.6.3 -r1.3.6.4
*** pgthemewidget.h 12 Jul 2002 10:12:14 -0000 1.3.6.3
--- pgthemewidget.h 25 Jan 2003 16:53:57 -0000 1.3.6.4
***************
*** 200,203 ****
--- 200,214 ----
/**
+ Display an image in the widget using a colorkey
+ @param filename name of the image file to load
+ @param key the colorkey (0xRRGGBB)
+ @return true on success
+ With this function you can define an image with a colorkey to be
displayed at the upper left corner
+ of the widget. Image data will be erased when deleting the widget or
loading / setting
+ a new image.
+ */
+ bool LoadImage(const char* filename, Uint32 key);
+
+ /**
Display an image in the widget
@param image pointer to surface to display
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/include pgimage.h,1.3,1.3.6.1 pgthemewidget.h,1.3.6.3,1.3.6.4,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/widgets pgbutton.cpp,1.3.6.1,1.3.6.2
- Next by Date:
[paragui-cvs] CVS: paragui/src/widgets pgimage.cpp,1.3.6.1,1.3.6.2 pgthemewidget.cpp,1.3.6.6,1.3.6.7
- Previous by thread:
[paragui-cvs] CVS: paragui/src/widgets pgbutton.cpp,1.3.6.1,1.3.6.2
- Next by thread:
[paragui-cvs] CVS: paragui/src/widgets pgimage.cpp,1.3.6.1,1.3.6.2 pgthemewidget.cpp,1.3.6.6,1.3.6.7
- Index(es):