Blender  V3.3
ED_markers.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Scene;
15 struct TimeMarker;
16 struct bAnimContext;
17 struct bContext;
18 struct wmKeyConfig;
19 
20 /* -------------------------------------------------------------------- */
24 /* flags for drawing markers */
25 enum {
26  DRAW_MARKERS_LINES = (1 << 0),
27  DRAW_MARKERS_LOCAL = (1 << 1),
28  DRAW_MARKERS_MARGIN = (1 << 2),
29 };
30 
31 /* Draw Scene-Markers in time window */
32 void ED_markers_draw(const struct bContext *C, int flag);
33 
36 /* -------------------------------------------------------------------- */
48 
61  ListBase *markers, struct Scene *scene, int mode, float value, char side);
62 
72 
73 void ED_markers_get_minmax(ListBase *markers, short sel, float *first, float *last);
74 
80 void ED_markers_make_cfra_list(ListBase *markers, ListBase *lb, short sel);
81 
82 void ED_markers_deselect_all(ListBase *markers, int action);
83 
88 
91 /* -------------------------------------------------------------------- */
98 void ED_operatortypes_marker(void);
102 void ED_keymap_marker(struct wmKeyConfig *keyconf);
103 
108 
111 #ifdef __cplusplus
112 }
113 #endif
void ED_keymap_marker(struct wmKeyConfig *keyconf)
struct TimeMarker * ED_markers_get_first_selected(ListBase *markers)
Definition: anim_markers.c:344
void ED_markers_draw(const struct bContext *C, int flag)
void debug_markers_print_list(struct ListBase *markers)
Definition: anim_markers.c:361
ListBase * ED_animcontext_get_markers(const struct bAnimContext *ac)
int ED_markers_find_nearest_marker_time(ListBase *markers, float x)
Definition: anim_markers.c:163
void ED_markers_get_minmax(ListBase *markers, short sel, float *first, float *last)
Definition: anim_markers.c:169
void ED_operatortypes_marker(void)
struct TimeMarker * ED_markers_find_nearest_marker(ListBase *markers, float x)
Definition: anim_markers.c:144
ListBase * ED_context_get_markers(const struct bContext *C)
void ED_markers_make_cfra_list(ListBase *markers, ListBase *lb, short sel)
Definition: anim_markers.c:296
void ED_markers_deselect_all(ListBase *markers, int action)
Definition: anim_markers.c:320
@ DRAW_MARKERS_MARGIN
Definition: ED_markers.h:28
@ DRAW_MARKERS_LOCAL
Definition: ED_markers.h:27
@ DRAW_MARKERS_LINES
Definition: ED_markers.h:26
int ED_markers_post_apply_transform(ListBase *markers, struct Scene *scene, int mode, float value, char side)
Definition: anim_markers.c:103
#define C
Definition: RandGen.cpp:25
Scene scene
const vector< Marker > & markers