26 lines
1018 B
C
26 lines
1018 B
C
#ifndef GEMUI_INTERNAL_H
|
|
#define GEMUI_INTERNAL_H
|
|
|
|
#include <cairo.h>
|
|
#include <X11/Xlib.h>
|
|
#include "gemui.h"
|
|
|
|
struct gemui_file_dialog;
|
|
|
|
/* Internal bridges implemented in gemui.c for modular widgets */
|
|
struct gemui_file_dialog **gemui_internal_fdlg_ptr(gemui_app_t *app);
|
|
const struct gemui_file_dialog *gemui_internal_fdlg_cptr(const gemui_app_t *app);
|
|
int gemui_internal_draw_pango_px(gemui_app_t *app, cairo_t *cr, int px_size,
|
|
gemui_rect_t r, const char *text, bool bold,
|
|
int align, gemui_color_t c);
|
|
|
|
/* Modal file dialog hooks implemented in gemui_filedialog.c */
|
|
void gemui_fdlg_destroy(gemui_app_t *app);
|
|
void gemui_fdlg_draw(gemui_app_t *app, cairo_t *cr, int w, int h);
|
|
void gemui_fdlg_handle_key(gemui_app_t *app, KeySym ks, unsigned int state,
|
|
const char *utf8);
|
|
void gemui_fdlg_handle_ptr(gemui_app_t *app, int ev, int x, int y,
|
|
unsigned int button);
|
|
|
|
#endif /* GEMUI_INTERNAL_H */
|