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

ucss.hpp

00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : ucss.hpp 00008 begin : Wed Mar 02 2005 00009 $ $ 00010 ***************************************************************************/ 00011 00012 #ifndef UCSS_HPP 00013 #define UCSS_HPP 00014 00015 #include "ufo/uobject.hpp" 00016 00017 #include <iostream> 00018 #include <map> 00019 00020 namespace ufo { 00021 00022 class UStyleHints; 00023 00031 class UFO_EXPORT UCss : public UObject { 00032 public: 00033 UCss(); 00034 UCss(const std::string & filename); 00036 virtual ~UCss(); 00037 00038 void load(const std::string & filename); 00039 void load(std::istream & stream); 00040 00041 UStyleHints * getStyleHints(const std::string & key); 00042 std::map<std::string, UStyleHints*> getStyleHints(); 00043 00044 public: 00045 static UStyleHints * parseBlock(std::istream & stream, UStyleHints * hints = NULL); 00046 00047 private: 00048 std::map<std::string, UStyleHints*> m_hints; 00049 }; 00050 00051 } // namespace ufo 00052 00053 #endif // UCSS_HPP

The libUFO Project - written by Johannes Schmidt