Blender  V3.3
Public Attributes | List of all members
v2dViewPanData Struct Reference

Public Attributes

bScreenscreen
 
ScrAreaarea
 
ARegionregion
 
View2Dv2d
 
float facx
 
float facy
 
int startx
 
int starty
 
int lastx
 
int lasty
 
int invoke_event
 
short in_scroller
 
double edge_pan_last_time
 
double edge_pan_start_time_x
 
double edge_pan_start_time_y
 

Detailed Description

This group of operators come in several forms:

  1. Modal 'dragging' with MMB - where movement of mouse dictates amount to pan view by
  2. Scroll-wheel 'steps' - rolling mouse-wheel by one step moves view by predefined amount

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

Definition at line 64 of file view2d_ops.cc.

Member Data Documentation

◆ area

ScrArea* v2dViewPanData::area

area where view pan was initiated

Definition at line 68 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ edge_pan_last_time

double v2dViewPanData::edge_pan_last_time

Definition at line 89 of file view2d_ops.cc.

◆ edge_pan_start_time_x

double v2dViewPanData::edge_pan_start_time_x

Definition at line 90 of file view2d_ops.cc.

◆ edge_pan_start_time_y

double v2dViewPanData::edge_pan_start_time_y

Definition at line 90 of file view2d_ops.cc.

◆ facx

float v2dViewPanData::facx

amount to move view relative to zoom

Definition at line 75 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ facy

float v2dViewPanData::facy

Definition at line 75 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ in_scroller

short v2dViewPanData::in_scroller

for MMB in scrollers (old feature in past, but now not that useful)

Definition at line 86 of file view2d_ops.cc.

◆ invoke_event

int v2dViewPanData::invoke_event

event starting pan, for modal exit

Definition at line 83 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ lastx

int v2dViewPanData::lastx

previous x/y values of mouse in window

Definition at line 81 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ lasty

int v2dViewPanData::lasty

Definition at line 81 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ region

ARegion* v2dViewPanData::region

region where view pan was initiated

Definition at line 70 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ screen

bScreen* v2dViewPanData::screen

screen where view pan was initiated

Definition at line 66 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ startx

int v2dViewPanData::startx

mouse x/y values in window when operator was initiated

Definition at line 79 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ starty

int v2dViewPanData::starty

Definition at line 79 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ v2d

View2D* v2dViewPanData::v2d

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