|
Blender V5.0
|
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, bool display_stalk=true) |
| void | ED_time_scrub_draw (const ARegion *region, const Scene *scene, bool display_seconds, bool discrete_frames, int base) |
| rcti | ED_time_scrub_clamp_scroller_mask (const rcti &scroller_mask) |
| bool | ED_time_scrub_event_in_region (const ARegion *region, const wmEvent *event) |
| bool | ED_time_scrub_event_in_region_poll (const wmWindow *win, const ScrArea *area, 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) |
| void ED_time_scrub_channel_search_draw | ( | const bContext * | C, |
| ARegion * | region, | ||
| bDopeSheet * | dopesheet ) |
Definition at line 241 of file time_scrub_ui.cc.
References BLI_rcti_size_x(), blender::ui::block_layout(), blender::ui::block_layout_resolve(), blender::ui::block_layout_set_current(), C, CTX_wm_screen(), blender::ui::Emboss, GPU_matrix_pop_projection(), GPU_matrix_push_projection(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), blender::ui::Header, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformThemeColor(), immVertexFormat(), pos, uiLayout::prop(), ptr, RNA_pointer_create_discrete(), uiLayout::scale_y_set(), TH_BACK, UI_block_align_begin(), UI_block_align_end(), UI_block_begin(), UI_block_bounds_set_normal(), UI_BLOCK_CLIP_EVENTS, UI_block_draw(), UI_block_end(), UI_block_flag_enable(), UI_ITEM_NONE, UI_SCALE_FAC, UI_style_get_dpi(), UI_TIME_SCRUB_MARGIN_Y, UI_UNIT_Y, blender::ui::Vertical, ARegion::winx, ARegion::winy, wmOrtho2_region_pixelspace(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by action_channel_region_draw(), graph_channel_region_draw(), and nla_track_region_draw().
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().
| scroller_mask | Typically View2D.mask (or something smaller, if further parts have been masked out already). |
Definition at line 219 of file time_scrub_ui.cc.
References UI_TIME_SCRUB_MARGIN_Y, and rcti::ymax.
Referenced by action_main_region_draw_overlay(), blender::ed::vse::draw_timeline_seq_display(), graph_main_region_draw_overlay(), graph_region_draw(), and blender::ed::vse::load_data_init_from_operator().
| void ED_time_scrub_draw | ( | const ARegion * | region, |
| const Scene * | scene, | ||
| bool | display_seconds, | ||
| bool | discrete_frames, | ||
| int | base ) |
Draw the scrub area with numbers inside.
| display_seconds | Defines if the display is in seconds or in frames. |
| base | Defines the base number from which the number distance is calculated. The distance is always a simple fraction or a multiple of that number. |
Definition at line 189 of file time_scrub_ui.cc.
References draw_background(), ED_time_scrub_region_rect_get(), get_centered_text_y(), GPU_matrix_pop_projection(), GPU_matrix_push_projection(), TH_TIME_SCRUB_TEXT, UI_SCALE_FAC, UI_view2d_draw_scale_x__discrete_frames_or_seconds(), UI_view2d_draw_scale_x__frames_or_seconds(), ARegion::v2d, wmOrtho2_region_pixelspace(), and rcti::ymin.
Referenced by action_main_region_draw(), dopesheet_region_draw(), blender::ed::vse::draw_timeline_seq(), graph_main_region_draw(), graph_region_draw(), and nla_main_region_draw().
| void ED_time_scrub_draw_current_frame | ( | const ARegion * | region, |
| const Scene * | scene, | ||
| bool | display_seconds, | ||
| bool | display_stalk = true ) |
Definition at line 172 of file time_scrub_ui.cc.
References RenderData::cfra, draw_current_frame(), ED_time_scrub_region_rect_get(), GPU_matrix_pop_projection(), GPU_matrix_push_projection(), Scene::r, ARegion::v2d, and wmOrtho2_region_pixelspace().
Referenced by action_main_region_draw_overlay(), dopesheet_region_draw(), blender::ed::vse::draw_timeline_seq_display(), graph_main_region_draw_overlay(), graph_region_draw(), and nla_main_region_draw_overlay().
Definition at line 226 of file time_scrub_ui.cc.
References BLI_rcti_isect_pt_v(), UI_TIME_SCRUB_MARGIN_Y, ARegion::winrct, wmEvent::xy, rcti::ymax, and rcti::ymin.
Referenced by change_frame_seq_preview_begin(), and ED_time_scrub_event_in_region_poll().
| bool ED_time_scrub_event_in_region_poll | ( | const wmWindow * | win, |
| const ScrArea * | area, | ||
| const ARegion * | region, | ||
| const wmEvent * | event ) |
Follow the EventHandlerPoll function signature.
Definition at line 233 of file time_scrub_ui.cc.
References ED_time_scrub_event_in_region().
Referenced by clip_preview_region_init(), and ed_default_handlers().
Definition at line 37 of file time_scrub_ui.cc.
References UI_TIME_SCRUB_MARGIN_Y, ARegion::winx, ARegion::winy, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ED_time_scrub_draw(), and ED_time_scrub_draw_current_frame().