1998-08-23 03:22:56 +00:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
1998-05-20 14:01:55 +00:00
|
|
|
// Name: win_gtk.h
|
2007-11-06 18:14:15 +00:00
|
|
|
// Purpose: native GTK+ widget for wxWindow
|
1998-05-20 14:01:55 +00:00
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2005-08-02 20:57:54 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-08-23 03:22:56 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////// */
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2007-11-06 18:14:15 +00:00
|
|
|
#ifndef _WX_GTK_PIZZA_H_
|
|
|
|
#define _WX_GTK_PIZZA_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2007-11-06 18:14:15 +00:00
|
|
|
#include <gtk/gtkfixed.h>
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2007-11-06 18:14:15 +00:00
|
|
|
#define WX_PIZZA(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, wxPizza::type(), wxPizza)
|
|
|
|
#define WX_IS_PIZZA(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, wxPizza::type())
|
2001-10-02 19:28:23 +00:00
|
|
|
|
2007-11-06 18:14:15 +00:00
|
|
|
struct WXDLLIMPEXP_CORE wxPizza
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
2007-11-06 18:14:15 +00:00
|
|
|
static GtkWidget* New(long windowStyle = 0);
|
|
|
|
static GType type();
|
|
|
|
void move(GtkWidget* widget, int x, int y);
|
|
|
|
void scroll(int dx, int dy);
|
|
|
|
void get_border_widths(int& x, int& y);
|
|
|
|
|
|
|
|
GtkFixed m_fixed;
|
|
|
|
GdkWindow* m_backing_window;
|
|
|
|
int m_scroll_x;
|
|
|
|
int m_scroll_y;
|
|
|
|
int m_border_style;
|
|
|
|
bool m_is_scrollable;
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2007-11-06 18:14:15 +00:00
|
|
|
#endif // _WX_GTK_PIZZA_H_
|