Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

types.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2002-2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018  
00023 
00024 #ifndef INTI_PANGO_TYPES_H
00025 #define INTI_PANGO_TYPES_H
00026 
00027 #ifndef __PANGO_TYPES_H__
00028 #include <pango/pango-types.h>
00029 #endif
00030 
00031 namespace Inti {
00032 
00033 namespace Pango {
00034         
00037 
00038 typedef PangoGlyph Glyph;
00039 
00042 
00043 enum Direction
00044 {
00045         DIRECTION_LTR = PANGO_DIRECTION_LTR,
00047 
00048         DIRECTION_RTL = PANGO_DIRECTION_RTL,
00050 
00051         DIRECTION_TTB_LTR = PANGO_DIRECTION_TTB_LTR,
00053         
00054         DIRECTION_TTB_RTL = PANGO_DIRECTION_TTB_RTL
00056 };
00057 
00063 
00064 class Rectangle
00065 {
00066         PangoRectangle rectangle_;
00067 
00068 public:
00071 
00072         Rectangle();
00074 
00075         Rectangle(int x, int y, int width, int height);
00081         
00082         Rectangle(const PangoRectangle& rectangle);
00085 
00089 
00090         PangoRectangle* pango_rectangle() const { return const_cast<PangoRectangle*>(&rectangle_); }
00092 
00093         operator PangoRectangle* () const;
00095 
00096         int x() const;
00098 
00099         int y() const;
00101 
00102         int width() const;
00104         
00105         int height() const;
00107         
00108         int ascent() const;
00112 
00113         int descent() const;
00117 
00118         int lbearing() const;
00123 
00124         int rbearing() const;
00129 
00133 
00134         void set(int x, int y, int width, int height);
00140         
00142 };
00143 
00144 } // namespace Pango
00145 
00146 } // namespace Inti
00147 
00148 #endif // INTI_PANGO_TYPES_H
00149 
Main Page - Footer


Generated on Sun Sep 14 20:08:04 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002