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-10 17:48:02 +0300
committerAntony Riakiotakis <kalast@gmail.com>2014-11-10 17:48:02 +0300
commitb089332a4d3ba915eac27f6fea13b26740404bd1 (patch)
tree21956e7f4ae9110d6e404e3664635a673c5bef9c /source/blender/windowmanager/wm.h
parent6968547b803d3857c77108a5d2dce1a6ce75b59a (diff)
WidgetMaps:
Now widgetmaps get created and destroyed with the area. Not sure if it's the best design but it avoids too many creations and recreations. arrow offset now calculated at property binding time - no RNA access during interaction means no chance of crash during undo.
Diffstat (limited to 'source/blender/windowmanager/wm.h')
-rw-r--r--source/blender/windowmanager/wm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm.h b/source/blender/windowmanager/wm.h
index 64a6df85beb..e5c5019814f 100644
--- a/source/blender/windowmanager/wm.h
+++ b/source/blender/windowmanager/wm.h
@@ -69,6 +69,9 @@ typedef struct wmWidget {
/* handler used by the widget. Usually handles interaction tied to a widget type */
int (*handler)(struct bContext *C, const struct wmEvent *event, struct wmWidget *widget, struct wmOperator *op);
+ /* widget-specific handler to update widget attributes when a property is bound */
+ void (*bind_to_prop)(struct wmWidget *widget);
+
int flag; /* flags set by drawing and interaction, such as highlighting */
/* activate a widget state when the user clicks on it */