X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.h;h=4799a7e5fdeefd738896fe8156e4ce2cebd15775;hb=2e5ff0bff41fa53d4941b6f0fe49c8914bf29cbc;hp=4d3a43cc2e2f3973ce1b8faa120a9385077e5c0f;hpb=a78b442e4b673ac29d7dd29cfb2c9bca6f07130a;p=xournal.git diff --git a/src/xo-paint.h b/src/xo-paint.h index 4d3a43c..4799a7e 100644 --- a/src/xo-paint.h +++ b/src/xo-paint.h @@ -7,6 +7,8 @@ void finalize_stroke(void); void do_eraser(GdkEvent *event, double radius, gboolean whole_strokes); +void do_hand(GdkEvent *event); + void start_selectrect(GdkEvent *event); void finalize_selectrect(void); gboolean start_movesel(GdkEvent *event); @@ -20,3 +22,16 @@ void clipboard_paste(void); void recolor_selection(int color); void rethicken_selection(int val); + +/* text functions */ + +#define DEFAULT_FONT "Sans" +#define DEFAULT_FONT_SIZE 12 + +void start_text(GdkEvent *event, struct Item *item); +void end_text(void); +void update_text_item_displayfont(struct Item *item); +void rescale_text_items(void); +struct Item *click_is_in_text(struct Layer *layer, double x, double y); +void refont_text_item(struct Item *item, gchar *font_name, double font_size); +void process_font_sel(gchar *str);