Blender V4.3
ED_time_scrub_ui.hh File Reference

Go to the source code of this file.

Functions

void ED_time_scrub_draw_current_frame (const ARegion *region, const Scene *scene, bool display_seconds)
 
void ED_time_scrub_draw (const ARegion *region, const Scene *scene, bool display_seconds, bool discrete_frames)
 
rcti ED_time_scrub_clamp_scroller_mask (const rcti &scroller_mask)
 
bool ED_time_scrub_event_in_region (const ARegion *region, const wmEvent *event)
 
void ED_time_scrub_channel_search_draw (const bContext *C, ARegion *region, bDopeSheet *dopesheet)
 
void ED_time_scrub_region_rect_get (const ARegion *region, rcti *r_rect)
 

Function Documentation

◆ ED_time_scrub_channel_search_draw()

◆ ED_time_scrub_clamp_scroller_mask()

rcti ED_time_scrub_clamp_scroller_mask ( const rcti & scroller_mask)

Scroll-bars shouldn't overlap the time scrub UI. So this returns a mask adjusted to exclude it, which can be passed to UI_view2d_scrollers_draw().

Parameters
scroller_maskTypically View2D.mask (or something smaller, if further parts have been masked out already).

Definition at line 186 of file time_scrub_ui.cc.

References UI_TIME_SCRUB_MARGIN_Y, and rcti::ymax.

Referenced by draw_timeline_seq_display(), graph_main_region_draw_overlay(), and graph_region_draw().

◆ ED_time_scrub_draw()

◆ ED_time_scrub_draw_current_frame()

◆ ED_time_scrub_event_in_region()

bool ED_time_scrub_event_in_region ( const ARegion * region,
const wmEvent * event )

◆ ED_time_scrub_region_rect_get()

void ED_time_scrub_region_rect_get ( const ARegion * region,
rcti * r_rect )