comparison dwt/internal/BidiUtil.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
comparison
equal deleted inserted replaced
0:380af2bdd8e5 1:8b48be5454ce
21 /* 21 /*
22 * This class is supplied so that the StyledText code that supports bidi text (supported 22 * This class is supplied so that the StyledText code that supports bidi text (supported
23 * for win platforms) is not platform dependent. Bidi text is not implemented on 23 * for win platforms) is not platform dependent. Bidi text is not implemented on
24 * emulated platforms. 24 * emulated platforms.
25 */ 25 */
26 public class BidiUtil 26 public class BidiUtil {
27 {
28 // Keyboard language types 27 // Keyboard language types
29 public static const int KEYBOARD_NON_BIDI = 0; 28 public static const int KEYBOARD_NON_BIDI = 0;
30 public static const int KEYBOARD_BIDI = 1; 29 public static const int KEYBOARD_BIDI = 1;
31 30
32 // bidi rendering input flag constants, not used 31 // bidi rendering input flag constants, not used
38 // bidi rendering/ordering constants, not used on 37 // bidi rendering/ordering constants, not used on
39 // emulated platforms 38 // emulated platforms
40 public static const int CLASS_HEBREW = 2; 39 public static const int CLASS_HEBREW = 2;
41 public static const int CLASS_ARABIC = 2; 40 public static const int CLASS_ARABIC = 2;
42 public static const int CLASS_LOCALNUMBER = 4; 41 public static const int CLASS_LOCALNUMBER = 4;
43 public static const int CLASS_LATINNUMBER = 5; 42 public static const int CLASS_LATINNUMBER = 5;
44 public static const int REORDER = 0; 43 public static const int REORDER = 0;
45 public static const int LIGATE = 0; 44 public static const int LIGATE = 0;
46 public static const int GLYPHSHAPE = 0; 45 public static const int GLYPHSHAPE = 0;
47 46
48 /* 47 /*
49 * Not implemented. 48 * Not implemented.
50 */ 49 */
51 public static void addLanguageListener (int /*long*/hwnd, 50 public static void addLanguageListener(int /*long*/ hwnd, Runnable runnable) {
52 Runnable runnable)
53 {
54 }
55
56 public static void addLanguageListener (Control control, Runnable runnable)
57 {
58 }
59
60 /*
61 * Not implemented.
62 *
63 */
64 public static void drawGlyphs (GC gc, char[] renderBuffer, int[] renderDx,
65 int x, int y)
66 {
67 }
68
69 /*
70 * Bidi not supported on emulated platforms.
71 *
72 */
73 public static bool isBidiPlatform ()
74 {
75 return false;
76 }
77
78 /*
79 * Not implemented.
80 */
81 public static bool isKeyboardBidi ()
82 {
83 return false;
84 }
85
86 /*
87 * Not implemented.
88 */
89 public static int getFontBidiAttributes (GC gc)
90 {
91 return 0;
92 }
93
94 /*
95 * Not implemented.
96 *
97 */
98 public static void getOrderInfo (GC gc, String text, int[] order,
99 byte[] classBuffer, int flags, int[] offsets)
100 {
101 }
102
103 /*
104 * Not implemented. Returns null.
105 *
106 */
107 public static char[] getRenderInfo (GC gc, String text, int[] order,
108 byte[] classBuffer, int[] dx, int flags, int[] offsets)
109 {
110 return null;
111 }
112
113 /*
114 * Not implemented. Returns 0.
115 */
116 public static int getKeyboardLanguage ()
117 {
118 return 0;
119 }
120
121 /*
122 * Not implemented.
123 */
124 public static void removeLanguageListener (int /*long*/hwnd)
125 {
126 }
127
128 public static void removeLanguageListener (Control control)
129 {
130 }
131
132 /*
133 * Not implemented.
134 */
135 public static void setKeyboardLanguage (int language)
136 {
137 }
138
139 /*
140 * Not implemented.
141 */
142 public static bool setOrientation (int /*long*/hwnd, int orientation)
143 {
144 return false;
145 }
146
147 public static bool setOrientation (Control control, int orientation)
148 {
149 return false;
150 }
151 } 51 }
52 public static void addLanguageListener (Control control, Runnable runnable) {
53 }
54 /*
55 * Not implemented.
56 *
57 */
58 public static void drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y) {
59 }
60 /*
61 * Bidi not supported on emulated platforms.
62 *
63 */
64 public static boolean isBidiPlatform() {
65 return false;
66 }
67 /*
68 * Not implemented.
69 */
70 public static boolean isKeyboardBidi() {
71 return false;
72 }
73 /*
74 * Not implemented.
75 */
76 public static int getFontBidiAttributes(GC gc) {
77 return 0;
78 }
79 /*
80 * Not implemented.
81 *
82 */
83 public static void getOrderInfo(GC gc, String text, int[] order, byte[] classBuffer, int flags, int [] offsets) {
84 }
85 /*
86 * Not implemented. Returns null.
87 *
88 */
89 public static char[] getRenderInfo(GC gc, String text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets) {
90 return null;
91 }
92 /*
93 * Not implemented. Returns 0.
94 */
95 public static int getKeyboardLanguage() {
96 return 0;
97 }
98 /*
99 * Not implemented.
100 */
101 public static void removeLanguageListener(int /*long*/ hwnd) {
102 }
103 public static void removeLanguageListener (Control control) {
104 }
105 /*
106 * Not implemented.
107 */
108 public static void setKeyboardLanguage(int language) {
109 }
110 /*
111 * Not implemented.
112 */
113 public static boolean setOrientation(int /*long*/ hwnd, int orientation) {
114 return false;
115 }
116 public static boolean setOrientation (Control control, int orientation) {
117 return false;
118 }
119 }