Blender
V3.3
source
blender
makesdna
DNA_vfont_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. */
3
11
#pragma once
12
13
#include "
DNA_ID.h
"
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
struct
PackedFile
;
20
struct
VFontData
;
21
22
typedef
struct
VFont
{
23
ID
id
;
24
26
char
filepath
[1024];
27
28
struct
VFontData
*
data
;
29
struct
PackedFile
*
packedfile
;
30
31
/* runtime only, holds memory for freetype to read from
32
* TODO: replace this with #blf_font_new() style loading. */
33
struct
PackedFile
*
temp_pf
;
34
}
VFont
;
35
36
/* *************** FONT ****************** */
37
#define FO_EDIT 0
38
#define FO_CURS 1
39
#define FO_CURSUP 2
40
#define FO_CURSDOWN 3
41
#define FO_DUPLI 4
42
#define FO_PAGEUP 8
43
#define FO_PAGEDOWN 9
44
#define FO_SELCHANGE 10
45
46
/* BKE_vfont_to_curve will move the cursor in these cases */
47
#define FO_CURS_IS_MOTION(mode) (ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN))
48
49
#define FO_BUILTIN_NAME "<builtin>"
50
51
#ifdef __cplusplus
52
}
53
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
VFont
struct VFont VFont
ID
Definition:
DNA_ID.h:368
PackedFile
Definition:
DNA_packedFile_types.h:14
VFontData
Definition:
BKE_vfontdata.h:21
VFont
Definition:
DNA_vfont_types.h:22
VFont::data
struct VFontData * data
Definition:
DNA_vfont_types.h:28
VFont::id
ID id
Definition:
DNA_vfont_types.h:23
VFont::filepath
char filepath[1024]
Definition:
DNA_vfont_types.h:26
VFont::temp_pf
struct PackedFile * temp_pf
Definition:
DNA_vfont_types.h:33
VFont::packedfile
struct PackedFile * packedfile
Definition:
DNA_vfont_types.h:29
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1