]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/win_gtk.h
make access for virtuals match base
[wxWidgets.git] / include / wx / gtk / win_gtk.h
CommitLineData
c67daf87 1/* ///////////////////////////////////////////////////////////////////////////
c801d85f 2// Name: win_gtk.h
08f53168 3// Purpose: native GTK+ widget for wxWindow
c801d85f 4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
5b12ccee 7// Licence: wxWindows licence
c67daf87 8/////////////////////////////////////////////////////////////////////////// */
c801d85f 9
08f53168
PC
10#ifndef _WX_GTK_PIZZA_H_
11#define _WX_GTK_PIZZA_H_
c801d85f 12
08f53168 13#include <gtk/gtkfixed.h>
c801d85f 14
08f53168
PC
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())
e8106239 17
08f53168 18struct WXDLLIMPEXP_CORE wxPizza
c801d85f 19{
d7645b3e
PC
20 // borders styles which can be used with wxPizza
21 enum { BORDER_STYLES =
22 wxBORDER_SIMPLE | wxBORDER_RAISED | wxBORDER_SUNKEN | wxBORDER_THEME };
23
08f53168
PC
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;
c801d85f
KB
36};
37
08f53168 38#endif // _WX_GTK_PIZZA_H_