X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.h;h=4799a7e5fdeefd738896fe8156e4ce2cebd15775;hb=2e5ff0bff41fa53d4941b6f0fe49c8914bf29cbc;hp=d01cee294b1ef36432f0c9d5d6c770ddcffccff4;hpb=ad6289fd45f6284c69a45825b4ed654f50aff921;p=xournal.git diff --git a/src/xo-paint.h b/src/xo-paint.h index d01cee2..4799a7e 100644 --- a/src/xo-paint.h +++ b/src/xo-paint.h @@ -22,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);