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

item.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_ITEM_HH 00025 #define GFC_PANGO_ITEM_HH 00026 00027 #ifndef GFC_OBJECT_HH 00028 #include <gfc/object.hh> 00029 #endif 00030 00031 #ifndef __PANGO_ITEM_H__ 00032 #include <pango/pango-item.h> 00033 #endif 00034 00035 #ifndef _CPP_VECTOR 00036 #include <vector> 00037 #endif 00038 00039 namespace GFC { 00040 00041 namespace Pango { 00042 00043 class Attribute; 00044 class Font; 00045 00053 00054 class Analysis 00055 { 00056 PangoAnalysis analysis_; 00057 00058 public: 00061 00062 PangoAnalysis* pango_analysis() const; 00064 00065 PangoEngineShape* shape_engine() const; 00067 00068 PangoEngineLang* lang_engine() const; 00070 00071 Pango::Font *font() const; 00073 00074 guint8 level() const; 00076 00077 PangoLanguage* language() const; 00079 00080 bool extra_attributes(std::vector<Pointer<Attribute> >& attrs) const; 00084 00086 }; 00087 00093 00094 class Item : public GFC::Object 00095 { 00096 PangoItem *item_; 00097 00098 public: 00101 00102 Item(); 00104 00105 explicit Item(PangoItem *item, bool copy); 00115 00116 Item(const Item& src); 00119 00120 ~Item(); 00122 00123 Item& operator=(const Item& src); 00126 00130 00131 PangoItem* pango_item() const; 00133 00134 operator PangoItem* () const; 00136 00137 int offset() const; 00139 00140 int length() const; 00142 00143 int num_chars() const; 00145 00146 const Analysis& analysis() const; 00148 00152 00153 Pointer<Item> split(int split_index, int split_offset); 00167 00169 }; 00170 00173 00174 std::vector<Pointer<Item> > reorder_items(const std::vector<Pointer<Item> >& logical_items); 00182 00184 00185 } // namespace Pango 00186 00187 } // namespace GFC 00188 00189 #include <gfc/pango/inline/item.inl> 00190 00191 #endif // GFC_PANGO_ITEM_HH 00192

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