1998-08-23 03:22:56 +00:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
1998-05-20 14:01:55 +00:00
|
|
|
// Name: win_gtk.h
|
1999-10-29 17:20:44 +00:00
|
|
|
// Purpose: wxWindows'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
|
1998-05-20 14:01:55 +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>
|
2000-07-19 08:28:55 +00:00
|
|
|
#ifndef __WXGTK20__
|
1999-04-09 18:01:17 +00:00
|
|
|
#include <gtk/gtkfeatures.h>
|
2000-07-19 08:28:55 +00:00
|
|
|
#endif
|
1998-05-20 14:01:55 +00:00
|
|
|
|
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;
|
1999-10-08 20:09:32 +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;
|
1999-10-11 15:24:49 +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,
|
1999-04-09 18:01:17 +00:00
|
|
|
GtkAdjustment *hadjustment,
|
|
|
|
GtkAdjustment *vadjustment);
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
guint gtk_pizza_get_type (void);
|
|
|
|
GtkWidget* gtk_pizza_new (void);
|
1999-10-11 15:24:49 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_shadow_type (GtkPizza *pizza,
|
|
|
|
GtkMyShadowType type);
|
|
|
|
|
|
|
|
void gtk_pizza_set_clear (GtkPizza *pizza,
|
|
|
|
gboolean clear);
|
1999-10-08 20:09:32 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_set_filter (GtkPizza *pizza,
|
|
|
|
gboolean use);
|
1999-10-11 15:24:49 +00:00
|
|
|
|
2000-03-10 19:49:54 +00:00
|
|
|
void gtk_pizza_set_external (GtkPizza *pizza,
|
|
|
|
gboolean expose);
|
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_scroll (GtkPizza *pizza,
|
|
|
|
gint dx,
|
|
|
|
gint dy);
|
2000-03-14 20:08:31 +00:00
|
|
|
|
|
|
|
gint gtk_pizza_child_resized (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget);
|
1999-10-08 20:09:32 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_put (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height);
|
|
|
|
|
|
|
|
void gtk_pizza_move (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y );
|
1999-05-05 10:25:38 +00:00
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
void gtk_pizza_resize (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint width,
|
|
|
|
gint height );
|
1999-05-05 10:25:38 +00:00
|
|
|
|
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__ */
|