2015-04-06 11:20:51 -05:00
|
|
|
// 6 april 2015
|
|
|
|
#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32
|
|
|
|
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32
|
|
|
|
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
|
|
|
|
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4
|
|
|
|
#include <gtk/gtk.h>
|
2015-04-06 20:53:31 -05:00
|
|
|
#include "uipriv.h"
|
2015-04-07 11:17:05 -05:00
|
|
|
#include "ui_unix.h"
|
2015-04-07 11:59:01 -05:00
|
|
|
|
2015-04-09 14:25:18 -05:00
|
|
|
// container_unix.c
|
2015-04-07 12:37:03 -05:00
|
|
|
struct uiSizing {
|
2015-04-09 14:25:18 -05:00
|
|
|
uiSizingCommon
|
2015-04-07 12:37:03 -05:00
|
|
|
};
|
2015-04-07 11:59:01 -05:00
|
|
|
#define uiContainerType (uiContainer_get_type())
|
|
|
|
#define uiContainer(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), uiContainerType, uiContainer))
|
|
|
|
#define uiIsContainer(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), uiContainerType))
|
|
|
|
#define uiContainerClass(class) (G_TYPE_CHECK_CLASS_CAST((class), uiContainerType, uiContainerClass))
|
|
|
|
#define uiIsContainerClass(class) (G_TYPE_CHECK_CLASS_TYPE((class), uiContainer))
|
|
|
|
#define uiGetContainerClass(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), uiContainerType, uiContainerClass))
|
|
|
|
typedef struct uiContainer uiContainer;
|
|
|
|
typedef struct uiContainerClass uiContainerClass;
|
|
|
|
struct uiContainer {
|
|
|
|
GtkContainer parent_instance;
|
2015-04-07 12:22:46 -05:00
|
|
|
// this is what triggers the resizing of all the children
|
|
|
|
uiControl *child;
|
|
|
|
// these are the actual children widgets of the container as far as GTK+ is concerned
|
2015-04-07 11:59:01 -05:00
|
|
|
GPtrArray *children; // for forall()
|
2015-04-09 14:18:18 -05:00
|
|
|
gboolean margined;
|
2015-04-07 11:59:01 -05:00
|
|
|
};
|
|
|
|
struct uiContainerClass {
|
|
|
|
GtkContainerClass parent_class;
|
|
|
|
};
|
|
|
|
extern GType uiContainer_get_type(void);
|
|
|
|
extern GtkWidget *newContainer(void);
|