|
Blender V4.5
|
#include <cmath>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "DNA_windowmanager_types.h"#include "BLI_math_base.h"#include "BLI_math_vector.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "UI_view2d.hh"#include "view2d_intern.hh"Go to the source code of this file.
Classes | |
| struct | v2dViewPanData |
| struct | v2dViewZoomData |
| struct | SmoothView2DStore |
| struct | v2dScrollerMove |
Functions | |
Internal Utilities | |
| static bool | view2d_poll (bContext *C) |
| static float | view2d_scroll_delta_y_snap_page_size (const View2D &v2d, const float delta_y) |
View Pan Shared Utilities | |
| static bool | view_pan_poll (bContext *C) |
| static void | view_pan_init (bContext *C, wmOperator *op) |
| static void | view_pan_apply_ex (bContext *C, v2dViewPanData *vpd, float dx, float dy) |
| static void | view_pan_apply (bContext *C, wmOperator *op) |
| static void | view_pan_exit (wmOperator *op) |
View Pan Operator (modal drag-pan) | |
| static wmOperatorStatus | view_pan_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_pan_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | view_pan_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | view_pan_cancel (bContext *, wmOperator *op) |
| static void | VIEW2D_OT_pan (wmOperatorType *ot) |
View Edge Pan Operator (modal) | |
Scroll the region if the mouse is dragged to an edge. "Invisible" operator that always passes through. | |
| static wmOperatorStatus | view_edge_pan_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static wmOperatorStatus | view_edge_pan_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | view_edge_pan_cancel (bContext *, wmOperator *op) |
| static void | VIEW2D_OT_edge_pan (wmOperatorType *ot) |
View Pan Operator (single step) | |
| static wmOperatorStatus | view_scrollright_exec (bContext *C, wmOperator *op) |
| static void | VIEW2D_OT_scroll_right (wmOperatorType *ot) |
| static wmOperatorStatus | view_scrollleft_exec (bContext *C, wmOperator *op) |
| static void | VIEW2D_OT_scroll_left (wmOperatorType *ot) |
| static wmOperatorStatus | view_scrolldown_exec (bContext *C, wmOperator *op) |
| static void | VIEW2D_OT_scroll_down (wmOperatorType *ot) |
| static wmOperatorStatus | view_scrollup_exec (bContext *C, wmOperator *op) |
| static void | VIEW2D_OT_scroll_up (wmOperatorType *ot) |
View Zoom Shared Utilities | |
| static void | view_zoom_axis_lock_defaults (bContext *C, bool r_do_zoom_xy[2]) |
| static bool | view_zoom_poll (bContext *C) |
| static void | view_zoomdrag_init (bContext *C, wmOperator *op) |
| static void | view_zoomstep_apply_ex (bContext *C, v2dViewZoomData *vzd, const float facx, const float facy) |
| static void | view_zoomstep_apply (bContext *C, wmOperator *op) |
View Zoom Operator (single step) | |
| static void | view_zoomstep_exit (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_zoomin_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_zoomin_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | VIEW2D_OT_zoom_in (wmOperatorType *ot) |
| static wmOperatorStatus | view_zoomout_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_zoomout_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | VIEW2D_OT_zoom_out (wmOperatorType *ot) |
View Zoom Operator (modal drag-zoom) | |
| static void | view_zoomdrag_apply (bContext *C, wmOperator *op) |
| static void | view_zoomdrag_exit (bContext *C, wmOperator *op) |
| static void | view_zoomdrag_cancel (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_zoomdrag_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | view_zoomdrag_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | view_zoomdrag_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | VIEW2D_OT_zoom (wmOperatorType *ot) |
Border Zoom Operator | |
The user defines a rect using standard box select tools, and we use this rect to define the new zoom-level of the view in the following ways:
Currently, these key mappings are hardcoded, but it shouldn't be too important to have custom key-mappings for this. | |
| static wmOperatorStatus | view_borderzoom_exec (bContext *C, wmOperator *op) |
| static void | VIEW2D_OT_zoom_border (wmOperatorType *ot) |
Smooth View Operator | |
| static float | smooth_view_rect_to_fac (const rctf *rect_a, const rctf *rect_b) |
| void | UI_view2d_smooth_view (const bContext *C, ARegion *region, const rctf *cur, const int smooth_viewtx) |
| static wmOperatorStatus | view2d_smoothview_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | VIEW2D_OT_smoothview (wmOperatorType *ot) |
View Reset Operator | |
| static wmOperatorStatus | reset_exec (bContext *C, wmOperator *) |
| static void | VIEW2D_OT_reset (wmOperatorType *ot) |
Registration | |
| void | ED_operatortypes_view2d () |
| void | ED_keymap_view2d (wmKeyConfig *keyconf) |
Scroll Bar Move Operator | |
| enum | { SCROLLHANDLE_MIN = -1 , SCROLLHANDLE_BAR , SCROLLHANDLE_MAX , SCROLLHANDLE_MIN_OUTSIDE , SCROLLHANDLE_MAX_OUTSIDE } |
| static short | scrollbar_zone_get (int mouse, int sh_min, int sh_max) |
| static bool | scroller_activate_poll (bContext *C) |
| static void | scroller_activate_init (bContext *C, wmOperator *op, const wmEvent *event, const char in_scroller) |
| static void | scroller_activate_exit (bContext *C, wmOperator *op) |
| static void | scroller_activate_cancel (bContext *C, wmOperator *op) |
| static void | scroller_activate_apply (bContext *C, wmOperator *op) |
| static wmOperatorStatus | scroller_activate_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | scroller_activate_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | VIEW2D_OT_scroller_activate (wmOperatorType *ot) |
| anonymous enum |
| Enumerator | |
|---|---|
| SCROLLHANDLE_MIN | |
| SCROLLHANDLE_BAR | |
| SCROLLHANDLE_MAX | |
| SCROLLHANDLE_MIN_OUTSIDE | |
| SCROLLHANDLE_MAX_OUTSIDE | |
Definition at line 1810 of file view2d_ops.cc.
| void ED_keymap_view2d | ( | wmKeyConfig * | keyconf | ) |
Definition at line 2346 of file view2d_ops.cc.
References ED_keymap_view2d(), RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_keymap_view2d(), ED_spacetypes_keymap(), and UI_view2d_rect_in_scrollers().
| void ED_operatortypes_view2d | ( | ) |
Definition at line 2319 of file view2d_ops.cc.
References ED_operatortypes_view2d(), VIEW2D_OT_edge_pan(), VIEW2D_OT_pan(), VIEW2D_OT_reset(), VIEW2D_OT_scroll_down(), VIEW2D_OT_scroll_left(), VIEW2D_OT_scroll_right(), VIEW2D_OT_scroll_up(), VIEW2D_OT_scroller_activate(), VIEW2D_OT_smoothview(), VIEW2D_OT_zoom(), VIEW2D_OT_zoom_border(), VIEW2D_OT_zoom_in(), VIEW2D_OT_zoom_out(), and WM_operatortype_append().
Referenced by ED_operatortypes_view2d(), ED_spacetypes_init(), and UI_view2d_rect_in_scrollers().
|
static |
Definition at line 2244 of file view2d_ops.cc.
References View2D::align, BLI_rcti_size_x(), BLI_rcti_size_y(), C, ARegion::category_scroll, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), ED_region_snap_size_apply(), ED_region_snap_size_test(), ED_region_tag_redraw(), View2D::mask, NA_EDITED, NC_SCREEN, OPERATOR_FINISHED, uiStyle::panelzoom, reset_exec(), UI_style_get(), UI_view2d_curRect_changed(), UI_view2d_sync(), UI_view2d_zoom_cache_reset(), ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_ALIGN_NO_POS_X, V2D_ALIGN_NO_POS_Y, V2D_LOCK_COPY, WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by reset_exec(), and VIEW2D_OT_reset().
|
static |
Get the part of the scrollbar that the mouse is in.
| mouse | Relevant mouse coordinate in region space. |
| sh_min,sh_max | Extents of the "scroller handle" part of the scrollbar in region space. |
Definition at line 1824 of file view2d_ops.cc.
References scrollbar_zone_get(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MAX_OUTSIDE, SCROLLHANDLE_MIN, SCROLLHANDLE_MIN_OUTSIDE, and V2D_SCROLL_HANDLE_SIZE_HOTSPOT.
Referenced by scrollbar_zone_get(), and scroller_activate_init().
|
static |
Definition at line 1982 of file view2d_ops.cc.
References C, CTX_wm_area(), CTX_wm_screen(), View2D::cur, wmOperator::customdata, v2dScrollerMove::delta, ED_region_tag_redraw_no_rebuild(), v2dScrollerMove::fac, v2dScrollerMove::fac_round, View2D::keepofs, View2D::keepzoom, v2dScrollerMove::region, v2dScrollerMove::scroller, scroller_activate_apply(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MAX_OUTSIDE, SCROLLHANDLE_MIN, SCROLLHANDLE_MIN_OUTSIDE, UI_view2d_curRect_changed(), UI_view2d_sync(), v2dScrollerMove::v2d, V2D_LOCK_COPY, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, rctf::xmax, rctf::xmin, rctf::ymax, rctf::ymin, and v2dScrollerMove::zone.
Referenced by scroller_activate_apply(), scroller_activate_invoke(), and scroller_activate_modal().
|
static |
Definition at line 1976 of file view2d_ops.cc.
References C, scroller_activate_cancel(), and scroller_activate_exit().
Referenced by scroller_activate_cancel(), and VIEW2D_OT_scroller_activate().
|
static |
Definition at line 1961 of file view2d_ops.cc.
References C, CTX_wm_region(), wmOperator::customdata, ED_region_tag_redraw_no_rebuild(), View2D::flag, MEM_freeN(), View2D::scroll_ui, scroller_activate_exit(), v2dScrollerMove::v2d, V2D_IS_NAVIGATING, V2D_SCROLL_H_ACTIVE, and V2D_SCROLL_V_ACTIVE.
Referenced by scroller_activate_cancel(), scroller_activate_exit(), scroller_activate_invoke(), and scroller_activate_modal().
|
static |
Definition at line 1874 of file view2d_ops.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rctf_union(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_rcti_union(), C, CTX_wm_region(), View2D::cur, wmOperator::customdata, ED_region_tag_redraw_no_rebuild(), ELEM, v2dScrollerMove::fac, v2dScrollerMove::fac_round, View2D::flag, View2D::hor, View2DScrollers::hor_max, View2DScrollers::hor_min, View2D::keepzoom, v2dScrollerMove::lastx, v2dScrollerMove::lasty, MEM_callocN(), wmEvent::mval, v2dScrollerMove::region, v2dScrollerMove::scrollbar_orig, scrollbar_zone_get(), v2dScrollerMove::scrollbarwidth, v2dScrollerMove::scroller, scroller_activate_init(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MIN, View2D::tot, ARegion::v2d, v2dScrollerMove::v2d, V2D_IS_NAVIGATING, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, View2D::vert, View2DScrollers::vert_max, View2DScrollers::vert_min, view2d_scrollers_calc(), ARegion::winrct, rcti::xmin, rcti::ymin, and v2dScrollerMove::zone.
Referenced by scroller_activate_init(), and scroller_activate_invoke().
|
static |
Definition at line 2133 of file view2d_ops.cc.
References C, CTX_wm_region(), wmOperator::customdata, v2dScrollerMove::delta, ELEM, View2D::keepofs, MIDDLEMOUSE, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, View2D::scroll, View2D::scroll_ui, v2dScrollerMove::scrollbar_orig, v2dScrollerMove::scroller, scroller_activate_apply(), scroller_activate_exit(), scroller_activate_init(), scroller_activate_invoke(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MIN, wmEvent::type, UI_view2d_mouse_in_scrollers(), ARegion::v2d, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_SCROLL_H_ACTIVE, V2D_SCROLL_HORIZONTAL_FULLR, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_V_ACTIVE, V2D_SCROLL_VERTICAL_FULLR, V2D_SCROLL_VERTICAL_HANDLES, WM_event_add_modal_handler(), wmEvent::xy, and v2dScrollerMove::zone.
Referenced by scroller_activate_invoke(), and VIEW2D_OT_scroller_activate().
|
static |
Handle user input for scrollers - calculations of mouse-movement need to be done here, not in the apply callback!
Definition at line 2044 of file view2d_ops.cc.
References C, wmOperator::customdata, v2dScrollerMove::delta, ELEM, v2dScrollerMove::fac, View2D::flag, IS_EQF, KM_RELEASE, v2dScrollerMove::lastx, v2dScrollerMove::lasty, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, v2dScrollerMove::scrollbarwidth, v2dScrollerMove::scroller, scroller_activate_apply(), scroller_activate_exit(), scroller_activate_modal(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX, SCROLLHANDLE_MAX_OUTSIDE, SCROLLHANDLE_MIN, SCROLLHANDLE_MIN_OUTSIDE, wmEvent::type, v2dScrollerMove::v2d, V2D_SNAP_TO_PAGESIZE_Y, wmEvent::val, view2d_scroll_delta_y_snap_page_size(), wmEvent::xy, and v2dScrollerMove::zone.
Referenced by scroller_activate_modal(), and VIEW2D_OT_scroller_activate().
|
static |
Definition at line 1858 of file view2d_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, scroller_activate_poll(), UI_view2d_mouse_in_scrollers(), ARegion::v2d, view2d_poll(), and wmEvent::xy.
Referenced by scroller_activate_poll(), and VIEW2D_OT_scroller_activate().
function to get a factor out of a rectangle
NOTE: this doesn't always work as well as it might because the target size may not be reached because of clamping the desired rect, we could attempt to clamp the rect before working out the zoom factor but its not really worthwhile for the few cases this happens.
Definition at line 1598 of file view2d_ops.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), fabsf, i, max_ff(), min_ff(), and smooth_view_rect_to_fac().
Referenced by smooth_view_rect_to_fac(), and UI_view2d_smooth_view().
| void UI_view2d_smooth_view | ( | const bContext * | C, |
| ARegion * | region, | ||
| const rctf * | cur, | ||
| int | smooth_viewtx ) |
Will start timer if appropriate. the arguments are the desired situation.
Definition at line 1625 of file view2d_ops.cc.
References BLI_rctf_compare(), C, CTX_wm_area(), CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), View2D::cur, ED_region_tag_redraw_no_rebuild(), SmoothView2DStore::new_cur, SmoothView2DStore::orig_cur, View2D::smooth_timer, smooth_view_rect_to_fac(), View2D::sms, SmoothView2DStore::time_allowed, TIMER1, UI_view2d_curRect_changed(), UI_view2d_smooth_view(), UI_view2d_sync(), ARegion::v2d, V2D_LOCK_COPY, WM_event_timer_add(), and WM_event_timer_remove().
Referenced by ANIM_center_frame(), graphkeys_channel_view_pick_invoke(), graphkeys_view_selected_channels_exec(), graphkeys_viewall(), blender::ed::vse::sequencer_view_all_exec(), blender::ed::vse::sequencer_view_selected_exec(), blender::ed::space_node::space_node_view_flag(), UI_view2d_rect_in_scrollers(), UI_view2d_smooth_view(), view_borderzoom_exec(), and view_curve_in_graph_editor_exec().
|
static |
Definition at line 426 of file view2d_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_INTERNAL, wmOperatorType::poll, UI_view2d_edge_pan_operator_properties(), view2d_edge_pan_poll(), VIEW2D_OT_edge_pan(), view_edge_pan_cancel(), view_edge_pan_invoke(), and view_edge_pan_modal().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_edge_pan().
|
static |
Definition at line 350 of file view2d_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, VIEW2D_OT_pan(), view_pan_cancel(), view_pan_exec(), view_pan_invoke(), view_pan_modal(), and view_pan_poll().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_pan().
|
static |
Definition at line 2301 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, reset_exec(), VIEW2D_OT_reset(), and view2d_poll().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_reset().
|
static |
Definition at line 568 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), wmOperatorType::srna, VIEW2D_OT_scroll_down(), view_pan_poll(), and view_scrolldown_exec().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_scroll_down().
|
static |
Definition at line 514 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, VIEW2D_OT_scroll_left(), view_pan_poll(), and view_scrollleft_exec().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_scroll_left().
|
static |
Definition at line 474 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, VIEW2D_OT_scroll_right(), view_pan_poll(), and view_scrollright_exec().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_scroll_right().
|
static |
Definition at line 623 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), wmOperatorType::srna, VIEW2D_OT_scroll_up(), view_pan_poll(), and view_scrollup_exec().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_scroll_up().
|
static |
Definition at line 2220 of file view2d_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, scroller_activate_cancel(), scroller_activate_invoke(), scroller_activate_modal(), scroller_activate_poll(), and VIEW2D_OT_scroller_activate().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_scroller_activate().
|
static |
Definition at line 1746 of file view2d_ops.cc.
References wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, wmOperatorType::poll, VIEW2D_OT_smoothview(), view2d_poll(), view2d_smoothview_invoke(), and WM_operator_properties_gesture_box().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_smoothview().
|
static |
Definition at line 1386 of file view2d_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, VIEW2D_OT_zoom(), view_zoom_poll(), view_zoomdrag_cancel(), view_zoomdrag_exec(), view_zoomdrag_invoke(), view_zoomdrag_modal(), and WM_operator_properties_use_cursor_init().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_zoom().
|
static |
Definition at line 1492 of file view2d_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, VIEW2D_OT_zoom_border(), view_borderzoom_exec(), view_zoom_poll(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_gesture_box_zoom().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_zoom_border().
|
static |
Definition at line 925 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, VIEW2D_OT_zoom_in(), view_zoom_poll(), view_zoomin_exec(), and view_zoomin_invoke().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_zoom_in().
|
static |
Definition at line 989 of file view2d_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, VIEW2D_OT_zoom_out(), view_zoom_poll(), view_zoomout_exec(), and view_zoomout_invoke().
Referenced by ED_operatortypes_view2d(), and VIEW2D_OT_zoom_out().
|
static |
Definition at line 40 of file view2d_ops.cc.
References C, CTX_wm_region(), View2D::flag, ARegion::v2d, V2D_IS_INIT, and view2d_poll().
Referenced by scroller_activate_poll(), VIEW2D_OT_reset(), VIEW2D_OT_smoothview(), and view2d_poll().
|
static |
Calculate a scrolling delta that is the closest to a multiple of the page size (as returned by view2d_page_size_y). So when scrolling for more than half a page size, a delta to the next page is returned. No scrolling change should be applied when this returns 0.
Definition at line 52 of file view2d_ops.cc.
References abs, view2d_page_size_y(), and view2d_scroll_delta_y_snap_page_size().
Referenced by scroller_activate_modal(), view2d_scroll_delta_y_snap_page_size(), and view_pan_modal().
|
static |
Definition at line 1693 of file view2d_ops.cc.
References BLI_rctf_interp(), C, CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_screen(), CTX_wm_window(), View2D::cur, wmEvent::customdata, ED_region_tag_redraw_no_rebuild(), SmoothView2DStore::new_cur, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, SmoothView2DStore::orig_cur, View2D::smooth_timer, View2D::sms, step, SmoothView2DStore::time_allowed, wmTimer::time_duration, UI_view2d_curRect_changed(), UI_view2d_sync(), UI_view2d_zoom_cache_reset(), ARegion::v2d, V2D_LOCK_COPY, view2d_smoothview_invoke(), WM_event_add_mousemove(), and WM_event_timer_remove().
Referenced by VIEW2D_OT_smoothview(), and view2d_smoothview_invoke().
|
static |
Definition at line 1429 of file view2d_ops.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), C, CTX_wm_region(), View2D::cur, View2D::keepzoom, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), size(), UI_view2d_region_to_view_rctf(), UI_view2d_smooth_view(), ARegion::v2d, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, view_borderzoom_exec(), WM_operator_properties_border_to_rctf(), WM_operator_smooth_viewtx_get(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by VIEW2D_OT_zoom_border(), and view_borderzoom_exec().
|
static |
Definition at line 418 of file view2d_ops.cc.
References wmOperator::customdata, View2D::flag, MEM_SAFE_FREE, v2dViewPanData::v2d, V2D_IS_NAVIGATING, and view_edge_pan_cancel().
Referenced by VIEW2D_OT_edge_pan(), and view_edge_pan_cancel().
|
static |
Definition at line 382 of file view2d_ops.cc.
References C, wmOperator::customdata, MEM_callocN(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, UI_view2d_edge_pan_operator_init(), view_edge_pan_invoke(), and WM_event_add_modal_handler().
Referenced by VIEW2D_OT_edge_pan(), and view_edge_pan_invoke().
|
static |
Definition at line 395 of file view2d_ops.cc.
References C, CTX_wm_window(), wmOperator::customdata, EVT_ESCKEY, View2D::flag, KM_RELEASE, MEM_SAFE_FREE, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmEvent::type, UI_view2d_edge_pan_apply_event(), View2DEdgePanData::v2d, V2D_IS_NAVIGATING, wmEvent::val, view_edge_pan_modal(), WM_window_find_under_cursor(), and wmEvent::xy.
Referenced by VIEW2D_OT_edge_pan(), and view_edge_pan_modal().
|
static |
Definition at line 199 of file view2d_ops.cc.
References C, wmOperator::customdata, wmOperator::ptr, RNA_int_get(), view_pan_apply(), and view_pan_apply_ex().
Referenced by view_pan_apply(), view_pan_exec(), view_pan_invoke(), view_pan_modal(), view_scrolldown_exec(), view_scrollleft_exec(), view_scrollright_exec(), and view_scrollup_exec().
|
static |
Definition at line 164 of file view2d_ops.cc.
References v2dViewPanData::area, C, ARegion::category_scroll, CTX_wm_window(), View2D::cur, v2dViewPanData::do_category_scroll, ED_region_tag_redraw_no_rebuild(), v2dViewPanData::facx, v2dViewPanData::facy, View2D::keepofs, v2dViewPanData::region, v2dViewPanData::screen, UI_view2d_curRect_changed(), UI_view2d_sync(), v2dViewPanData::v2d, V2D_LOCK_COPY, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, view_pan_apply_ex(), WM_event_add_mousemove(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by view_pan_apply(), and view_pan_apply_ex().
|
static |
Definition at line 345 of file view2d_ops.cc.
References view_pan_cancel(), and view_pan_exit().
Referenced by CLIP_OT_view_pan(), VIEW2D_OT_pan(), view_pan_cancel(), and view_pan_cancel().
|
static |
Definition at line 222 of file view2d_ops.cc.
References C, OPERATOR_FINISHED, view_pan_apply(), view_pan_exec(), view_pan_exit(), and view_pan_init().
Referenced by CLIP_OT_view_pan(), VIEW2D_OT_pan(), view_pan_exec(), view_pan_exec(), view_pan_invoke(), and view_pan_modal().
|
static |
Definition at line 207 of file view2d_ops.cc.
References wmOperator::customdata, View2D::flag, MEM_freeN(), v2dViewPanData::v2d, V2D_IS_NAVIGATING, and view_pan_exit().
Referenced by view_pan_cancel(), view_pan_cancel(), view_pan_exec(), view_pan_exit(), view_pan_exit(), view_pan_invoke(), view_pan_modal(), view_pan_modal(), view_scrolldown_exec(), view_scrollleft_exec(), view_scrollright_exec(), and view_scrollup_exec().
|
static |
Definition at line 137 of file view2d_ops.cc.
References v2dViewPanData::area, BLI_assert, BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), View2D::cur, wmOperator::customdata, v2dViewPanData::do_category_scroll, v2dViewPanData::facx, v2dViewPanData::facy, View2D::flag, MEM_callocN(), v2dViewPanData::region, v2dViewPanData::screen, ARegion::v2d, v2dViewPanData::v2d, V2D_IS_NAVIGATING, view_pan_init(), view_pan_poll(), and ARegion::winrct.
Referenced by view_pan_exec(), view_pan_init(), view_pan_init(), view_pan_invoke(), view_pan_invoke(), view_scrolldown_exec(), view_scrollleft_exec(), view_scrollright_exec(), and view_scrollup_exec().
|
static |
Definition at line 231 of file view2d_ops.cc.
References C, CTX_wm_window(), wmOperator::customdata, v2dViewPanData::do_category_scroll, ED_region_panel_category_gutter_isect_xy(), wmWindow::grabcursor, v2dViewPanData::invoke_event, View2D::keepofs, v2dViewPanData::lastx, v2dViewPanData::lasty, MOUSEPAN, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prev_xy, wmOperator::ptr, v2dViewPanData::region, RNA_int_set(), v2dViewPanData::startx, v2dViewPanData::starty, wmEvent::type, v2dViewPanData::v2d, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, view_pan_apply(), view_pan_exit(), view_pan_init(), view_pan_invoke(), WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), WM_CURSOR_NS_SCROLL, WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by CLIP_OT_view_pan(), VIEW2D_OT_pan(), view_pan_invoke(), and view_pan_invoke().
|
static |
Definition at line 280 of file view2d_ops.cc.
References C, CTX_wm_window(), wmOperator::customdata, ELEM, EVT_ESCKEY, View2D::flag, v2dViewPanData::invoke_event, KM_PRESS, KM_RELEASE, v2dViewPanData::lastx, v2dViewPanData::lasty, LEFTMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_int_set(), v2dViewPanData::startx, v2dViewPanData::starty, wmEvent::type, v2dViewPanData::v2d, V2D_SNAP_TO_PAGESIZE_Y, wmEvent::val, view2d_scroll_delta_y_snap_page_size(), view_pan_apply(), view_pan_exit(), view_pan_modal(), WM_cursor_modal_restore(), WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by CLIP_OT_view_pan(), VIEW2D_OT_pan(), view_pan_modal(), and view_pan_modal().
|
static |
Definition at line 116 of file view2d_ops.cc.
References C, CTX_wm_region(), View2D::keepofs, ARegion::v2d, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, and view_pan_poll().
Referenced by VIEW2D_OT_pan(), VIEW2D_OT_scroll_down(), VIEW2D_OT_scroll_left(), VIEW2D_OT_scroll_right(), VIEW2D_OT_scroll_up(), view_pan_init(), and view_pan_poll().
|
static |
Definition at line 531 of file view2d_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, v2dViewPanData::do_category_scroll, ED_region_panel_category_gutter_isect_xy(), wmWindow::eventstate, View2D::flag, View2D::keepofs, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, v2dViewPanData::region, RNA_int_set(), RNA_property_boolean_get(), RNA_property_is_set(), RNA_struct_find_property(), UI_SCALE_FAC, ARegion::v2d, v2dViewPanData::v2d, V2D_LOCKOFS_Y, V2D_SNAP_TO_PAGESIZE_Y, view2d_page_size_y(), view_pan_apply(), view_pan_exit(), view_pan_init(), view_scrolldown_exec(), and wmEvent::xy.
Referenced by VIEW2D_OT_scroll_down(), and view_scrolldown_exec().
|
static |
Definition at line 491 of file view2d_ops.cc.
References C, wmOperator::customdata, View2D::keepofs, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_int_set(), UI_SCALE_FAC, v2dViewPanData::v2d, V2D_LOCKOFS_X, view_pan_apply(), view_pan_exit(), view_pan_init(), and view_scrollleft_exec().
Referenced by VIEW2D_OT_scroll_left(), and view_scrollleft_exec().
|
static |
Definition at line 451 of file view2d_ops.cc.
References C, wmOperator::customdata, View2D::keepofs, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_int_set(), UI_SCALE_FAC, v2dViewPanData::v2d, V2D_LOCKOFS_X, view_pan_apply(), view_pan_exit(), view_pan_init(), and view_scrollright_exec().
Referenced by VIEW2D_OT_scroll_right(), and view_scrollright_exec().
|
static |
Definition at line 586 of file view2d_ops.cc.
References C, CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, v2dViewPanData::do_category_scroll, ED_region_panel_category_gutter_isect_xy(), wmWindow::eventstate, View2D::flag, View2D::keepofs, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, v2dViewPanData::region, RNA_int_set(), RNA_property_boolean_get(), RNA_property_is_set(), RNA_struct_find_property(), UI_SCALE_FAC, ARegion::v2d, v2dViewPanData::v2d, V2D_LOCKOFS_Y, V2D_SNAP_TO_PAGESIZE_Y, view2d_page_size_y(), view_pan_apply(), view_pan_exit(), view_pan_init(), view_scrollup_exec(), and wmEvent::xy.
Referenced by VIEW2D_OT_scroll_up(), and view_scrollup_exec().
|
static |
Clamp by convention rather than locking flags, for ndof and +/- keys
Definition at line 682 of file view2d_ops.cc.
References C, CTX_wm_area(), CTX_wm_region(), ARegion::regiontype, RGN_TYPE_WINDOW, SPACE_SEQ, ScrArea::spacetype, and view_zoom_axis_lock_defaults().
Referenced by view_zoom_axis_lock_defaults(), view_zoomin_exec(), and view_zoomout_exec().
|
static |
Definition at line 700 of file view2d_ops.cc.
References C, CTX_wm_region(), CTX_wm_region_view3d(), View2D::keepzoom, ARegion::v2d, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, and view_zoom_poll().
Referenced by VIEW2D_OT_zoom(), VIEW2D_OT_zoom_border(), VIEW2D_OT_zoom_in(), VIEW2D_OT_zoom_out(), view_zoom_poll(), and view_zoomdrag_init().
|
static |
MMB Drag - allows non-uniform scaling by dragging mouse
In order to make sure this works, each operator must define the following RNA-Operator Props:
Definition at line 1027 of file view2d_ops.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_time_now_seconds(), C, CTX_wm_area(), CTX_wm_screen(), View2D::cur, wmOperator::customdata, ED_area_tag_redraw(), ED_region_snap_size_apply(), ED_region_snap_size_test(), ED_region_tag_redraw_no_rebuild(), View2D::keepofs, View2D::keepzoom, v2dViewZoomData::mx_2d, v2dViewZoomData::my_2d, NA_EDITED, NC_SCREEN, wmOperator::ptr, v2dViewZoomData::region, RNA_boolean_get(), RNA_float_get(), v2dViewZoomData::timer, v2dViewZoomData::timer_lastdraw, U, UI_SCALE_FAC, UI_view2d_curRect_changed(), UI_view2d_sync(), USER_ZOOM_CONTINUE, v2dViewZoomData::v2d, V2D_LOCK_COPY, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, view_zoomdrag_apply(), WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, rctf::ymin, and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by view_zoomdrag_apply(), view_zoomdrag_exec(), view_zoomdrag_invoke(), and view_zoomdrag_modal().
|
static |
Definition at line 1124 of file view2d_ops.cc.
References C, view_zoomdrag_cancel(), and view_zoomdrag_exit().
Referenced by VIEW2D_OT_zoom(), and view_zoomdrag_cancel().
|
static |
Definition at line 1130 of file view2d_ops.cc.
References C, OPERATOR_FINISHED, view_zoomdrag_apply(), view_zoomdrag_exec(), view_zoomdrag_exit(), and view_zoomdrag_init().
Referenced by VIEW2D_OT_zoom(), and view_zoomdrag_exec().
|
static |
Definition at line 1107 of file view2d_ops.cc.
References C, CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, View2D::flag, MEM_freeN(), v2dViewZoomData::timer, UI_view2d_zoom_cache_reset(), v2dViewZoomData::v2d, V2D_IS_NAVIGATING, view_zoomdrag_exit(), and WM_event_timer_remove().
Referenced by view_zoomdrag_cancel(), view_zoomdrag_exec(), view_zoomdrag_exit(), view_zoomdrag_invoke(), and view_zoomdrag_modal().
|
static |
Definition at line 726 of file view2d_ops.cc.
References BLI_assert, C, CTX_wm_region(), wmOperator::customdata, View2D::flag, MEM_callocN(), v2dViewZoomData::region, ARegion::v2d, v2dViewZoomData::v2d, V2D_IS_NAVIGATING, view_zoom_poll(), view_zoomdrag_init(), and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by view_zoomdrag_exec(), view_zoomdrag_init(), view_zoomdrag_invoke(), view_zoomin_exec(), view_zoomin_invoke(), view_zoomout_exec(), and view_zoomout_invoke().
|
static |
Definition at line 1139 of file view2d_ops.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_time_now_seconds(), C, clamp_f(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), View2D::cur, wmOperator::customdata, ELEM, fabsf, wmWindow::grabcursor, v2dViewZoomData::invoke_event, View2D::keepofs, View2D::keepzoom, v2dViewZoomData::lastx, v2dViewZoomData::lasty, View2D::maxzoom, MOUSEPAN, MOUSEZOOM, wmEvent::mval, v2dViewZoomData::mx_2d, v2dViewZoomData::my_2d, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), TIMER, v2dViewZoomData::timer, v2dViewZoomData::timer_lastdraw, wmEvent::type, U, UI_view2d_region_to_view(), USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_TO_MOUSEPOS, ARegion::v2d, v2dViewZoomData::v2d, V2D_KEEPASPECT, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, view_zoomdrag_apply(), view_zoomdrag_exit(), view_zoomdrag_init(), view_zoomdrag_invoke(), WM_CURSOR_EW_SCROLL, WM_cursor_modal_set(), WM_CURSOR_NS_SCROLL, WM_CURSOR_NSEW_SCROLL, WM_event_absolute_delta_x(), WM_event_absolute_delta_y(), WM_event_add_modal_handler(), WM_event_timer_add(), and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by VIEW2D_OT_zoom(), and view_zoomdrag_invoke().
|
static |
Definition at line 1253 of file view2d_ops.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, clamp_f(), CTX_wm_window(), View2D::cur, wmEvent::customdata, wmOperator::customdata, v2dViewZoomData::dx, v2dViewZoomData::dy, ELEM, EVT_ESCKEY, fabsf, v2dViewZoomData::invoke_event, View2D::keepzoom, KM_RELEASE, v2dViewZoomData::lastx, v2dViewZoomData::lasty, len_v2(), View2D::mask, View2D::maxzoom, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, v2dViewZoomData::region, RNA_float_set(), TIMER, v2dViewZoomData::timer, wmEvent::type, U, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_SCALE, v2dViewZoomData::v2d, V2D_KEEPASPECT, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, wmEvent::val, view_zoomdrag_apply(), view_zoomdrag_exit(), view_zoomdrag_modal(), ARegion::winrct, WM_cursor_modal_restore(), rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by VIEW2D_OT_zoom(), and view_zoomdrag_modal().
|
static |
Definition at line 886 of file view2d_ops.cc.
References C, wmOperator::customdata, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_set(), view_zoom_axis_lock_defaults(), view_zoomdrag_init(), view_zoomin_exec(), view_zoomstep_apply(), and view_zoomstep_exit().
Referenced by VIEW2D_OT_zoom_in(), view_zoomin_exec(), and view_zoomin_invoke().
|
static |
Definition at line 907 of file view2d_ops.cc.
References C, CTX_wm_region(), wmOperator::customdata, wmEvent::mval, v2dViewZoomData::mx_2d, v2dViewZoomData::my_2d, U, UI_view2d_region_to_view(), USER_ZOOM_TO_MOUSEPOS, ARegion::v2d, view_zoomdrag_init(), view_zoomin_exec(), view_zoomin_invoke(), and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by VIEW2D_OT_zoom_in(), and view_zoomin_invoke().
|
static |
Definition at line 949 of file view2d_ops.cc.
References C, wmOperator::customdata, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_set(), view_zoom_axis_lock_defaults(), view_zoomdrag_init(), view_zoomout_exec(), view_zoomstep_apply(), and view_zoomstep_exit().
Referenced by VIEW2D_OT_zoom_out(), view_zoomout_exec(), and view_zoomout_invoke().
|
static |
Definition at line 971 of file view2d_ops.cc.
References C, CTX_wm_region(), wmOperator::customdata, wmEvent::mval, v2dViewZoomData::mx_2d, v2dViewZoomData::my_2d, U, UI_view2d_region_to_view(), USER_ZOOM_TO_MOUSEPOS, ARegion::v2d, view_zoomdrag_init(), view_zoomout_exec(), view_zoomout_invoke(), and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by VIEW2D_OT_zoom_out(), and view_zoomout_invoke().
|
static |
Definition at line 857 of file view2d_ops.cc.
References C, wmOperator::customdata, wmOperator::ptr, RNA_float_get(), view_zoomstep_apply(), and view_zoomstep_apply_ex().
Referenced by view_zoomin_exec(), view_zoomout_exec(), and view_zoomstep_apply().
|
static |
Definition at line 745 of file view2d_ops.cc.
References View2D::align, BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), ED_region_snap_size_apply(), ED_region_snap_size_test(), ED_region_tag_redraw_no_rebuild(), View2D::flag, IN_RANGE_INCL, View2D::keepofs, View2D::keepzoom, View2D::mask, View2D::maxzoom, View2D::minzoom, v2dViewZoomData::mx_2d, v2dViewZoomData::my_2d, NA_EDITED, NC_SCREEN, v2dViewZoomData::region, UI_view2d_curRect_changed(), UI_view2d_sync(), ARegion::v2d, V2D_ALIGN_NO_POS_X, V2D_ALIGN_NO_POS_Y, V2D_KEEPOFS_X, V2D_KEEPOFS_Y, V2D_LIMITZOOM, V2D_LOCK_COPY, V2D_LOCKOFS_X, V2D_LOCKOFS_Y, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_ZOOM_IGNORE_KEEPOFS, view_zoomstep_apply_ex(), WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, rctf::ymin, and v2dViewZoomData::zoom_to_mouse_pos.
Referenced by view_zoomstep_apply(), and view_zoomstep_apply_ex().
|
static |
Definition at line 871 of file view2d_ops.cc.
References C, CTX_wm_area(), wmOperator::customdata, ELEM, View2D::flag, MEM_SAFE_FREE, SPACE_ACTION, SPACE_GRAPH, ScrArea::spacetype, UI_view2d_zoom_cache_reset(), v2dViewZoomData::v2d, V2D_IS_NAVIGATING, and view_zoomstep_exit().
Referenced by view_zoomin_exec(), view_zoomout_exec(), and view_zoomstep_exit().