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