diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-10-13 18:43:35 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-10-13 18:43:35 +0400 |
commit | 14686a3677aa4f977790ec7cd8b6c3d4c96e0ead (patch) | |
tree | 96c26957a8fc3f2a8011ab7f2754addb006a4291 /source/blender/windowmanager/WM_api.h | |
parent | 543dfc2a6aeb860f1eea313bcb70a338c5a8b48a (diff) |
Implement non-3D drawing per widget.
Basically, 3D widgets stay the same size whatever the zoom is in 3D
view. Ported over from manipulator code.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 7a8cb00a7b1..0639a17bd44 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -468,8 +468,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 *), - void (*render_3d_intersection)(const struct bContext *, struct wmWidget *, int), +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), int (*intersect)(struct bContext *C, const struct wmEvent *event, struct wmWidget *customdata), int (*handler)(struct bContext *, const struct wmEvent *, struct wmWidget *), void *customdata, bool free_data); |