From 1dbcef5a7428a7132b746653af671b3a15fc7951 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 25 Sep 2011 19:29:11 +0200 Subject: First part of new concept for styles and layout elements --- src/tool_text.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/tool_text.h (limited to 'src/tool_text.h') diff --git a/src/tool_text.h b/src/tool_text.h new file mode 100644 index 0000000..cd190ae --- /dev/null +++ b/src/tool_text.h @@ -0,0 +1,39 @@ +/* + * tool_text.h + * + * Colloquium - A tiny presentation program + * + * Copyright (c) 2011 Thomas White + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + +#ifndef TOOL_TEXT_H +#define TOOL_TEXT_H + +#ifdef HAVE_CONFIG_H +#include +#endif + +extern struct object *add_text_object(struct slide *s, double x, double y, + struct style *sty); +extern void insert_text(struct object *o, char *t); +extern void handle_text_backspace(struct object *o); +extern void move_cursor_left(struct object *o); +extern void move_cursor_right(struct object *o); +extern void position_caret(struct object *o, double x, double y); + + +#endif /* TOOL_TEXT_H */ -- cgit v1.2.3