X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-paint.h;h=cd7b2ea37f7708c21103c531a516821695d2e7d2;hb=881e9a45693f4d724512fdc5297ba312d447851b;hp=d01cee294b1ef36432f0c9d5d6c770ddcffccff4;hpb=0c9075b0b48fb9d2c36327bc70eb95dcc0942e3c;p=xournal.git diff --git a/src/xo-paint.h b/src/xo-paint.h index d01cee2..cd7b2ea 100644 --- a/src/xo-paint.h +++ b/src/xo-paint.h @@ -1,11 +1,13 @@ void set_cursor_busy(gboolean busy); void update_cursor(void); +void update_cursor_for_resize(double *pt); void create_new_stroke(GdkEvent *event); void continue_stroke(GdkEvent *event); void finalize_stroke(void); void do_eraser(GdkEvent *event, double radius, gboolean whole_strokes); +void finalize_erasure(void); void do_hand(GdkEvent *event); @@ -15,10 +17,26 @@ gboolean start_movesel(GdkEvent *event); void start_vertspace(GdkEvent *event); void continue_movesel(GdkEvent *event); void finalize_movesel(void); +gboolean start_resizesel(GdkEvent *event); +void continue_resizesel(GdkEvent *event); +void finalize_resizesel(void); void selection_delete(void); void selection_to_clip(void); void clipboard_paste(void); -void recolor_selection(int color); +void recolor_selection(int color_no, guint color_rgba); 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);