Remove use of "size-request" signal for wxWindow sizing.
[wxWidgets.git] / include / wx / gtk / private / win_gtk.h
1 /* ///////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/private/win_gtk.h
3 // Purpose: native GTK+ widget for wxWindow
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////// */
9
10 #ifndef _WX_GTK_PIZZA_H_
11 #define _WX_GTK_PIZZA_H_
12
13 #include <gtk/gtk.h>
14
15 #define WX_PIZZA(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wxPizza::type(), wxPizza)
16 #define WX_IS_PIZZA(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wxPizza::type())
17
18 struct WXDLLIMPEXP_CORE wxPizza
19 {
20 // borders styles which can be used with wxPizza
21 enum { BORDER_STYLES =
22 wxBORDER_SIMPLE | wxBORDER_RAISED | wxBORDER_SUNKEN | wxBORDER_THEME };
23
24 static GtkWidget* New(long windowStyle = 0);
25 static GType type();
26 void move(GtkWidget* widget, int x, int y, int width, int height);
27 void put(GtkWidget* widget, int x, int y, int width, int height);
28 void scroll(int dx, int dy);
29 void get_border_widths(int& x, int& y);
30
31 GtkFixed m_fixed;
32 GList* m_children;
33 int m_scroll_x;
34 int m_scroll_y;
35 int m_border_style;
36 bool m_is_scrollable;
37 };
38
39 #endif // _WX_GTK_PIZZA_H_