#include <utoolkit.hpp>
Inheritance diagram for ufo::UToolkit:
Public Member Functions | |
virtual void | makeContextCurrent (UContext *contextA)=0 |
virtual UContext * | getCurrentContext () const =0 |
virtual UVersionInfo | getVersionInfo () const =0 |
virtual UDimension | getScreenSize () const =0 |
virtual UInsets | getScreenInsets () const =0 |
virtual int | getScreenDepth () const =0 |
virtual std::string | getUserName () const =0 |
virtual std::string | getRealName () const =0 |
virtual std::string | getHomeDir () const =0 |
virtual std::string | getTmpDir () const =0 |
virtual std::string | getPrgName () const =0 |
virtual void | setPrgName (const std::string &prgName)=0 |
virtual void | loadPlugin (const std::string &fileName)=0 |
virtual void | loadPlugin (UPluginInfo plugin)=0 |
virtual void | unloadPlugin (const std::string &pluginName)=0 |
virtual void | unloadPlugin (UPluginInfo plugin)=0 |
virtual std::vector< UPluginInfo > | getPluginInfos () const =0 |
virtual UVideoDriver * | createVideoDriver ()=0 |
virtual ULookAndFeel * | createLookAndFeel ()=0 |
virtual UStyleManager * | getStyleManager ()=0 |
virtual std::string | getFontDir () const =0 |
virtual UFontRenderer * | createFontRenderer (const UFontInfo &fontInfo)=0 |
virtual UFontInfo | queryFont (const UFontInfo &fontInfo)=0 |
virtual std::vector< UFontInfo > | listFonts (const UFontInfo &fontInfo)=0 |
virtual std::vector< UFontInfo > | listFonts ()=0 |
virtual void | sleep (uint32_t millis)=0 |
virtual uint32_t | getTicks () const =0 |
virtual std::string | getProperty (const std::string &keyA) const =0 |
virtual void | putProperty (const std::string &keyA, const std::string &valueA)=0 |
Static Public Member Functions | |
UToolkit * | getToolkit () |
void | setToolkit (UToolkit *toolkitA) |
Static Protected Attributes | |
UToolkit * | m_instance |
An abstract class that represents data shared by all UContext objects and controls the interaction of UContext objects. Furthermore it stores several system properties, can load plugins and encapsulates some important system functions.
|
Creates a font renderer with the given font familiy, style and point size. The toolkit should use the active font plugin. The font plugin is chosen using the 'font' property.
Implemented in ufo::UAbstractToolkit.
|
|
Creates a look and feel using the currently default laf plugin. The plugin is chosen using the 'look_and_feel' property. This method is called by UFO backends at UFO context creation .
Implemented in ufo::UAbstractToolkit.
|
|
Returns a colon separated list of font directories. This is the search path for font ressource files. Implemented in ufo::UAbstractToolkit.
|
|
Returns a vector with plugin info structs for all loaded plugins. Implemented in ufo::UAbstractToolkit.
|
|
Returns a UFO property registered at this toolkit. Properties so far: user_name, real_name, home_dir, tmp_dir, prg_name look_and_feel Implemented in ufo::UAbstractToolkit.
|
|
Implemented in ufo::UXToolkit.
|
|
Screen insets are task bar, desktop menu bars and such.
Implemented in ufo::UXToolkit.
|
|
Implemented in ufo::UXToolkit.
|
|
Returns the time in milliseconds since lib initializing Implemented in ufo::UXToolkit.
|
|
Returns the registered Toolkit. The auxiliary lib must ensure that this function does not return NULL. |
|
Returns a version info struct with the version numbers of the linked ufo library. Implemented in ufo::UAbstractToolkit.
|
|
Lists all available font renderers of the current font plugin. Implemented in ufo::UAbstractToolkit.
|
|
Lists all available font renderers of the current font plugin which matches the given font info. Implemented in ufo::UAbstractToolkit.
|
|
Manually loads a plugin. Implemented in ufo::UAbstractToolkit.
|
|
Loads the plugin which is located within the given shared object file. Implemented in ufo::UAbstractToolkit.
|
|
Implemented in ufo::UXToolkit.
|
|
Sets the property keyA with value valueA. UFO properties control the behaviour Implemented in ufo::UAbstractToolkit.
|
|
Returns a font info which describes what would have been returned by createFontRenderer. This means, if the user requests an antialiased font, but there exists none, this method returns which would be returned instead. Implemented in ufo::UAbstractToolkit.
|
|
This function should not be invoked by client code, but by the auxiliary lib, which implements this UToolkit. |
|
Waits a specified number of milliseconds before returning. Delay will wait at least the specified time, but possible longer due to OS scheduling.
Implemented in ufo::UXToolkit.
|
|
Searches in the plugin cache for a matching plugin and unloads it. Implemented in ufo::UAbstractToolkit.
|
|
the toolkit instance |