|
Blender V4.3
|
#include "DNA_vec_types.h"Go to the source code of this file.
Classes | |
| struct | View2DScrollers |
Functions | |
| void | view2d_scrollers_calc (View2D *v2d, const rcti *mask_custom, View2DScrollers *r_scrollers) |
| void | view2d_totRect_set_resize (View2D *v2d, int width, int height, bool resize) |
| bool | view2d_edge_pan_poll (bContext *C) |
| float | view2d_page_size_y (const View2D &v2d) |
Share between view2d_*.cc files.
Definition in file view2d_intern.hh.
| bool view2d_edge_pan_poll | ( | bContext * | C | ) |
Definition at line 32 of file view2d_edge_pan.cc.
References CTX_wm_region(), View2D::keepofs, V2D_LOCKOFS_X, and V2D_LOCKOFS_Y.
Referenced by UI_view2d_edge_pan_init(), and VIEW2D_OT_edge_pan().
For paginated scrolling, get the page height to scroll. This may be a custom height (View2D.page_size_y) but defaults to the View2D.mask height.
Definition at line 77 of file view2d.cc.
References BLI_rcti_size_y(), View2D::mask, and View2D::page_size_y.
Referenced by UI_view2d_offset_y_snap_to_closest_page(), view2d_scroll_delta_y_snap_page_size(), view_scrolldown_exec(), and view_scrollup_exec().
| void view2d_scrollers_calc | ( | View2D * | v2d, |
| const rcti * | mask_custom, | ||
| View2DScrollers * | r_scrollers ) |
Calculate relevant scroller properties.
Definition at line 1386 of file view2d.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), CLAMP, CLAMP_MAX, View2D::cur, float, View2D::hor, View2DScrollers::hor, View2DScrollers::hor_max, View2DScrollers::hor_min, int, View2D::scroll, View2D::tot, UI_HEADER_OFFSET, V2D_SCROLL_BOTTOM, V2D_SCROLL_HANDLE_SIZE_HOTSPOT, V2D_SCROLL_HORIZONTAL, V2D_SCROLL_LEFT, V2D_SCROLL_THUMB_SIZE_MIN, V2D_SCROLL_VERTICAL, View2D::vert, View2DScrollers::vert, View2DScrollers::vert_max, View2DScrollers::vert_min, view2d_masks(), view2d_scroll_mapped(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by scroller_activate_init(), and UI_view2d_scrollers_draw_ex().
Change the size of the maximum viewable area (i.e. 'tot' rect).
Definition at line 973 of file view2d.cc.
References abs(), View2D::align, ELEM, float, G, G_DEBUG, printf, View2D::tot, ui_view2d_curRect_validate_resize(), V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_ALIGN_NO_POS_X, V2D_ALIGN_NO_POS_Y, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by UI_view2d_region_reinit(), and UI_view2d_totRect_set().