Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:49:54

0001 /* Pango
0002  * pango-bidi-type.h: Bidirectional Character Types
0003  *
0004  * Copyright (C) 2008 Jürg Billeter <j@bitron.ch>
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Library General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Library General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Library General Public
0017  * License along with this library; if not, write to the
0018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0019  * Boston, MA 02111-1307, USA.
0020  */
0021 
0022 #ifndef __PANGO_BIDI_TYPE_H__
0023 #define __PANGO_BIDI_TYPE_H__
0024 
0025 #include <glib.h>
0026 
0027 #include <pango/pango-version-macros.h>
0028 #include <pango/pango-direction.h>
0029 
0030 G_BEGIN_DECLS
0031 
0032 #ifndef PANGO_DISABLE_DEPRECATED
0033 /**
0034  * PangoBidiType:
0035  * @PANGO_BIDI_TYPE_L: Left-to-Right
0036  * @PANGO_BIDI_TYPE_LRE: Left-to-Right Embedding
0037  * @PANGO_BIDI_TYPE_LRO: Left-to-Right Override
0038  * @PANGO_BIDI_TYPE_R: Right-to-Left
0039  * @PANGO_BIDI_TYPE_AL: Right-to-Left Arabic
0040  * @PANGO_BIDI_TYPE_RLE: Right-to-Left Embedding
0041  * @PANGO_BIDI_TYPE_RLO: Right-to-Left Override
0042  * @PANGO_BIDI_TYPE_PDF: Pop Directional Format
0043  * @PANGO_BIDI_TYPE_EN: European Number
0044  * @PANGO_BIDI_TYPE_ES: European Number Separator
0045  * @PANGO_BIDI_TYPE_ET: European Number Terminator
0046  * @PANGO_BIDI_TYPE_AN: Arabic Number
0047  * @PANGO_BIDI_TYPE_CS: Common Number Separator
0048  * @PANGO_BIDI_TYPE_NSM: Nonspacing Mark
0049  * @PANGO_BIDI_TYPE_BN: Boundary Neutral
0050  * @PANGO_BIDI_TYPE_B: Paragraph Separator
0051  * @PANGO_BIDI_TYPE_S: Segment Separator
0052  * @PANGO_BIDI_TYPE_WS: Whitespace
0053  * @PANGO_BIDI_TYPE_ON: Other Neutrals
0054  * @PANGO_BIDI_TYPE_LRI: Left-to-Right isolate. Since 1.48.6
0055  * @PANGO_BIDI_TYPE_RLI: Right-to-Left isolate. Since 1.48.6
0056  * @PANGO_BIDI_TYPE_FSI: First strong isolate. Since 1.48.6
0057  * @PANGO_BIDI_TYPE_PDI: Pop directional isolate. Since 1.48.6
0058  *
0059  * `PangoBidiType` represents the bidirectional character
0060  * type of a Unicode character.
0061  *
0062  * The values in this enumeration are specified by the
0063  * [Unicode bidirectional algorithm](http://www.unicode.org/reports/tr9/).
0064  *
0065  * Since: 1.22
0066  * Deprecated: 1.44: Use fribidi for this information
0067  **/
0068 typedef enum {
0069   /* Strong types */
0070   PANGO_BIDI_TYPE_L,
0071   PANGO_BIDI_TYPE_LRE,
0072   PANGO_BIDI_TYPE_LRO,
0073   PANGO_BIDI_TYPE_R,
0074   PANGO_BIDI_TYPE_AL,
0075   PANGO_BIDI_TYPE_RLE,
0076   PANGO_BIDI_TYPE_RLO,
0077 
0078   /* Weak types */
0079   PANGO_BIDI_TYPE_PDF,
0080   PANGO_BIDI_TYPE_EN,
0081   PANGO_BIDI_TYPE_ES,
0082   PANGO_BIDI_TYPE_ET,
0083   PANGO_BIDI_TYPE_AN,
0084   PANGO_BIDI_TYPE_CS,
0085   PANGO_BIDI_TYPE_NSM,
0086   PANGO_BIDI_TYPE_BN,
0087 
0088   /* Neutral types */
0089   PANGO_BIDI_TYPE_B,
0090   PANGO_BIDI_TYPE_S,
0091   PANGO_BIDI_TYPE_WS,
0092   PANGO_BIDI_TYPE_ON,
0093 
0094   /* Explicit formatting */
0095   PANGO_BIDI_TYPE_LRI,
0096   PANGO_BIDI_TYPE_RLI,
0097   PANGO_BIDI_TYPE_FSI,
0098   PANGO_BIDI_TYPE_PDI
0099 } PangoBidiType;
0100 
0101 PANGO_DEPRECATED_IN_1_44
0102 PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST;
0103 
0104 PANGO_DEPRECATED_IN_1_44
0105 PangoDirection pango_unichar_direction      (gunichar     ch) G_GNUC_CONST;
0106 PANGO_DEPRECATED_IN_1_44
0107 PangoDirection pango_find_base_dir          (const gchar *text,
0108                          gint         length);
0109 
0110 PANGO_DEPRECATED_IN_1_30_FOR(g_unichar_get_mirror_char)
0111 gboolean       pango_get_mirror_char        (gunichar     ch,
0112                          gunichar    *mirrored_ch);
0113 #endif
0114 
0115 G_END_DECLS
0116 
0117 #endif /* __PANGO_BIDI_TYPE_H__ */