diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-15 21:09:55 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-15 21:09:55 +0300 |
commit | 628f02d57482e987069c6b9969da309db84dbadd (patch) | |
tree | af21b3eea1710a65268fc46891512c09091a1652 /source/blender/editors/include/UI_view2d.h | |
parent | a16df53619a2ab3b41c0cbcf6f9e01a9bf370c9c (diff) |
2.5
Added notifiers for timeline syncing. Works for Timeline window
only now.
Note that I've removed the malloc-free in a Notifier... notifier
system is still under probabtion :)
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 0eb93580220..8d8b137732a 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -95,6 +95,12 @@ enum { /* half the size (in pixels) of scroller 'handles' */ #define V2D_SCROLLER_HANDLE_SIZE 5 +/* ------ Define for UI_view2d_sync ----- */ + +/* means copy it from the other v2d */ +#define V2D_LOCK_COPY 1 + + /* ------------------------------------------ */ /* Macros: */ @@ -153,6 +159,7 @@ void UI_view2d_to_region_no_clip(struct View2D *v2d, float x, float y, short *re struct View2D *UI_view2d_fromcontext(const struct bContext *C); struct View2D *UI_view2d_fromcontext_rwin(const struct bContext *C); void UI_view2d_getscale(struct View2D *v2d, float *x, float *y); +void UI_view2d_sync(struct View2D *v2d, struct View2D *v2dfrom, int flag); /* operators */ void ui_view2d_operatortypes(void); |