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:
authorAntonio Vazquez <blendergit@gmail.com>2020-08-13 17:57:42 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-08-13 17:57:42 +0300
commit735c717a63c8870d2ef4a910d82a2648cbaaa5e1 (patch)
tree4cff1cfe01053b8cc188cc69e1c2c60946fe37cc /source/blender/editors/include
parentcba7391d4a42a44efeddae3ff717e542a3c73738 (diff)
parent53683dec7d9ac9f324ff91904c9f80b8018b9b9c (diff)
Merge branch 'master' into greasepencil-edit-curve
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/UI_view2d.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h
index 6e0f4434b7b..1bd9b3063bd 100644
--- a/source/blender/editors/include/UI_view2d.h
+++ b/source/blender/editors/include/UI_view2d.h
@@ -120,6 +120,12 @@ void UI_view2d_curRect_validate(struct View2D *v2d);
void UI_view2d_curRect_reset(struct View2D *v2d);
void UI_view2d_sync(struct bScreen *screen, struct ScrArea *area, struct View2D *v2dcur, int flag);
+/* Perform all required updates after `v2d->cur` as been modified.
+ * This includes like validation view validation (UI_view2d_curRect_validate).
+ *
+ * Current lintent is to use it from user code, such as view navigation and zoom operations. */
+void UI_view2d_curRect_changed(const struct bContext *C, struct View2D *v2d);
+
void UI_view2d_totRect_set(struct View2D *v2d, int width, int height);
void UI_view2d_totRect_set_resize(struct View2D *v2d, int width, int height, bool resize);