Panda3D
config_text.h
1 // Filename: config_text.h
2 // Created by: drose (02Mar00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CONFIG_TEXT_H
16 #define CONFIG_TEXT_H
17 
18 #include "pandabase.h"
19 #include "notifyCategoryProxy.h"
20 #include "texture.h"
21 #include "configVariableBool.h"
22 #include "configVariableInt.h"
23 #include "configVariableDouble.h"
24 #include "configVariableFilename.h"
25 #include "configVariableEnum.h"
26 #include "textFont.h"
27 
28 class DSearchPath;
29 
30 NotifyCategoryDecl(text, EXPCL_PANDA_TEXT, EXPTP_PANDA_TEXT);
31 
32 extern ConfigVariableBool text_flatten;
33 extern ConfigVariableBool text_dynamic_merge;
34 extern ConfigVariableInt text_anisotropic_degree;
35 extern ConfigVariableInt text_texture_margin;
36 extern ConfigVariableDouble text_poly_margin;
37 extern ConfigVariableInt text_page_size;
38 extern ConfigVariableBool text_small_caps;
39 extern EXPCL_PANDA_TEXT ConfigVariableDouble text_small_caps_scale;
40 extern ConfigVariableFilename text_default_font;
41 extern EXPCL_PANDA_TEXT ConfigVariableDouble text_tab_width;
42 extern ConfigVariableInt text_push_properties_key;
43 extern ConfigVariableInt text_pop_properties_key;
44 extern ConfigVariableInt text_soft_hyphen_key;
45 extern ConfigVariableInt text_soft_break_key;
46 extern ConfigVariableInt text_embed_graphic_key;
47 extern wstring get_text_soft_hyphen_output();
48 extern ConfigVariableDouble text_hyphen_ratio;
49 extern wstring get_text_never_break_before();
50 extern ConfigVariableInt text_max_never_break;
51 extern EXPCL_PANDA_TEXT ConfigVariableDouble text_default_underscore_height;
52 
55 extern ConfigVariableEnum<SamplerState::WrapMode> text_wrap_mode;
56 extern ConfigVariableEnum<Texture::QualityLevel> text_quality_level;
57 extern ConfigVariableEnum<TextFont::RenderMode> text_render_mode;
58 
59 extern EXPCL_PANDA_TEXT void init_libtext();
60 
61 #endif
This is a convenience class to specialize ConfigVariable as a Filename type.
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This class specializes ConfigVariable as an enumerated type.
This is a convenience class to specialize ConfigVariable as an integer type.
This class stores a list of directories that can be searched, in order, to locate a particular file...
Definition: dSearchPath.h:32