/[paragui]/paragui/test/paratest.cpp
ViewVC logotype

Diff of /paragui/test/paratest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2.6.11.2.1 by braindead, Fri Nov 21 12:27:56 2003 UTC revision 1.2.6.11.2.2 by braindead, Mon Nov 24 09:17:22 2003 UTC
# Line 15  Line 15 
15  #include "pglistbox.h"  #include "pglistbox.h"
16  #include "pgcolumnitem.h"  #include "pgcolumnitem.h"
17  #include "pgdropdown.h"  #include "pgdropdown.h"
 #include "pgeventobject.h"  
18  #include "pgpopupmenu.h"  #include "pgpopupmenu.h"
19  #include "pgspinnerbox.h"  #include "pgspinnerbox.h"
20  #include "pglog.h"  #include "pglog.h"
# Line 52  bool handle_exit(PG_Pointer clientdata) Line 51  bool handle_exit(PG_Pointer clientdata)
51    
52  // A new widget with a callback member  // A new widget with a callback member
53    
54  class MySliderLabel : public PG_Label , public PG_EventObject {  class MySliderLabel : public PG_Label {
55  public:  public:
56          MySliderLabel(PG_Widget* parent, const PG_Rect& r, char* text) : PG_Label(parent,r,text) {          MySliderLabel(PG_Widget* parent, const PG_Rect& r, char* text) : PG_Label(parent,r,text) {
57          };          };
# Line 65  public: Line 64  public:
64    
65  // A testwindow class  // A testwindow class
66    
67  class TestWindow : public PG_Window, public PG_EventObject {  class TestWindow : public PG_Window {
68  public:  public:
69    
70          TestWindow(PG_Widget* parent, const PG_Rect& r, char* windowtext);          TestWindow(PG_Widget* parent, const PG_Rect& r, char* windowtext);
# Line 340  int main(int argc, char* argv[]) { Line 339  int main(int argc, char* argv[]) {
339    
340          //Splash();          //Splash();
341                    
342          SDL_Color color;          PG_Color color(255,255,255);
         color.r = 255;  
         color.g = 255;  
         color.b = 255;  
343    
344          PG_LogMSG("creating 'wnd' after %i ms", SDL_GetTicks() - start_ticks);          PG_LogMSG("creating 'wnd' after %i ms", SDL_GetTicks() - start_ticks);
345    

Legend:
Removed from v.1.2.6.11.2.1  
changed lines
  Added in v.1.2.6.11.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26