Blender  V3.3
DNA_text_types.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
10 #pragma once
11 
12 #include "DNA_ID.h"
13 #include "DNA_listBase.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef struct TextLine {
20  struct TextLine *next, *prev;
21 
22  char *line;
24  char *format;
25  int len;
26  char _pad0[4];
28 
29 typedef struct Text {
30  ID id;
31 
38  char *filepath;
39 
43  void *compiled;
44 
45  int flags;
46  char _pad0[4];
47 
50  int curc, selc;
51 
52  double mtime;
53 } Text;
54 
55 #define TXT_TABSIZE 4
56 
58 enum {
60  TXT_ISDIRTY = 1 << 0,
62  TXT_ISMEM = 1 << 2,
64  TXT_ISEXT = 1 << 3,
66  TXT_ISSCRIPT = 1 << 4,
67 
68  TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */
69  TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */
70 
72  TXT_TABSTOSPACES = 1 << 10,
73 };
74 
75 #ifdef __cplusplus
76 }
77 #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:368
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