|
Blender V4.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 1780 of file view2d_ops.cc.
| float v2dScrollerMove::delta |
amount moved by mouse on axis of interest
Definition at line 1798 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 1794 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_init(), and scroller_activate_modal().
| float v2dScrollerMove::fac_round |
for pixel rounding (avoid visible UI jitter)
Definition at line 1796 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 1806 of file view2d_ops.cc.
Referenced by scroller_activate_init(), and scroller_activate_modal().
| int v2dScrollerMove::lasty |
Definition at line 1806 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 1784 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 1803 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 1801 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 1787 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 1782 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_exit(), scroller_activate_init(), and scroller_activate_modal().
| short v2dScrollerMove::zone |
-1 is min zoomer, 0 is bar, 1 is max zoomer
Definition at line 1791 of file view2d_ops.cc.
Referenced by scroller_activate_apply(), scroller_activate_init(), scroller_activate_invoke(), and scroller_activate_modal().