Blender V5.0
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 "DNA_ID.h"
14#include "DNA_listBase.h"
15
16typedef struct TextLine {
17 struct TextLine *next, *prev;
18
19 char *line;
21 char *format;
22 int len;
23 char _pad0[4];
25
26typedef struct Text {
27#ifdef __cplusplus
29 static constexpr ID_Type id_type = ID_TXT;
30#endif
31
33
34 void *_pad1;
35
42 char *filepath;
43
47 void *compiled;
48
49 int flags;
50 char _pad0[4];
51
54 int curc, selc;
55
56 double mtime;
58
59#define TXT_TABSIZE 4
60
62enum {
64 TXT_ISDIRTY = 1 << 0,
66 TXT_ISMEM = 1 << 2,
68 TXT_ISEXT = 1 << 3,
70 TXT_ISSCRIPT = 1 << 4,
71
72 TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */
73 TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */
74
77};
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_TXT
These structs are the foundation for all linked lists in the library system.
@ TXT_TABSTOSPACES
@ TXT_FLAG_UNUSED_9
@ TXT_FLAG_UNUSED_8
@ TXT_ISDIRTY
@ TXT_ISSCRIPT
@ TXT_ISMEM
@ TXT_ISEXT
Definition DNA_ID.h:414
char * format
char * line
struct TextLine * prev
struct TextLine * next
char _pad0[4]
int flags
ListBase lines
void * _pad1
TextLine * curl
double mtime
TextLine * sell
void * compiled
char _pad0[4]
char * filepath