Blender
V2.93
source
blender
makesdna
DNA_vfont_types.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
27
#pragma once
28
29
#include "
DNA_ID.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
struct
PackedFile
;
36
struct
VFontData
;
37
38
typedef
struct
VFont
{
39
ID
id
;
40
42
char
filepath
[1024];
43
44
struct
VFontData
*
data
;
45
struct
PackedFile
*
packedfile
;
46
47
/* runtime only, holds memory for freetype to read from
48
* TODO, replace this with blf_font_new() style loading */
49
struct
PackedFile
*
temp_pf
;
50
}
VFont
;
51
52
/* *************** FONT ****************** */
53
#define FO_EDIT 0
54
#define FO_CURS 1
55
#define FO_CURSUP 2
56
#define FO_CURSDOWN 3
57
#define FO_DUPLI 4
58
#define FO_PAGEUP 8
59
#define FO_PAGEDOWN 9
60
#define FO_SELCHANGE 10
61
62
/* BKE_vfont_to_curve will move the cursor in these cases */
63
#define FO_CURS_IS_MOTION(mode) (ELEM(mode, FO_CURSUP, FO_CURSDOWN, FO_PAGEUP, FO_PAGEDOWN))
64
65
#define FO_BUILTIN_NAME "<builtin>"
66
67
#ifdef __cplusplus
68
}
69
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
VFont
struct VFont VFont
ID
Definition:
DNA_ID.h:273
PackedFile
Definition:
DNA_packedFile_types.h:30
VFontData
Definition:
BLI_vfontdata.h:37
VFont
Definition:
DNA_vfont_types.h:38
VFont::data
struct VFontData * data
Definition:
DNA_vfont_types.h:44
VFont::id
ID id
Definition:
DNA_vfont_types.h:39
VFont::filepath
char filepath[1024]
Definition:
DNA_vfont_types.h:42
VFont::temp_pf
struct PackedFile * temp_pf
Definition:
DNA_vfont_types.h:49
VFont::packedfile
struct PackedFile * packedfile
Definition:
DNA_vfont_types.h:45
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1