2002-06-23 Hans Breuer <hans@breuer.org>
[dia.git] / objects / EML / dbox.h
blobb74d49951e7ad7a7b1f1a4b72d9aad6061c36b12
1 #ifndef DBOX_H
2 #define DBOX_H
4 #include <glib.h>
5 #include "element.h"
6 #include "eml.h"
8 #define text_ascent(font, font_height) font_ascent(font, font_height)
10 typedef struct _EMLBoxT EMLBoxT;
11 typedef struct _EMLBox EMLBox;
13 struct _EMLBoxT {
14 EMLBox* (* const new) (real , gchar *, gint , real , real , real,
15 ConnectionPoint *, ConnectionPoint *);
16 void (* const destroy) (EMLBox *);
17 void (* const add_el) (EMLBox *, gpointer);
18 void (* const calc_geometry) (EMLBox *, real *, real *);
19 real (* const calc_connections) (EMLBox *, Point *, GList **, real);
20 real (* const draw) (EMLBox *, Renderer *, Point* , real);
23 struct _EMLBox {
24 EMLBoxT *ops;
25 ConnectionPoint *left_connection;
26 ConnectionPoint *right_connection;
27 real font_height;
28 DiaFont *font;
29 gint text_alignment;
30 real border_width;
31 real separator_width;
32 real separator_style;
33 GList *els;
36 void emlbox_destroy(EMLBox *);
37 void emlbox_add_el(EMLBox *, gpointer );
38 void emlbox_calc_geometry(EMLBox *, real *, real *);
39 real emlbox_calc_connections(EMLBox *, Point *, GList **, real );
40 real emlbox_draw(EMLBox *, Renderer *, Element *);
42 extern EMLBoxT EMLListBox;
43 extern EMLBoxT EMLTextBox;
44 #endif /* DBOX_H */