- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UAbstractToolkit Class Reference

Implements some platform independent methods of UToolkit. Provided for convenience. More...

#include <uabstracttoolkit.hpp>

Inheritance diagram for ufo::UAbstractToolkit:

ufo::UToolkit ufo::UObject ufo::UCollectable ufo::UXToolkit List of all members.

Public Member Functions

 UAbstractToolkit (UProperties *prop)
virtual UVersionInfo getVersionInfo () const
virtual std::string getUserName () const
virtual std::string getRealName () const
virtual std::string getHomeDir () const
virtual std::string getTmpDir () const
virtual std::string getPrgName () const
virtual void setPrgName (const std::string &prgName)
virtual std::string getFontDir () const
virtual std::string getProperty (const std::string &keyA) const
virtual void putProperty (const std::string &keyA, const std::string &valueA)
virtual void loadPlugin (const std::string &fileName)
virtual void loadPlugin (UPluginInfo plugin)
virtual void unloadPlugin (const std::string &pluginName)
virtual void unloadPlugin (UPluginInfo plugin)
virtual std::vector< UPluginInfo > getPluginInfos () const
virtual UVideoDriver * createVideoDriver ()
virtual ULookAndFeel * createLookAndFeel ()
virtual UStyleManager * getStyleManager ()
virtual UFontRenderer * createFontRenderer (const UFontInfo &fontInfo)
virtual UFontInfo queryFont (const UFontInfo &fontInfo)
virtual std::vector< UFontInfo > listFonts (const UFontInfo &fontInfo)
virtual std::vector< UFontInfo > listFonts ()

Protected Member Functions

virtual void initUFO ()
virtual void deinitUFO ()
virtual void initPlugins ()

Detailed Description

Implements some platform independent methods of UToolkit. Provided for convenience.

This class is not part of the official UFO API and may be changed without warning.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UAbstractToolkit::UAbstractToolkit (  UProperties *  prop  ) 
 

Parameters:
prop Use this properties object to initialize UFO properties.


Member Function Documentation

virtual UFontRenderer* ufo::UAbstractToolkit::createFontRenderer (  const UFontInfo &  fontInfo  )  [virtual]
 

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.

See also:
putProperty

Implements ufo::UToolkit.

virtual ULookAndFeel* ufo::UAbstractToolkit::createLookAndFeel (   )  [virtual]
 

This method is called internally at UFO context creation .

Implements ufo::UToolkit.

virtual std::string ufo::UAbstractToolkit::getFontDir (   )  const [virtual]
 

Returns a colon separated list of font directories. This is the search path for font ressource files.

Implements ufo::UToolkit.

virtual std::vector<UPluginInfo> ufo::UAbstractToolkit::getPluginInfos (   )  const [virtual]
 

Returns a vector with plugin info structs for all loaded plugins.

Implements ufo::UToolkit.

virtual std::string ufo::UAbstractToolkit::getProperty (  const std::string &  keyA  )  const [virtual]
 

Returns a UFO property registered at this toolkit. Properties so far: user_name, real_name, home_dir, tmp_dir, prg_name look_and_feel

Implements ufo::UToolkit.

virtual UVersionInfo ufo::UAbstractToolkit::getVersionInfo (   )  const [virtual]
 

Returns a version info struct with the version numbers of the linked ufo library.

Implements ufo::UToolkit.

virtual void ufo::UAbstractToolkit::initPlugins (   )  [protected, virtual]
 

Inits static UFO plugins.

virtual void ufo::UAbstractToolkit::initUFO (   )  [protected, virtual]
 

Inits UFO.

virtual std::vector<UFontInfo> ufo::UAbstractToolkit::listFonts (   )  [virtual]
 

Lists all available font renderers of the current font plugin.

Implements ufo::UToolkit.

virtual std::vector<UFontInfo> ufo::UAbstractToolkit::listFonts (  const UFontInfo &  fontInfo  )  [virtual]
 

Lists all available font renderers of the current font plugin which matches the given font info.

Implements ufo::UToolkit.

virtual void ufo::UAbstractToolkit::loadPlugin (  UPluginInfo  plugin  )  [virtual]
 

Manually loads a plugin.

Implements ufo::UToolkit.

virtual void ufo::UAbstractToolkit::loadPlugin (  const std::string &  fileName  )  [virtual]
 

Loads the plugin which is located within the given shared object file.

Implements ufo::UToolkit.

virtual void ufo::UAbstractToolkit::putProperty (  const std::string &  keyA,
const std::string &  valueA
)  [virtual]
 

Sets the property keyA with value valueA. UFO properties control the behaviour

Implements ufo::UToolkit.

virtual UFontInfo ufo::UAbstractToolkit::queryFont (  const UFontInfo &  fontInfo  )  [virtual]
 

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.

Implements ufo::UToolkit.

virtual void ufo::UAbstractToolkit::unloadPlugin (  UPluginInfo  plugin  )  [virtual]
 

Searches in the plugin cache for a matching plugin and unloads it.

Implements ufo::UToolkit.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt