View2D: Centralize handling of changes to v2d->cur
Currently there are no functional changes, preparing code to add more functionality which is to be run from navigation/zoom operators.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user