~ubuntu-branches/ubuntu/lucid/m17n-lib/lucid

« back to all changes in this revision

Viewing changes to src/internal-gui.h

  • Committer: Bazaar Package Importer
  • Author(s): Harshula Jayasuriya
  • Date: 2008-06-23 23:02:47 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080623230247-7o0g4dmlvx1qoe0z
Tags: 1.5.1-1
* New upstream release 1.5.1. (Closes: #434041)
* debian/control: changed to Section: utils.
* debian/{copyright,rules}: updated.
* Updated to debhelper 7.
* Enable patch fix_loadable_modules_path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
   You should have received a copy of the GNU Lesser General Public
19
19
   License along with the m17n library; if not, write to the Free
20
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
20
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
21
   02111-1307, USA.  */
22
22
 
23
23
#ifndef _M_INTERNAL_GUI_H
124
124
 
125
125
typedef struct
126
126
{
127
 
  int pos, to;
128
 
  int c;
129
 
  unsigned code;
 
127
  MFLTGlyph g;
130
128
  MRealizedFace *rface;
131
 
  short width, ascent, descent, lbearing, rbearing;
132
 
  short xoff, yoff;
133
 
  unsigned enabled : 1;
134
129
  unsigned left_padding : 1;
135
130
  unsigned right_padding : 1;
136
 
  unsigned otf_encoded : 1;
 
131
  unsigned enabled : 1;
137
132
  unsigned bidi_level : 6;
138
 
  enum glyph_category category : 2;
139
 
  enum glyph_type type : 3;
140
 
  int combining_code;
 
133
  unsigned category : 2;
 
134
  unsigned type : 3;
141
135
} MGlyph;
142
136
 
143
137
struct MGlyphString
201
195
    (gstring)->used -= newlen;                                            \
202
196
  } while (0)
203
197
 
204
 
#define MAKE_COMBINING_CODE(base_y, base_x, add_y, add_x, off_y, off_x) \
205
 
  (((off_y) << 16)                                                      \
206
 
   | ((off_x) << 8)                                                     \
207
 
   | ((base_x) << 6)                                                    \
208
 
   | ((base_y) << 4)                                                    \
209
 
   | ((add_x) << 2)                                                     \
210
 
   | (add_y))
211
 
 
212
 
#define COMBINING_CODE_OFF_Y(code) (((code) >> 16) & 0xFF)
213
 
#define COMBINING_CODE_OFF_X(code) (((code) >> 8) & 0xFF)
214
 
#define COMBINING_CODE_BASE_X(code) (((code) >> 6) & 0x3)
215
 
#define COMBINING_CODE_BASE_Y(code) (((code) >> 4) & 0x3)
216
 
#define COMBINING_CODE_ADD_X(code) (((code) >> 2) & 0x3)
217
 
#define COMBINING_CODE_ADD_Y(code) ((code) & 0x3)
218
 
 
219
 
#define MAKE_COMBINING_CODE_BY_CLASS(class) (0x1000000 | class)
220
 
 
221
 
#define COMBINING_BY_CLASS_P(code) ((code) & 0x1000000)
222
 
 
223
 
#define COMBINING_CODE_CLASS(code) ((code) & 0xFFFFFF)
224
 
 
225
 
#define MAKE_PRECOMPUTED_COMBINDING_CODE() (0x2000000)
226
 
 
227
 
#define COMBINING_PRECOMPUTED_P(code) ((code) & 0x2000000)
228
 
 
229
198
typedef struct MGlyphString MGlyphString;
230
199
 
231
200
typedef struct