X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-misc.h;h=3a6e029dd98f4fcca83d05a92264f06502a5e342;hb=34dbe92edd95fbf7082c3e54f438c76355254fe5;hp=e8f1d118f417cd6413ec4b5b705e74d1911cfc61;hpb=2e5ff0bff41fa53d4941b6f0fe49c8914bf29cbc;p=xournal.git diff --git a/src/xo-misc.h b/src/xo-misc.h index e8f1d11..3a6e029 100644 --- a/src/xo-misc.h +++ b/src/xo-misc.h @@ -3,6 +3,7 @@ struct Page *new_page(struct Page *template); struct Page *new_page_with_bg(struct Background *bg, double width, double height); void realloc_cur_path(int n); +void realloc_cur_widths(int n); void clear_redo_stack(void); void clear_undo_stack(void); void prepare_new_undo(void); @@ -19,6 +20,7 @@ void refstring_unref(struct Refstring *rs); // helper functions void get_pointer_coords(GdkEvent *event, double *ret); +double get_pressure_multiplier(GdkEvent *event); void fix_xinput_coords(GdkEvent *event); void update_item_bbox(struct Item *item); void make_page_clipbox(struct Page *pg); @@ -32,6 +34,7 @@ gboolean have_intersect(struct BBox *a, struct BBox *b); void lower_canvas_item_to(GnomeCanvasGroup *g, GnomeCanvasItem *item, GnomeCanvasItem *after); void rgb_to_gdkcolor(guint rgba, GdkColor *color); +guint32 gdkcolor_to_rgba(GdkColor gdkcolor, guint16 alpha); // interface misc functions @@ -58,15 +61,14 @@ void update_font_button(void); void update_mapping_linkings(int toolno); void do_switch_page(int pg, gboolean rescroll, gboolean refresh_all); -void set_cur_color(int color); +void set_cur_color(int color_no, guint color_rgba); void recolor_temp_text(int color_no, guint color_rgba); -void process_color_activate(GtkMenuItem *menuitem, int color); +void process_color_activate(GtkMenuItem *menuitem, int color_no, guint color_rgba); void process_thickness_activate(GtkMenuItem *menuitem, int tool, int val); void process_papercolor_activate(GtkMenuItem *menuitem, int color); void process_paperstyle_activate(GtkMenuItem *menuitem, int style); gboolean ok_to_close(void); -gboolean page_ops_forbidden(void); void reset_focus(void); @@ -75,6 +77,9 @@ void reset_focus(void); void reset_selection(void); void move_journal_items_by(GList *itemlist, double dx, double dy, struct Layer *l1, struct Layer *l2, GList *depths); +void resize_journal_items_by(GList *itemlist, double scaling_x, double scaling_y, + double offset_x, double offset_y); + // switch between mappings @@ -88,6 +93,17 @@ void add_scroll_bindings(void); gboolean is_event_within_textview(GdkEventButton *event); +void hide_unimplemented(void); + +void do_fullscreen(gboolean active); + +// fix GTK+ 2.16/2.17 issues with XInput events +gboolean filter_extended_events(GtkWidget *widget, GdkEvent *event, gpointer user_data); +// gboolean fix_extended_events(GtkWidget *widget, GdkEvent *event, gpointer user_data); +gboolean combobox_popup_disable_xinput(GtkWidget *widget, GdkEvent *event, gpointer user_data); + + + // defines for paper rulings #define RULING_MARGIN_COLOR 0xff0080ff