~ubuntu-branches/ubuntu/hardy/vala/hardy

« back to all changes in this revision

Viewing changes to vapi/pango.vapi

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge, Marc-Andre Lureau, Kumar Appaiah, Sebastian Dröge
  • Date: 2007-11-26 08:16:57 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071126081657-pbycv1holrkgalk3
Tags: 0.1.5-1
[ Marc-Andre Lureau ]
* New Upstream Version; closes: #452870.
* debian/libvala-dev.install
  + Rename gidlgen to vala-gen-instrospect
  + Remove deleted .pl files

[ Kumar Appaiah ]
* debian/control:
  + Add Homepage field.
  + Modify XS-Vcs-Git and XS-Vcs-Broswer to Vcs-Git and Vcs-Browser
    respectively, as dpkg now supports them.

[ Sebastian Dröge ]
* debian/libvala-dev.install,
  debian/rules:
  + Also ship vala-gen-project.
* debian/control:
  + Build depend on libgtk2.0-dev (>= 2.10.0) and libglib2.0-dev (>= 2.12.0).
* debian/patches/01_vala-gen-project-paths.patch,
  debian/rules:
  + Adjust the paths in vala-gen-project for the license files, etc.
    Needs again an automake-touch hack for timestamp issues.
* debian/control,
  debian/libvala-dev.install,
  debian/valac.install,
  debian/vala-utils.install:
  + Move vala-gen-introspect/vapigen to valac and vala-gen-project/vapicheck
    to vala-utils.
* debian/patches/01_vala-gen-project-paths.patch,
  debian/control:
  + Fix paths for COPYING and INSTALL files and depend on automake1.10 for
    this.

[ Kumar Appaiah ]
* debian/watch: Fix watch file to point to new download location.
  (Closes: #452870)

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                MIDDLE,
59
59
                END,
60
60
        }
61
 
        [CCode (cprefix = "PANGO_FONT_MASK_", cheader_filename = "pango/pango.h")]
62
 
        public enum FontMask {
63
 
                FAMILY,
64
 
                STYLE,
65
 
                VARIANT,
66
 
                WEIGHT,
67
 
                STRETCH,
68
 
                SIZE,
69
 
                GRAVITY,
70
 
        }
71
61
        [CCode (cprefix = "PANGO_GRAVITY_", cheader_filename = "pango/pango.h")]
72
62
        public enum Gravity {
73
63
                SOUTH,
211
201
                CHAR,
212
202
                WORD_CHAR,
213
203
        }
 
204
        [CCode (cprefix = "PANGO_FONT_MASK_", cheader_filename = "pango/pango.h")]
 
205
        [Flags]
 
206
        public enum FontMask {
 
207
                FAMILY,
 
208
                STYLE,
 
209
                VARIANT,
 
210
                WEIGHT,
 
211
                STRETCH,
 
212
                SIZE,
 
213
                GRAVITY,
 
214
        }
214
215
        [CCode (cheader_filename = "pango/pango.h")]
215
216
        public class Language : GLib.Boxed {
216
217
                public weak string! to_string ();
218
219
                public static weak Pango.Language from_string (string language);
219
220
                public static weak Pango.Language get_default ();
220
221
                public weak string get_sample_string ();
221
 
                public static GLib.Type get_type ();
222
222
                public bool includes_script (Pango.Script script);
223
223
                public bool matches (string range_list);
224
224
        }
225
225
        [CCode (cheader_filename = "pango/pango.h")]
226
 
        public class ATSUIFont : Pango.Font {
227
 
                public static GLib.Type get_type ();
228
 
        }
229
 
        [CCode (cheader_filename = "pango/pango.h")]
230
 
        public class CairoFont : GLib.Object {
231
 
                public weak Cairo.ScaledFont get_scaled_font ();
232
 
                public static GLib.Type get_type ();
233
 
        }
234
 
        [CCode (cheader_filename = "pango/pango.h")]
235
 
        public class CairoFontMap : GLib.Object {
236
 
                public weak Pango.Context create_context ();
237
 
                public static weak Pango.FontMap get_default ();
238
 
                public Cairo.FontType get_font_type ();
239
 
                public double get_resolution ();
240
 
                public static GLib.Type get_type ();
241
 
                public CairoFontMap ();
242
 
                public CairoFontMap.for_font_type (Cairo.FontType fonttype);
243
 
                public void set_resolution (double dpi);
244
 
        }
245
 
        [CCode (cheader_filename = "pango/pango.h")]
246
 
        public class Context : GLib.Object {
247
 
                public Pango.Direction get_base_dir ();
248
 
                public Pango.Gravity get_base_gravity ();
249
 
                public weak Pango.FontDescription get_font_description ();
250
 
                public weak Pango.FontMap get_font_map ();
251
 
                public Pango.Gravity get_gravity ();
252
 
                public Pango.GravityHint get_gravity_hint ();
253
 
                public weak Pango.Language get_language ();
254
 
                public Pango.Matrix get_matrix ();
255
 
                public weak Pango.FontMetrics get_metrics (Pango.FontDescription desc, Pango.Language language);
256
 
                public static GLib.Type get_type ();
257
 
                [NoArrayLength]
258
 
                public void list_families (Pango.FontFamily[] families, int n_families);
259
 
                public weak Pango.Font load_font (Pango.FontDescription desc);
260
 
                public weak Pango.Fontset load_fontset (Pango.FontDescription desc, Pango.Language language);
261
 
                public void set_base_dir (Pango.Direction direction);
262
 
                public void set_base_gravity (Pango.Gravity gravity);
263
 
                public void set_font_description (Pango.FontDescription desc);
264
 
                public void set_gravity_hint (Pango.GravityHint hint);
265
 
                public void set_language (Pango.Language language);
266
 
                public void set_matrix (out Pango.Matrix matrix);
267
 
        }
