Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/pangocairo.d @ 120:536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
===D2===
* added [Try]Immutable/Const/Shared templates to work with differenses in D1/D2 instead of version statements
used these templates to work with strict type storage rules of dmd-2.053
* com.ibm.icu now also compilable with D2, but not tested yet
* small fixes
Snippet288 - shared data is in TLS
===Phobos===
* fixed critical bugs in Phobos implemention
completely incorrect segfault prone fromStringz (Linux's port ruthless killer)
terrible, incorrect StringBuffer realization (StyledText killer)
* fixed small bugs as well
Snippet72 - misprint in the snippet
* implemented missed functionality for Phobos
ByteArrayOutputStream implemented (image loading available)
formatting correctly works for all DWT's cases
As a result, folowing snippets now works with Phobos (Snippet### - what is fixed):
Snippet24, 42, 111, 115, 130, 235, 276 - bad string formatting
Snippet48, 282 - crash on image loading
Snippet163, 189, 211, 213, 217, 218, 222 - crash on copy/cut in StyledText
Snippet244 - hang-up
===Tango===
* few changes for the latest Tango trunc-r5661
* few small performance improvments
===General===
* implMissing-s for only one version changed to implMissingInTango/InPhobos
* incorrect calls to Format in toString-s fixed
* fixed loading \uXXXX characters in ResourceBundle
* added good UTF-8 support for StyledText, TextLayout (Win32) and friends
UTF functions revised and tested. It is now in java.nonstandard.*Utf modules
StyledText and TextLayout (Win32) modules revised for UTF-8 support
* removed small diferences in most identical files in *.swt.* folders
*.swt.internal.image, *.swt.events and *.swt.custom are identical in Win32/Linux32
now 179 of 576 (~31%) files in *.swt.* folders are fully identical
* Win32: snippets now have right subsystem, pretty icons and native system style controls
* small fixes in snippets
Snippet44 - it's not Snippet44
Snippet212 - functions work with different images and offsets arrays
Win32: Snippet282 - crash on close if the button has an image
Snippet293 - setGrayed is commented
and others
Win32: As a result, folowing snippets now works
Snippet68 - color doesn't change
Snippet163, 189, 211, 213, 217, 218, 222 - UTF-8 issues (see above)
Snippet193 - no tabel headers
author | Denis Shelomovskij <verylonglogin.reg@gmail.com> |
---|---|
date | Sat, 09 Jul 2011 15:50:20 +0300 |
parents | fb3aa8075988 |
children |
rev | line source |
---|---|
25 | 1 /****************************************************************************** |
2 Based on the generated files from the BCD tool | |
3 modified by: Frank Benoit <keinfarbton@googlemail.com> | |
4 ******************************************************************************/ | |
5 module org.eclipse.swt.internal.c.pangocairo; | |
6 | |
7 import java.lang.all; | |
8 | |
9 public import org.eclipse.swt.internal.c.cairo; | |
10 public import org.eclipse.swt.internal.c.pango; | |
11 public import org.eclipse.swt.internal.c.glib_object; | |
12 | |
13 extern(C): | |
14 align(4): | |
15 | |
16 alias void function(void *, _PangoAttrShape *, int, void *) _BCD_func__2844; | |
17 alias _BCD_func__2844 PangoCairoShapeRendererFunc; | |
18 alias void PangoCairoFontMap; | |
19 alias void PangoCairoFont; | |
20 alias void function(void *) _BCD_func__2912; | |
21 alias int function(void *, char *, uint) _BCD_func__2907; | |
22 alias int function(void *, char *, uint) _BCD_func__2908; | |
23 alias void * function(void *) _BCD_func__3005; | |
24 alias int function(_PangoAttribute *, void *) _BCD_func__3006; | |
25 alias int function(void *, void *, void *) _BCD_func__3062; | |
26 alias void function(void *, uint, uint, _GInterfaceInfo *) _BCD_func__3114; | |
27 alias void function(void *, uint, _GTypeInfo *, _GTypeValueTable *) _BCD_func__3115; | |
28 alias void function(void *) _BCD_func__3116; | |
29 alias void function(void *, _GObject *, int) _BCD_func__3264; | |
30 alias void function(void *, _GObject *) _BCD_func__3269; | |
31 alias void function(_GObject *) _BCD_func__3270; | |
32 alias void function(_GObject *, uint, _GValue *, _GParamSpec *) _BCD_func__3271; | |
33 alias void function(_GObject *, uint, _GValue *, _GParamSpec *) _BCD_func__3272; | |
34 alias int function(_GSignalInvocationHint *, _GValue *, _GValue *, void *) _BCD_func__3298; | |
35 alias int function(_GSignalInvocationHint *, uint, _GValue *, void *) _BCD_func__3299; | |
36 alias void function(_GClosure *, _GValue *, uint, _GValue *, void *, void *) _BCD_func__3300; | |
37 alias void function(void *, _GClosure *) _BCD_func__3319; | |
38 alias void function() _BCD_func__3320; | |
39 alias void function(_GValue *, _GValue *) _BCD_func__3377; | |
40 alias void * function(void *) _BCD_func__3405; | |
41 alias void function(void *, void *) _BCD_func__3409; | |
42 alias int function(void *, _GTypeClass *) _BCD_func__3410; | |
43 alias void function(_GTypeInstance *, void *) _BCD_func__3411; | |
44 alias int function(void *, void *, void *) _BCD_func__3467; | |
45 alias int function(void *, void *, void *) _BCD_func__3483; | |
46 alias void function(_GScanner *, char *, int) _BCD_func__3486; | |
47 alias int function(void *, _GString *, void *) _BCD_func__3559; | |
48 alias void function(void *, void *, void *, _GError * *) _BCD_func__3577; | |
49 alias int function(void *, void *, void *, _GError * *) _BCD_func__3578; | |
50 alias int function(char *, char *, void *, _GError * *) _BCD_func__3579; | |
51 alias void * function(void *, void *) _BCD_func__3590; | |
52 alias void function(_GNode *, void *) _BCD_func__3591; | |
53 alias int function(_GNode *, void *) _BCD_func__3592; | |
54 alias void function(char *) _BCD_func__3600; | |
55 alias void function(char *, int, char *, void *) _BCD_func__3602; | |
56 alias int function(_GIOChannel *, int, void *) _BCD_func__3620; | |
57 alias int function(_GPollFD *, uint, int) _BCD_func__3672; | |
58 alias void function(int, int, void *) _BCD_func__3678; | |
59 alias int function(void *) _BCD_func__3679; | |
60 alias void function(_GHookList *, _GHook *) _BCD_func__3714; | |
61 alias int function(_GHook *, void *) _BCD_func__3715; | |
62 alias void function(_GHook *, void *) _BCD_func__3716; | |
63 alias int function(_GHook *, _GHook *) _BCD_func__3717; | |
64 alias void function(uint, void *, void *) _BCD_func__3751; | |
65 alias int function(char *, char *, uint) _BCD_func__3754; | |
66 alias char * function(void *) _BCD_func__3755; | |
67 alias char * function(char *, void *) _BCD_func__3946; | |
68 alias void function(void *, void *, void *) _BCD_func__3947; | |
69 alias uint function(void *) _BCD_func__3948; | |
70 alias int function(void *, void *) _BCD_func__3949; | |
71 alias int function(void *, void *, void *) _BCD_func__3950; | |
72 alias int function(void *, void *) _BCD_func__3951; | |
73 version(DYNLINK){ | |
113 | 74 mixin(gshared!( |
75 "extern (C) void function(void *, double, double, double, double)pango_cairo_error_underline_path; | |
25 | 76 extern (C) void function(void *, void *)pango_cairo_layout_path; |
77 extern (C) void function(void *, _PangoLayoutLine *)pango_cairo_layout_line_path; | |
78 extern (C) void function(void *, void *, _PangoGlyphString *)pango_cairo_glyph_string_path; | |
79 extern (C) void function(void *, double, double, double, double)pango_cairo_show_error_underline; | |
80 extern (C) void function(void *, void *)pango_cairo_show_layout; | |
81 extern (C) void function(void *, _PangoLayoutLine *)pango_cairo_show_layout_line; | |
82 extern (C) void function(void *, void *, _PangoGlyphString *)pango_cairo_show_glyph_string; | |
83 extern (C) void function(void *, void *)pango_cairo_update_layout; | |
84 extern (C) void * function(void *)pango_cairo_create_layout; | |
85 extern (C) _BCD_func__2844 function(void *, void * *)pango_cairo_context_get_shape_renderer; | |
86 extern (C) void function(void *, _BCD_func__2844, void *, _BCD_func__2912)pango_cairo_context_set_shape_renderer; | |
87 extern (C) double function(void *)pango_cairo_context_get_resolution; | |
88 extern (C) void function(void *, double)pango_cairo_context_set_resolution; | |
89 extern (C) void * function(void *)pango_cairo_context_get_font_options; | |
90 extern (C) void function(void *, void *)pango_cairo_context_set_font_options; | |
91 extern (C) void function(void *, void *)pango_cairo_update_context; | |
92 extern (C) void * function(void *)pango_cairo_font_get_scaled_font; | |
93 extern (C) uint function()pango_cairo_font_get_type; | |
94 extern (C) void * function(void *)pango_cairo_font_map_create_context; | |
95 extern (C) double function(void *)pango_cairo_font_map_get_resolution; | |
96 extern (C) void function(void *, double)pango_cairo_font_map_set_resolution; | |
97 extern (C) int function(void *)pango_cairo_font_map_get_font_type; | |
98 extern (C) void * function()pango_cairo_font_map_get_default; | |
99 extern (C) void * function(int)pango_cairo_font_map_new_for_font_type; | |
100 extern (C) void * function()pango_cairo_font_map_new; | |
113 | 101 extern (C) uint function()pango_cairo_font_map_get_type;" |
102 )); | |
25 | 103 |
113 | 104 Symbol[] symbols; |
105 static this () { | |
106 symbols = [ | |
107 Symbol("pango_cairo_error_underline_path", cast(void**)& pango_cairo_error_underline_path), | |
108 Symbol("pango_cairo_layout_path", cast(void**)& pango_cairo_layout_path), | |
109 Symbol("pango_cairo_layout_line_path", cast(void**)& pango_cairo_layout_line_path), | |
110 Symbol("pango_cairo_glyph_string_path", cast(void**)& pango_cairo_glyph_string_path), | |
111 Symbol("pango_cairo_show_error_underline", cast(void**)& pango_cairo_show_error_underline), | |
112 Symbol("pango_cairo_show_layout", cast(void**)& pango_cairo_show_layout), | |
113 Symbol("pango_cairo_show_layout_line", cast(void**)& pango_cairo_show_layout_line), | |
114 Symbol("pango_cairo_show_glyph_string", cast(void**)& pango_cairo_show_glyph_string), | |
115 Symbol("pango_cairo_update_layout", cast(void**)& pango_cairo_update_layout), | |
116 Symbol("pango_cairo_create_layout", cast(void**)& pango_cairo_create_layout), | |
117 Symbol("pango_cairo_context_get_shape_renderer", cast(void**)& pango_cairo_context_get_shape_renderer), | |
118 Symbol("pango_cairo_context_set_shape_renderer", cast(void**)& pango_cairo_context_set_shape_renderer), | |
119 Symbol("pango_cairo_context_get_resolution", cast(void**)& pango_cairo_context_get_resolution), | |
120 Symbol("pango_cairo_context_set_resolution", cast(void**)& pango_cairo_context_set_resolution), | |
121 Symbol("pango_cairo_context_get_font_options", cast(void**)& pango_cairo_context_get_font_options), | |
122 Symbol("pango_cairo_context_set_font_options", cast(void**)& pango_cairo_context_set_font_options), | |
123 Symbol("pango_cairo_update_context", cast(void**)& pango_cairo_update_context), | |
124 Symbol("pango_cairo_font_get_scaled_font", cast(void**)& pango_cairo_font_get_scaled_font), | |
125 Symbol("pango_cairo_font_get_type", cast(void**)& pango_cairo_font_get_type), | |
126 Symbol("pango_cairo_font_map_create_context", cast(void**)& pango_cairo_font_map_create_context), | |
127 Symbol("pango_cairo_font_map_get_resolution", cast(void**)& pango_cairo_font_map_get_resolution), | |
128 Symbol("pango_cairo_font_map_set_resolution", cast(void**)& pango_cairo_font_map_set_resolution), | |
129 Symbol("pango_cairo_font_map_get_font_type", cast(void**)& pango_cairo_font_map_get_font_type), | |
130 Symbol("pango_cairo_font_map_get_default", cast(void**)& pango_cairo_font_map_get_default), | |
131 Symbol("pango_cairo_font_map_new_for_font_type", cast(void**)& pango_cairo_font_map_new_for_font_type), | |
132 Symbol("pango_cairo_font_map_new", cast(void**)& pango_cairo_font_map_new), | |
120
536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
Denis Shelomovskij <verylonglogin.reg@gmail.com>
parents:
113
diff
changeset
|
133 Symbol("pango_cairo_font_map_get_type", cast(void**)& pango_cairo_font_map_get_type) |
113 | 134 ]; |
135 } | |
25 | 136 |
137 } else { // version(DYNLINK) | |
138 extern (C) void pango_cairo_error_underline_path(void *, double, double, double, double); | |
139 extern (C) void pango_cairo_layout_path(void *, void *); | |
140 extern (C) void pango_cairo_layout_line_path(void *, _PangoLayoutLine *); | |
141 extern (C) void pango_cairo_glyph_string_path(void *, void *, _PangoGlyphString *); | |
142 extern (C) void pango_cairo_show_error_underline(void *, double, double, double, double); | |
143 extern (C) void pango_cairo_show_layout(void *, void *); | |
144 extern (C) void pango_cairo_show_layout_line(void *, _PangoLayoutLine *); | |
145 extern (C) void pango_cairo_show_glyph_string(void *, void *, _PangoGlyphString *); | |
146 extern (C) void pango_cairo_update_layout(void *, void *); | |
147 extern (C) void * pango_cairo_create_layout(void *); | |
148 extern (C) _BCD_func__2844 pango_cairo_context_get_shape_renderer(void *, void * *); | |
149 extern (C) void pango_cairo_context_set_shape_renderer(void *, _BCD_func__2844, void *, _BCD_func__2912); | |
150 extern (C) double pango_cairo_context_get_resolution(void *); | |
151 extern (C) void pango_cairo_context_set_resolution(void *, double); | |
152 extern (C) void * pango_cairo_context_get_font_options(void *); | |
153 extern (C) void pango_cairo_context_set_font_options(void *, void *); | |
154 extern (C) void pango_cairo_update_context(void *, void *); | |
155 extern (C) void * pango_cairo_font_get_scaled_font(void *); | |
156 extern (C) uint pango_cairo_font_get_type(); | |
157 extern (C) void * pango_cairo_font_map_create_context(void *); | |
158 extern (C) double pango_cairo_font_map_get_resolution(void *); | |
159 extern (C) void pango_cairo_font_map_set_resolution(void *, double); | |
160 extern (C) int pango_cairo_font_map_get_font_type(void *); | |
161 extern (C) void * pango_cairo_font_map_get_default(); | |
162 extern (C) void * pango_cairo_font_map_new_for_font_type(int); | |
163 extern (C) void * pango_cairo_font_map_new(); | |
164 extern (C) uint pango_cairo_font_map_get_type(); | |
165 } // version(DYNLINK) |