]> git.donarmstrong.com Git - xournal.git/blob - src/xo-paint.h
split off selection code from xo-paint.c to xo-selection.c
[xournal.git] / src / xo-paint.h
1 /*
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.
6  *
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.
11  *
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/>.
14  */
15
16
17 void set_cursor_busy(gboolean busy);
18 void update_cursor(void);
19 void update_cursor_for_resize(double *pt);
20
21 void create_new_stroke(GdkEvent *event);
22 void continue_stroke(GdkEvent *event);
23 void finalize_stroke(void);
24
25 void do_eraser(GdkEvent *event, double radius, gboolean whole_strokes);
26 void finalize_erasure(void);
27
28 void do_hand(GdkEvent *event);
29
30 /* text functions */
31
32 #define DEFAULT_FONT "Sans"
33 #define DEFAULT_FONT_SIZE 12
34
35 void start_text(GdkEvent *event, struct Item *item);
36 void end_text(void);
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);