Laxkit
0.0.7.1
|
The font manager used by anXApp to simplify keeping track of what fonts are loaded. More...
Public Member Functions | |
virtual LaxFont * | MakeFontFromFile (const char *file, double size, int nid)=0 |
Create and return a LaxFont, but do not store it within the fontmanager. | |
virtual LaxFont * | MakeFontFromStr (const char *fcstr, int nid)=0 |
Create and return a LaxFont, but do not store it within the fontmanager. | |
virtual LaxFont * | MakeFont (const char *family, const char *style, double size, int nid)=0 |
Create and return a LaxFont, but do not store it within the fontmanager. | |
virtual LaxFont * | Add (LaxFont *font, int nid)=0 |
Add an existing font to the fontmananger. | |
virtual LaxFont * | CheckOut (int id)=0 |
Add a count of 1 to the LaxFont with the given id, and return the corresponding font object. Returns the LaxFont object, or NULL if object not found. | |
Public Member Functions inherited from Laxkit::anObject | |
anObject () | |
Set object_id=getUniqueNumber(). | |
virtual | ~anObject () |
Empty virtual destructor. | |
virtual const char * | whattype () |
Returns the type of anObject. | |
virtual anObject * | duplicate (anObject *ref=NULL) |
virtual int | inc_count () |
Increment the data's count by 1. Returns count. | |
virtual int | dec_count () |
Decrement the count of the data, deleting if count is less than or equal to 0. | |
virtual int | the_count () |
Additional Inherited Members | |
Public Attributes inherited from Laxkit::anObject | |
int | suppress_debug |
DeleteRefCountedFunc | deleteMe |
Called when the count is decremented to 0. | |
unsigned long | object_id |
char * | object_idstr |
Protected Attributes inherited from Laxkit::anObject | |
int | _count |
The reference count of the object. |
The font manager used by anXApp to simplify keeping track of what fonts are loaded.
Add an existing font to the fontmananger.
If nid<=0 then the id is from getUniqueNumber().
Returns the new font object, or NULL on failure.
Implemented in Laxkit::FontManagerXlib, and Laxkit::FontManagerCairo.
Add a count of 1 to the LaxFont with the given id, and return the corresponding font object. Returns the LaxFont object, or NULL if object not found.
Please remember that when you are all done with the font, you must decrement its count.
Implemented in Laxkit::FontManagerXlib, and Laxkit::FontManagerCairo.
|
pure virtual |
Create and return a LaxFont, but do not store it within the fontmanager.
If nid<=0, then a random id is given to the font.
Implemented in Laxkit::FontManagerXlib, and Laxkit::FontManagerCairo.
Referenced by Laxkit::DisplayerXlib::font(), and Laxkit::RulerWindow::RulerWindow().
|
pure virtual |
Create and return a LaxFont, but do not store it within the fontmanager.
If nid<=0, then a random id is given to the font.
Implemented in Laxkit::FontManagerXlib, and Laxkit::FontManagerCairo.
Create and return a LaxFont, but do not store it within the fontmanager.
str is a FontConfig string. If nid<=0, then a random id is given to the font.
Implemented in Laxkit::FontManagerXlib, and Laxkit::FontManagerCairo.