]> git.donarmstrong.com Git - xournal.git/blob - src/xo-paint.h
4ee4e40d9fa99984c69351c22b39a7230f69abf4
[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 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);
39
40 void selection_delete(void);
41 void selection_to_clip(void);
42 void clipboard_paste(void);
43
44 void recolor_selection(int color_no, guint color_rgba);
45 void rethicken_selection(int val);
46
47 /* text functions */
48
49 #define DEFAULT_FONT "Sans"
50 #define DEFAULT_FONT_SIZE 12
51
52 void start_text(GdkEvent *event, struct Item *item);
53 void end_text(void);
54 void update_text_item_displayfont(struct Item *item);
55 void rescale_text_items(void);
56 struct Item *click_is_in_text(struct Layer *layer, double x, double y);
57 void refont_text_item(struct Item *item, gchar *font_name, double font_size);
58 void process_font_sel(gchar *str);