Blender  V3.3
Public Attributes | List of all members
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:

Definition at line 589 of file view2d_ops.cc.

Member Data Documentation

◆ dx

float v2dViewZoomData::dx

Definition at line 599 of file view2d_ops.cc.

Referenced by view_zoomdrag_modal().

◆ dy

float v2dViewZoomData::dy

Definition at line 599 of file view2d_ops.cc.

Referenced by view_zoomdrag_modal().

◆ invoke_event

int v2dViewZoomData::invoke_event

Definition at line 598 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ lastx

int v2dViewZoomData::lastx

Definition at line 597 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ lasty

int v2dViewZoomData::lasty

Definition at line 597 of file view2d_ops.cc.

Referenced by view_zoomdrag_invoke(), and view_zoomdrag_modal().

◆ mx_2d

float v2dViewZoomData::mx_2d

◆ my_2d

float v2dViewZoomData::my_2d

◆ region

ARegion* v2dViewZoomData::region

◆ timer

wmTimer* v2dViewZoomData::timer

◆ timer_lastdraw

double v2dViewZoomData::timer_lastdraw

Definition at line 595 of file view2d_ops.cc.

Referenced by view_zoomdrag_apply(), and view_zoomdrag_invoke().

◆ v2d

View2D* v2dViewZoomData::v2d

◆ zoom_to_mouse_pos

bool v2dViewZoomData::zoom_to_mouse_pos

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