diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-10-14 20:37:28 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-10-14 20:37:28 +0400 |
commit | 9c5e1a0ea54260b5dbd8f3ebbd2eddb6052cccab (patch) | |
tree | d9ac7225f629484a3f77005ec71a6727f2d19038 /source/blender/windowmanager/WM_api.h | |
parent | ebfad36a22ebc0b87be01431bc696e7d89eb3c79 (diff) |
Widgets:
* Move lamp operators to a proper place
* Store a list of widgets to avoid polling too many times
* Fix wrong indices when widgetgroup was not used.
* Lamp widget now uses an arrow widget. This will be refined to make a
nice prototype for operator/widget interaction.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 0639a17bd44..2a3ccacc30c 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -39,6 +39,7 @@ /* dna-savable wmStructs here */ #include "DNA_windowmanager_types.h" +#include "DNA_listBase.h" #include "WM_keymap.h" #include "BLI_compiler_attrs.h" @@ -481,6 +482,7 @@ bool WM_widget_register(struct wmWidgetGroup *wgroup, struct wmWidget *widget); void WM_widget_unregister(struct wmWidgetGroup *wgroup, struct wmWidget *widget); void *WM_widgetgroup_customdata(struct wmWidgetGroup *wgroup); +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); |