GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

types.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC 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 GFC_PANGO_TYPES_HH 00025 #define GFC_PANGO_TYPES_HH 00026 00027 #ifndef __PANGO_TYPES_H__ 00028 #include <pango/pango-types.h> 00029 #endif 00030 00031 namespace GFC { 00032 00033 namespace G { 00034 class Unichar; 00035 } 00036 00037 namespace Pango { 00038 00041 00042 typedef PangoGlyph Glyph; 00043 00048 00049 enum Direction 00050 { 00051 DIRECTION_LTR = PANGO_DIRECTION_LTR, 00053 00054 DIRECTION_RTL = PANGO_DIRECTION_RTL, 00056 00057 DIRECTION_TTB_LTR = PANGO_DIRECTION_TTB_LTR, 00059 00060 DIRECTION_TTB_RTL = PANGO_DIRECTION_TTB_RTL, 00062 00063 DIRECTION_WEAK_LTR = PANGO_DIRECTION_WEAK_LTR, 00065 00066 DIRECTION_WEAK_RTL = PANGO_DIRECTION_WEAK_RTL, 00068 00069 DIRECTION_NEUTRAL = PANGO_DIRECTION_NEUTRAL 00071 }; 00072 00075 00076 Direction unichar_direction(G::Unichar ch); 00081 00082 Direction find_base_dir(const char *text, int length = -1); 00090 00092 00098 00099 class Rectangle 00100 { 00101 PangoRectangle rectangle_; 00102 00103 public: 00106 00107 Rectangle(); 00109 00110 Rectangle(int x, int y, int width, int height); 00116 00117 Rectangle(const PangoRectangle& rectangle); 00120 00124 00125 PangoRectangle* pango_rectangle() const; 00127 00128 operator PangoRectangle* () const; 00130 00131 int x() const; 00133 00134 int y() const; 00136 00137 int width() const; 00139 00140 int height() const; 00142 00143 int ascent() const; 00147 00148 int descent() const; 00152 00153 int lbearing() const; 00158 00159 int rbearing() const; 00164 00168 00169 void set(int x, int y, int width, int height); 00175 00177 }; 00178 00179 } // namespace Pango 00180 00181 } // namespace GFC 00182 00183 #include <gfc/pango/inline/types.inl> 00184 00185 #endif // GFC_PANGO_TYPES_HH 00186

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8