1998-08-22 23:22:56 -04:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
1998-05-20 10:01:55 -04:00
|
|
|
// Name: 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 <gtk/gtkcontainer.h>
|
|
|
|
|
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_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
|
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;
|
2005-08-02 16:57:54 -04:00
|
|
|
|
2006-09-10 10:52:56 -04:00
|
|
|
guint m_xoffset;
|
|
|
|
guint m_yoffset;
|
2006-09-10 15:39:22 -04:00
|
|
|
|
2000-02-21 13:01:02 -05:00
|
|
|
GdkWindow *bin_window;
|
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
|
|
|
|
2006-09-10 10:52:56 -04:00
|
|
|
/* accessors */
|
|
|
|
|
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
gint gtk_pizza_get_xoffset (GtkPizza *pizza);
|
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
gint gtk_pizza_get_yoffset (GtkPizza *pizza);
|
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
void gtk_pizza_set_xoffset (GtkPizza *pizza, gint xoffset);
|
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
void gtk_pizza_set_yoffset (GtkPizza *pizza, gint yoffset);
|
|
|
|
|
|
|
|
|
2006-09-11 10:20:24 -04:00
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
|
|
|
|
|
2005-08-02 16:57:54 -04:00
|
|
|
|
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-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_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__ */
|