ufontImpl.hpp

00001 /* ==================================================== ======== ======= *
00002 *
00003 *  ufontImpl.hpp
00004 *  Ubit Project
00005 *  Part of the Ubit Toolkit: A Brick Construction Game Model for Creating GUIs
00006 *  (C) 1999-2006 / EricLecolinet / ENST Paris / http://www.enst.fr/~elc/ubit
00007 *
00008 * ***********************************************************************
00009 * COPYRIGHT NOTICE :
00010 * THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY AND WITHOUT EVEN THE
00011 * IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
00012 * YOU CAN REDISTRIBUTE IT AND/OR MODIFY IT UNDER THE TERMS OF THE GNU
00013 * GENERAL PUBLIC LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION;
00014 * EITHER VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
00015 * SEE FILES 'COPYRIGHT' AND 'COPYING' FOR MORE DETAILS.
00016 * ***********************************************************************
00017 * ==================================================== [Elc:] ======= *
00018 * ==================================================== ====== ======= */
00019 
00020 #ifndef _ufontImpl_hpp_
00021 #define _ufontImpl_hpp_
00022 //pragma ident  "@(#)ufontImpl.hpp      ubit:05.05.00"
00023 namespace ubit {
00024 
00028 struct UFontDesc {
00029   UFontDesc() {}
00030   UFontDesc(const UFont&);
00031 
00032   void set(const UFont&);
00033   void merge(const UFont&); // merge only: set NON default values and combine styles.
00034   void setScale(float xyscale); // MUST be called to init the FontDesc !
00035 
00036   const UFontFamily* family;
00037   short styles, def_size, actual_size;
00038   mutable short index;
00039   float scaled_size;
00040 };
00041 
00042 }
00043 #endif
00044 /* ==================================================== [TheEnd] ======= */

Generated on Mon Jan 29 00:20:38 2007 for Ubit by  doxygen 1.4.7