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" |
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 |
}; |
}; |
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); |
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 |
|
|