Changeset 629
- Timestamp:
- 09/25/08 16:48:49 (2 months ago)
- Files:
-
- trunk/src/build/gtkD.d (modified) (3 diffs)
- trunk/src/gtkc/pango.d (modified) (24 diffs)
- trunk/src/gtkc/pangotypes.d (modified) (68 diffs)
- trunk/src/pango/PgAttribute.d (modified) (2 diffs)
- trunk/src/pango/PgCairo.d (modified) (13 diffs)
- trunk/src/pango/PgCairoFontMap.d (modified) (5 diffs)
- trunk/src/pango/PgContext.d (modified) (4 diffs)
- trunk/src/pango/PgEngine.d (modified) (1 diff)
- trunk/src/pango/PgFont.d (modified) (1 diff)
- trunk/src/pango/PgFontMap.d (modified) (1 diff)
- trunk/src/pango/PgGlyphItem.d (modified) (3 diffs)
- trunk/src/pango/PgGlyphItemIter.d (modified) (1 diff)
- trunk/src/pango/PgItem.d (modified) (2 diffs)
- trunk/src/pango/PgLanguage.d (modified) (4 diffs)
- trunk/src/pango/PgLayout.d (modified) (2 diffs)
- trunk/src/pango/PgMiscellaneous.d (modified) (6 diffs)
- trunk/src/pango/PgRenderer.d (modified) (3 diffs)
- trunk/src/pango/PgScript.d (modified) (3 diffs)
- trunk/wrap/APILookupPango.txt (modified) (9 diffs)
- trunk/wrap/downloadFiles.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/build/gtkD.d
r628 r629 187 187 private import cairo.Types; 188 188 189 private import pango.PgContext;190 189 private import pango.PgItem; 191 190 private import pango.PgMatrix; … … 203 202 private import pango.PgAttribute; 204 203 private import pango.PgColor; 205 private import pango.PgLanguage;206 204 private import pango.PgAttributeList; 207 205 private import pango.PgAttributeIterator; … … 212 210 private import pango.PgScript; 213 211 private import pango.PgScriptIter; 212 private import pango.PgLanguage; 214 213 private import pango.PgVertical; 215 214 private import pango.PgCairoFontMap; trunk/src/gtkc/pango.d
r628 r629 91 91 PangoFontMetrics* function(PangoContext* context, PangoFontDescription* desc, PangoLanguage* language)pango_context_get_metrics; 92 92 void function(PangoContext* context, PangoFontFamily*** families, int* nFamilies)pango_context_list_families; 93 gboolean function(gunichar ch, gunichar* mirroredCh)pango_get_mirror_char;94 PangoDirection function(gunichar ch)pango_unichar_direction;95 PangoDirection function(gchar* text, gint length)pango_find_base_dir;96 93 void function(gchar* text, int length, PangoAnalysis* analysis, PangoLogAttr* attrs, int attrsLen)pango_break; 97 94 void function(char* text, int length, int level, PangoLanguage* language, PangoLogAttr* logAttrs, int attrsLen)pango_get_log_attrs; … … 99 96 void function(gchar* text, int length, PangoAnalysis* analysis, PangoLogAttr* attrs, int attrsLen)pango_default_break; 100 97 void function(gchar* text, gint length, PangoAnalysis* analysis, PangoGlyphString* glyphs)pango_shape; 98 PangoDirection function(gunichar ch)pango_unichar_direction; 99 PangoDirection function(gchar* text, gint length)pango_find_base_dir; 100 gboolean function(gunichar ch, gunichar* mirroredCh)pango_get_mirror_char; 101 PangoBidiType function(gunichar ch)pango_bidi_type_for_unichar; 101 102 102 103 // pango.PgItem 103 104 104 void function(PangoItem* item)pango_item_free;105 PangoItem* function(PangoItem* item)pango_item_copy;106 PangoItem* function()pango_item_new;107 PangoItem* function(PangoItem* orig, int splitIndex, int splitOffset)pango_item_split;108 105 109 106 // pango.PgMatrix … … 139 136 // pango.PgGlyphItem 140 137 138 PangoGlyphItem* function(PangoGlyphItem* orig)pango_glyph_item_copy; 139 void function(PangoGlyphItem* glyphItem)pango_glyph_item_free; 141 140 PangoGlyphItem* function(PangoGlyphItem* orig, char* text, int splitIndex)pango_glyph_item_split; 142 141 GSList* function(PangoGlyphItem* glyphItem, char* text, PangoAttrList* list)pango_glyph_item_apply_attrs; 143 142 void function(PangoGlyphItem* glyphItem, char* text, PangoLogAttr* logAttrs, int letterSpacing)pango_glyph_item_letter_space; 144 PangoGlyphItem* function(PangoGlyphItem* orig)pango_glyph_item_copy;145 void function(PangoGlyphItem* glyphItem)pango_glyph_item_free;146 143 147 144 // pango.PgGlyphItemIter 148 145 146 PangoGlyphItemIter* function(PangoGlyphItemIter* orig)pango_glyph_item_iter_copy; 147 void function(PangoGlyphItemIter* iter)pango_glyph_item_iter_free; 148 gboolean function(PangoGlyphItemIter* iter, PangoGlyphItem* glyphItem, char* text)pango_glyph_item_iter_init_start; 149 gboolean function(PangoGlyphItemIter* iter, PangoGlyphItem* glyphItem, char* text)pango_glyph_item_iter_init_end; 150 gboolean function(PangoGlyphItemIter* iter)pango_glyph_item_iter_next_cluster; 151 gboolean function(PangoGlyphItemIter* iter)pango_glyph_item_iter_prev_cluster; 149 152 150 153 // pango.PgFont … … 220 223 // pango.PgFontMap 221 224 225 PangoContext* function(PangoFontMap* fontmap)pango_font_map_create_context; 222 226 PangoFont* function(PangoFontMap* fontmap, PangoContext* context, PangoFontDescription* desc)pango_font_map_load_font; 223 227 PangoFontset* function(PangoFontMap* fontmap, PangoContext* context, PangoFontDescription* desc, PangoLanguage* language)pango_font_map_load_fontset; … … 241 245 gboolean function(char* markupText, int length, gunichar accelMarker, PangoAttrList** attrList, char** text, gunichar* accelChar, GError** error)pango_parse_markup; 242 246 PangoAttrType function(gchar* name)pango_attr_type_register; 247 char* function(PangoAttrType type)pango_attr_type_get_name; 243 248 void function(PangoAttribute* attr, PangoAttrClass* klass)pango_attribute_init; 244 249 PangoAttribute* function(PangoAttribute* attr)pango_attribute_copy; … … 275 280 void function(PangoColor* color)pango_color_free; 276 281 gchar* function(PangoColor* color)pango_color_to_string; 277 278 // pango.PgLanguage279 280 PangoLanguage* function(char* language)pango_language_from_string;281 gboolean function(PangoLanguage* language, char* rangeList)pango_language_matches;282 282 283 283 // pango.PgAttributeList … … 366 366 void function(PangoLayout* layout, int* width, int* height)pango_layout_get_size; 367 367 void function(PangoLayout* layout, int* width, int* height)pango_layout_get_pixel_size; 368 int function(PangoLayout* layout)pango_layout_get_baseline; 368 369 int function(PangoLayout* layout)pango_layout_get_line_count; 369 370 PangoLayoutLine* function(PangoLayout* layout, int line)pango_layout_get_line; … … 410 411 PangoScript function(gunichar ch)pango_script_for_unichar; 411 412 PangoLanguage* function(PangoScript script)pango_script_get_sample_language; 412 gboolean function(PangoLanguage* language, PangoScript script)pango_language_includes_script;413 413 414 414 // pango.PgScriptIter … … 419 419 void function(PangoScriptIter* iter)pango_script_iter_free; 420 420 421 // pango.PgLanguage 422 423 PangoLanguage* function(char* language)pango_language_from_string; 424 char* function(PangoLanguage* language)pango_language_to_string; 425 gboolean function(PangoLanguage* language, char* rangeList)pango_language_matches; 426 gboolean function(PangoLanguage* language, PangoScript script)pango_language_includes_script; 427 PangoScript* function(PangoLanguage* language, int* numScripts)pango_language_get_scripts; 428 PangoLanguage* function()pango_language_get_default; 429 char* function(PangoLanguage* language)pango_language_get_sample_string; 430 421 431 // pango.PgVertical 422 432 … … 428 438 429 439 PangoFontMap* function()pango_cairo_font_map_get_default; 440 void function(PangoCairoFontMap* fontmap)pango_cairo_font_map_set_default; 430 441 PangoFontMap* function()pango_cairo_font_map_new; 431 442 PangoFontMap* function(cairo_font_type_t fonttype)pango_cairo_font_map_new_for_font_type; … … 444 455 void function(PangoContext* context, PangoCairoShapeRendererFunc func, gpointer data, GDestroyNotify dnotify)pango_cairo_context_set_shape_renderer; 445 456 PangoCairoShapeRendererFunc function(PangoContext* context, gpointer* data)pango_cairo_context_get_shape_renderer; 457 PangoContext* function(cairo_t* cr)pango_cairo_create_context; 446 458 void function(cairo_t* cr, PangoContext* context)pango_cairo_update_context; 447 459 PangoLayout* function(cairo_t* cr)pango_cairo_create_layout; 448 460 void function(cairo_t* cr, PangoLayout* layout)pango_cairo_update_layout; 449 461 void function(cairo_t* cr, PangoFont* font, PangoGlyphString* glyphs)pango_cairo_show_glyph_string; 462 void function(cairo_t* cr, char* text, PangoGlyphItem* glyphItem)pango_cairo_show_glyph_item; 450 463 void function(cairo_t* cr, PangoLayoutLine* line)pango_cairo_show_layout_line; 451 464 void function(cairo_t* cr, PangoLayout* layout)pango_cairo_show_layout; … … 461 474 void function(PangoRenderer* renderer, PangoLayoutLine* line, int x, int y)pango_renderer_draw_layout_line; 462 475 void function(PangoRenderer* renderer, PangoFont* font, PangoGlyphString* glyphs, int x, int y)pango_renderer_draw_glyphs; 476 void function(PangoRenderer* renderer, char* text, PangoGlyphItem* glyphItem, int x, int y)pango_renderer_draw_glyph_item; 463 477 void function(PangoRenderer* renderer, PangoRenderPart part, int x, int y, int width, int height)pango_renderer_draw_rectangle; 464 478 void function(PangoRenderer* renderer, int x, int y, int width, int height)pango_renderer_draw_error_underline; … … 519 533 char* function()pango_get_lib_subdirectory; 520 534 guint8* function(gchar* text, int length, PangoDirection* pbaseDir)pango_log2vis_get_embedding_levels; 521 PangoLanguage* function()pango_language_get_default;522 char* function(PangoLanguage* language)pango_language_get_sample_string;523 535 gboolean function(gunichar ch)pango_is_zero_width; 524 536 void function(int* thickness, int* position)pango_quantize_line_geometry; … … 559 571 { "pango_context_get_metrics", cast(void**)& pango_context_get_metrics}, 560 572 { "pango_context_list_families", cast(void**)& pango_context_list_families}, 561 { "pango_get_mirror_char", cast(void**)& pango_get_mirror_char},562 { "pango_unichar_direction", cast(void**)& pango_unichar_direction},563 { "pango_find_base_dir", cast(void**)& pango_find_base_dir},564 573 { "pango_break", cast(void**)& pango_break}, 565 574 { "pango_get_log_attrs", cast(void**)& pango_get_log_attrs}, … … 567 576 { "pango_default_break", cast(void**)& pango_default_break}, 568 577 { "pango_shape", cast(void**)& pango_shape}, 569 { "pango_ item_free", cast(void**)& pango_item_free},570 { "pango_ item_copy", cast(void**)& pango_item_copy},571 { "pango_ item_new", cast(void**)& pango_item_new},572 { "pango_ item_split", cast(void**)& pango_item_split},578 { "pango_unichar_direction", cast(void**)& pango_unichar_direction}, 579 { "pango_find_base_dir", cast(void**)& pango_find_base_dir}, 580 { "pango_get_mirror_char", cast(void**)& pango_get_mirror_char}, 581 { "pango_bidi_type_for_unichar", cast(void**)& pango_bidi_type_for_unichar}, 573 582 { "pango_units_to_double", cast(void**)& pango_units_to_double}, 574 583 { "pango_units_from_double", cast(void**)& pango_units_from_double}, … … 595 604 { "pango_glyph_string_x_to_index", cast(void**)& pango_glyph_string_x_to_index}, 596 605 { "pango_glyph_string_get_logical_widths", cast(void**)& pango_glyph_string_get_logical_widths}, 606 { "pango_glyph_item_copy", cast(void**)& pango_glyph_item_copy}, 607 { "pango_glyph_item_free", cast(void**)& pango_glyph_item_free}, 597 608 { "pango_glyph_item_split", cast(void**)& pango_glyph_item_split}, 598 609 { "pango_glyph_item_apply_attrs", cast(void**)& pango_glyph_item_apply_attrs}, 599 610 { "pango_glyph_item_letter_space", cast(void**)& pango_glyph_item_letter_space}, 600 { "pango_glyph_item_copy", cast(void**)& pango_glyph_item_copy}, 601 { "pango_glyph_item_free", cast(void**)& pango_glyph_item_free}, 611 { "pango_glyph_item_iter_copy", cast(void**)& pango_glyph_item_iter_copy}, 612 { "pango_glyph_item_iter_free", cast(void**)& pango_glyph_item_iter_free}, 613 { "pango_glyph_item_iter_init_start", cast(void**)& pango_glyph_item_iter_init_start}, 614 { "pango_glyph_item_iter_init_end", cast(void**)& pango_glyph_item_iter_init_end}, 615 { "pango_glyph_item_iter_next_cluster", cast(void**)& pango_glyph_item_iter_next_cluster}, 616 { "pango_glyph_item_iter_prev_cluster", cast(void**)& pango_glyph_item_iter_prev_cluster}, 602 617 { "pango_font_find_shaper", cast(void**)& pango_font_find_shaper}, 603 618 { "pango_font_describe", cast(void**)& pango_font_describe}, … … 655 670 { "pango_font_face_describe", cast(void**)& pango_font_face_describe}, 656 671 { "pango_font_face_is_synthesized", cast(void**)& pango_font_face_is_synthesized}, 672 { "pango_font_map_create_context", cast(void**)& pango_font_map_create_context}, 657 673 { "pango_font_map_load_font", cast(void**)& pango_font_map_load_font}, 658 674 { "pango_font_map_load_fontset", cast(void**)& pango_font_map_load_fontset}, … … 667 683 { "pango_parse_markup", cast(void**)& pango_parse_markup}, 668 684 { "pango_attr_type_register", cast(void**)& pango_attr_type_register}, 685 { "pango_attr_type_get_name", cast(void**)& pango_attr_type_get_name}, 669 686 { "pango_attribute_init", cast(void**)& pango_attribute_init}, 670 687 { "pango_attribute_copy", cast(void**)& pango_attribute_copy}, … … 698 715 { "pango_color_free", cast(void**)& pango_color_free}, 699 716 { "pango_color_to_string", cast(void**)& pango_color_to_string}, 700 { "pango_language_from_string", cast(void**)& pango_language_from_string},701 { "pango_language_matches", cast(void**)& pango_language_matches},702 717 { "pango_attr_list_new", cast(void**)& pango_attr_list_new}, 703 718 { "pango_attr_list_ref", cast(void**)& pango_attr_list_ref}, … … 774 789 { "pango_layout_get_size", cast(void**)& pango_layout_get_size}, 775 790 { "pango_layout_get_pixel_size", cast(void**)& pango_layout_get_pixel_size}, 791 { "pango_layout_get_baseline", cast(void**)& pango_layout_get_baseline}, 776 792 { "pango_layout_get_line_count", cast(void**)& pango_layout_get_line_count}, 777 793 { "pango_layout_get_line", cast(void**)& pango_layout_get_line}, … … 809 825 { "pango_script_for_unichar", cast(void**)& pango_script_for_unichar}, 810 826 { "pango_script_get_sample_language", cast(void**)& pango_script_get_sample_language}, 811 { "pango_language_includes_script", cast(void**)& pango_language_includes_script},812 827 { "pango_script_iter_new", cast(void**)& pango_script_iter_new}, 813 828 { "pango_script_iter_get_range", cast(void**)& pango_script_iter_get_range}, 814 829 { "pango_script_iter_next", cast(void**)& pango_script_iter_next}, 815 830 { "pango_script_iter_free", cast(void**)& pango_script_iter_free}, 831 { "pango_language_from_string", cast(void**)& pango_language_from_string}, 832 { "pango_language_to_string", cast(void**)& pango_language_to_string}, 833 { "pango_language_matches", cast(void**)& pango_language_matches}, 834 { "pango_language_includes_script", cast(void**)& pango_language_includes_script}, 835 { "pango_language_get_scripts", cast(void**)& pango_language_get_scripts}, 836 { "pango_language_get_default", cast(void**)& pango_language_get_default}, 837 { "pango_language_get_sample_string", cast(void**)& pango_language_get_sample_string}, 816 838 { "pango_gravity_get_for_matrix", cast(void**)& pango_gravity_get_for_matrix}, 817 839 { "pango_gravity_get_for_script", cast(void**)& pango_gravity_get_for_script}, 818 840 { "pango_gravity_to_rotation", cast(void**)& pango_gravity_to_rotation}, 819 841 { "pango_cairo_font_map_get_default", cast(void**)& pango_cairo_font_map_get_default}, 842 { "pango_cairo_font_map_set_default", cast(void**)& pango_cairo_font_map_set_default}, 820 843 { "pango_cairo_font_map_new", cast(void**)& pango_cairo_font_map_new}, 821 844 { "pango_cairo_font_map_new_for_font_type", cast(void**)& pango_cairo_font_map_new_for_font_type}, … … 831 854 { "pango_cairo_context_set_shape_renderer", cast(void**)& pango_cairo_context_set_shape_renderer}, 832 855 { "pango_cairo_context_get_shape_renderer", cast(void**)& pango_cairo_context_get_shape_renderer}, 856 { "pango_cairo_create_context", cast(void**)& pango_cairo_create_context}, 833 857 { "pango_cairo_update_context", cast(void**)& pango_cairo_update_context}, 834 858 { "pango_cairo_create_layout", cast(void**)& pango_cairo_create_layout}, 835 859 { "pango_cairo_update_layout", cast(void**)& pango_cairo_update_layout}, 836 860 { "pango_cairo_show_glyph_string", cast(void**)& pango_cairo_show_glyph_string}, 861 { "pango_cairo_show_glyph_item", cast(void**)& pango_cairo_show_glyph_item}, 837 862 { "pango_cairo_show_layout_line", cast(void**)& pango_cairo_show_layout_line}, 838 863 { "pango_cairo_show_layout", cast(void**)& pango_cairo_show_layout}, … … 845 870 { "pango_renderer_draw_layout_line", cast(void**)& pango_renderer_draw_layout_line}, 846 871 { "pango_renderer_draw_glyphs", cast(void**)& pango_renderer_draw_glyphs}, 872 { "pango_renderer_draw_glyph_item", cast(void**)& pango_renderer_draw_glyph_item}, 847 873 { "pango_renderer_draw_rectangle", cast(void**)& pango_renderer_draw_rectangle}, 848 874 { "pango_renderer_draw_error_underline", cast(void**)& pango_renderer_draw_error_underline}, … … 888 914 { "pango_get_lib_subdirectory", cast(void**)& pango_get_lib_subdirectory}, 889 915 { "pango_log2vis_get_embedding_levels", cast(void**)& pango_log2vis_get_embedding_levels}, 890 { "pango_language_get_default", cast(void**)& pango_language_get_default},891 { "pango_language_get_sample_string", cast(void**)& pango_language_get_sample_string},892 916 { "pango_is_zero_width", cast(void**)& pango_is_zero_width}, 893 917 { "pango_quantize_line_geometry", cast(void**)& pango_quantize_line_geometry}, trunk/src/gtkc/pangotypes.d
r626 r629 28 28 public import gtkc.gobjecttypes; 29 29 30 //public import std.c.windows.windows;31 32 30 ///* The pango Basic Types */ 33 31 public alias void FcPattern; 34 32 public alias void FcCharSet; 35 //public alias void LOGFONT; 36 //struct Display; 37 //struct FT_Bitmap; 33 38 34 struct FT_Face; 39 //struct XftDraw;40 //struct XftColor;41 35 42 36 … … 103 97 WEAK_RTL, 104 98 NEUTRAL 99 } 100 /** 101 * The PangoBidiType type represents the bidirectional character 102 * type of a Unicode character as specified by the 103 * Unicode bidirectional algorithm. 104 * PANGO_BIDI_TYPE_L 105 */ 106 public enum PangoBidiType 107 { 108 /+* Strong types +/ 109 PANGO_BIDI_TYPE_L, 110 PANGO_BIDI_TYPE_LRE, 111 PANGO_BIDI_TYPE_LRO, 112 PANGO_BIDI_TYPE_R, 113 PANGO_BIDI_TYPE_AL, 114 PANGO_BIDI_TYPE_RLE, 115 PANGO_BIDI_TYPE_RLO, 116 /+* Weak types +/ 117 PANGO_BIDI_TYPE_PDF, 118 PANGO_BIDI_TYPE_EN, 119 PANGO_BIDI_TYPE_ES, 120 PANGO_BIDI_TYPE_ET, 121 PANGO_BIDI_TYPE_AN, 122 PANGO_BIDI_TYPE_CS, 123 PANGO_BIDI_TYPE_NSM, 124 PANGO_BIDI_TYPE_BN, 125 /+* Neutral types +/ 126 PANGO_BIDI_TYPE_B, 127 PANGO_BIDI_TYPE_S, 128 PANGO_BIDI_TYPE_WS, 129 PANGO_BIDI_TYPE_ON 105 130 } 106 131 /** … … 543 568 * The PangoItem structure stores information about 544 569 * a segment of text. It contains the following fields: 545 * gint offset;570 * gint offset; 546 571 * the offset of the segment from the beginning of the 547 572 */ … … 559 584 * the properties of a segment of text. It has the following 560 585 * fields: 561 * PangoEngineShape *shape_engine;586 * PangoEngineShape *shape_engine; 562 587 * the engine for doing rendering-system-dependent processing. 563 * PangoEngineLang *lang_engine;588 * PangoEngineLang *lang_engine; 564 589 * the engine for doing rendering-system-independent processing. 565 * PangoFont *font;590 * PangoFont *font; 566 591 * the font for this segment. 567 * guint8 level;592 * guint8 level; 568 593 * the bidirectional level for this segment. 569 * guint8 gravity;594 * guint8 gravity; 570 595 * the glyph orientation for this segment (A PangoGravity). 571 * guint8 flags;596 * guint8 flags; 572 597 * boolean flags for this segment (currently only one) (Since: 1.16). 573 * guint8 script;598 * guint8 script; 574 599 * the detected script for this segment (A PangoScript) (Since: 1.18). 575 * PangoLanguage *language;600 * PangoLanguage *language; 576 601 * the detected language for this segment. 577 * GSList *extra_attrs;602 * GSList *extra_attrs; 578 603 * extra attributes for this segment. 579 604 */ … … 595 620 * The PangoLogAttr structure stores information 596 621 * about the attributes of a single character. 597 * guint is_line_break:1;622 * guint is_line_break : 1; 598 623 * if set, can break line in front of character 599 * guint is_mandatory_break:1;624 * guint is_mandatory_break : 1; 600 625 * if set, must break line in front of character 601 * guint is_char_break:1;626 * guint is_char_break : 1; 602 627 * if set, can break here when doing character wrapping 603 * guint is_white:1;628 * guint is_white : 1; 604 629 * is whitespace character 605 * guint is_cursor_position:1;630 * guint is_cursor_position : 1; 606 631 * if set, cursor can appear in front of character. 607 632 */ … … 642 667 +/ 643 668 //uint isExpandableSpace : 1; 669 /+* Word boundary as defined by UAX#29 +/ 670 //uint isWordBoundary : 1; /+* is NOT inn the middle of a word +/ 644 671 } 645 672 … … 649 676 * used to represent the logical or ink extents of a single glyph or section 650 677 * of text. (See, for instance, pango_font_get_glyph_extents()) 651 * int x;678 * int x; 652 679 * X coordinate of the left side of the rectangle. 653 * int y;680 * int y; 654 681 * Y coordinate of the the top side of the rectangle. 655 * int width;682 * int width; 656 683 * width of the rectangle. 657 * int height;684 * int height; 658 685 * height of the rectangle. 659 686 */ … … 674 701 * x_device = x_user * matrix->xx + y_user * matrix->xy + matrix->x0; 675 702 * y_device = x_user * matrix->yx + y_user * matrix->yy + matrix->y0; 676 * double xx;703 * double xx; 677 704 */ 678 705 public struct PangoMatrix … … 691 718 * positioning information and visual attributes. 692 719 * It contains the following fields. 693 * PangoGlyph glyph;720 * PangoGlyph glyph; 694 721 * the glyph itself. 695 * PangoGlyphGeometry geometry;722 * PangoGlyphGeometry geometry; 696 723 * the positional information about the glyph. 697 * PangoGlyphVisAttr attr;724 * PangoGlyphVisAttr attr; 698 725 * the visual attributes of the glyph. 699 726 */ … … 709 736 * The PangoGlyphGeometry structure contains width and positioning 710 737 * information for a single glyph. 711 * PangoGlyphUnit width;738 * PangoGlyphUnit width; 712 739 * the logical width to use for the the character. 713 * PangoGlyphUnit x_offset;740 * PangoGlyphUnit x_offset; 714 741 * horizontal offset from nominal character position. 715 * PangoGlyphUnit y_offset;742 * PangoGlyphUnit y_offset; 716 743 * vertical offset from nominal character position. 717 744 */ … … 728 755 * the shaping phase and the rendering phase. More attributes may be 729 756 * added in the future. 730 * guint is_cluster_start:1;757 * guint is_cluster_start : 1; 731 758 * set for the first logical glyph in each cluster. (Clusters 732 759 */ … … 743 770 * The storage for the glyph information is owned 744 771 * by the structure which simplifies memory management. 745 * gint num_glyphs;772 * gint num_glyphs; 746 773 * the number of glyphs in the string. 747 * PangoGlyphInfo *glyphs;774 * PangoGlyphInfo *glyphs; 748 775 * an array of PangoGlyphInfo structures of length num_glyphs. 749 * gint *log_clusters;776 * gint *log_clusters; 750 777 * for each glyph, byte index of the starting character for the 751 778 * cluster. The indices are relative to the start of the text … … 771 798 * of shaping text with PangoLayout is a list of PangoLayoutLine, 772 799 * each of which contains a list of PangoGlyphItem. 773 * PangoItem *item;800 * PangoItem *item; 774 801 * a PangoItem structure that provides information 775 802 */ … … 778 805 PangoItem *item; 779 806 PangoGlyphString *glyphs; 807 } 808 809 810 /** 811 * A PangoGlyphItemIter is an iterator over the clusters in a 812 * PangoGlyphItem. The forward direction of the 813 * iterator is the logical direction of text. That is, with increasing 814 * start_index and start_char values. If glyph_item is right-to-left 815 * (that is, if glyph_item->item->analysis.level is odd), 816 * then start_glyph decreases as the iterator moves forward. Moreover, 817 * in right-to-left cases, start_glyph is greater than end_glyph. 818 * An iterator should be initialized using either of 819 * pango_glyph_item_iter_init_start() and 820 * pango_glyph_item_iter_init_end(), for forward and backward iteration 821 * respectively, and walked over using any desired mixture of 822 * pango_glyph_item_iter_next_cluster() and 823 * pango_glyph_item_iter_prev_cluster(). A common idiom for doing a 824 * forward iteration over the clusters is: 825 * PangoGlyphItemIter cluster_iter; 826 * gboolean have_cluster; 827 * for (have_cluster = pango_glyph_item_iter_init_start (cluster_iter, 828 */ 829 public struct PangoGlyphItemIter 830 { 831 PangoGlyphItem *glyphItem; 832 char *text; 833 int startGlyph; 834 int startIndex; 835 int startChar; 836 int endGlyph; 837 int endIndex; 838 int endChar; 780 839 } 781 840 … … 796 855 * the documentation of the corresponding getters for documentation 797 856 * of their meaning. 798 * guint ref_count;857 * guint ref_count; 799 858 * reference count. Used internally. See pango_font_metrics_ref() 800 859 */ … … 863 922 * The PangoFontMapClass structure holds the virtual functions for 864 923 * a particular PangoFontMap implementation. 865 * GObjectClass parent_class;924 * GObjectClass parent_class; 866 925 * parent GObjectClass. 867 * load_font ()926 * load_font () 868 927 * a function to load a font with a given description. See 869 928 */ … … 892 951 * The PangoFontsetClass structure holds the virtual functions for 893 952 * a particular PangoFontset implementation. 894 * GObjectClass parent_class;953 * GObjectClass parent_class; 895 954 * parent GObjectClass. 896 * get_font ()955 * get_font () 897 956 * a function to get the font in the fontset that contains the 898 957 */ … … 921 980 * not be called directly. Instead, one should use the wrapper functions 922 981 * provided for PangoAttribute. 923 * PangoAttrType type;982 * PangoAttrType type; 924 983 * the type ID for this attribute 925 * copy ()984 * copy () 926 985 * function to duplicate an attribute of this type (see pango_attribute_copy()) 927 * destroy ()986 * destroy () 928 987 * function to free an attribute of this type (see pango_attribute_destroy()) 929 * equal ()988 * equal () 930 989 * function to check two attributes of this type for equality (see pango_attribute_equal()) 931 990 */ … … 947 1006 * applies and should be initialized using pango_attribute_init(). 948 1007 * By default an attribute will have an all-inclusive range of [0,G_MAXUINT]. 949 * const PangoAttrClass*klass;1008 * const PangoAttrClass *klass; 950 1009 * the class structure holding information about the type of the attribute 951 * guint start_index;1010 * guint start_index; 952 1011 * the start index of the range (in bytes). 953 * guint end_index;1012 * guint end_index; 954 1013 * end index of the range (in bytes). The character at this index 955 1014 */ … … 965 1024 * The PangoAttrString structure is used to represent attributes with 966 1025 * a string value. 967 * PangoAttribute attr;1026 * PangoAttribute attr; 968 1027 * the common portion of the attribute 969 * char *value;1028 * char *value; 970 1029 * the string which is the value of the attribute 971 1030 */ … … 980 1039 * The PangoAttrLanguage structure is used to represent attributes that 981 1040 * are languages. 982 * PangoAttribute attr;1041 * PangoAttribute attr; 983 1042 * the common portion of the attribute 984 * PangoLanguage *value;1043 * PangoLanguage *value; 985 1044 * the PangoLanguage which is the value of the attribute 986 1045 */ … … 995 1054 * The PangoAttrColor structure is used to represent attributes that 996 1055 * are colors. 997 * PangoAttribute attr;1056 * PangoAttribute attr; 998 1057 * the common portion of the attribute 999 * PangoColor color;1058 * PangoColor color; 1000 1059 * the PangoColor which is the value of the attribute 1001 1060 */ … … 1010 1069 * The PangoAttrInt structure is used to represent attributes with 1011 1070 * an integer or enumeration value. 1012 * PangoAttribute attr;1071 * PangoAttribute attr; 1013 1072 * the common portion of the attribute 1014 * int value;1073 * int value; 1015 1074 * the value of the attribute 1016 1075 */ … … 1025 1084 * The PangoAttrFloat structure is used to represent attributes with 1026 1085 * a float or double value. 1027 * PangoAttribute attr;1086 * PangoAttribute attr; 1028 1087 * the common portion of the attribute 1029 * double value;1088 * double value; 1030 1089 * the value of the attribute 1031 1090 */ … … 1040 1099 * The PangoAttrFontDesc structure is used to store an attribute that 1041 1100 * sets all aspects of the font description at once. 1042 * PangoAttribute attr;1101 * PangoAttribute attr; 1043 1102 * the common portion of the attribute 1044 * PangoFontDescription *desc;1103 * PangoFontDescription *desc; 1045 1104 * the font description which is the value of this attribute 1046 1105 */ … … 1055 1114 * The PangoAttrShape structure is used to represent attributes which 1056 1115 * impose shape restrictions. 1057 * PangoAttribute attr;1116 * PangoAttribute attr; 1058 1117 * the common portion of the attribute 1059 * PangoRectangle ink_rect;1118 * PangoRectangle ink_rect; 1060 1119 * the ink rectangle to restrict to 1061 * PangoRectangle logical_rect;1120 * PangoRectangle logical_rect; 1062 1121 * the logical rectangle to restrict to 1063 * gpointer data;1122 * gpointer data; 1064 1123 * user data set (see pango_attr_shape_new_with_data()) 1065 * PangoAttrDataCopyFunc copy_func;1124 * PangoAttrDataCopyFunc copy_func; 1066 1125 * copy function for the user data 1067 * GDestroyNotify destroy_func;1126 * GDestroyNotify destroy_func; 1068 1127 * destroy function for the user data 1069 1128 */ … … 1082 1141 * The PangoAttrShape structure is used to represent attributes which 1083 1142 * set font size. 1084 * PangoAttribute attr;1143 * PangoAttribute attr; 1085 1144 * the common portion of the attribute 1086 * int size;1145 * int size; 1087 1146 * size of font, in units of 1/PANGO_SCALE of a point (for 1088 1147 */ … … 1099 1158 * The PangoColor structure is used to 1100 1159 * represent a color in an uncalibrated RGB color-space. 1101 * guint16 red;1160 * guint16 red; 1102 1161 * The red component of the color. This is a value between 0 and 65535, 1103 1162 */ … … 1108 1167 ushort blue; 1109 1168 } 1110 1111 1112 /**1113 * The PangoLanguage structure is used to1114 * represent a language.1115 * PangoLanguage pointers can be efficiently1116 * copied and compared with each other.1117 */1118 public struct PangoLanguage{}1119 1169 1120 1170 … … 1163 1213 * position of the resulting glyphs can be made. 1164 1214 * There are also a number of parameters to adjust the formatting 1165 * of a PangoLayout, which are illustrated in Figure 1, Adjustable parameters for a PangoLayout.1215 * of a PangoLayout, which are illustrated in Figure 1, âAdjustable parameters for a PangoLayoutâ. 1166 1216 * It is possible, as well, to ignore the 2-D setup, and simply 1167 1217 * treat the results of a PangoLayout as a list of lines. 1168 * Figure 1.Adjustable parameters for a PangoLayout1218 * Figure 1. Adjustable parameters for a PangoLayout 1169 1219 * The PangoLayout structure is opaque, and has no user-visible 1170 1220 * fields. … … 1190 1240 * Routines for rendering PangoLayout objects are provided in 1191 1241 * code specific to each rendering system. 1192 * PangoLayout *layout;1242 * PangoLayout *layout; 1193 1243 * the parent layout for this line 1194 * gint start_index;1244 * gint start_index; 1195 1245 * the start of the line as byte index into layout->text 1196 * gint length;1246 * gint length; 1197 1247 * the length of the line in bytes 1198 * GSList *runs;1248 * GSList *runs; 1199 1249 * a list containing the runs of the line in visual order 1200 * guint is_paragraph_start:1;1250 * guint is_paragraph_start : 1; 1201 1251 * TRUE if this is the first line of the paragraph 1202 * guint resolved_dir:3;1252 * guint resolved_dir : 3; 1203 1253 * the resolved PangoDirection of the line 1204 1254 */ … … 1223 1273 1224 1274 /** 1275 * The PangoLanguage structure is used to 1276 * represent a language. 1277 * PangoLanguage pointers can be efficiently 1278 * copied and compared with each other. 1279 */ 1280 public struct PangoLanguage{} 1281 1282 1283 /** 1225 1284 * PangoCairoFont is an interface exported by fonts for 1226 1285 * use with Cairo. The actual type of the font will depend … … 1245 1304 * render Pango objects such as PangoGlyphString and 1246 1305 * PangoLayout. 1247 * PangoMatrix *matrix;1306 * PangoMatrix *matrix; 1248 1307 */ 1249 1308 public struct PangoRenderer … … 1255 1314 /** 1256 1315 * Class structure for PangoRenderer. 1257 * draw_glyphs ()1316 * draw_glyphs () 1258 1317 */ 1259 1318 public struct PangoRendererClass … … 1282 1341 +/ 1283 1342 extern(C) void function(PangoRenderer *renderer,PangoLayoutRun *run) prepareRun; 1343 /+* All of the following have defaulx implementations 1344 * and take as coordinates user coordinates inn Pango units 1345 +/ 1346 extern(C) void function(PangoRenderer *renderer,char *text,PangoGlyphItem *glyphItem,int x,int y) drawGlyphItem; 1284 1347 } 1285 1348 … … 1296 1359 * The PangoEngineInfo structure contains information about a particular 1297 1360 * engine. It contains the following fields: 1298 * const gchar*id;1361 * const gchar *id; 1299 1362 * a unique string ID for the engine. 1300 * const gchar*engine_type;1363 * const gchar *engine_type; 1301 1364 * a string identifying the engine type. 1302 * const gchar*render_type;1365 * const gchar *render_type; 1303 1366 * a string identifying the render type. 1304 * PangoEngineScriptInfo *scripts;1367 * PangoEngineScriptInfo *scripts; 1305 1368 * array of scripts this engine supports. 1306 * gint n_scripts;1369 * gint n_scripts; 1307 1370 * number of items in scripts. 1308 1371 */ … … 1321 1384 * information about how the shaper covers a particular 1322 1385 * script. 1323 * PangoScript script;1386 * PangoScript script; 1324 1387 * a PangoScript. The value PANGO_SCRIPT_COMMON has 1325 1388 */ … … 1359 1422 /** 1360 1423 * Class structure for PangoEngineLang 1361 * script_break ()1424 * script_break () 1362 1425 */ 1363 1426 public struct PangoEngineLangClass … … 1383 1446 /** 1384 1447 * Class structure for PangoEngineShape 1385 * script_shape ()1448 * script_shape () 1386 1449 */ 1387 1450 public struct PangoEngineShapeClass … … 1394 1457 /* 1395 1458 * Converts a dimension to device units by rounding. 1396 * d :1459 * d : 1397 1460 * a dimension in Pango units. 1398 * Returns :1461 * Returns : 1399 1462 * rounded dimension in device units. 1400 1463 */ … … 1404 1467 /* 1405 1468 * Converts a dimension to device units by flooring. 1406 * d :1469 * d : 1407 1470 * a dimension in Pango units. 1408 * Returns :1471 * Returns : 1409 1472 * floored dimension in device units. 1410 1473 * Since 1.14 … … 1415 1478 /* 1416 1479 * Converts a dimension to device units by ceiling. 1417 * d :1480 * d : 1418 1481 * a dimension in Pango units. 1419 * Returns :1482 * Returns : 1420 1483 * ceiled dimension in device units. 1421 1484 * Since 1.14 … … 1427 1490 * Rounds a dimension to whole device units, but does not 1428 1491 * convert it to device units. 1429 * d :1492 * d : 1430 1493 * a dimension in Pango units. 1431 * Returns :1494 * Returns : 1432 1495 * rounded dimension in Pango units. 1433 1496 * Since 1.18 … … 1441 1504 * baseline to the highest point of the character. This is positive if the 1442 1505 * glyph ascends above the baseline. 1443 * rect :1506 * rect : 1444 1507 * a PangoRectangle 1445 1508 */ … … 1452 1515 * baseline to the lowest point of the character. This is positive if the 1453 1516 * glyph descends below the baseline. 1454 * rect :1517 * rect : 1455 1518 * a PangoRectangle 1456 1519 */ … … 1464 1527 * This is positive for characters drawn completely to the right of the 1465 1528 * glyph origin. 1466 * rect :1529 * rect : 1467 1530 * a PangoRectangle 1468 1531 */ … … 1476 1539 * This is positive except for characters drawn completely to the left of the 1477 1540 * horizontal origin. 1478 * rect :1541 * rect : 1479 1542 * a PangoRectangle 1480 1543 */ … … 1487 1550 * a box with the hexadecimal Unicode code-point of the character written in it 1488 1551 * is what is done in the most common backends. 1489 * wc :1552 * wc : 1490 1553 * a Unicode character 1491 1554 */ … … 1495 1558 /* 1496 1559 * Casts a GObject to a PangoFont. 1497 * object :1560 * object : 1498 1561 * a GObject. 1499 1562 */ … … 1503 1566 /* 1504 1567 * Returns TRUE if object is a PangoFont. 1505 * object :1568 * object : 1506 1569 * a GObject. 1507 1570 */ … … 1511 1574 /* 1512 1575 * Casts a GObject to a PangoFontFamily. 1513 * object :1576 * object : 1514 1577 * a GObject. 1515 1578 */ … … 1519 1582 /* 1520 1583 * Returns TRUE if object is a PangoFontFamily. 1521 * object :1584 * object : 1522 1585 * a GObject. 1523 1586 */ … … 1527 1590 /* 1528 1591 * Casts a GObject to a PangoFontFace. 1529 * object :1592 * object : 1530 1593 * a GObject. 1531 1594 */ … … 1535 1598 /* 1536 1599 * Returns TRUE if object is a PangoFontFace. 1537 * object :1600 * object : 1538 1601 * a GObject. 1539 1602 */ … … 1543 1606 /* 1544 1607 * Casts a GObject to a PangoFontMap. 1545 * object :1608 * object : 1546 1609 * a GObject. 1547 1610 */ … … 1551 1614 /* 1552 1615 * Returns TRUE if object is a PangoFontMap. 1553 * object :1616 * object : 1554 1617 * a GObject. 1555 1618 */ … … 1559 1622 /* 1560 1623 * Casts a GObject to a PangoFontMapClass. 1561 * klass :1624 * klass : 1562 1625 * a GObject.
