]> git.donarmstrong.com Git - xournal.git/blob - src/xo-paint.h
cd7b2ea37f7708c21103c531a516821695d2e7d2
[xournal.git] / src / xo-paint.h
1 void set_cursor_busy(gboolean busy);
2 void update_cursor(void);
3 void update_cursor_for_resize(double *pt);
4
5 void create_new_stroke(GdkEvent *event);
6 void continue_stroke(GdkEvent *event);
7 void finalize_stroke(void);
8
9 void do_eraser(GdkEvent *event, double radius, gboolean whole_strokes);
10 void finalize_erasure(void);
11
12 void do_hand(GdkEvent *event);
13
14 void start_selectrect(GdkEvent *event);
15 void finalize_selectrect(void);
16 gboolean start_movesel(GdkEvent *event);
17 void start_vertspace(GdkEvent *event);
18 void continue_movesel(GdkEvent *event);
19 void finalize_movesel(void);
20 gboolean start_resizesel(GdkEvent *event);
21 void continue_resizesel(GdkEvent *event);
22 void finalize_resizesel(void);
23
24 void selection_delete(void);
25 void selection_to_clip(void);
26 void clipboard_paste(void);
27
28 void recolor_selection(int color_no, guint color_rgba);
29 void rethicken_selection(int val);
30
31 /* text functions */
32
33 #define DEFAULT_FONT "Sans"
34 #define DEFAULT_FONT_SIZE 12
35
36 void start_text(GdkEvent *event, struct Item *item);
37 void end_text(void);
38 void update_text_item_displayfont(struct Item *item);
39 void rescale_text_items(void);
40 struct Item *click_is_in_text(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);