diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-11-06 14:11:38 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-11-07 14:52:46 +0300 |
commit | 4e4c1a0ea05d31680c5c4ea2dfdc863d3cb06157 (patch) | |
tree | 0b1a20c692f9b76b8e3937924328c65f20c910a1 /source/blender/windowmanager/WM_api.h | |
parent | 2a18501562411ae06a9bba8c012a77c264feb846 (diff) |
Support undo. Scale stays same for non-3D widgets
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 479429291fb..6a8f2d377dd 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -471,8 +471,8 @@ struct wmWidgetGroup *WM_widgetgroup_new(bool (*poll)(struct wmWidgetGroup *, co void (*free)(struct wmWidgetGroup *), void *customdata); -struct wmWidget *WM_widget_new(void (*draw)(struct wmWidget *, const struct bContext *, float scale), - void (*render_3d_intersection)(const struct bContext *, struct wmWidget *, float, int), +struct wmWidget *WM_widget_new(void (*draw)(struct wmWidget *, const struct bContext *), + void (*render_3d_intersection)(const struct bContext *, struct wmWidget *, int), int (*intersect)(struct bContext *C, const struct wmEvent *event, struct wmWidget *customdata), int (*initialize_op)(struct bContext *, const struct wmEvent *, struct wmWidget *, struct PointerRNA *), int (*handler)(struct bContext *, const struct wmEvent *, struct wmWidget *, struct wmOperator *op), @@ -495,6 +495,8 @@ ListBase *WM_widgetgroup_widgets(struct wmWidgetGroup *wgroup); bool WM_widgetgroup_register(struct wmWidgetMap *wmap, struct wmWidgetGroup *wgroup); void WM_widgetgroup_unregister(struct wmWidgetMap *wmap, struct wmWidgetGroup *wgroup); +void WM_widgetgroups_invalidate(void); + struct wmWidgetMap *WM_widgetmap_find(const char *idname, int spaceid, int regionid, bool is_3d); void WM_widgetmaps_free(void); @@ -503,6 +505,7 @@ void WM_widgetmaps_free(void); enum { UI_ARROW_STYLE_NORMAL = 0, UI_ARROW_STYLE_NO_AXIS = 1, + UI_ARROW_STYLE_INVERTED = 2, }; enum { |