|
Blender V5.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:
Definition at line 1804 of file view2d_ops.cc.
| float blender::ui::v2dScrollerMove::delta |
amount moved by mouse on axis of interest
Definition at line 1822 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), blender::ui::scroller_activate_invoke(), and blender::ui::scroller_activate_modal().
| float blender::ui::v2dScrollerMove::fac |
view adjustment factor, based on size of region
Definition at line 1818 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_modal().
| float blender::ui::v2dScrollerMove::fac_round |
for pixel rounding (avoid visible UI jitter)
Definition at line 1820 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), and blender::ui::scroller_activate_init().
| int blender::ui::v2dScrollerMove::lastx |
previous mouse coordinates (in screen coordinates) for determining movement
Definition at line 1830 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_modal().
| int blender::ui::v2dScrollerMove::lasty |
Definition at line 1830 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_modal().
| ARegion* blender::ui::v2dScrollerMove::region |
region that the scroller is in
Definition at line 1808 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), and blender::ui::scroller_activate_init().
| int blender::ui::v2dScrollerMove::scrollbar_orig |
initial location of scrollbar x/y, mouse relative
Definition at line 1827 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_invoke().
| float blender::ui::v2dScrollerMove::scrollbarwidth |
width of the scrollbar itself, used for page up/down clicks
Definition at line 1825 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_modal().
| char blender::ui::v2dScrollerMove::scroller |
Scroller that mouse is in (h or v).
Definition at line 1811 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), blender::ui::scroller_activate_init(), blender::ui::scroller_activate_invoke(), and blender::ui::scroller_activate_modal().
| View2D* blender::ui::v2dScrollerMove::v2d |
View2D data that this operation affects
Definition at line 1806 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), blender::ui::scroller_activate_exit(), blender::ui::scroller_activate_init(), and blender::ui::scroller_activate_modal().
| short blender::ui::v2dScrollerMove::zone |
-1 is min zoomer, 0 is bar, 1 is max zoomer
Definition at line 1815 of file view2d_ops.cc.
Referenced by blender::ui::scroller_activate_apply(), blender::ui::scroller_activate_init(), blender::ui::scroller_activate_invoke(), and blender::ui::scroller_activate_modal().