Blender V4.5
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
40 char *filepath;
41
45 void *compiled;
46
47 int flags;
48 char _pad0[4];
49
52 int curc, selc;
53
54 double mtime;
56
57#define TXT_TABSIZE 4
58
60enum {
62 TXT_ISDIRTY = 1 << 0,
64 TXT_ISMEM = 1 << 2,
66 TXT_ISEXT = 1 << 3,
68 TXT_ISSCRIPT = 1 << 4,
69
70 TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */
71 TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */
72
75};
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:404
char * format
char * line
struct TextLine * prev
struct TextLine * next
char _pad0[4]
int flags
ListBase lines
TextLine * curl
double mtime
TextLine * sell
void * compiled
char _pad0[4]
char * filepath