When height is limited, it is defined by space occupied by strips, but at least channels 1 to 7 will be always visible. This allows it to easily overview timeline content by zooming out to maximum extent in Y axis and panning in X axis. More channels can be "created" on demand by moving strip to higher channel. When strip is removed and highest channel becomes empty, view will stay as is until it is moved down. Then new highest point is remembered and it is not possible to pan upwards until strip is moved to higher channel. Limiting takes into account height of scrubbing and markers area as well as scrollers. This means that when zoomed out to maximum extent, no strips are obstructed by fixed UI element. Fixes T57976 Reviewed By: Severin Differential Revision: https://developer.blender.org/D14263
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2019 Blender Foundation. All rights reserved. */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct bContext;
|
|
struct bDopeSheet;
|
|
struct wmEvent;
|
|
struct rcti;
|
|
|
|
void ED_time_scrub_draw_current_frame(const struct ARegion *region,
|
|
const struct Scene *scene,
|
|
bool display_seconds);
|
|
|
|
void ED_time_scrub_draw(const struct ARegion *region,
|
|
const struct Scene *scene,
|
|
bool display_seconds,
|
|
bool discrete_frames);
|
|
|
|
bool ED_time_scrub_event_in_region(const struct ARegion *region, const struct wmEvent *event);
|
|
|
|
void ED_time_scrub_channel_search_draw(const struct bContext *C,
|
|
struct ARegion *region,
|
|
struct bDopeSheet *dopesheet);
|
|
void ED_time_scrub_region_rect_get(const struct ARegion *region, struct rcti *rect);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|