2011-03-20 18:05:19 +00:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/gtk/private/win_gtk.h
|
|
|
|
// Purpose: native GTK+ widget for wxWindow
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////// */
|
|
|
|
|
|
|
|
#ifndef _WX_GTK_PIZZA_H_
|
|
|
|
#define _WX_GTK_PIZZA_H_
|
|
|
|
|
|
|
|
#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())
|
|
|
|
|
|
|
|
struct WXDLLIMPEXP_CORE wxPizza
|
|
|
|
{
|
|
|
|
// borders styles which can be used with wxPizza
|
|
|
|
enum { BORDER_STYLES =
|
|
|
|
wxBORDER_SIMPLE | wxBORDER_RAISED | wxBORDER_SUNKEN | wxBORDER_THEME };
|
|
|
|
|
|
|
|
static GtkWidget* New(long windowStyle = 0);
|
|
|
|
static GType type();
|
2013-09-22 22:44:55 +00:00
|
|
|
void move(GtkWidget* widget, int x, int y, int width, int height);
|
|
|
|
void put(GtkWidget* widget, int x, int y, int width, int height);
|
2011-03-20 18:05:19 +00:00
|
|
|
void scroll(int dx, int dy);
|
2013-09-22 22:44:55 +00:00
|
|
|
void get_border(GtkBorder& border);
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
GtkFixed m_fixed;
|
2013-09-22 22:44:55 +00:00
|
|
|
GList* m_children;
|
2011-03-20 18:05:19 +00:00
|
|
|
int m_scroll_x;
|
|
|
|
int m_scroll_y;
|
2013-09-22 22:44:55 +00:00
|
|
|
int m_windowStyle;
|
2011-03-20 18:05:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GTK_PIZZA_H_
|