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);
30 void start_selectrect(GdkEvent *event);
31 void finalize_selectrect(void);
32 gboolean start_movesel(GdkEvent *event);
33 void start_vertspace(GdkEvent *event);
34 void continue_movesel(GdkEvent *event);
35 void finalize_movesel(void);
36 gboolean start_resizesel(GdkEvent *event);
37 void continue_resizesel(GdkEvent *event);
38 void finalize_resizesel(void);
40 void selection_delete(void);
42 void recolor_selection(int color_no, guint color_rgba);
43 void rethicken_selection(int val);
47 #define DEFAULT_FONT "Sans"
48 #define DEFAULT_FONT_SIZE 12
50 void start_text(GdkEvent *event, struct Item *item);
52 void update_text_item_displayfont(struct Item *item);
53 void rescale_text_items(void);
54 struct Item *click_is_in_text(struct Layer *layer, double x, double y);
55 void refont_text_item(struct Item *item, gchar *font_name, double font_size);
56 void process_font_sel(gchar *str);