Blender V4.3
v2dViewZoomData Struct Reference

Public Attributes

View2Dv2d
 
ARegionregion
 
wmTimertimer
 
double timer_lastdraw
 
int lastx
 
int lasty
 
int invoke_event
 
float dx
 
float dy
 
float mx_2d
 
float my_2d
 
bool zoom_to_mouse_pos
 

Detailed Description

This group of operators come in several forms:

  1. Scroll-wheel 'steps' - rolling mouse-wheel by one step zooms view by predefined amount.
  2. Scroll-wheel 'steps' + alt + ctrl/shift - zooms view on one axis only (ctrl=x, shift=y). XXX this could be implemented...
  3. Pad +/- Keys - pressing each key moves the zooms the view by a predefined amount.

In order to make sure this works, each operator must define the following RNA-Operator Props:

  • zoomfacx, zoomfacy - These two zoom factors allow for non-uniform scaling. It is safe to scale by 0, as these factors are used to determine. amount to enlarge 'cur' by. Temporary custom-data for operator.

Definition at line 658 of file view2d_ops.cc.

Member Data Documentation

◆ dx

float v2dViewZoomData::dx

Definition at line 668 of file view2d_ops.cc.

Referenced by view_zoomdrag_modal().

◆ dy

float v2dViewZoomData::dy

Definition at line 668 of file view2d_ops.cc.

Referenced by view_zoomdrag_modal().

◆ invoke_event

int v2dViewZoomData::invoke_event

Definition at line 667 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ lastx

int v2dViewZoomData::lastx

Definition at line 666 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ lasty

int v2dViewZoomData::lasty

Definition at line 666 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ mx_2d

◆ my_2d

◆ region

ARegion* v2dViewZoomData::region

◆ timer

wmTimer* v2dViewZoomData::timer

◆ timer_lastdraw

double v2dViewZoomData::timer_lastdraw

Definition at line 664 of file view2d_ops.cc.

Referenced by view_zoomdrag_apply(), and view_zoomdrag_invoke().

◆ v2d

◆ zoom_to_mouse_pos

bool v2dViewZoomData::zoom_to_mouse_pos

The documentation for this struct was generated from the following file: