1998-08-23 03:22:56 +00:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
2006-01-23 02:28:01 +00:00
|
|
|
// Name: wx/gtk1/win_gtk.h
|
2004-05-23 14:56:36 +00:00
|
|
|
// Purpose: wxWidgets's GTK base widget = GtkPizza
|
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
|
|
|
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
#ifndef __GTK_PIZZA_H__
|
|
|
|
#define __GTK_PIZZA_H__
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2001-10-02 19:28:23 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
#include <gdk/gdk.h>
|
2001-10-02 19:28:23 +00:00
|
|
|
#include <gdk/gdkx.h>
|
1998-05-20 14:01:55 +00:00
|
|
|
#include <gtk/gtkcontainer.h>
|
1999-04-09 18:01:17 +00:00
|
|
|
#include <gtk/gtkadjustment.h>
|
|
|
|
#include <gtk/gtkfeatures.h>
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
#include "wx/dlimpexp.h"
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
#define GTK_PIZZA(obj) GTK_CHECK_CAST (obj, gtk_pizza_get_type (), GtkPizza)
|
|
|
|
#define GTK_PIZZA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_pizza_get_type (), GtkPizzaClass)
|
|
|
|
#define GTK_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
|
1998-05-20 14:01:55 +00:00
|
|
|
|
1999-09-30 22:13:45 +00:00
|
|
|
/* Shadow types */
|
|
|
|
typedef enum
|
|
|
|
{
|
2000-02-21 18:01:02 +00:00
|
|
|
GTK_MYSHADOW_NONE,
|
|
|
|
GTK_MYSHADOW_THIN,
|
|
|
|
GTK_MYSHADOW_IN,
|
|
|
|
GTK_MYSHADOW_OUT
|
1999-09-30 22:13:45 +00:00
|
|
|
} GtkMyShadowType;
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2000-03-09 13:24:34 +00:00
|
|
|
typedef struct _GtkPizzaChild GtkPizzaChild;
|
1999-10-29 17:20:44 +00:00
|
|
|
typedef struct _GtkPizza GtkPizza;
|
|
|
|
typedef struct _GtkPizzaClass GtkPizzaClass;
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2000-03-09 13:24:34 +00:00
|
|
|
struct _GtkPizzaChild
|
|
|
|
{
|
|
|
|
GtkWidget *widget;
|
|
|
|
gint x;
|
|
|
|
gint y;
|
|
|
|
gint width;
|
|
|
|
gint height;
|
|
|
|
};
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
struct _GtkPizza
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
2000-02-21 18:01:02 +00:00
|
|
|
GtkContainer container;
|
|
|
|
GList *children;
|
|
|
|
GtkMyShadowType shadow_type;
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
guint width;
|
|
|
|
guint height;
|
1999-10-08 20:09:32 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
guint xoffset;
|
|
|
|
guint yoffset;
|
1999-10-08 20:09:32 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
GdkWindow *bin_window;
|
1999-10-08 20:09:32 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
GdkVisibilityState visibility;
|
|
|
|
gulong configure_serial;
|
|
|
|
gint scroll_x;
|
|
|
|
gint scroll_y;
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
gboolean clear_on_draw;
|
|
|
|
gboolean use_filter;
|
2000-03-10 19:49:54 +00:00
|
|
|
gboolean external_expose;
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
struct _GtkPizzaClass
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
|
|
|
GtkContainerClass parent_class;
|
1999-04-09 18:01:17 +00:00
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
void (*set_scroll_adjustments) (GtkPizza *pizza,
|
2005-08-02 20:57:54 +00:00
|
|
|
GtkAdjustment *hadjustment,
|
|
|
|
GtkAdjustment *vadjustment);
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2004-09-16 22:34:09 +00:00
|
|
|
GtkType gtk_pizza_get_type (void);
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
1999-10-29 17:20:44 +00:00
|
|
|
GtkWidget* gtk_pizza_new (void);
|
1999-10-11 15:24:49 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_shadow_type (GtkPizza *pizza,
|
2005-08-02 20:57:54 +00:00
|
|
|
GtkMyShadowType type);
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_clear (GtkPizza *pizza,
|
2005-08-02 20:57:54 +00:00
|
|
|
gboolean clear);
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_filter (GtkPizza *pizza,
|
2005-08-02 20:57:54 +00:00
|
|
|
gboolean use);
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-03-10 19:49:54 +00:00
|
|
|
void gtk_pizza_set_external (GtkPizza *pizza,
|
2005-08-02 20:57:54 +00:00
|
|
|
gboolean expose);
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2005-08-02 20:57:54 +00:00
|
|
|
void gtk_pizza_scroll (GtkPizza *pizza,
|
2000-02-21 18:01:02 +00:00
|
|
|
gint dx,
|
|
|
|
gint dy);
|
2000-03-14 20:08:31 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-03-14 20:08:31 +00:00
|
|
|
gint gtk_pizza_child_resized (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget);
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_put (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
2005-08-02 20:57:54 +00:00
|
|
|
gint width,
|
|
|
|
gint height);
|
2000-02-21 18:01:02 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_move (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y );
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_resize (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint width,
|
|
|
|
gint height );
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_size (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
1998-05-20 14:01:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
#endif /* __GTK_PIZZA_H__ */
|