#ifndef CONTAINER_H
#include "../ui/container.h"
#define CONTAINER_H
#define UI_APPLY_LAYOUT(layout, args) \
layout.fill = args->fill; \
layout.hexpand = args->hexpand; \
layout.vexpand = args->vexpand; \
layout.hfill = args->hfill; \
layout.vfill = args->vfill; \
layout.override_defaults = args->override_defaults; \
layout.colspan = args->colspan; \
layout.rowspan = args->rowspan
typedef struct UiLayout UiLayout;
struct UiLayout {
UiBool fill;
UiBool newline;
char *label;
UiBool hexpand;
UiBool vexpand;
UiBool hfill;
UiBool vfill;
UiBool override_defaults;
int width;
int colspan;
int rowspan;
};
enum UiBoxOrientation {
UI_BOX_VERTICAL =
0,
UI_BOX_HORIZONTAL
};
typedef enum UiBoxOrientation UiBoxOrientation;
enum UiContainerType {
UI_CONTAINER_GENERIC =
0,
UI_CONTAINER_TABVIEW
};
typedef enum UiContainerType UiContainerType;
typedef struct UiContainerPrivate UiContainerPrivate;
typedef struct UiRect {
int x;
int y;
int width;
int height;
} UiRect;
struct UiContainerPrivate {
UiContainerX container;
void (*prepare)(UiContainerPrivate*, UiRect*);
void (*add)(UiContainerPrivate*, UiRect*, W32Widget*);
UiContainerType type;
UiLayout layout;
};
#endif