Blender V4.3
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 */
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 {
28
35 char *filepath;
36
40 void *compiled;
41
42 int flags;
43 char _pad0[4];
44
47 int curc, selc;
48
49 double mtime;
51
52#define TXT_TABSIZE 4
53
55enum {
57 TXT_ISDIRTY = 1 << 0,
59 TXT_ISMEM = 1 << 2,
61 TXT_ISEXT = 1 << 3,
63 TXT_ISSCRIPT = 1 << 4,
64
65 TXT_FLAG_UNUSED_8 = 1 << 8, /* cleared */
66 TXT_FLAG_UNUSED_9 = 1 << 9, /* cleared */
67
70};
ID and Library types, which are fundamental for SDNA.
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
struct Text Text
struct TextLine TextLine
Definition DNA_ID.h:413
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