Blender V5.0
sequencer_retiming_draw.cc File Reference
#include "BLI_string_utf8.h"
#include "DNA_sequence_types.h"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BLF_api.hh"
#include "GPU_immediate.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "GPU_vertex_format.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_keyframes_draw.hh"
#include "ED_keyframes_keylist.hh"
#include "ED_screen.hh"
#include "UI_view2d.hh"
#include "SEQ_retiming.hh"
#include "SEQ_time.hh"
#include "sequencer_intern.hh"
#include "sequencer_quads_batch.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::ed
namespace  blender::ed::vse

Macros

#define KEY_SIZE   (10 * U.pixelsize)
#define KEY_CENTER   (UI_view2d_view_to_region_y(v2d, strip_y_rescale(strip, 0.0f)) + 4 + KEY_SIZE / 2)
#define RETIME_KEY_MOUSEOVER_THRESHOLD   (16.0f * UI_SCALE_FAC)

Functions

bool blender::ed::vse::retiming_keys_can_be_displayed (const SpaceSeq *sseq)
static float blender::ed::vse::strip_y_rescale (const Strip *strip, const float y_value)
static float blender::ed::vse::key_x_get (const Scene *scene, const Strip *strip, const SeqRetimingKey *key)
static float blender::ed::vse::pixels_to_view_width (const bContext *C, const float width)
static float blender::ed::vse::pixels_to_view_height (const bContext *C, const float height)
static float blender::ed::vse::strip_start_screenspace_get (const Scene *scene, const View2D *v2d, const Strip *strip)
static float blender::ed::vse::strip_end_screenspace_get (const Scene *scene, const View2D *v2d, const Strip *strip)
static rctf blender::ed::vse::strip_box_get (const Scene *scene, const View2D *v2d, const Strip *strip)
rctf blender::ed::vse::strip_retiming_keys_box_get (const Scene *scene, const View2D *v2d, const Strip *strip)
int blender::ed::vse::left_fake_key_frame_get (const bContext *C, const Strip *strip)
int blender::ed::vse::right_fake_key_frame_get (const bContext *C, const Strip *strip)
static bool blender::ed::vse::retiming_fake_key_frame_clicked (const bContext *C, const Strip *strip, const int mval[2], int &r_frame)
void blender::ed::vse::realize_fake_keys (const Scene *scene, Strip *strip)
SeqRetimingKeyblender::ed::vse::try_to_realize_fake_keys (const bContext *C, Strip *strip, const int mval[2])
static SeqRetimingKeyblender::ed::vse::mouse_over_key_get_from_strip (const bContext *C, const Strip *strip, const int mval[2])
SeqRetimingKeyblender::ed::vse::retiming_mouseover_key_get (const bContext *C, const int mval[2], Strip **r_strip)
static bool blender::ed::vse::can_draw_retiming (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx)
Retiming Key
static void blender::ed::vse::retime_key_draw (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx, const SeqRetimingKey *key, const KeyframeShaderBindings &sh_bindings)
void blender::ed::vse::sequencer_retiming_draw_continuity (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx)
static SeqRetimingKey blender::ed::vse::fake_retiming_key_init (const Scene *scene, const Strip *strip, int key_x)
static bool blender::ed::vse::fake_keys_draw (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx, const KeyframeShaderBindings &sh_bindings)
void blender::ed::vse::sequencer_retiming_keys_draw (const TimelineDrawContext *timeline_ctx, blender::Span< StripDrawContext > strips)
Retiming Speed Label
static size_t blender::ed::vse::label_str_get (const Strip *strip, const SeqRetimingKey *key, char *r_label_str, const size_t label_str_maxncpy)
static bool blender::ed::vse::label_rect_get (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx, const SeqRetimingKey *key, const char *label_str, const size_t label_len, rctf *rect)
static void blender::ed::vse::retime_speed_text_draw (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx, const SeqRetimingKey *key)
void blender::ed::vse::sequencer_retiming_speed_draw (const TimelineDrawContext *timeline_ctx, const StripDrawContext &strip_ctx)

Macro Definition Documentation

◆ KEY_CENTER

◆ KEY_SIZE

◆ RETIME_KEY_MOUSEOVER_THRESHOLD

#define RETIME_KEY_MOUSEOVER_THRESHOLD   (16.0f * UI_SCALE_FAC)