2015-04-22 13:09:17 -05:00
|
|
|
// 22 april 2015
|
2016-05-28 12:06:16 -05:00
|
|
|
#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_40
|
|
|
|
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_40
|
|
|
|
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_10
|
|
|
|
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_10
|
2016-05-04 22:35:11 -05:00
|
|
|
#include <gtk/gtk.h>
|
2015-10-09 21:00:41 -05:00
|
|
|
#include <math.h>
|
2017-05-19 15:40:52 -05:00
|
|
|
#include <dlfcn.h> // see future.c
|
2016-05-04 22:35:11 -05:00
|
|
|
#include <langinfo.h>
|
2016-05-25 00:52:53 -05:00
|
|
|
#include <string.h>
|
2016-06-27 15:11:15 -05:00
|
|
|
#include <stdlib.h>
|
2017-02-20 16:11:52 -06:00
|
|
|
#include <inttypes.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
|
2017-02-10 15:16:43 -06:00
|
|
|
extern uiDrawContext *newContext(cairo_t *cr, GtkStyleContext *style);
|
2015-10-09 02:43:29 -05:00
|
|
|
extern void freeContext(uiDrawContext *);
|
2016-05-25 00:52:53 -05:00
|
|
|
|
2016-06-27 15:11:15 -05:00
|
|
|
// image.c
|
2016-11-30 08:21:37 -06:00
|
|
|
/*TODO remove this*/typedef struct uiImage uiImage;
|
2016-06-27 15:11:15 -05:00
|
|
|
extern cairo_surface_t *imageAppropriateSurface(uiImage *i, GtkWidget *w);
|
2016-06-28 11:00:35 -05:00
|
|
|
|
|
|
|
// cellrendererbutton.c
|
|
|
|
extern GtkCellRenderer *newCellRendererButton(void);
|
2016-06-29 14:33:30 -05:00
|
|
|
|
|
|
|
// future.c
|
|
|
|
extern void loadFutures(void);
|
2017-02-20 16:11:52 -06:00
|
|
|
extern PangoAttribute *FUTURE_pango_attr_font_features_new(const gchar *features);
|
2016-06-29 14:33:30 -05:00
|
|
|
extern PangoAttribute *FUTURE_pango_attr_foreground_alpha_new(guint16 alpha);
|
2018-03-11 19:23:18 -05:00
|
|
|
extern PangoAttribute *FUTURE_pango_attr_background_alpha_new(guint16 alpha);
|
2016-06-29 14:33:30 -05:00
|
|
|
extern gboolean FUTURE_gtk_widget_path_iter_set_object_name(GtkWidgetPath *path, gint pos, const char *name);
|