Blender V5.3
blender::ui::v2dViewZoomData Struct Reference

Public Attributes

View2D * v2d
ARegion * region
wmTimer * timer
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
bool own_cursor

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 673 of file view2d_ops.cc.

Member Data Documentation

◆ dx

float blender::ui::v2dViewZoomData::dx

Definition at line 683 of file view2d_ops.cc.

Referenced by blender::ui::view_zoomdrag_modal().

◆ dy

float blender::ui::v2dViewZoomData::dy

Definition at line 683 of file view2d_ops.cc.

Referenced by blender::ui::view_zoomdrag_modal().

◆ invoke_event

int blender::ui::v2dViewZoomData::invoke_event

◆ lastx

int blender::ui::v2dViewZoomData::lastx

◆ lasty

int blender::ui::v2dViewZoomData::lasty

◆ mx_2d

◆ my_2d

◆ own_cursor

bool blender::ui::v2dViewZoomData::own_cursor

◆ region

◆ timer

◆ timer_lastdraw

double blender::ui::v2dViewZoomData::timer_lastdraw

◆ v2d

◆ zoom_to_mouse_pos


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