Blender
V3.3
|
Public Attributes | |
View2D * | v2d |
ARegion * | region |
char | scroller |
short | zone |
float | fac |
float | fac_round |
float | delta |
float | scrollbarwidth |
int | scrollbar_orig |
int | lastx |
int | lasty |
Scrollers should behave in the following ways, when clicked on with LMB (and dragged):
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) Definition at line 1702 of file view2d_ops.cc.
float v2dScrollerMove::delta |
amount moved by mouse on axis of interest
Definition at line 1720 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_invoke(), and scroller_activate_modal().
float v2dScrollerMove::fac |
view adjustment factor, based on size of region
Definition at line 1716 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), and scroller_activate_init().
float v2dScrollerMove::fac_round |
for pixel rounding (avoid visible UI jitter)
Definition at line 1718 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), and scroller_activate_init().
int v2dScrollerMove::lastx |
previous mouse coordinates (in screen coordinates) for determining movement
Definition at line 1728 of file view2d_ops.cc.
Referenced by scroller_activate_init(), and scroller_activate_modal().
int v2dScrollerMove::lasty |
Definition at line 1728 of file view2d_ops.cc.
Referenced by scroller_activate_init(), and scroller_activate_modal().
ARegion* v2dScrollerMove::region |
region that the scroller is in
Definition at line 1706 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), and scroller_activate_init().
int v2dScrollerMove::scrollbar_orig |
initial location of scrollbar x/y, mouse relative
Definition at line 1725 of file view2d_ops.cc.
Referenced by scroller_activate_init(), and scroller_activate_invoke().
float v2dScrollerMove::scrollbarwidth |
width of the scrollbar itself, used for page up/down clicks
Definition at line 1723 of file view2d_ops.cc.
Referenced by scroller_activate_init(), and scroller_activate_modal().
char v2dScrollerMove::scroller |
scroller that mouse is in ('h' or 'v')
Definition at line 1709 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_init(), scroller_activate_invoke(), and scroller_activate_modal().
View2D* v2dScrollerMove::v2d |
View2D data that this operation affects
Definition at line 1704 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_exit(), and scroller_activate_init().
short v2dScrollerMove::zone |
-1 is min zoomer, 0 is bar, 1 is max zoomer
Definition at line 1713 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_init(), scroller_activate_invoke(), and scroller_activate_modal().