Blender
V3.3
|
#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.
void channel_draw_context_init | ( | const bContext * | C, |
ARegion * | region, | ||
SeqChannelDrawContext * | r_context | ||
) |
Definition at line 326 of file sequencer_channels_draw.c.
References SeqChannelDrawContext::area, SeqChannelDrawContext::C, C, SeqChannelDrawContext::channel_height, channel_height_pixelspace_get(), SeqChannelDrawContext::channels, CTX_data_scene(), CTX_wm_area(), SeqChannelDrawContext::draw_offset, draw_offset_get(), SeqChannelDrawContext::ed, SeqChannelDrawContext::frame_width, frame_width_pixelspace_get(), min_ff(), SeqChannelDrawContext::region, SeqChannelDrawContext::scale, SeqChannelDrawContext::scene, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_editing_get(), SeqChannelDrawContext::seqbase, SeqChannelDrawContext::timeline_region, timeline_region_get(), SeqChannelDrawContext::timeline_region_v2d, SeqChannelDrawContext::v2d, and ARegion::v2d.
Referenced by draw_channels(), and sequencer_rename_channel_invoke().
Definition at line 61 of file sequencer_channels_draw.c.
References UI_view2d_view_to_region_y().
Referenced by channel_draw_context_init().
|
static |
Definition at line 84 of file sequencer_channels_draw.c.
References blender::compositor::context, and y.
Referenced by draw_channel_widget_lock(), draw_channel_widget_mute(), and label_rect_init().
Definition at line 192 of file sequencer_channels_draw.c.
References SpaceSeqRuntime::rename_channel_index, and SpaceSeq::runtime.
Referenced by draw_channel_labels(), and label_rect_init().
|
static |
Definition at line 91 of file sequencer_channels_draw.c.
References BLI_rctf_init(), ceil(), CLAMP, blender::compositor::context, blender::math::floor(), max_ii(), MAXSEQ, SEQ_timeline_expand_boundbox(), rctf::ymax, and rctf::ymin.
Referenced by draw_channel_headers().
Definition at line 321 of file sequencer_channels_draw.c.
References TH_BACK, and UI_ThemeClearColor().
Referenced by draw_channels().
|
static |
Definition at line 290 of file sequencer_channels_draw.c.
References blender::compositor::context, draw_channel_labels(), draw_channel_widget_lock(), draw_channel_widget_mute(), icon_width_get(), and offset.
Referenced by draw_channel_headers().
|
static |
Definition at line 301 of file sequencer_channels_draw.c.
References blender::compositor::context, displayed_channel_range_get(), draw_channel_header(), GPU_matrix_pop(), GPU_matrix_push(), UI_block_begin(), UI_block_draw(), UI_block_end(), UI_EMBOSS, and wmOrtho2_pixelspace().
Referenced by draw_channels().
|
static |
Definition at line 227 of file sequencer_channels_draw.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), channel_is_being_renamed(), blender::compositor::context, CTX_wm_space_seq(), label, label_rect_init(), NC_SCENE, ND_SEQUENCER, NULL, ptr, SpaceSeqRuntime::rename_channel_index, RNA_pointer_create(), RNA_property_identifier(), RNA_struct_name_property(), SpaceSeq::runtime, SEQ_channel_get_by_index(), SEQ_channel_name_get(), PointerRNA::type, UI_block_emboss_set(), UI_BTYPE_LABEL, UI_BTYPE_TEXT, UI_but_active_only(), UI_EMBOSS, UI_EMBOSS_NONE, uiDefBut(), uiDefButR(), WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_channel_header().
|
static |
Definition at line 151 of file sequencer_channels_draw.c.
References BLI_sprintfN(), channel_index_y_min(), blender::compositor::context, draw_channel_widget_tooltip(), icon_width_get(), MEM_freeN, offset, ptr, RNA_pointer_create(), RNA_struct_type_find_property(), SEQ_channel_get_by_index(), SEQ_channel_is_locked(), UI_block_emboss_set(), UI_BTYPE_TOGGLE, UI_but_func_tooltip_set(), UI_EMBOSS_NONE, uiDefIconButR_prop(), widget_y_offset(), width, and y.
Referenced by draw_channel_header().
|
static |
Definition at line 111 of file sequencer_channels_draw.c.
References BLI_sprintfN(), channel_index_y_min(), blender::compositor::context, draw_channel_widget_tooltip(), icon_width_get(), MEM_freeN, NULL, offset, ptr, RNA_pointer_create(), RNA_struct_type_find_property(), SEQ_channel_get_by_index(), SEQ_channel_is_muted(), UI_block_emboss_set(), UI_BTYPE_TOGGLE, UI_but_func_tooltip_set(), UI_EMBOSS_NONE, uiDefIconButR_prop(), widget_y_offset(), width, and y.
Referenced by draw_channel_header().
|
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().
Definition at line 348 of file sequencer_channels_draw.c.
References C, channel_draw_context_init(), blender::compositor::context, CTX_data_scene(), draw_background(), draw_channel_headers(), NULL, SEQ_editing_get(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by sequencer_channel_region_draw().
Definition at line 56 of file sequencer_channels_draw.c.
References View2D::cur, and rctf::ymin.
Referenced by channel_draw_context_init().
Definition at line 67 of file sequencer_channels_draw.c.
References UI_view2d_view_to_region_x().
Referenced by channel_draw_context_init().
|
static |
Definition at line 74 of file sequencer_channels_draw.c.
References blender::compositor::context.
Referenced by draw_channel_header(), draw_channel_widget_lock(), draw_channel_widget_mute(), label_rect_init(), and widget_y_offset().
|
static |
Definition at line 204 of file sequencer_channels_draw.c.
References BLI_rctf_init(), channel_index_y_min(), channel_is_being_renamed(), blender::compositor::context, CTX_wm_space_seq(), icon_width_get(), max_ff(), text_size_get(), width, and y.
Referenced by draw_channel_labels().
|
static |
Definition at line 197 of file sequencer_channels_draw.c.
References blender::compositor::context, UI_fontstyle_height_max(), UI_style_get_dpi(), and uiStyle::widget.
Referenced by label_rect_init().
Definition at line 44 of file sequencer_channels_draw.c.
References blender::compositor::area(), BLI_assert_unreachable, LISTBASE_FOREACH, NULL, and RGN_TYPE_WINDOW.
Referenced by channel_draw_context_init().
|
static |
Definition at line 79 of file sequencer_channels_draw.c.
References blender::compositor::context, and icon_width_get().
Referenced by draw_channel_widget_lock(), and draw_channel_widget_mute().