1998-08-23 03:22:56 +00:00
|
|
|
/* ///////////////////////////////////////////////////////////////////////////
|
1998-05-20 14:01:55 +00:00
|
|
|
// Name: 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 <gtk/gtkcontainer.h>
|
|
|
|
|
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_IS_PIZZA(obj) GTK_CHECK_TYPE (obj, gtk_pizza_get_type ())
|
1998-05-20 14:01:55 +00:00
|
|
|
|
1999-10-29 17:20:44 +00:00
|
|
|
typedef struct _GtkPizza GtkPizza;
|
2000-03-09 13:24:34 +00:00
|
|
|
|
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;
|
2005-08-02 20:57:54 +00:00
|
|
|
|
2006-09-10 14:52:56 +00:00
|
|
|
guint m_xoffset;
|
|
|
|
guint m_yoffset;
|
2006-09-10 19:39:22 +00:00
|
|
|
|
2007-04-07 14:41:41 +00:00
|
|
|
gboolean m_noscroll;
|
|
|
|
|
2000-02-21 18:01:02 +00:00
|
|
|
GdkWindow *bin_window;
|
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);
|
2007-04-07 14:41:41 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
GtkWidget* gtk_pizza_new_no_scroll (void);
|
1999-10-11 15:24:49 +00:00
|
|
|
|
2006-09-10 14:52:56 +00: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 14:20:24 +00:00
|
|
|
WXDLLIMPEXP_CORE
|
|
|
|
gint gtk_pizza_get_rtl_offset (GtkPizza *pizza);
|
|
|
|
|
2005-08-02 20:57:54 +00:00
|
|
|
|
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-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_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__ */
|