Blender  V2.93
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];
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 
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
ID and Library types, which are fundamental for sdna.
These structs are the foundation for all linked lists in the library system.
struct Text Text
@ TXT_TABSTOSPACES
@ TXT_FLAG_UNUSED_9
@ TXT_FLAG_UNUSED_8
@ TXT_ISDIRTY
@ TXT_ISSCRIPT
@ TXT_ISMEM
@ TXT_ISEXT
struct TextLine TextLine
Definition: DNA_ID.h:273
char * format
char * line
struct TextLine * prev
struct TextLine * next
char _pad0[4]
int flags
ListBase lines
TextLine * curl
int selc
double mtime
TextLine * sell
int curc
void * compiled
char _pad0[4]
char * filepath