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-11-05 21:40:11 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-05 21:41:19 +0300
commit2a18501562411ae06a9bba8c012a77c264feb846 (patch)
tree609ffe3ce034196a720cca04c0e6a96c75db00fe /source/blender/windowmanager/WM_api.h
parent4b11cf171aba8118e292d411a3e0744f9c1631da (diff)
Add mapping to properties for widgets.
Still pretty much exploring the best way to move here but currently this works by wrapping objects in RNA pointers, pretty much like buttons do. Also modified the arrow widget for lamps to use the new code. The new "unmbrella" widget works now as expected for lamps - of course fine tuning is also needed.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index eca48757cdb..479429291fb 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -472,12 +472,13 @@ struct wmWidgetGroup *WM_widgetgroup_new(bool (*poll)(struct wmWidgetGroup *, co
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),
- int (*intersect)(struct bContext *C, const struct wmEvent *event, struct wmWidget *customdata),
+ void (*render_3d_intersection)(const struct bContext *, struct wmWidget *, float, 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),
- void *customdata, bool free_data, char *opname, char *prop, struct PointerRNA *ptr);
+ void *customdata, bool free_data, char *opname, char *prop);
+void WM_widget_bind_to_prop(struct wmWidget *, struct PointerRNA *ptr, const char *propname);
void WM_widgets_draw(const struct bContext *C, struct ARegion *ar);
void WM_event_add_widget_handler(struct ARegion *ar);