diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-16 15:28:00 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-16 15:28:00 +0300 |
commit | 6fe19cfc85a75f0ec6bb46a70fc9c849108b41ca (patch) | |
tree | 58cb50e504afb8e2cdbe22491544079eeadf297e /source/blender/windowmanager/WM_types.h | |
parent | f518fa8ea76a39078ca43eb06fbfaf5aa9ac31dc (diff) |
2.5
Work on getting notifiers in shape.
- Most important: local (to own region or area) redraw notifiers
have been depricated. This is not a good or correct notifier anyway.
Notifiers should be signals to other areas.
- Instead use these 2 functions:
ED_area_tag_redraw(area);
ED_region_tag_redraw(region);
It seems to me good convention to keep the area/region redraw tag
itself protected everywhere, for future improvements.
- Also added a basic WM function that checks overlapping regions,
and flushes redraws to underlying regions. This makes menus and
buttons allow to only send local region redraws.
(Brought back two "swapbuffer indicators" to test this.
- Todo: area 'action zone' redraws, and fixing other notifiers...
sending data pointers in a notifier seems to be bad idea.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 3afb3369466..7f7f7aac32f 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -120,8 +120,6 @@ typedef struct wmNotifier { enum { WM_NOTE_WINDOW_REDRAW, WM_NOTE_SCREEN_CHANGED, - WM_NOTE_AREA_REDRAW, - WM_NOTE_REGION_REDRAW, WM_NOTE_GESTURE_REDRAW, WM_NOTE_TIMELINE_SYNC, |