Blender
V2.93
source
blender
makesdna
DNA_text_types.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
26
#pragma once
27
28
#include "
DNA_ID.h
"
29
#include "
DNA_listBase.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
typedef
struct
TextLine
{
36
struct
TextLine
*
next
, *
prev
;
37
38
char
*
line
;
40
char
*
format
;
42
int
len
;
43
char
_pad0
[4];
44
}
TextLine
;
45
46
typedef
struct
Text
{
47
ID
id
;
48
55
char
*
filepath
;
56
60
void
*
compiled
;
61
62
int
flags
;
63
char
_pad0
[4];
64
65
ListBase
lines
;
66
TextLine
*
curl
, *
sell
;
67
int
curc
,
selc
;
68
69
double
mtime
;
70
}
Text
;
71
72
#define TXT_TABSIZE 4
73
75
enum
{
77
TXT_ISDIRTY
= 1 << 0,
79
TXT_ISMEM
= 1 << 2,
81
TXT_ISEXT
= 1 << 3,
83
TXT_ISSCRIPT
= 1 << 4,
84
85
TXT_FLAG_UNUSED_8
= 1 << 8,
/* cleared */
86
TXT_FLAG_UNUSED_9
= 1 << 9,
/* cleared */
87
89
TXT_TABSTOSPACES
= 1 << 10,
90
};
91
92
#ifdef __cplusplus
93
}
94
#endif
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.
Text
struct Text Text
TXT_TABSTOSPACES
@ TXT_TABSTOSPACES
Definition:
DNA_text_types.h:89
TXT_FLAG_UNUSED_9
@ TXT_FLAG_UNUSED_9
Definition:
DNA_text_types.h:86
TXT_FLAG_UNUSED_8
@ TXT_FLAG_UNUSED_8
Definition:
DNA_text_types.h:85
TXT_ISDIRTY
@ TXT_ISDIRTY
Definition:
DNA_text_types.h:77
TXT_ISSCRIPT
@ TXT_ISSCRIPT
Definition:
DNA_text_types.h:83
TXT_ISMEM
@ TXT_ISMEM
Definition:
DNA_text_types.h:79
TXT_ISEXT
@ TXT_ISEXT
Definition:
DNA_text_types.h:81
TextLine
struct TextLine TextLine
ID
Definition:
DNA_ID.h:273
ListBase
Definition:
DNA_listBase.h:46
TextLine
Definition:
DNA_text_types.h:35
TextLine::format
char * format
Definition:
DNA_text_types.h:40
TextLine::line
char * line
Definition:
DNA_text_types.h:38
TextLine::prev
struct TextLine * prev
Definition:
DNA_text_types.h:36
TextLine::len
int len
Definition:
DNA_text_types.h:42
TextLine::next
struct TextLine * next
Definition:
DNA_text_types.h:36
TextLine::_pad0
char _pad0[4]
Definition:
DNA_text_types.h:43
Text
Definition:
DNA_text_types.h:46
Text::flags
int flags
Definition:
DNA_text_types.h:62
Text::lines
ListBase lines
Definition:
DNA_text_types.h:65
Text::curl
TextLine * curl
Definition:
DNA_text_types.h:66
Text::selc
int selc
Definition:
DNA_text_types.h:67
Text::mtime
double mtime
Definition:
DNA_text_types.h:69
Text::sell
TextLine * sell
Definition:
DNA_text_types.h:66
Text::curc
int curc
Definition:
DNA_text_types.h:67
Text::compiled
void * compiled
Definition:
DNA_text_types.h:60
Text::_pad0
char _pad0[4]
Definition:
DNA_text_types.h:63
Text::filepath
char * filepath
Definition:
DNA_text_types.h:55
Text::id
ID id
Definition:
DNA_text_types.h:47
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1