268
 
        [CCode (cheader_filename = "pango/pango.h")]
269
 
        public class Font : GLib.Object {
270
 
                public weak Pango.FontDescription describe ();
271
 
                public weak Pango.FontDescription describe_with_absolute_size ();
272
 
                [NoArrayLength]
273
 
                public static void descriptions_free (Pango.FontDescription[] descs, int n_descs);
274
 
                public weak Pango.EngineShape find_shaper (Pango.Language language, uint ch);
275
 
                public weak Pango.Coverage get_coverage (Pango.Language language);
276
 
                public weak Pango.FontMap get_font_map ();
277
 
                public void get_glyph_extents (uint glyph, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
278
 
                public weak Pango.FontMetrics get_metrics (Pango.Language language);
279
 
                public static GLib.Type get_type ();
280
 
        }
281
 
        [CCode (cheader_filename = "pango/pango.h")]
282
 
        public class Fontset : GLib.Object {
283
 
                public void @foreach (Pango.FontsetForeachFunc func, pointer data);
284
 
                public weak Pango.Font get_font (uint wc);
285
 
                public weak Pango.FontMetrics get_metrics ();
286
 
                public static GLib.Type get_type ();
287
 
        }
288
 
        [CCode (cheader_filename = "pango/pango.h")]
289
 
        public class FontFace : GLib.Object {
290
 
                public weak Pango.FontDescription describe ();
291
 
                public weak string get_face_name ();
292
 
                public static GLib.Type get_type ();
293
 
                public bool is_synthesized ();
294
 
                [NoArrayLength]
295
 
                public void list_sizes (int[] sizes, int n_sizes);
296
 
        }
297
 
        [CCode (cheader_filename = "pango/pango.h")]
298
 
        public class FontFamily : GLib.Object {
299
 
                public weak string get_name ();
300
 
                public static GLib.Type get_type ();
301
 
                public bool is_monospace ();
302
 
                [NoArrayLength]
303
 
                public void list_faces (Pango.FontFace[] faces, int n_faces);
304
 
        }
305
 
        [CCode (cheader_filename = "pango/pango.h")]
306
 
        public class FontMap : GLib.Object {
307
 
                public static GLib.Type get_type ();
308
 
                [NoArrayLength]
309
 
                public void list_families (Pango.FontFamily[] families, int n_families);
310
 
                public weak Pango.Font load_font (Pango.Context context, Pango.FontDescription desc);
311
 
                public weak Pango.Fontset load_fontset (Pango.Context context, Pango.FontDescription desc, Pango.Language language);
312
 
        }
313
 
        [CCode (cheader_filename = "pango/pango.h")]
314
 
        public class Layout : GLib.Object {
315
 
                public void context_changed ();
316
 
                public weak Pango.Layout copy ();
317
 
                public Pango.Alignment get_alignment ();
318
 
                public weak Pango.AttrList get_attributes ();
319
 
                public bool get_auto_dir ();
320
 
                public weak Pango.Context get_context ();
321
 
                public void get_cursor_pos (int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle weak_pos);
322
 
                public Pango.EllipsizeMode get_ellipsize ();
323
 
                public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
324
 
                public weak Pango.FontDescription get_font_description ();
325
 
                public int get_indent ();
326
 
                public weak Pango.LayoutIter get_iter ();
327
 
                public bool get_justify ();
328
 
                public weak Pango.LayoutLine get_line (int line);
329
 
                public int get_line_count ();
330
 
                public weak Pango.LayoutLine get_line_readonly (int line);
331
 
                public weak GLib.SList get_lines ();
332
 
                public weak GLib.SList get_lines_readonly ();
333
 
                [NoArrayLength]
334
 
                public void get_log_attrs (Pango.LogAttr[] attrs, int n_attrs);
335
 
                public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
336
 
                public void get_pixel_size (int width, int height);
337
 
                public bool get_single_paragraph_mode ();
338
 
                public void get_size (int width, int height);
339
 
                public int get_spacing ();
340
 
                public weak Pango.TabArray get_tabs ();
341
 
                public weak string get_text ();
342
 
                public static GLib.Type get_type ();
343
 
                public int get_unknown_glyphs_count ();
344
 
                public int get_width ();
345
 
                public Pango.WrapMode get_wrap ();
346
 
                public void index_to_line_x (int index_, bool trailing, int line, int x_pos);
347
 
                public void index_to_pos (int index_, out Pango.Rectangle pos);
348
 
                public bool is_ellipsized ();
349
 
                public bool is_wrapped ();
350
 
                public void move_cursor_visually (bool strong, int old_index, int old_trailing, int direction, int new_index, int new_trailing);
351
 
                public Layout (Pango.Context context);
352
 
                public void set_alignment (Pango.Alignment alignment);
353
 
                public void set_attributes (Pango.AttrList attrs);
354
 
                public void set_auto_dir (bool auto_dir);
355
 
                public void set_ellipsize (Pango.EllipsizeMode ellipsize);
356
 
                public void set_font_description (Pango.FontDescription desc);
357
 
                public void set_indent (int indent);
358
 
                public void set_justify (bool justify);
359
 
                public void set_markup (string markup, int length);
360
 
                public void set_markup_with_accel (string markup, int length, unichar accel_marker, unichar accel_char);
361
 
                public void set_single_paragraph_mode (bool setting);
362
 
                public void set_spacing (int spacing);
363
 
                public void set_tabs (Pango.TabArray tabs);
364
 
                public void set_text (string text, int length);
365
 
                public void set_width (int width);
366
 
                public void set_wrap (Pango.WrapMode wrap);
367
 
                public bool xy_to_index (int x, int y, int index_, int trailing);
368
 
        }
369
 
        [CCode (cheader_filename = "pango/pango.h")]
370
 
        public class Renderer : GLib.Object {
371
 
                public Pango.Matrix matrix;
372
 
                public void activate ();
373
 
                public void deactivate ();
374
 
                public virtual void draw_error_underline (int x, int y, int width, int height);
375
 
                public virtual void draw_glyph (Pango.Font font, uint glyph, double x, double y);
376
 
                public virtual void draw_glyphs (Pango.Font font, Pango.GlyphString glyphs, int x, int y);
377
 
                public void draw_layout (Pango.Layout layout, int x, int y);
378
 
                public void draw_layout_line (Pango.LayoutLine line, int x, int y);
379
 
                public virtual void draw_rectangle (Pango.RenderPart part, int x, int y, int width, int height);
380
 
                public virtual void draw_trapezoid (Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22);
381
 
                public Pango.Color get_color (Pango.RenderPart part);
382
 
                public Pango.Matrix get_matrix ();
383
 
                public static GLib.Type get_type ();
384
 
                public virtual void part_changed (Pango.RenderPart part);
385
 
                public void set_color (Pango.RenderPart part, out Pango.Color color);
386
 
                public void set_matrix (out Pango.Matrix matrix);
387
 
        }
388
 
        [CCode (cheader_filename = "pango/pango.h")]
389
226
        public class Analysis {
390
227
                public weak Pango.EngineShape shape_engine;
391
228
                public weak Pango.EngineLang lang_engine;
400
237
        [CCode (cheader_filename = "pango/pango.h")]
401
238
        public class AttrClass {
402
239
                public Pango.AttrType type;
 
240
                public GLib.Callback copy;
 
241
                public GLib.Callback destroy;
 
242
                public GLib.Callback equal;
403
243
        }
404
244
        [CCode (cheader_filename = "pango/pango.h")]
405
245
        public class AttrColor {
427
267
                public weak Pango.AttrIterator copy ();
428
268
                public weak Pango.Attribute get (Pango.AttrType type);
429
269
                public weak GLib.SList get_attrs ();
430
 
                public void get_font (Pango.FontDescription desc, Pango.Language language, GLib.SList extra_attrs);
 
270
                public void get_font (Pango.FontDescription desc, out Pango.Language language, GLib.SList extra_attrs);
431
271
                public bool next ();
432
272
                public void range (int start, int end);
433
273
        }
437
277
                public weak Pango.Language value;
438
278
                public AttrLanguage (Pango.Language language);
439
279
        }
440
 
        [CCode (ref_function = "pango_attr_list_ref", unref_function = "pango_attr_list_unref", cheader_filename = "pango/pango.h")]
441
 
        public class AttrList : GLib.Boxed {
442
 
                public void change (Pango.Attribute attr);
443
 
                public weak Pango.AttrList copy ();
444
 
                public weak Pango.AttrList filter (Pango.AttrFilterFunc func, pointer data);
445
 
                public weak Pango.AttrIterator get_iterator ();
446
 
                public static GLib.Type get_type ();
447
 
                public void insert (Pango.Attribute attr);
448
 
                public void insert_before (Pango.Attribute attr);
449
 
                public AttrList ();
450
 
                public void splice (Pango.AttrList other, int pos, int len);
451
 
        }
452
280
        [CCode (cheader_filename = "pango/pango.h")]
453
281
        public class AttrShape {
454
282
                public weak Pango.Attribute attr;
479
307
                public uint end_index;
480
308
                public weak Pango.Attribute copy ();
481
309
                public bool equal (Pango.Attribute attr2);
 
310
                public void init (pointer klass);
 
311
        }
 
312
        [CCode (cheader_filename = "pango/pango.h")]
 
313
        public class ContextClass {
482
314
        }
483
315
        [CCode (ref_function = "pango_coverage_ref", unref_function = "pango_coverage_unref", cheader_filename = "pango/pango.h")]
484
316
        public class Coverage {
498
330
        [CCode (cheader_filename = "pango/pango.h")]
499
331
        public class EngineShape {
500
332
        }
 
333
        [CCode (cheader_filename = "pango/pango.h")]
 
334
        public class Glyph {
 
335
        }
 
336
        [CCode (cheader_filename = "pango/pango.h")]
 
337
        public class GlyphGeometry {
 
338
                public int width;
 
339
                public int x_offset;
 
340
                public int y_offset;
 
341
        }
 
342
        [CCode (cheader_filename = "pango/pango.h")]
 
343
        public class GlyphInfo {
 
344
                public uint glyph;
 
345
                public weak Pango.GlyphGeometry geometry;
 
346
                public weak Pango.GlyphVisAttr attr;
 
347
        }
 
348
        [CCode (cheader_filename = "pango/pango.h")]
 
349
        public class GlyphUnit {
 
350
        }
 
351
        [CCode (cheader_filename = "pango/pango.h")]
 
352
        public class GlyphVisAttr {
 
353
                public uint is_cluster_start;
 
354
        }
 
355
        [CCode (cheader_filename = "pango/pango.h")]
 
356
        public class LayoutClass {
 
357
        }
 
358
        [CCode (cheader_filename = "pango/pango.h")]
 
359
        public class LayoutRun {
 
360
        }
 
361
        [CCode (cheader_filename = "pango/pango.h")]
 
362
        public class ScriptIter {
 
363
                public void get_range (out string start, out string end, Pango.Script script);
 
364
                public ScriptIter (string text, int length);
 
365
                public bool next ();
 
366
        }
 
367
        [CCode (ref_function = "pango_attr_list_ref", unref_function = "pango_attr_list_unref", cheader_filename = "pango/pango.h")]
 
368
        public class AttrList : GLib.Boxed {
 
369
                public void change (Pango.Attribute attr);
 
370
                public weak Pango.AttrList copy ();
 
371
                public weak Pango.AttrList filter (Pango.AttrFilterFunc func, pointer data);
 
372
                public weak Pango.AttrIterator get_iterator ();
 
373
                public void insert (Pango.Attribute attr);
 
374
                public void insert_before (Pango.Attribute attr);
 
375
                public AttrList ();
 
376
                public void splice (Pango.AttrList other, int pos, int len);
 
377
        }
501
378
        [CCode (copy_function = "pango_font_description_copy", cheader_filename = "pango/pango.h")]
502
379
        public class FontDescription : GLib.Boxed {
503
380
                public bool better_match (Pango.FontDescription old_match, Pango.FontDescription new_match);
512
389
                public bool get_size_is_absolute ();
513
390
                public Pango.Stretch get_stretch ();
514
391
                public Pango.Style get_style ();
515
 
                public static GLib.Type get_type ();
516
392
                public Pango.Variant get_variant ();
517
393
                public Pango.Weight get_weight ();
518
394
                public uint hash ();
540
416
                public int get_descent ();
541
417
                public int get_strikethrough_position ();
542
418
                public int get_strikethrough_thickness ();
543
 
                public static GLib.Type get_type ();
544
419
                public int get_underline_position ();
545
420
                public int get_underline_thickness ();
546
421
        }
547
 
        [CCode (cheader_filename = "pango/pango.h")]
548
 
        public class GlyphGeometry {
549
 
                public int width;
550
 
                public int x_offset;
551
 
                public int y_offset;
552
 
        }
553
 
        [CCode (cheader_filename = "pango/pango.h")]
554
 
        public class GlyphInfo {
555
 
                public uint glyph;
556
 
                public weak Pango.GlyphGeometry geometry;
557
 
                public weak Pango.GlyphVisAttr attr;
558
 
        }
559
 
        [CCode (cheader_filename = "pango/pango.h")]
560
 
        public class GlyphItem {
 
422
        [CCode (copy_function = "pango_glyph_item_copy", cheader_filename = "pango/pango.h")]
 
423
        public class GlyphItem : GLib.Boxed {
561
424
                public weak Pango.Item item;
562
425
                public weak Pango.GlyphString glyphs;
563
426
                public weak GLib.SList apply_attrs (string text, Pango.AttrList list);
 
427
                public weak Pango.GlyphItem copy ();
564
428
                [NoArrayLength]
565
429
                public void letter_space (string text, Pango.LogAttr[] log_attrs, int letter_spacing);
566
430
                public weak Pango.GlyphItem split (string text, int split_index);
570
434
                public int num_glyphs;
571
435
                public weak Pango.GlyphInfo glyphs;
572
436
                public int log_clusters;
 
437
                public int space;
573
438
                public weak Pango.GlyphString copy ();
574
439
                public void extents (Pango.Font font, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
575
440
                public void extents_range (int start, int end, Pango.Font font, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
576
441
                public void get_logical_widths (string text, int length, int embedding_level, int logical_widths);
577
 
                public static GLib.Type get_type ();
578
442
                public int get_width ();
579
443
                public void index_to_x (string text, int length, Pango.Analysis analysis, int index_, bool trailing, int x_pos);
580
444
                public GlyphString ();
581
445
                public void set_size (int new_len);
582
446
                public void x_to_index (string text, int length, Pango.Analysis analysis, int x_pos, int index_, int trailing);
583
447
        }
584
 
        [CCode (cheader_filename = "pango/pango.h")]
585
 
        public class GlyphVisAttr {
586
 
                public uint is_cluster_start;
587
 
        }
588
448
        [CCode (copy_function = "pango_item_copy", cheader_filename = "pango/pango.h")]
589
449
        public class Item : GLib.Boxed {
590
450
                public int offset;
592
452
                public int num_chars;
593
453
                public weak Pango.Analysis analysis;
594
454
                public weak Pango.Item copy ();
595
 
                public static GLib.Type get_type ();
596
455
                public Item ();
597
456
                public weak Pango.Item split (int split_index, int split_offset);
598
457
        }
599
 
        [CCode (cheader_filename = "pango/pango.h")]
 
458
        [CCode (copy_function = "pango_layout_iter_copy", cheader_filename = "pango/pango.h")]
600
459
        public class LayoutIter : GLib.Boxed {
601
460
                public bool at_last_line ();
 
461
                public weak Pango.LayoutIter copy ();
602
462
                public int get_baseline ();
603
463
                public void get_char_extents (out Pango.Rectangle logical_rect);
604
464
                public void get_cluster_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
605
465
                public int get_index ();
 
466
                public weak Pango.Layout get_layout ();
606
467
                public void get_layout_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
607
468
                public weak Pango.LayoutLine get_line ();
608
469
                public void get_line_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
611
472
                public weak Pango.LayoutRun get_run ();
612
473
                public void get_run_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
613
474
                public weak Pango.LayoutRun get_run_readonly ();
614
 
                public static GLib.Type get_type ();
615
475
                public bool next_char ();
616
476
                public bool next_cluster ();
617
477
                public bool next_line ();
627
487
                public uint resolved_dir;
628
488
                public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
629
489
                public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
630
 
                public static GLib.Type get_type ();
631
490
                [NoArrayLength]
632
491
                public void get_x_ranges (int start_index, int end_index, int[] ranges, int n_ranges);
633
492
                public void index_to_x (int index_, bool trailing, int x_pos);
634
493
                public bool x_to_index (int x_pos, int index_, int trailing);
635
494
        }
636
 
        [CCode (cheader_filename = "pango/pango.h")]
637
 
        public class LayoutRun {
638
 
                public weak Pango.Item item;
639
 
                public weak Pango.GlyphString glyphs;
640
 
        }
641
 
        [CCode (cheader_filename = "pango/pango.h")]
642
 
        public class ScriptIter {
643
 
                public void get_range (out string start, out string end, Pango.Script script);
644
 
                public ScriptIter (string text, int length);
645
 
                public bool next ();
646
 
        }
647
495
        [CCode (copy_function = "pango_tab_array_copy", cheader_filename = "pango/pango.h")]
648
496
        public class TabArray : GLib.Boxed {
649
497
                public weak Pango.TabArray copy ();
650
498
                public bool get_positions_in_pixels ();
651
499
                public int get_size ();
652
500
                public void get_tab (int tab_index, Pango.TabAlign alignment, int location);
653
 
                public void get_tabs (Pango.TabAlign alignments, int locations);
654
 
                public static GLib.Type get_type ();
 
501
                public void get_tabs (out Pango.TabAlign alignments, int locations);
655
502
                public TabArray (int initial_size, bool positions_in_pixels);
656
503
                public TabArray.with_positions (int size, bool positions_in_pixels, Pango.TabAlign first_alignment, ...);
657
504
                public void resize (int new_size);
658
505
                public void set_tab (int tab_index, Pango.TabAlign alignment, int location);
659
506
        }
660
507
        [CCode (cheader_filename = "pango/pango.h")]
661
 
        public class Win32FontCache {
662
 
                public pointer load (pointer logfont);
663
 
                public pointer loadw (pointer logfont);
664
 
                public Win32FontCache ();
665
 
                public void unload (pointer hfont);
666
 
        }
667
 
        [CCode (cheader_filename = "pango/pango.h")]
668
 
        public class Attr {
669
 
                public static weak Pango.Attribute background_new (ushort red, ushort green, ushort blue);
670
 
                public static weak Pango.Attribute fallback_new (bool enable_fallback);
671
 
                public static weak Pango.Attribute family_new (string family);
672
 
                public static weak Pango.Attribute foreground_new (ushort red, ushort green, ushort blue);
673
 
                public static weak Pango.Attribute gravity_hint_new (Pango.GravityHint hint);
674
 
                public static weak Pango.Attribute gravity_new (Pango.Gravity gravity);
675
 
                public static weak Pango.Attribute letter_spacing_new (int letter_spacing);
676
 
                public static weak Pango.Attribute rise_new (int rise);
677
 
                public static weak Pango.Attribute scale_new (double scale_factor);
678
 
                public static weak Pango.Attribute stretch_new (Pango.Stretch stretch);
679
 
                public static weak Pango.Attribute strikethrough_color_new (ushort red, ushort green, ushort blue);
680
 
                public static weak Pango.Attribute strikethrough_new (bool strikethrough);
681
 
                public static weak Pango.Attribute style_new (Pango.Style style);
682
 
                public static Pango.AttrType type_register (string name);
683
 
                public static weak Pango.Attribute underline_color_new (ushort red, ushort green, ushort blue);
684
 
                public static weak Pango.Attribute underline_new (Pango.Underline underline);
685
 
                public static weak Pango.Attribute variant_new (Pango.Variant variant);
686
 
                public static weak Pango.Attribute weight_new (Pango.Weight weight);
687
 
        }
688
 
        [CCode (cheader_filename = "pango/pango.h")]
689
 
        public class Cairo {
690
 
                public static weak Cairo.FontOptions context_get_font_options (Pango.Context context);
691
 
                public static double context_get_resolution (Pango.Context context);
692
 
                public static Pango.CairoShapeRendererFunc context_get_shape_renderer (Pango.Context context, pointer data);
693
 
                public static void context_set_font_options (Pango.Context context, Cairo.FontOptions options);
694
 
                public static void context_set_resolution (Pango.Context context, double dpi);
695
 
                public static void context_set_shape_renderer (Pango.Context context, Pango.CairoShapeRendererFunc func, pointer data, GLib.DestroyNotify dnotify);
696
 
                public static weak Pango.Layout create_layout (Cairo.Context cr);
697
 
                public static void error_underline_path (Cairo.Context cr, double x, double y, double width, double height);
698
 
                public static void glyph_string_path (Cairo.Context cr, Pango.Font font, Pango.GlyphString glyphs);
699
 
                public static void layout_line_path (Cairo.Context cr, Pango.LayoutLine line);
700
 
                public static void layout_path (Cairo.Context cr, Pango.Layout layout);
701
 
                public static void show_error_underline (Cairo.Context cr, double x, double y, double width, double height);
702
 
                public static void show_glyph_string (Cairo.Context cr, Pango.Font font, Pango.GlyphString glyphs);
703
 
                public static void show_layout (Cairo.Context cr, Pango.Layout layout);
704
 
                public static void show_layout_line (Cairo.Context cr, Pango.LayoutLine line);
705
 
                public static void update_context (Cairo.Context cr, Pango.Context context);
706
 
                public static void update_layout (Cairo.Context cr, Pango.Layout layout);
707
 
        }
708
 
        [CCode (cheader_filename = "pango/pango.h")]
709
 
        public class Units {
710
 
                public static int from_double (double d);
711
 
                public static double to_double (int i);
712
 
        }
713
 
        [CCode (cheader_filename = "pango/pango.h")]
714
 
        public class Version {
715
 
                public static weak string check (int required_major, int required_minor, int required_micro);
716
 
                public static weak string string ();
717
 
        }
718
 
        [CCode (cheader_filename = "pango/pango.h")]
719
 
        public struct Color {
720
 
                public ushort red;
721
 
                public ushort green;
722
 
                public ushort blue;
723
 
                public Pango.Color copy ();
724
 
                public void free ();
725
 
                public static GLib.Type get_type ();
726
 
                public bool parse (string spec);
727
 
                public weak string to_string ();
 
508
        public class Context : GLib.Object {
 
509
                public Pango.Direction get_base_dir ();
 
510
                public Pango.Gravity get_base_gravity ();
 
511
                public weak Pango.FontDescription get_font_description ();
 
512
                public weak Pango.FontMap get_font_map ();
 
513
                public Pango.Gravity get_gravity ();
 
514
                public Pango.GravityHint get_gravity_hint ();
 
515
                public weak Pango.Language get_language ();
 
516
                public Pango.Matrix get_matrix ();
 
517
                public weak Pango.FontMetrics get_metrics (Pango.FontDescription desc, Pango.Language language);
 
518
                [NoArrayLength]
 
519
                public void list_families (Pango.FontFamily[] families, int n_families);
 
520
                public weak Pango.Font load_font (Pango.FontDescription desc);
 
521
                public weak Pango.Fontset load_fontset (Pango.FontDescription desc, Pango.Language language);
 
522
                public void set_base_dir (Pango.Direction direction);
 
523
                public void set_base_gravity (Pango.Gravity gravity);
 
524
                public void set_font_description (Pango.FontDescription desc);
 
525
                public void set_gravity_hint (Pango.GravityHint hint);
 
526
                public void set_language (Pango.Language language);
 
527
                public void set_matrix (out Pango.Matrix matrix);
 
528
        }
 
529
        [CCode (cheader_filename = "pango/pango.h")]
 
530
        public class Font : GLib.Object {
 
531
                public weak Pango.FontDescription describe ();
 
532
                public weak Pango.FontDescription describe_with_absolute_size ();
 
533
                [NoArrayLength]
 
534
                public static void descriptions_free (Pango.FontDescription[] descs, int n_descs);
 
535
                public weak Pango.EngineShape find_shaper (Pango.Language language, uint ch);
 
536
                public weak Pango.Coverage get_coverage (Pango.Language language);
 
537
                public weak Pango.FontMap get_font_map ();
 
538
                public void get_glyph_extents (uint glyph, out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
 
539
                public weak Pango.FontMetrics get_metrics (Pango.Language language);
 
540
        }
 
541
        [CCode (cheader_filename = "pango/pango.h")]
 
542
        public class FontFace : GLib.Object {
 
543
                public weak Pango.FontDescription describe ();
 
544
                public weak string get_face_name ();
 
545
                public bool is_synthesized ();
 
546
                [NoArrayLength]
 
547
                public void list_sizes (int[] sizes, int n_sizes);
 
548
        }
 
549
        [CCode (cheader_filename = "pango/pango.h")]
 
550
        public class FontFamily : GLib.Object {
 
551
                public weak string get_name ();
 
552
                public bool is_monospace ();
 
553
                [NoArrayLength]
 
554
                public void list_faces (Pango.FontFace[] faces, int n_faces);
 
555
        }
 
556
        [CCode (cheader_filename = "pango/pango.h")]
 
557
        public class FontMap : GLib.Object {
 
558
                [NoArrayLength]
 
559
                public void list_families (Pango.FontFamily[] families, int n_families);
 
560
                public weak Pango.Font load_font (Pango.Context context, Pango.FontDescription desc);
 
561
                public weak Pango.Fontset load_fontset (Pango.Context context, Pango.FontDescription desc, Pango.Language language);
 
562
        }
 
563
        [CCode (cheader_filename = "pango/pango.h")]
 
564
        public class Fontset : GLib.Object {
 
565
                public void @foreach (Pango.FontsetForeachFunc func, pointer data);
 
566
                public weak Pango.Font get_font (uint wc);
 
567
                public weak Pango.FontMetrics get_metrics ();
 
568
        }
 
569
        [CCode (cheader_filename = "pango/pango.h")]
 
570
        public class Layout : GLib.Object {
 
571
                public void context_changed ();
 
572
                public weak Pango.Layout copy ();
 
573
                public Pango.Alignment get_alignment ();
 
574
                public weak Pango.AttrList get_attributes ();
 
575
                public bool get_auto_dir ();
 
576
                public weak Pango.Context get_context ();
 
577
                public void get_cursor_pos (int index_, out Pango.Rectangle strong_pos, out Pango.Rectangle weak_pos);
 
578
                public Pango.EllipsizeMode get_ellipsize ();
 
579
                public void get_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
 
580
                public weak Pango.FontDescription get_font_description ();
 
581
                public int get_indent ();
 
582
                public weak Pango.LayoutIter get_iter ();
 
583
                public bool get_justify ();
 
584
                public weak Pango.LayoutLine get_line (int line);
 
585
                public int get_line_count ();
 
586
                public weak Pango.LayoutLine get_line_readonly (int line);
 
587
                public weak GLib.SList get_lines ();
 
588
                public weak GLib.SList get_lines_readonly ();
 
589
                [NoArrayLength]
 
590
                public void get_log_attrs (Pango.LogAttr[] attrs, int n_attrs);
 
591
                public void get_pixel_extents (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
 
592
                public void get_pixel_size (int width, int height);
 
593
                public bool get_single_paragraph_mode ();
 
594
                public void get_size (int width, int height);
 
595
                public int get_spacing ();
 
596
                public weak Pango.TabArray get_tabs ();
 
597
                public weak string get_text ();
 
598
                public int get_unknown_glyphs_count ();
 
599
                public int get_width ();
 
600
                public Pango.WrapMode get_wrap ();
 
601
                public void index_to_line_x (int index_, bool trailing, int line, int x_pos);
 
602
                public void index_to_pos (int index_, out Pango.Rectangle pos);
 
603
                public bool is_ellipsized ();
 
604
                public bool is_wrapped ();
 
605
                public void move_cursor_visually (bool strong, int old_index, int old_trailing, int direction, int new_index, int new_trailing);
 
606
                public Layout (Pango.Context context);
 
607
                public void set_alignment (Pango.Alignment alignment);
 
608
                public void set_attributes (Pango.AttrList attrs);
 
609
                public void set_auto_dir (bool auto_dir);
 
610
                public void set_ellipsize (Pango.EllipsizeMode ellipsize);
 
611
                public void set_font_description (Pango.FontDescription desc);
 
612
                public void set_indent (int indent);
 
613
                public void set_justify (bool justify);
 
614
                public void set_markup (string markup, int length);
 
615
                public void set_markup_with_accel (string markup, int length, unichar accel_marker, unichar accel_char);
 
616
                public void set_single_paragraph_mode (bool setting);
 
617
                public void set_spacing (int spacing);
 
618
                public void set_tabs (Pango.TabArray tabs);
 
619
                public void set_text (string text, int length);
 
620
                public void set_width (int width);
 
621
                public void set_wrap (Pango.WrapMode wrap);
 
622
                public bool xy_to_index (int x, int y, int index_, int trailing);
 
623
        }
 
624
        [CCode (cheader_filename = "pango/pango.h")]
 
625
        public class Renderer : GLib.Object {
 
626
                public Pango.Underline underline;
 
627
                public bool strikethrough;
 
628
                public int active_count;
 
629
                public Pango.Matrix matrix;
 
630
                public void activate ();
 
631
                public void deactivate ();
 
632
                public virtual void draw_error_underline (int x, int y, int width, int height);
 
633
                public virtual void draw_glyph (Pango.Font font, uint glyph, double x, double y);
 
634
                public virtual void draw_glyphs (Pango.Font font, Pango.GlyphString glyphs, int x, int y);
 
635
                public void draw_layout (Pango.Layout layout, int x, int y);
 
636
                public void draw_layout_line (Pango.LayoutLine line, int x, int y);
 
637
                public virtual void draw_rectangle (Pango.RenderPart part, int x, int y, int width, int height);
 
638
                public virtual void draw_trapezoid (Pango.RenderPart part, double y1_, double x11, double x21, double y2, double x12, double x22);
 
639
                public Pango.Color get_color (Pango.RenderPart part);
 
640
                public weak Pango.Layout get_layout ();
 
641
                public weak Pango.LayoutLine get_layout_line ();
 
642
                public Pango.Matrix get_matrix ();
 
643
                public virtual void part_changed (Pango.RenderPart part);
 
644
                public void set_color (Pango.RenderPart part, out Pango.Color color);
 
645
                public void set_matrix (out Pango.Matrix matrix);
728
646
        }
729
647
        [CCode (cheader_filename = "pango/pango.h")]
730
648
        public struct LogAttr {
742
660
                public uint is_expandable_space;
743
661
        }
744
662
        [CCode (cheader_filename = "pango/pango.h")]
 
663
        public struct Rectangle {
 
664
                public int x;
 
665
                public int y;
 
666
                public int width;
 
667
                public int height;
 
668
        }
 
669
        [CCode (cheader_filename = "pango/pango.h")]
 
670
        public struct Color {
 
671
                public ushort red;
 
672
                public ushort green;
 
673
                public ushort blue;
 
674
                public Pango.Color copy ();
 
675
                public void free ();
 
676
                public bool parse (string spec);
 
677
                public weak string to_string ();
 
678
        }
 
679
        [CCode (cheader_filename = "pango/pango.h")]
745
680
        public struct Matrix {
746
681
                public double xx;
747
682
                public double xy;
753
688
                public Pango.Matrix copy ();
754
689
                public void free ();
755
690
                public double get_font_scale_factor ();
756
 
                public static GLib.Type get_type ();
757
691
                public void rotate (double degrees);
758
692
                public void scale (double scale_x, double scale_y);
759
693
                public void transform_distance (double dx, double dy);
762
696
                public void transform_rectangle (out Pango.Rectangle rect);
763
697
                public void translate (double tx, double ty);
764
698
        }
765
 
        [CCode (cheader_filename = "pango/pango.h")]
766
 
        public struct Rectangle {
767
 
                public int x;
768
 
                public int y;
769
 
                public int width;
770
 
                public int height;
771
 
        }
772
699
        public static delegate pointer AttrDataCopyFunc (pointer data);
773
700
        public static delegate bool AttrFilterFunc (Pango.Attribute attribute, pointer data);
774
 
        public static delegate void CairoShapeRendererFunc (Cairo.Context cr, Pango.AttrShape attr, bool do_path, pointer data);
775
701
        public static delegate bool FontsetForeachFunc (Pango.Fontset fontset, Pango.Font font, pointer data);
 
702
        public const int ANALYSIS_FLAG_CENTERED_BASELINE;
 
703
        public const string ENGINE_TYPE_LANG;
 
704
        public const string ENGINE_TYPE_SHAPE;
 
705
        public const string RENDER_TYPE_NONE;
 
706
        public const int SCALE;
 
707
        public const int UNKNOWN_GLYPH_HEIGHT;
 
708
        public const int UNKNOWN_GLYPH_WIDTH;
 
709
        public const int VERSION_MAJOR;
 
710
        public const int VERSION_MICRO;
 
711
        public const int VERSION_MINOR;
 
712
        public const string VERSION_STRING;
 
713
        public static weak Pango.Attribute attr_background_new (ushort red, ushort green, ushort blue);
 
714
        public static weak Pango.Attribute attr_fallback_new (bool enable_fallback);
 
715
        public static weak Pango.Attribute attr_family_new (string family);
 
716
        public static weak Pango.Attribute attr_foreground_new (ushort red, ushort green, ushort blue);
 
717
        public static weak Pango.Attribute attr_gravity_hint_new (Pango.GravityHint hint);
 
718
        public static weak Pango.Attribute attr_gravity_new (Pango.Gravity gravity);
 
719
        public static weak Pango.Attribute attr_letter_spacing_new (int letter_spacing);
 
720
        public static weak Pango.Attribute attr_rise_new (int rise);
 
721
        public static weak Pango.Attribute attr_scale_new (double scale_factor);
 
722
        public static weak Pango.Attribute attr_stretch_new (Pango.Stretch stretch);
 
723
        public static weak Pango.Attribute attr_strikethrough_color_new (ushort red, ushort green, ushort blue);
 
724
        public static weak Pango.Attribute attr_strikethrough_new (bool strikethrough);
 
725
        public static weak Pango.Attribute attr_style_new (Pango.Style style);
 
726
        public static Pango.AttrType attr_type_register (string name);
 
727
        public static weak Pango.Attribute attr_underline_color_new (ushort red, ushort green, ushort blue);
 
728
        public static weak Pango.Attribute attr_underline_new (Pango.Underline underline);
 
729
        public static weak Pango.Attribute attr_variant_new (Pango.Variant variant);
 
730
        public static weak Pango.Attribute attr_weight_new (Pango.Weight weight);
 
731
        public static void @break (string text, int length, Pango.Analysis analysis, out Pango.LogAttr attrs, int attrs_len);
776
732
        public static void extents_to_pixels (out Pango.Rectangle ink_rect, out Pango.Rectangle logical_rect);
777
733
        public static Pango.Direction find_base_dir (string text, int length);
778
734
        public static void find_paragraph_boundary (string text, int length, int paragraph_delimiter_index, int next_paragraph_start);
779
735
        [NoArrayLength]
780
736
        public static void get_log_attrs (string text, int length, int level, Pango.Language language, Pango.LogAttr[] log_attrs, int attrs_len);
 
737
        public static bool get_mirror_char (unichar ch, unichar mirrored_ch);
781
738
        public static Pango.Gravity gravity_get_for_matrix (out Pango.Matrix matrix);
782
739
        public static Pango.Gravity gravity_get_for_script (Pango.Script script, Pango.Gravity base_gravity, Pango.GravityHint hint);
783
740
        public static double gravity_to_rotation (Pango.Gravity gravity);
784
741
        public static bool is_zero_width (unichar ch);
 
742
        public static weak GLib.List itemize (Pango.Context context, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator cached_iter);
785
743
        public static weak GLib.List itemize_with_base_dir (Pango.Context context, Pango.Direction base_dir, string text, int start_index, int length, Pango.AttrList attrs, Pango.AttrIterator cached_iter);
 
744
        public static uchar log2vis_get_embedding_levels (string text, int length, Pango.Direction pbase_dir);
786
745
        public static bool parse_enum (GLib.Type type, string str, int value, bool warn, out string possible_values);
787
 
        public static bool parse_markup (string markup_text, int length, unichar accel_marker, Pango.AttrList attr_list, out string text, unichar accel_char) throws GLib.Error;
 
746
        public static bool parse_markup (string markup_text, int length, unichar accel_marker, out Pango.AttrList attr_list, out string text, unichar accel_char) throws GLib.Error;
788
747
        public static bool parse_stretch (string str, Pango.Stretch stretch, bool warn);
789
748
        public static bool parse_style (string str, Pango.Style style, bool warn);
790
749
        public static bool parse_variant (string str, Pango.Variant variant, bool warn);
797
756
        public static bool scan_word (out string pos, GLib.String @out);
798
757
        public static Pango.Script script_for_unichar (unichar ch);
799
758
        public static weak Pango.Language script_get_sample_language (Pango.Script script);
 
759
        public static void shape (string text, int length, Pango.Analysis analysis, Pango.GlyphString glyphs);
800
760
        public static bool skip_space (out string pos);
801
761
        public static weak string split_file_list (string str);
802
762
        public static weak string trim_string (string str);
803
763
        public static Pango.Direction unichar_direction (unichar ch);
 
764
        public static int units_from_double (double d);
 
765
        public static double units_to_double (int i);
 
766
        public static int version ();
 
767
        public static weak string version_check (int required_major, int required_minor, int required_micro);
 
768
        public static weak string version_string ();
804
769
}