Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-10-01 16:59:09 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-10-01 16:59:09 +0400
commit8e1208c974b4adb9f4cf0bcd61016904f8d145b4 (patch)
treeaf7f5681486c539bfd36c904d361d98b485e4ccc /source/blender/windowmanager/WM_api.h
parent4ce4f57acffc230087c1b9be43829ff3e1434ef3 (diff)
Widget API:
Code that handles 3D object intersection via GPU selection. We might want to use raycasting here, but leaving that for when we have it. Manipulator code now uses this API to do intersection testing
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 8d312f6fd4e..f75ac2f3778 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -463,9 +463,9 @@ bool WM_event_is_tablet(const struct wmEvent *event);
/* widget API */
struct wmWidget *WM_widget_new(bool (*poll)(const struct bContext *, struct wmWidget *),
void (*draw)(const struct bContext *, struct wmWidget *),
- void (*render_3d_intersection)(const struct bContext *C, struct wmWidget *customdata, int selectionbase),
+ void (*render_3d_intersection)(const struct bContext *, struct wmWidget *, int),
int (*intersect)(struct bContext *C, const struct wmEvent *event, struct wmWidget *customdata),
- int (*handler)(struct bContext *, const struct wmEvent *, struct wmWidget *),
+ int (*handler)(struct bContext *, const struct wmEvent *, struct wmWidget *, int active),
void *customdata, bool free_data, bool requires_ogl);
void WM_widgets_delete(ListBase *widgetlist, struct wmWidget *widget);
@@ -475,6 +475,7 @@ void WM_event_add_widget_handler(struct ARegion *ar);
bool WM_widget_register(ListBase *widgetlist, struct wmWidget *widget);
void WM_widget_unregister(ListBase *widgetlist, struct wmWidget *widget);
struct ListBase *WM_widgetmap_find(const char *idname, int spaceid, int regionid);
+int WM_widget_find_active_3D (ListBase *widgetlist, struct bContext *C, const struct wmEvent *event);
void WM_widgetmaps_free(void);