Blender V4.3
v2dViewPanData Struct Reference

Public Attributes

bScreenscreen
 
ScrAreaarea
 
ARegionregion
 
View2Dv2d
 
float facx
 
float facy
 
int startx
 
int starty
 
int lastx
 
int lasty
 
int invoke_event
 
bool do_category_scroll
 
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:

  • deltax, deltay - define how much to move view by (relative to zoom-correction factor) Temporary custom-data for operator.

Definition at line 84 of file view2d_ops.cc.

Member Data Documentation

◆ area

ScrArea* v2dViewPanData::area

area where view pan was initiated

Definition at line 88 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ do_category_scroll

bool v2dViewPanData::do_category_scroll

Tag if the scroll is done in the category tab.

Definition at line 106 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), view_pan_init(), view_pan_invoke(), view_scrolldown_exec(), and view_scrollup_exec().

◆ edge_pan_last_time

double v2dViewPanData::edge_pan_last_time

Definition at line 112 of file view2d_ops.cc.

◆ edge_pan_start_time_x

double v2dViewPanData::edge_pan_start_time_x

Definition at line 113 of file view2d_ops.cc.

◆ edge_pan_start_time_y

double v2dViewPanData::edge_pan_start_time_y

Definition at line 113 of file view2d_ops.cc.

◆ facx

float v2dViewPanData::facx

amount to move view relative to zoom

Definition at line 95 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), and view_pan_init().

◆ facy

float v2dViewPanData::facy

Definition at line 95 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 109 of file view2d_ops.cc.

◆ invoke_event

int v2dViewPanData::invoke_event

event starting pan, for modal exit

Definition at line 103 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 101 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ lasty

int v2dViewPanData::lasty

Definition at line 101 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 90 of file view2d_ops.cc.

Referenced by view_pan_apply_ex(), view_pan_init(), view_pan_invoke(), view_scrolldown_exec(), and view_scrollup_exec().

◆ screen

bScreen* v2dViewPanData::screen

screen where view pan was initiated

Definition at line 86 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 99 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ starty

int v2dViewPanData::starty

Definition at line 99 of file view2d_ops.cc.

Referenced by view_pan_invoke(), and view_pan_modal().

◆ v2d


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