|
Blender V4.3
|
#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) |
| void channel_draw_context_init | ( | const bContext * | C, |
| ARegion * | region, | ||
| SeqChannelDrawContext * | r_context ) |
Definition at line 299 of file sequencer_channels_draw.cc.
References SeqChannelDrawContext::area, BKE_area_find_region_type(), BLI_assert, C, SeqChannelDrawContext::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, RGN_TYPE_WINDOW, SeqChannelDrawContext::scale, SeqChannelDrawContext::scene, SEQ_active_seqbase_get(), SEQ_channels_displayed_get(), SEQ_editing_get(), SeqChannelDrawContext::seqbase, SeqChannelDrawContext::timeline_region, SeqChannelDrawContext::timeline_region_v2d, ARegion::v2d, and SeqChannelDrawContext::v2d.
Referenced by draw_channels(), and sequencer_rename_channel_invoke().
Definition at line 45 of file sequencer_channels_draw.cc.
References UI_view2d_view_to_region_y().
Referenced by channel_draw_context_init().
|
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().
Definition at line 170 of file sequencer_channels_draw.cc.
References SpaceSeq::runtime.
Referenced by draw_channel_labels(), and label_rect_init().
|
static |
Definition at line 75 of file sequencer_channels_draw.cc.
References BLI_rctf_init(), ceil(), CLAMP, floor(), max_ii(), SEQ_MAX_CHANNELS, SEQ_timeline_expand_boundbox(), rctf::ymax, and rctf::ymin.
Referenced by draw_channel_headers().
|
static |
Definition at line 294 of file sequencer_channels_draw.cc.
References TH_BACK, and UI_ThemeClearColor().
Referenced by draw_channels(), DRW_draw_render_loop_offscreen(), ED_time_scrub_draw(), ED_view3d_draw_offscreen(), ED_view3d_draw_offscreen_simple(), file_draw_list(), and pygpu_offscreen_draw_view3d().
|
static |
Definition at line 264 of file sequencer_channels_draw.cc.
References displayed_channel_range_get(), draw_channel_labels(), draw_channel_widget_lock(), draw_channel_widget_mute(), GPU_matrix_pop(), GPU_matrix_push(), icon_width_get(), UI_block_begin(), UI_block_draw(), UI_block_end(), UI_EMBOSS, and wmOrtho2_pixelspace().
Referenced by draw_channels().
|
static |
Definition at line 206 of file sequencer_channels_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), channel_is_being_renamed(), CTX_wm_space_seq(), label, label_rect_init(), NC_SCENE, ND_SEQUENCER, ptr, 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_headers().
|
static |
Definition at line 132 of file sequencer_channels_draw.cc.
References BLI_sprintfN(), channel_index_y_min(), draw_channel_widget_tooltip(), icon_width_get(), MEM_freeN(), 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(), and widget_y_offset().
Referenced by draw_channel_headers().
|
static |
Definition at line 95 of file sequencer_channels_draw.cc.
References BLI_sprintfN(), channel_index_y_min(), draw_channel_widget_tooltip(), icon_width_get(), MEM_freeN(), 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(), and widget_y_offset().
Referenced by draw_channel_headers().
|
static |
Definition at line 89 of file sequencer_channels_draw.cc.
Referenced by draw_channel_widget_lock(), and draw_channel_widget_mute().
Definition at line 322 of file sequencer_channels_draw.cc.
References channel_draw_context_init(), CTX_data_scene(), draw_background(), draw_channel_headers(), round_fl_to_int(), SEQ_editing_get(), UI_view2d_view_ortho(), and UI_view2d_view_restore().
Referenced by sequencer_channel_region_draw().
Definition at line 40 of file sequencer_channels_draw.cc.
References View2D::cur, and rctf::ymin.
Referenced by channel_draw_context_init().
Definition at line 51 of file sequencer_channels_draw.cc.
References UI_view2d_view_to_region_x().
Referenced by channel_draw_context_init().
|
static |
Definition at line 58 of file sequencer_channels_draw.cc.
Referenced by draw_channel_headers(), draw_channel_widget_lock(), draw_channel_widget_mute(), label_rect_init(), and widget_y_offset().
|
static |
Definition at line 182 of file sequencer_channels_draw.cc.
References BLI_rctf_init(), channel_index_y_min(), channel_is_being_renamed(), CTX_wm_space_seq(), icon_width_get(), max_ff(), and text_size_get().
Referenced by draw_channel_labels().
|
static |
Definition at line 175 of file sequencer_channels_draw.cc.
References UI_fontstyle_height_max(), UI_style_get_dpi(), and uiStyle::widget.
Referenced by label_rect_init().
|
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().