Blender V4.3
sequencer_channels_draw.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.hh"
#include "BKE_screen.hh"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "ED_screen.hh"
#include "GPU_matrix.hh"
#include "GPU_vertex_buffer.hh"
#include "RNA_prototypes.hh"
#include "SEQ_channels.hh"
#include "SEQ_sequencer.hh"
#include "SEQ_time.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "WM_api.hh"
#include "sequencer_intern.hh"

Go to the source code of this file.

Functions

static float draw_offset_get (const View2D *timeline_region_v2d)
 
static float channel_height_pixelspace_get (const View2D *timeline_region_v2d)
 
static float frame_width_pixelspace_get (const View2D *timeline_region_v2d)
 
static float icon_width_get (const SeqChannelDrawContext *context)
 
static float widget_y_offset (const SeqChannelDrawContext *context)
 
static float channel_index_y_min (const SeqChannelDrawContext *context, const int index)
 
static void displayed_channel_range_get (const SeqChannelDrawContext *context, int r_channel_range[2])
 
static std::string draw_channel_widget_tooltip (bContext *, void *argN, const char *)
 
static float draw_channel_widget_mute (const SeqChannelDrawContext *context, uiBlock *block, const int channel_index, const float offset)
 
static float draw_channel_widget_lock (const SeqChannelDrawContext *context, uiBlock *block, const int channel_index, const float offset)
 
static bool channel_is_being_renamed (const SpaceSeq *sseq, const int channel_index)
 
static float text_size_get (const SeqChannelDrawContext *context)
 
static rctf label_rect_init (const SeqChannelDrawContext *context, const int channel_index, const float used_width)
 
static void draw_channel_labels (const SeqChannelDrawContext *context, uiBlock *block, const int channel_index, const float used_width)
 
static void draw_channel_headers (const SeqChannelDrawContext *context)
 
static void draw_background ()
 
void channel_draw_context_init (const bContext *C, ARegion *region, SeqChannelDrawContext *r_context)
 
void draw_channels (const bContext *C, ARegion *region)
 

Function Documentation

◆ channel_draw_context_init()

◆ channel_height_pixelspace_get()

static float channel_height_pixelspace_get ( const View2D * timeline_region_v2d)
static

Definition at line 45 of file sequencer_channels_draw.cc.

References UI_view2d_view_to_region_y().

Referenced by channel_draw_context_init().

◆ channel_index_y_min()

static float channel_index_y_min ( const SeqChannelDrawContext * context,
const int index )
static

Definition at line 68 of file sequencer_channels_draw.cc.

References y.

Referenced by draw_channel_widget_lock(), draw_channel_widget_mute(), and label_rect_init().

◆ channel_is_being_renamed()

static bool channel_is_being_renamed ( const SpaceSeq * sseq,
const int channel_index )
static

Definition at line 170 of file sequencer_channels_draw.cc.

References SpaceSeq::runtime.

Referenced by draw_channel_labels(), and label_rect_init().

◆ displayed_channel_range_get()

static void displayed_channel_range_get ( const SeqChannelDrawContext * context,
int r_channel_range[2] )
static

◆ draw_background()

◆ draw_channel_headers()

◆ draw_channel_labels()

◆ draw_channel_widget_lock()

◆ draw_channel_widget_mute()

◆ draw_channel_widget_tooltip()

static std::string draw_channel_widget_tooltip ( bContext * ,
void * argN,
const char *  )
static

◆ draw_channels()

◆ draw_offset_get()

static float draw_offset_get ( const View2D * timeline_region_v2d)
static

Definition at line 40 of file sequencer_channels_draw.cc.

References View2D::cur, and rctf::ymin.

Referenced by channel_draw_context_init().

◆ frame_width_pixelspace_get()

static float frame_width_pixelspace_get ( const View2D * timeline_region_v2d)
static

Definition at line 51 of file sequencer_channels_draw.cc.

References UI_view2d_view_to_region_x().

Referenced by channel_draw_context_init().

◆ icon_width_get()

static float icon_width_get ( const SeqChannelDrawContext * context)
static

◆ label_rect_init()

static rctf label_rect_init ( const SeqChannelDrawContext * context,
const int channel_index,
const float used_width )
static

◆ text_size_get()

static float text_size_get ( const SeqChannelDrawContext * context)
static

◆ widget_y_offset()

static float widget_y_offset ( const SeqChannelDrawContext * context)
static

Definition at line 63 of file sequencer_channels_draw.cc.

References icon_width_get().

Referenced by draw_channel_widget_lock(), and draw_channel_widget_mute().