Blender
V5.3
source
blender
makesdna
DNA_text_types.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
10
11
#pragma once
12
13
#include "
BLI_enum_flags.hh
"
14
15
#include "
DNA_ID.h
"
16
#include "
DNA_listBase.h
"
17
18
namespace
blender
{
19
21
enum
eText_Flag
:
int
{
23
TXT_ISDIRTY
= 1 << 0,
25
TXT_ISMEM
= 1 << 2,
27
TXT_ISEXT
= 1 << 3,
29
TXT_ISSCRIPT
= 1 << 4,
30
31
TXT_FLAG_UNUSED_8
= 1 << 8,
/* cleared */
32
TXT_FLAG_UNUSED_9
= 1 << 9,
/* cleared */
33
35
TXT_TABSTOSPACES
= 1 << 10,
36
};
37
ENUM_OPERATORS
(
eText_Flag
)
38
39
struct
TextLine
{
40
struct
TextLine
*
next
=
nullptr
, *
prev
=
nullptr
;
41
42
char
*
line
=
nullptr
;
44
char
*
format
=
nullptr
;
45
int
len
= 0;
46
char
_pad0
[4] = {};
47
};
48
49
struct
Text
{
50
#ifdef __cplusplus
52
static
constexpr
ID_Type
id_type =
ID_TXT
;
53
#endif
54
55
ID
id
;
56
57
void
*
_pad1
=
nullptr
;
58
65
char
*
filepath
=
nullptr
;
66
70
void
*
compiled
=
nullptr
;
71
72
eText_Flag
flags
= {};
73
char
_pad0
[4] = {};
74
75
ListBaseT<TextLine>
lines
= {
nullptr
,
nullptr
};
76
TextLine
*
curl
=
nullptr
, *
sell
=
nullptr
;
77
int
curc
= 0,
selc
= 0;
78
79
double
mtime
= 0;
80
};
81
82
#define TXT_TABSIZE 4
83
84
}
// namespace blender
BLI_enum_flags.hh
ENUM_OPERATORS
#define ENUM_OPERATORS(_enum_type)
Definition
BLI_enum_flags.hh:35
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
blender::draw::overlay::Text
Definition
overlay_text.hh:24
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::ID_Type
ID_Type
Definition
DNA_ID_enums.h:136
blender::ID_TXT
@ ID_TXT
Definition
DNA_ID_enums.h:153
blender::eText_Flag
eText_Flag
Definition
DNA_text_types.h:21
blender::TXT_TABSTOSPACES
@ TXT_TABSTOSPACES
Definition
DNA_text_types.h:35
blender::TXT_ISDIRTY
@ TXT_ISDIRTY
Definition
DNA_text_types.h:23
blender::TXT_ISMEM
@ TXT_ISMEM
Definition
DNA_text_types.h:25
blender::TXT_FLAG_UNUSED_9
@ TXT_FLAG_UNUSED_9
Definition
DNA_text_types.h:32
blender::TXT_ISSCRIPT
@ TXT_ISSCRIPT
Definition
DNA_text_types.h:29
blender::TXT_ISEXT
@ TXT_ISEXT
Definition
DNA_text_types.h:27
blender::TXT_FLAG_UNUSED_8
@ TXT_FLAG_UNUSED_8
Definition
DNA_text_types.h:31
blender::ID
Definition
DNA_ID.h:415
blender::TextLine
Definition
DNA_text_types.h:39
blender::TextLine::prev
struct TextLine * prev
Definition
DNA_text_types.h:40
blender::TextLine::next
struct TextLine * next
Definition
DNA_text_types.h:40
blender::TextLine::format
char * format
Definition
DNA_text_types.h:44
blender::TextLine::len
int len
Definition
DNA_text_types.h:45
blender::TextLine::line
char * line
Definition
DNA_text_types.h:42
blender::TextLine::_pad0
char _pad0[4]
Definition
DNA_text_types.h:46
blender::Text::selc
int selc
Definition
DNA_text_types.h:77
blender::Text::compiled
void * compiled
Definition
DNA_text_types.h:70
blender::Text::_pad0
char _pad0[4]
Definition
DNA_text_types.h:73
blender::Text::flags
eText_Flag flags
Definition
DNA_text_types.h:72
blender::Text::filepath
char * filepath
Definition
DNA_text_types.h:65
blender::Text::sell
TextLine * sell
Definition
DNA_text_types.h:76
blender::Text::curl
TextLine * curl
Definition
DNA_text_types.h:76
blender::Text::curc
int curc
Definition
DNA_text_types.h:77
blender::Text::mtime
double mtime
Definition
DNA_text_types.h:79
blender::Text::_pad1
void * _pad1
Definition
DNA_text_types.h:57
blender::Text::id
ID id
Definition
DNA_text_types.h:55
blender::Text::lines
ListBaseT< TextLine > lines
Definition
DNA_text_types.h:75
Generated on
for Blender by
doxygen
1.18.0