2015-04-22 13:09:17 -05:00
|
|
|
// 22 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
|
2015-10-09 21:00:41 -05:00
|
|
|
// TODO make this unnecessary
|
|
|
|
#define _GNU_SOURCE
|
2016-05-04 22:35:11 -05:00
|
|
|
#include <gtk/gtk.h>
|
2015-10-09 21:00:41 -05:00
|
|
|
#include <math.h>
|
2016-04-19 22:58:36 -05:00
|
|
|
#include <dlfcn.h> // see drawtext.c
|
2016-05-04 22:35:11 -05:00
|
|
|
#include <langinfo.h>
|
2015-08-28 09:01:57 -05:00
|
|
|
#include "../ui.h"
|
2015-04-22 13:09:17 -05:00
|
|
|
#include "../ui_unix.h"
|
2015-10-16 17:31:14 -05:00
|
|
|
#include "../common/uipriv.h"
|
2015-04-22 18:23:34 -05:00
|
|
|
|
|
|
|
#define gtkXMargin 12
|
|
|
|
#define gtkYMargin 12
|
2015-06-30 00:16:35 -05:00
|
|
|
#define gtkXPadding 12
|
|
|
|
#define gtkYPadding 6
|
2015-04-23 09:01:39 -05:00
|
|
|
|
2015-04-23 17:48:01 -05:00
|
|
|
// menu.c
|
|
|
|
extern GtkWidget *makeMenubar(uiWindow *);
|
2015-04-30 11:05:18 -05:00
|
|
|
extern void freeMenubar(GtkWidget *);
|
2015-05-08 09:17:33 -05:00
|
|
|
extern void uninitMenus(void);
|
2015-05-04 18:26:05 -05:00
|
|
|
|
|
|
|
// alloc.c
|
|
|
|
extern void initAlloc(void);
|
2015-05-07 22:10:19 -05:00
|
|
|
extern void uninitAlloc(void);
|
2015-06-13 23:58:10 -05:00
|
|
|
|
2015-08-27 17:40:00 -05:00
|
|
|
// util.c
|
|
|
|
extern void setMargined(GtkContainer *, int);
|
2015-08-28 09:01:57 -05:00
|
|
|
|
2015-08-28 15:38:04 -05:00
|
|
|
// child.c
|
|
|
|
extern struct child *newChild(uiControl *child, uiControl *parent, GtkContainer *parentContainer);
|
|
|
|
extern struct child *newChildWithBox(uiControl *child, uiControl *parent, GtkContainer *parentContainer, int margined);
|
|
|
|
extern void childRemove(struct child *c);
|
|
|
|
extern void childDestroy(struct child *c);
|
|
|
|
extern GtkWidget *childWidget(struct child *c);
|
|
|
|
extern int childFlag(struct child *c);
|
|
|
|
extern void childSetFlag(struct child *c, int flag);
|
|
|
|
extern GtkWidget *childBox(struct child *c);
|
|
|
|
extern void childSetMargined(struct child *c, int margined);
|
|
|
|
|
2015-10-08 17:24:09 -05:00
|
|
|
// draw.c
|
|
|
|
extern uiDrawContext *newContext(cairo_t *);
|
2015-10-09 02:43:29 -05:00
|
|
|
extern void freeContext(uiDrawContext *);
|
2016-04-19 10:23:05 -05:00
|
|
|
extern uiDrawTextFont *mkTextFont(PangoFont *f, gboolean add);
|
2016-04-20 12:59:59 -05:00
|
|
|
extern PangoFont *pangoDescToPangoFont(PangoFontDescription *pdesc);
|