Back to index

lightning-sunbird  0.9+nobinonly
pango-types.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  * Pango
00003  * pango-types.h:
00004  *
00005  * ***** BEGIN LICENSE BLOCK *****
00006  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00007  *
00008  * The contents of this file are subject to the Mozilla Public License Version
00009  * 1.1 (the "License"); you may not use this file except in compliance with
00010  * the License. You may obtain a copy of the License at
00011  * http://www.mozilla.org/MPL/
00012  *
00013  * Software distributed under the License is distributed on an "AS IS" basis,
00014  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00015  * for the specific language governing rights and limitations under the
00016  * License.
00017  *
00018  * The Original Code is the Pango Library (www.pango.org).
00019  *
00020  * The Initial Developer of the Original Code is
00021  * Red Hat Software.
00022  * Portions created by the Initial Developer are Copyright (C) 1999
00023  * the Initial Developer. All Rights Reserved.
00024  *
00025  * Contributor(s):
00026  *
00027  * Alternatively, the contents of this file may be used under the terms of
00028  * either of the GNU General Public License Version 2 or later (the "GPL"),
00029  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00030  * in which case the provisions of the GPL or the LGPL are applicable instead
00031  * of those above. If you wish to allow use of your version of this file only
00032  * under the terms of either the GPL or the LGPL, and not to allow others to
00033  * use your version of this file under the terms of the MPL, indicate your
00034  * decision by deleting the provisions above and replace them with the notice
00035  * and other provisions required by the GPL or the LGPL. If you do not delete
00036  * the provisions above, a recipient may use your version of this file under
00037  * the terms of any one of the MPL, the GPL or the LGPL.
00038  *
00039  * ***** END LICENSE BLOCK ***** */
00040 
00041 #ifndef __PANGO_TYPES_H__
00042 #define __PANGO_TYPES_H__
00043 
00044 #include <glib.h>
00045 
00046 typedef struct _PangoliteLangRange PangoliteLangRange;
00047 typedef struct _PangoliteLogAttr PangoliteLogAttr;
00048 
00049 typedef struct _PangoliteEngineShape PangoliteEngineShape;
00050 
00051 /* A index of a glyph into a font. Rendering system dependent
00052  */
00053 typedef guint32 PangoliteGlyph;
00054 
00055 /* Information about a segment of text with a consistent
00056  * shaping/language engine and bidirectional level
00057  */
00058 typedef enum {
00059   PANGO_DIRECTION_LTR,
00060   PANGO_DIRECTION_RTL,
00061   PANGO_DIRECTION_TTB_LTR,
00062   PANGO_DIRECTION_TTB_RTL
00063 } PangoliteDirection;
00064 
00065 /* Language tagging information
00066  */
00067 struct _PangoliteLangRange
00068 {
00069   gint  start;
00070   gint  length;
00071   gchar *lang;
00072 };
00073 
00074 /* Will be of more use when run information is stored */
00075 typedef struct _PangoliteAnalysis PangoliteAnalysis;
00076 
00077 struct _PangoliteAnalysis
00078 {
00079   char             *fontCharset;
00080   PangoliteEngineShape *shape_engine;
00081   /*  guint8           level; */
00082   PangoliteDirection   aDir;
00083 };
00084 
00085 #ifndef MOZ_WIDGET_GTK2 
00086 /*glib2 already defined following 2 types*/
00087 typedef guint32 gunichar;
00088 typedef guint16 gunichar2;
00089 #endif
00090 
00091 #define G_CONST_RETURN const
00092 
00093 #ifdef __cplusplus
00094 extern "C" {
00095 #endif /* __cplusplus */
00096 
00097 #ifdef __cplusplus
00098 }
00099 #endif /* __cplusplus */
00100 
00101 #endif /* __PANGO_TYPES_H__ */