Blender V4.3
view2d_intern.hh File Reference
#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)
 

Detailed Description

Share between view2d_*.cc files.

Definition in file view2d_intern.hh.

Function Documentation

◆ view2d_edge_pan_poll()

bool view2d_edge_pan_poll ( bContext * C)

◆ view2d_page_size_y()

float view2d_page_size_y ( const View2D & v2d)

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().

◆ view2d_scrollers_calc()

◆ view2d_totRect_set_resize()

void view2d_totRect_set_resize ( View2D * v2d,
int width,
int height,
bool resize )