Blender
V5.3
source
blender
editors
include
ED_screen_types.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2008 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
DNA_vec_types.h
"
12
13
namespace
blender
{
14
15
struct
ARegion
;
16
struct
Scene
;
17
struct
ViewLayer
;
18
19
/* ----------------------------------------------------- */
20
24
struct
ScreenAnimData
{
26
ARegion
*
region
;
27
28
/* The Scene and the View Layer that the animation timer is playing. */
29
Scene
*
scene
;
30
ViewLayer
*
view_layer
;
31
/* For sequencer scenes, account for scene syncing during playback. */
32
bool
do_scene_syncing
;
33
34
short
redraws
;
36
short
flag
;
38
int
sfra
;
40
int
nextfra
;
42
double
lagging_frame_count
;
44
bool
from_anim_edit
;
45
};
46
48
enum
{
50
ANIMPLAY_FLAG_REVERSE
= (1 << 0),
52
ANIMPLAY_FLAG_JUMPED
= (1 << 1),
54
ANIMPLAY_FLAG_SYNC
= (1 << 2),
56
ANIMPLAY_FLAG_NO_SYNC
= (1 << 3),
58
ANIMPLAY_FLAG_USE_NEXT_FRAME
= (1 << 4),
59
};
60
62
enum class
PlaybackDirection
:
int8_t
{
63
BACKWARDS
= -1,
64
FORWARDS
= 1,
65
};
66
68
enum class
PlaySyncMode
:
int8_t
{
69
UNCHANGED
= -1,
70
OFF
= 0,
71
ON
= 1,
72
};
73
78
struct
PreScrubbingState
{
79
PlaySyncMode
play_sync
=
PlaySyncMode::UNCHANGED
;
80
PlaybackDirection
play_mode
=
PlaybackDirection::FORWARDS
;
81
};
82
83
/* ----------------------------------------------------- */
84
86
enum
{
93
AZONE_AREA
= 1,
99
AZONE_REGION
,
103
AZONE_REGION_QUAD
,
107
AZONE_FULLSCREEN
,
112
AZONE_REGION_SCROLL
,
113
};
114
115
}
// namespace blender
DNA_vec_types.h
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::PlaySyncMode
PlaySyncMode
Definition
ED_screen_types.hh:68
blender::PlaySyncMode::UNCHANGED
@ UNCHANGED
Definition
ED_screen_types.hh:69
blender::PlaySyncMode::ON
@ ON
Definition
ED_screen_types.hh:71
blender::PlaybackDirection
PlaybackDirection
Definition
ED_screen_types.hh:62
blender::PlaybackDirection::BACKWARDS
@ BACKWARDS
Definition
ED_screen_types.hh:63
blender::PlaybackDirection::FORWARDS
@ FORWARDS
Definition
ED_screen_types.hh:64
blender::OFF
@ OFF
Definition
editcurve_pen.cc:133
blender::AZONE_REGION_QUAD
@ AZONE_REGION_QUAD
Definition
ED_screen_types.hh:103
blender::AZONE_REGION_SCROLL
@ AZONE_REGION_SCROLL
Definition
ED_screen_types.hh:112
blender::AZONE_AREA
@ AZONE_AREA
Definition
ED_screen_types.hh:93
blender::AZONE_FULLSCREEN
@ AZONE_FULLSCREEN
Definition
ED_screen_types.hh:107
blender::AZONE_REGION
@ AZONE_REGION
Definition
ED_screen_types.hh:99
blender::ANIMPLAY_FLAG_REVERSE
@ ANIMPLAY_FLAG_REVERSE
Definition
ED_screen_types.hh:50
blender::ANIMPLAY_FLAG_USE_NEXT_FRAME
@ ANIMPLAY_FLAG_USE_NEXT_FRAME
Definition
ED_screen_types.hh:58
blender::ANIMPLAY_FLAG_NO_SYNC
@ ANIMPLAY_FLAG_NO_SYNC
Definition
ED_screen_types.hh:56
blender::ANIMPLAY_FLAG_JUMPED
@ ANIMPLAY_FLAG_JUMPED
Definition
ED_screen_types.hh:52
blender::ANIMPLAY_FLAG_SYNC
@ ANIMPLAY_FLAG_SYNC
Definition
ED_screen_types.hh:54
blender::int8_t
signed char int8_t
Definition
BKE_text.h:76
blender::ARegion
Definition
DNA_screen_types.h:811
blender::PreScrubbingState
Definition
ED_screen_types.hh:78
blender::PreScrubbingState::play_sync
PlaySyncMode play_sync
Definition
ED_screen_types.hh:79
blender::PreScrubbingState::play_mode
PlaybackDirection play_mode
Definition
ED_screen_types.hh:80
blender::Scene
Definition
DNA_scene_types.h:2876
blender::ScreenAnimData
Definition
ED_screen_types.hh:24
blender::ScreenAnimData::region
ARegion * region
Definition
ED_screen_types.hh:26
blender::ScreenAnimData::flag
short flag
Definition
ED_screen_types.hh:36
blender::ScreenAnimData::nextfra
int nextfra
Definition
ED_screen_types.hh:40
blender::ScreenAnimData::lagging_frame_count
double lagging_frame_count
Definition
ED_screen_types.hh:42
blender::ScreenAnimData::scene
Scene * scene
Definition
ED_screen_types.hh:29
blender::ScreenAnimData::view_layer
ViewLayer * view_layer
Definition
ED_screen_types.hh:30
blender::ScreenAnimData::from_anim_edit
bool from_anim_edit
Definition
ED_screen_types.hh:44
blender::ScreenAnimData::do_scene_syncing
bool do_scene_syncing
Definition
ED_screen_types.hh:32
blender::ScreenAnimData::sfra
int sfra
Definition
ED_screen_types.hh:38
blender::ScreenAnimData::redraws
short redraws
Definition
ED_screen_types.hh:34
blender::ViewLayer
Definition
DNA_layer_types.h:262
Generated on
for Blender by
doxygen
1.18.0