2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) any later version.
7 * This software is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 void set_cursor_busy(gboolean busy);
18 void update_cursor(void);
19 void update_cursor_for_resize(double *pt);
21 void create_new_stroke(GdkEvent *event);
22 void continue_stroke(GdkEvent *event);
23 void finalize_stroke(void);
25 void do_eraser(GdkEvent *event, double radius, gboolean whole_strokes);
26 void finalize_erasure(void);
28 void do_hand(GdkEvent *event);
32 #define DEFAULT_FONT "Sans"
33 #define DEFAULT_FONT_SIZE 12
35 void start_text(GdkEvent *event, struct Item *item);
37 void update_text_item_displayfont(struct Item *item);
38 void rescale_text_items(void);
39 struct Item *click_is_in_text(struct Layer *layer, double x, double y);
40 struct Item *click_is_in_text_or_image(struct Layer *layer, double x, double y);
41 void refont_text_item(struct Item *item, gchar *font_name, double font_size);
42 void process_font_sel(gchar *str);