14#ifndef TEXTPROPERTIESMANAGER_H
15#define TEXTPROPERTIESMANAGER_H
44class EXPCL_PANDA_TEXT TextPropertiesManager {
46 TextPropertiesManager();
47 ~TextPropertiesManager();
61 void write(std::ostream &out,
int indent_level = 0)
const;
70 typedef pmap<std::string, TextProperties> Properties;
71 Properties _properties;
73 typedef pmap<std::string, TextGraphic> Graphics;
76 static TextPropertiesManager *_global_ptr;
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This defines a special model that has been constructed for the purposes of embedding an arbitrary gra...
TextProperties get_properties(const std::string &name)
Returns the TextProperties associated with the indicated name.
void set_properties(const std::string &name, const TextProperties &properties)
Defines the TextProperties associated with the indicated name.
bool has_graphic(const std::string &name) const
Returns true if a TextGraphic structure has been associated with the indicated name,...
static TextPropertiesManager * get_global_ptr()
Returns the pointer to the global TextPropertiesManager object.
const TextGraphic * get_graphic_ptr(const std::string &name)
Returns a pointer to the TextGraphic with the indicated name, or NULL if there is no graphic with tha...
void clear_properties(const std::string &name)
Removes the named TextProperties structure from the manager.
void set_graphic(const std::string &name, const TextGraphic &graphic)
Defines the TextGraphic associated with the indicated name.
TextGraphic get_graphic(const std::string &name)
Returns the TextGraphic associated with the indicated name.
const TextProperties * get_properties_ptr(const std::string &name)
Returns a pointer to the TextProperties with the indicated name, or NULL if there is no properties wi...
void clear_graphic(const std::string &name)
Removes the named TextGraphic structure from the manager.
bool has_properties(const std::string &name) const
Returns true if a TextProperties structure has been associated with the indicated name,...
This defines the set of visual properties that may be assigned to the individual characters of the te...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.