aboutsummaryrefslogtreecommitdiff
path: root/src/objects.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-10 22:03:52 +0200
committerThomas White <taw@bitwiz.org.uk>2011-08-10 22:03:52 +0200
commit87d1c1c339768b8c9cde14e40b955e618ee4540f (patch)
treebae3f229a48a526f2f1d788cff3db204068e555f /src/objects.h
parent394b051daacb63c661dba0a8c57ec04ad1ae73cf (diff)
Plug in style and layout stuff to UI
Diffstat (limited to 'src/objects.h')
-rw-r--r--src/objects.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/objects.h b/src/objects.h
index bc65979..32ac4ee 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -38,6 +38,7 @@ struct object
{
enum objtype type;
struct slide *parent;
+ struct layout_element *le;
/* Position of corner of object */
double x;
@@ -55,11 +56,15 @@ struct object
int insertion_point;
PangoLayout *layout;
PangoFontDescription *fontdesc;
+ struct text_style *style;
};
-extern struct object *add_text_object(struct slide *s, double x, double y);
+extern struct object *add_text_object(struct slide *s, double x, double y,
+ struct layout_element *el,
+ struct text_style *ts);
extern void insert_text(struct object *o, char *t);
+extern void set_text_style(struct object *o, struct text_style *ts);
extern void handle_text_backspace(struct object *o);
extern void move_cursor_left(struct object *o);
extern void move_cursor_right(struct object *o);