]>
Commit | Line | Data |
---|---|---|
1 | /* /////////////////////////////////////////////////////////////////////////// | |
2 | // Name: 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/gtkfixed.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); | |
27 | void scroll(int dx, int dy); | |
28 | void get_border_widths(int& x, int& y); | |
29 | ||
30 | GtkFixed m_fixed; | |
31 | GdkWindow* m_backing_window; | |
32 | int m_scroll_x; | |
33 | int m_scroll_y; | |
34 | int m_border_style; | |
35 | bool m_is_scrollable; | |
36 | }; | |
37 | ||
38 | #endif // _WX_GTK_PIZZA_H_ |