Blender  V3.3
Functions
sequencer_channels_draw.c File Reference
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "ED_screen.h"
#include "GPU_framebuffer.h"
#include "GPU_immediate.h"
#include "GPU_immediate_util.h"
#include "GPU_matrix.h"
#include "GPU_state.h"
#include "GPU_vertex_buffer.h"
#include "GPU_viewport.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "SEQ_channels.h"
#include "SEQ_sequencer.h"
#include "SEQ_time.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "WM_api.h"
#include "sequencer_intern.h"

Go to the source code of this file.

Functions

static ARegiontimeline_region_get (const ScrArea *area)
 
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 char * draw_channel_widget_tooltip (bContext *UNUSED(C), void *argN, const char *UNUSED(tip))
 
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_header (const SeqChannelDrawContext *context, uiBlock *block, const int channel_index)
 
static void draw_channel_headers (const SeqChannelDrawContext *context)
 
static void draw_background (void)
 
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()

void channel_draw_context_init ( const bContext C,
ARegion region,
SeqChannelDrawContext r_context 
)

◆ channel_height_pixelspace_get()

static float channel_height_pixelspace_get ( const View2D timeline_region_v2d)
static

Definition at line 61 of file sequencer_channels_draw.c.

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

◆ channel_is_being_renamed()

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

◆ displayed_channel_range_get()

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

◆ draw_background()

static void draw_background ( void  )
static

Definition at line 321 of file sequencer_channels_draw.c.

References TH_BACK, and UI_ThemeClearColor().

Referenced by draw_channels().

◆ draw_channel_header()

static void draw_channel_header ( const SeqChannelDrawContext context,
uiBlock block,
const int  channel_index 
)
static

◆ draw_channel_headers()

static void draw_channel_headers ( const SeqChannelDrawContext context)
static

◆ draw_channel_labels()

static void draw_channel_labels ( const SeqChannelDrawContext context,
uiBlock block,
const int  channel_index,
const float  used_width 
)
static

◆ draw_channel_widget_lock()

static float draw_channel_widget_lock ( const SeqChannelDrawContext context,
uiBlock block,
const int  channel_index,
const float  offset 
)
static

◆ draw_channel_widget_mute()

static float draw_channel_widget_mute ( const SeqChannelDrawContext context,
uiBlock block,
const int  channel_index,
const float  offset 
)
static

◆ draw_channel_widget_tooltip()

static char* draw_channel_widget_tooltip ( bContext UNUSEDC,
void argN,
const char *  UNUSEDtip 
)
static

Definition at line 105 of file sequencer_channels_draw.c.

References BLI_strdup().

Referenced by draw_channel_widget_lock(), and draw_channel_widget_mute().

◆ draw_channels()

void draw_channels ( const bContext C,
ARegion region 
)

◆ draw_offset_get()

static float draw_offset_get ( const View2D timeline_region_v2d)
static

Definition at line 56 of file sequencer_channels_draw.c.

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 67 of file sequencer_channels_draw.c.

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

◆ timeline_region_get()

static ARegion* timeline_region_get ( const ScrArea area)
static

◆ widget_y_offset()

static float widget_y_offset ( const SeqChannelDrawContext context)
static