1998-08-22 23:22:56 -04:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
2006-01-22 21:28:01 -05:00
|
|
|
// Name: wx/gtk1/win_gtk.h
|
2004-05-23 10:56:36 -04:00
|
|
|
// Purpose: wxWidgets'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
|
2005-08-02 16:57:54 -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>
|
|
|
|
#include <gtk/gtkfeatures.h>
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
#include "wx/dlimpexp.h"
|
|
|
|
|
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;
|
2005-08-02 16:57:54 -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;
|
2005-08-02 16:57:54 -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,
|
2005-08-02 16:57:54 -04:00
|
|
|
GtkAdjustment *hadjustment,
|
|
|
|
GtkAdjustment *vadjustment);
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2004-09-16 18:34:09 -04:00
|
|
|
GtkType gtk_pizza_get_type (void);
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
1999-10-29 13:20:44 -04:00
|
|
|
GtkWidget* gtk_pizza_new (void);
|
1999-10-11 11:24:49 -04:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_set_shadow_type (GtkPizza *pizza,
|
2005-08-02 16:57:54 -04:00
|
|
|
GtkMyShadowType type);
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_set_clear (GtkPizza *pizza,
|
2005-08-02 16:57:54 -04:00
|
|
|
gboolean clear);
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_set_filter (GtkPizza *pizza,
|
2005-08-02 16:57:54 -04:00
|
|
|
gboolean use);
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-03-10 14:49:54 -05:00
|
|
|
void gtk_pizza_set_external (GtkPizza *pizza,
|
2005-08-02 16:57:54 -04:00
|
|
|
gboolean expose);
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2005-08-02 16:57:54 -04:00
|
|
|
void gtk_pizza_scroll (GtkPizza *pizza,
|
2000-02-21 13:01:02 -05:00
|
|
|
gint dx,
|
|
|
|
gint dy);
|
2000-03-14 15:08:31 -05:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-03-14 15:08:31 -05:00
|
|
|
gint gtk_pizza_child_resized (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget);
|
2005-08-02 16:57:54 -04:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_put (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
2005-08-02 16:57:54 -04:00
|
|
|
gint width,
|
|
|
|
gint height);
|
2000-02-21 13:01:02 -05:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_move (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint x,
|
|
|
|
gint y );
|
2005-08-02 16:57:54 -04:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
2000-02-21 13:01:02 -05:00
|
|
|
void gtk_pizza_resize (GtkPizza *pizza,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gint width,
|
|
|
|
gint height );
|
2005-08-02 16:57:54 -04:00
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
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__ */
|