stub out the Projection classes as well as duplicating the disgusting hack used for...
[moon.git] / class / System.Windows / Mono / GeneratedPInvokes.cs
blob1f8abb0c2745a3ad4682345c204ce68d47ce41fb
1 /*
2 * Automatically generated, do not edit this file directly
3 */
5 using System;
6 using System.Windows;
7 using System.Runtime.InteropServices;
9 namespace Mono {
10 internal static partial class NativeMethods
12 /* moonplugin methods */
14 [DllImport ("moonplugin")]
15 // void *plugin_instance_evaluate (PluginInstance *instance, const char *code);
16 public extern static IntPtr plugin_instance_evaluate (IntPtr instance, string code);
18 [DllImport ("moonplugin")]
19 // gint32 plugin_instance_get_actual_height (PluginInstance *instance);
20 public extern static int plugin_instance_get_actual_height (IntPtr instance);
22 [DllImport ("moonplugin")]
23 // gint32 plugin_instance_get_actual_width (PluginInstance *instance);
24 public extern static int plugin_instance_get_actual_width (IntPtr instance);
26 [DllImport ("moonplugin")]
27 [return: MarshalAs (UnmanagedType.U1)]
28 // bool plugin_instance_get_allow_html_popup_window (PluginInstance *instance);
29 public extern static bool plugin_instance_get_allow_html_popup_window (IntPtr instance);
31 [DllImport ("moonplugin")]
32 // void *plugin_instance_get_browser_host (PluginInstance *instance);
33 public extern static IntPtr plugin_instance_get_browser_host (IntPtr instance);
35 [DllImport ("moonplugin")]
36 [return: MarshalAs (UnmanagedType.U1)]
37 // bool plugin_instance_get_enable_html_access (PluginInstance *instance);
38 public extern static bool plugin_instance_get_enable_html_access (IntPtr instance);
40 [DllImport ("moonplugin", EntryPoint="plugin_instance_get_init_params")]
41 // const char *plugin_instance_get_init_params (PluginInstance *instance);
42 private extern static IntPtr plugin_instance_get_init_params_ (IntPtr instance);
43 public static string plugin_instance_get_init_params (IntPtr instance)
45 IntPtr result;
46 result = plugin_instance_get_init_params_ (instance);
47 if (result == IntPtr.Zero)
48 return null;
49 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
50 return s;
53 [DllImport ("moonplugin", EntryPoint="plugin_instance_get_source")]
54 // const char *plugin_instance_get_source (PluginInstance *instance);
55 private extern static IntPtr plugin_instance_get_source_ (IntPtr instance);
56 public static string plugin_instance_get_source (IntPtr instance)
58 IntPtr result;
59 result = plugin_instance_get_source_ (instance);
60 if (result == IntPtr.Zero)
61 return null;
62 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
63 return s;
66 [DllImport ("moonplugin", EntryPoint="plugin_instance_get_source_location")]
67 // const char *plugin_instance_get_source_location (PluginInstance *instance);
68 private extern static IntPtr plugin_instance_get_source_location_ (IntPtr instance);
69 public static string plugin_instance_get_source_location (IntPtr instance)
71 IntPtr result;
72 result = plugin_instance_get_source_location_ (instance);
73 if (result == IntPtr.Zero)
74 return null;
75 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
76 return s;
79 [DllImport ("moonplugin", EntryPoint="plugin_instance_get_source_location_original")]
80 // const char *plugin_instance_get_source_location_original (PluginInstance *instance);
81 private extern static IntPtr plugin_instance_get_source_location_original_ (IntPtr instance);
82 public static string plugin_instance_get_source_location_original (IntPtr instance)
84 IntPtr result;
85 result = plugin_instance_get_source_location_original_ (instance);
86 if (result == IntPtr.Zero)
87 return null;
88 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
89 return s;
92 [DllImport ("moonplugin", EntryPoint="plugin_instance_get_source_original")]
93 // const char *plugin_instance_get_source_original (PluginInstance *instance);
94 private extern static IntPtr plugin_instance_get_source_original_ (IntPtr instance);
95 public static string plugin_instance_get_source_original (IntPtr instance)
97 IntPtr result;
98 result = plugin_instance_get_source_original_ (instance);
99 if (result == IntPtr.Zero)
100 return null;
101 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
102 return s;
105 [DllImport ("moonplugin")]
106 // Surface *plugin_instance_get_surface (PluginInstance *instance);
107 public extern static IntPtr plugin_instance_get_surface (IntPtr instance);
109 [DllImport ("moonplugin")]
110 [return: MarshalAs (UnmanagedType.U1)]
111 // bool plugin_instance_get_windowless (PluginInstance *instance);
112 public extern static bool plugin_instance_get_windowless (IntPtr instance);
114 [DllImport ("moonplugin")]
115 // void plugin_instance_report_exception (PluginInstance *instance, char *msg, char *details, char* *stack_trace, int num_frames);
116 public extern static void plugin_instance_report_exception (IntPtr instance, string msg, string details, string[] stack_trace, int num_frames);
118 [DllImport ("moonplugin")]
119 // NPObject *moonlight_object_to_npobject (MoonlightObject *obj);
120 public extern static IntPtr moonlight_object_to_npobject (IntPtr obj);
122 [DllImport ("moonplugin")]
123 // MoonlightScriptableObjectObject *moonlight_scriptable_object_wrapper_create_root (PluginInstance *plugin, gpointer scriptable, InvokeDelegate invoke, SetPropertyDelegate setprop, GetPropertyDelegate getprop, EventHandlerDelegate addevent, EventHandlerDelegate removeevent);
124 public extern static IntPtr moonlight_scriptable_object_wrapper_create_root (IntPtr plugin, IntPtr scriptable, InvokeDelegate invoke, SetPropertyDelegate setprop, GetPropertyDelegate getprop, EventHandlerDelegate addevent, EventHandlerDelegate removeevent);
126 [DllImport ("moonplugin")]
127 // MoonlightScriptableObjectObject *moonlight_scriptable_object_wrapper_create (NPObject *parent, gpointer scriptable, InvokeDelegate invoke, SetPropertyDelegate setprop, GetPropertyDelegate getprop, EventHandlerDelegate addevent, EventHandlerDelegate removeevent);
128 public extern static IntPtr moonlight_scriptable_object_wrapper_create (IntPtr parent, IntPtr scriptable, InvokeDelegate invoke, SetPropertyDelegate setprop, GetPropertyDelegate getprop, EventHandlerDelegate addevent, EventHandlerDelegate removeevent);
130 [DllImport ("moonplugin")]
131 // void moonlight_scriptable_object_add_property (PluginInstance *plugin, MoonlightScriptableObjectObject *obj, gpointer property_handle, char *property_name, int property_type, bool can_read, bool can_write);
132 public extern static void moonlight_scriptable_object_add_property (IntPtr plugin, IntPtr obj, IntPtr property_handle, string property_name, TypeCode property_type, [MarshalAs (UnmanagedType.U1)] bool can_read, [MarshalAs (UnmanagedType.U1)] bool can_write);
134 [DllImport ("moonplugin")]
135 // void moonlight_scriptable_object_add_event (PluginInstance *plugin, MoonlightScriptableObjectObject *obj, gpointer event_handle, char *event_name);
136 public extern static void moonlight_scriptable_object_add_event (IntPtr plugin, IntPtr obj, IntPtr event_handle, string event_name);
138 [DllImport ("moonplugin")]
139 // void moonlight_scriptable_object_add_method (PluginInstance *plugin, MoonlightScriptableObjectObject *obj, gpointer method_handle, char *method_name, int method_return_type, int *method_parameter_types, int parameter_count);
140 public extern static void moonlight_scriptable_object_add_method (IntPtr plugin, IntPtr obj, IntPtr method_handle, string method_name, TypeCode method_return_type, TypeCode[] method_parameter_types, int parameter_count);
142 [DllImport ("moonplugin")]
143 // void moonlight_scriptable_object_register (PluginInstance *plugin, char *name, MoonlightScriptableObjectObject *obj);
144 public extern static void moonlight_scriptable_object_register (IntPtr plugin, string name, IntPtr obj);
146 [DllImport ("moonplugin")]
147 // void moonlight_scriptable_object_emit_event (PluginInstance *plugin, MoonlightScriptableObjectObject *obj, MoonlightScriptableObjectObject *event_args, NPObject *cb_obj);
148 public extern static void moonlight_scriptable_object_emit_event (IntPtr plugin, IntPtr obj, IntPtr event_args, IntPtr cb_obj);
150 [DllImport ("moonplugin")]
151 [return: MarshalAs (UnmanagedType.U1)]
152 // bool html_object_has_property (PluginInstance *plugin, NPObject *npobj, char *name);
153 public extern static bool html_object_has_property (IntPtr plugin, IntPtr npobj, string name);
155 [DllImport ("moonplugin")]
156 // void html_object_get_property (PluginInstance *plugin, NPObject *npobj, char *name, Value *result);
157 public extern static void html_object_get_property (IntPtr plugin, IntPtr npobj, string name, out Mono.Value result);
159 [DllImport ("moonplugin")]
160 // void html_object_set_property (PluginInstance *plugin, NPObject *npobj, char *name, Value *value);
161 public extern static void html_object_set_property (IntPtr plugin, IntPtr npobj, string name, ref Value value);
163 [DllImport ("moonplugin")]
164 [return: MarshalAs (UnmanagedType.U1)]
165 // bool html_object_invoke (PluginInstance *plugin, NPObject *npobj, char *name, Value *args, guint32 arg_count, Value *result);
166 public extern static bool html_object_invoke (IntPtr plugin, IntPtr npobj, string name, Mono.Value[] args, uint arg_count, out Mono.Value result);
168 [DllImport ("moonplugin")]
169 [return: MarshalAs (UnmanagedType.U1)]
170 // bool html_object_invoke_self (PluginInstance *plugin, NPObject *npobj, Value *args, guint32 arg_count, Value *result);
171 public extern static bool html_object_invoke_self (IntPtr plugin, IntPtr npobj, Mono.Value[] args, uint arg_count, out Mono.Value result);
173 [DllImport ("moonplugin")]
174 // gpointer html_object_attach_event (PluginInstance *plugin, NPObject *npobj, char *name, callback_dom_event *cb, gpointer context);
175 public extern static IntPtr html_object_attach_event (IntPtr plugin, IntPtr npobj, string name, DomEventCallback cb, IntPtr context);
177 [DllImport ("moonplugin")]
178 // void html_object_detach_event (PluginInstance *plugin, const char *name, gpointer listener);
179 public extern static void html_object_detach_event (IntPtr plugin, string name, IntPtr listener);
181 [DllImport ("moonplugin")]
182 // void html_object_release (PluginInstance *plugin, NPObject *npobj);
183 public extern static void html_object_release (IntPtr plugin, IntPtr npobj);
185 [DllImport ("moonplugin")]
186 // void html_object_retain (PluginInstance *plugin, NPObject *npobj);
187 public extern static void html_object_retain (IntPtr plugin, IntPtr npobj);
190 /* libmoon methods */
192 [DllImport ("moon")]
193 // Application *application_new ();
194 public extern static IntPtr application_new ();
196 [DllImport ("moon")]
197 // Application *application_get_current ();
198 public extern static IntPtr application_get_current ();
200 [DllImport ("moon")]
201 // void application_register_callbacks (Application *instance, ApplyDefaultStyleCallback apply_default_style_cb, ApplyStyleCallback apply_style_cb, GetResourceCallback get_resource_cb, ConvertKeyframeValueCallback convert_keyframe_callback);
202 public extern static void application_register_callbacks (IntPtr instance, Mono.ApplyDefaultStyleCallback apply_default_style_cb, Mono.ApplyStyleCallback apply_style_cb, Mono.GetResourceCallback get_resource_cb, Mono.ConvertKeyframeValueCallback convert_keyframe_callback);
204 [DllImport ("moon")]
205 // void application_set_current (Application *current);
206 public extern static void application_set_current (IntPtr current);
208 [DllImport ("moon")]
209 // ArcSegment *arc_segment_new ();
210 public extern static IntPtr arc_segment_new ();
212 [DllImport ("moon")]
213 // AssemblyPart *assembly_part_new ();
214 public extern static IntPtr assembly_part_new ();
216 [DllImport ("moon")]
217 // AssemblyPartCollection *assembly_part_collection_new ();
218 public extern static IntPtr assembly_part_collection_new ();
220 [DllImport ("moon")]
221 // AudioStream *audio_stream_new (Media *media, int codec_id, int bits_per_sample, int block_align, int sample_rate, int channels, int bit_rate, gpointer extra_data, guint32 extra_data_size);
222 public extern static IntPtr audio_stream_new (IntPtr media, int codec_id, int bits_per_sample, int block_align, int sample_rate, int channels, int bit_rate, IntPtr extra_data, uint extra_data_size);
224 [DllImport ("moon")]
225 // BackEase *back_ease_new ();
226 public extern static IntPtr back_ease_new ();
228 [DllImport ("moon")]
229 // double back_ease_ease_in_core (BackEase *instance, double normalizedTime);
230 public extern static double back_ease_ease_in_core (IntPtr instance, double normalizedTime);
232 [DllImport ("moon")]
233 // BeginStoryboard *begin_storyboard_new ();
234 public extern static IntPtr begin_storyboard_new ();
236 [DllImport ("moon")]
237 // BezierSegment *bezier_segment_new ();
238 public extern static IntPtr bezier_segment_new ();
240 [DllImport ("moon")]
241 // BitmapCache *bitmap_cache_new ();
242 public extern static IntPtr bitmap_cache_new ();
244 [DllImport ("moon")]
245 // BitmapImage *bitmap_image_new ();
246 public extern static IntPtr bitmap_image_new ();
248 [DllImport ("moon")]
249 // void bitmap_image_pixbuf_write (BitmapImage *instance, gpointer buffer, gint32 offset, gint32 n);
250 public extern static void bitmap_image_pixbuf_write (IntPtr instance, IntPtr buffer, int offset, int n);
252 [DllImport ("moon")]
253 // void bitmap_image_pixmap_complete (BitmapImage *instance);
254 public extern static void bitmap_image_pixmap_complete (IntPtr instance);
256 [DllImport ("moon")]
257 // BitmapSource *bitmap_source_new ();
258 public extern static IntPtr bitmap_source_new ();
260 [DllImport ("moon")]
261 // gpointer bitmap_source_get_bitmap_data (BitmapSource *instance);
262 public extern static IntPtr bitmap_source_get_bitmap_data (IntPtr instance);
264 [DllImport ("moon")]
265 // void bitmap_source_invalidate (BitmapSource *instance);
266 public extern static void bitmap_source_invalidate (IntPtr instance);
268 [DllImport ("moon")]
269 // void bitmap_source_set_bitmap_data (BitmapSource *instance, gpointer data, bool own);
270 public extern static void bitmap_source_set_bitmap_data (IntPtr instance, IntPtr data, [MarshalAs (UnmanagedType.U1)] bool own);
272 [DllImport ("moon")]
273 // BlurEffect *blur_effect_new ();
274 public extern static IntPtr blur_effect_new ();
276 [DllImport ("moon")]
277 // Border *border_new ();
278 public extern static IntPtr border_new ();
280 [DllImport ("moon")]
281 // BounceEase *bounce_ease_new ();
282 public extern static IntPtr bounce_ease_new ();
284 [DllImport ("moon")]
285 // double bounce_ease_ease_in_core (BounceEase *instance, double normalizedTime);
286 public extern static double bounce_ease_ease_in_core (IntPtr instance, double normalizedTime);
288 [DllImport ("moon")]
289 // Brush *brush_new ();
290 public extern static IntPtr brush_new ();
292 [DllImport ("moon")]
293 // CacheMode *cache_mode_new ();
294 public extern static IntPtr cache_mode_new ();
296 [DllImport ("moon")]
297 // Canvas *canvas_new ();
298 public extern static IntPtr canvas_new ();
300 [DllImport ("moon")]
301 // CircleEase *circle_ease_new ();
302 public extern static IntPtr circle_ease_new ();
304 [DllImport ("moon")]
305 // double circle_ease_ease_in_core (CircleEase *instance, double normalizedTime);
306 public extern static double circle_ease_ease_in_core (IntPtr instance, double normalizedTime);
308 [DllImport ("moon", EntryPoint="collection_add_with_error")]
309 // int collection_add_with_error (Collection *instance, Value *value, MoonError *error);
310 private extern static int collection_add_with_error_ (IntPtr instance, ref Value value, out MoonError error);
311 public static int collection_add (IntPtr instance, ref Value value)
313 int result;
314 MoonError error;
315 result = collection_add_with_error_ (instance, ref value, out error);
316 if (error.Number != 0)
317 throw CreateManagedException (error);
318 return result;
321 [DllImport ("moon")]
322 [return: MarshalAs (UnmanagedType.U1)]
323 // bool collection_clear (Collection *instance);
324 public extern static bool collection_clear (IntPtr instance);
326 [DllImport ("moon")]
327 [return: MarshalAs (UnmanagedType.U1)]
328 // bool collection_contains (Collection *instance, Value *value);
329 public extern static bool collection_contains (IntPtr instance, ref Value value);
331 [DllImport ("moon")]
332 // int collection_get_count (Collection *instance);
333 public extern static int collection_get_count (IntPtr instance);
335 [DllImport ("moon")]
336 // Type::Kind collection_get_element_type (Collection *instance);
337 public extern static Kind collection_get_element_type (IntPtr instance);
339 [DllImport ("moon")]
340 // CollectionIterator *collection_get_iterator (Collection *instance);
341 public extern static IntPtr collection_get_iterator (IntPtr instance);
343 [DllImport ("moon", EntryPoint="collection_get_value_at_with_error")]
344 // Value *collection_get_value_at_with_error (Collection *instance, int index, MoonError *error);
345 private extern static IntPtr collection_get_value_at_with_error_ (IntPtr instance, int index, out MoonError error);
346 public static IntPtr collection_get_value_at (IntPtr instance, int index)
348 IntPtr result;
349 MoonError error;
350 result = collection_get_value_at_with_error_ (instance, index, out error);
351 if (error.Number != 0)
352 throw CreateManagedException (error);
353 return result;
356 [DllImport ("moon")]
357 // int collection_index_of (Collection *instance, Value *value);
358 public extern static int collection_index_of (IntPtr instance, ref Value value);
360 [DllImport ("moon", EntryPoint="collection_insert_with_error")]
361 [return: MarshalAs (UnmanagedType.U1)]
362 // bool collection_insert_with_error (Collection *instance, int index, Value *value, MoonError *error);
363 private extern static bool collection_insert_with_error_ (IntPtr instance, int index, ref Value value, out MoonError error);
364 public static bool collection_insert (IntPtr instance, int index, ref Value value)
366 bool result;
367 MoonError error;
368 result = collection_insert_with_error_ (instance, index, ref value, out error);
369 if (error.Number != 0)
370 throw CreateManagedException (error);
371 return result;
374 [DllImport ("moon")]
375 [return: MarshalAs (UnmanagedType.U1)]
376 // bool collection_remove (Collection *instance, Value *value);
377 public extern static bool collection_remove (IntPtr instance, ref Value value);
379 [DllImport ("moon", EntryPoint="collection_remove_at_with_error")]
380 [return: MarshalAs (UnmanagedType.U1)]
381 // bool collection_remove_at_with_error (Collection *instance, int index, MoonError *error);
382 private extern static bool collection_remove_at_with_error_ (IntPtr instance, int index, out MoonError error);
383 public static bool collection_remove_at (IntPtr instance, int index)
385 bool result;
386 MoonError error;
387 result = collection_remove_at_with_error_ (instance, index, out error);
388 if (error.Number != 0)
389 throw CreateManagedException (error);
390 return result;
393 [DllImport ("moon", EntryPoint="collection_set_value_at_with_error")]
394 [return: MarshalAs (UnmanagedType.U1)]
395 // bool collection_set_value_at_with_error (Collection *instance, int index, Value *value, MoonError *error);
396 private extern static bool collection_set_value_at_with_error_ (IntPtr instance, int index, ref Value value, out MoonError error);
397 public static bool collection_set_value_at (IntPtr instance, int index, ref Value value)
399 bool result;
400 MoonError error;
401 result = collection_set_value_at_with_error_ (instance, index, ref value, out error);
402 if (error.Number != 0)
403 throw CreateManagedException (error);
404 return result;
407 [DllImport ("moon")]
408 // CollectionChangedEventArgs *collection_changed_event_args_new ();
409 public extern static IntPtr collection_changed_event_args_new ();
411 // This method contains types the generator didn't know about. Fix the generator (find the method 'GetManagedType' in TypeReference.cs and add the missing case) and try again.
412 // [DllImport ("moon")]
413 // CollectionChangedAction collection_changed_event_args_get_changed_action (CollectionChangedEventArgs *instance);
414 // public extern static /* Unknown: 'CollectionChangedAction' */ collection_changed_event_args_get_changed_action (IntPtr instance);
416 [DllImport ("moon")]
417 // int collection_changed_event_args_get_index (CollectionChangedEventArgs *instance);
418 public extern static int collection_changed_event_args_get_index (IntPtr instance);
420 [DllImport ("moon")]
421 // Value *collection_changed_event_args_get_new_item (CollectionChangedEventArgs *instance);
422 public extern static IntPtr collection_changed_event_args_get_new_item (IntPtr instance);
424 [DllImport ("moon")]
425 // Value *collection_changed_event_args_get_old_item (CollectionChangedEventArgs *instance);
426 public extern static IntPtr collection_changed_event_args_get_old_item (IntPtr instance);
428 // This method contains types the generator didn't know about. Fix the generator (find the method 'GetManagedType' in TypeReference.cs and add the missing case) and try again.
429 // [DllImport ("moon")]
430 // void collection_changed_event_args_set_changed_action (CollectionChangedEventArgs *instance, CollectionChangedAction action);
431 // public extern static void collection_changed_event_args_set_changed_action (IntPtr instance, /* Unknown: 'CollectionChangedAction' */ action);
433 [DllImport ("moon")]
434 // void collection_changed_event_args_set_index (CollectionChangedEventArgs *instance, int index);
435 public extern static void collection_changed_event_args_set_index (IntPtr instance, int index);
437 [DllImport ("moon")]
438 // void collection_changed_event_args_set_new_item (CollectionChangedEventArgs *instance, Value *item);
439 public extern static void collection_changed_event_args_set_new_item (IntPtr instance, ref Value item);
441 [DllImport ("moon")]
442 // void collection_changed_event_args_set_old_item (CollectionChangedEventArgs *instance, Value *item);
443 public extern static void collection_changed_event_args_set_old_item (IntPtr instance, ref Value item);
445 [DllImport ("moon")]
446 // void collection_iterator_destroy (CollectionIterator *iterator);
447 public extern static void collection_iterator_destroy (IntPtr iterator);
449 [DllImport ("moon")]
450 // Value *collection_iterator_get_current (CollectionIterator *instance, int *error);
451 public extern static IntPtr collection_iterator_get_current (IntPtr instance, out int error);
453 [DllImport ("moon")]
454 // int collection_iterator_next (CollectionIterator *instance);
455 public extern static int collection_iterator_next (IntPtr instance);
457 [DllImport ("moon")]
458 [return: MarshalAs (UnmanagedType.U1)]
459 // bool collection_iterator_reset (CollectionIterator *instance);
460 public extern static bool collection_iterator_reset (IntPtr instance);
462 [DllImport ("moon")]
463 // ColorAnimation *color_animation_new ();
464 public extern static IntPtr color_animation_new ();
466 [DllImport ("moon")]
467 // ColorAnimationUsingKeyFrames *color_animation_using_key_frames_new ();
468 public extern static IntPtr color_animation_using_key_frames_new ();
470 [DllImport ("moon")]
471 // ColorKeyFrame *color_key_frame_new ();
472 public extern static IntPtr color_key_frame_new ();
474 [DllImport ("moon")]
475 // ColorKeyFrameCollection *color_key_frame_collection_new ();
476 public extern static IntPtr color_key_frame_collection_new ();
478 [DllImport ("moon")]
479 // ColumnDefinition *column_definition_new ();
480 public extern static IntPtr column_definition_new ();
482 [DllImport ("moon")]
483 // ColumnDefinitionCollection *column_definition_collection_new ();
484 public extern static IntPtr column_definition_collection_new ();
486 [DllImport ("moon")]
487 // Value *content_changed_event_args_get_new_content (ContentChangedEventArgs *instance);
488 public extern static IntPtr content_changed_event_args_get_new_content (IntPtr instance);
490 [DllImport ("moon")]
491 // Value *content_changed_event_args_get_old_content (ContentChangedEventArgs *instance);
492 public extern static IntPtr content_changed_event_args_get_old_content (IntPtr instance);
494 [DllImport ("moon")]
495 // ContentControl *content_control_new ();
496 public extern static IntPtr content_control_new ();
498 [DllImport ("moon")]
499 [return: MarshalAs (UnmanagedType.U1)]
500 // bool content_control_get_content_sets_parent (ContentControl *instance);
501 public extern static bool content_control_get_content_sets_parent (IntPtr instance);
503 [DllImport ("moon")]
504 // void content_control_set_content_sets_parent (ContentControl *instance, bool value);
505 public extern static void content_control_set_content_sets_parent (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool value);
507 [DllImport ("moon")]
508 // Control *control_new ();
509 public extern static IntPtr control_new ();
511 [DllImport ("moon")]
512 // DependencyObject *control_get_template_child (Control *instance, const char *name);
513 public extern static IntPtr control_get_template_child (IntPtr instance, string name);
515 [DllImport ("moon")]
516 // ControlTemplate *control_template_new ();
517 public extern static IntPtr control_template_new ();
519 [DllImport ("moon")]
520 // CubicEase *cubic_ease_new ();
521 public extern static IntPtr cubic_ease_new ();
523 [DllImport ("moon")]
524 // double cubic_ease_ease_in_core (CubicEase *instance, double normalizedTime);
525 public extern static double cubic_ease_ease_in_core (IntPtr instance, double normalizedTime);
527 [DllImport ("moon")]
528 // CursorPositionChangedEventArgs *cursor_position_changed_event_args_new ();
529 public extern static IntPtr cursor_position_changed_event_args_new ();
531 [DllImport ("moon")]
532 // double cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs *instance);
533 public extern static double cursor_position_changed_event_args_get_cursor_height (IntPtr instance);
535 [DllImport ("moon")]
536 // double cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs *instance);
537 public extern static double cursor_position_changed_event_args_get_cursor_x (IntPtr instance);
539 [DllImport ("moon")]
540 // double cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs *instance);
541 public extern static double cursor_position_changed_event_args_get_cursor_y (IntPtr instance);
543 [DllImport ("moon")]
544 // DataTemplate *data_template_new ();
545 public extern static IntPtr data_template_new ();
547 [DllImport ("moon")]
548 // DeepZoomImageTileSource *deep_zoom_image_tile_source_new ();
549 public extern static IntPtr deep_zoom_image_tile_source_new ();
551 [DllImport ("moon")]
552 // void dependency_object_add_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb, gpointer closure);
553 public extern static void dependency_object_add_property_change_handler (IntPtr instance, IntPtr property, Mono.UnmanagedPropertyChangeHandler cb, IntPtr closure);
555 [DllImport ("moon", EntryPoint="dependency_object_clear_value")]
556 // void dependency_object_clear_value (DependencyObject *instance, DependencyProperty *property, bool notify_listeners, MoonError *error);
557 private extern static void dependency_object_clear_value_ (IntPtr instance, IntPtr property, [MarshalAs (UnmanagedType.U1)] bool notify_listeners, out MoonError error);
558 public static void dependency_object_clear_value (IntPtr instance, IntPtr property, bool notify_listeners)
560 MoonError error;
561 dependency_object_clear_value_ (instance, property, notify_listeners, out error);
562 if (error.Number != 0)
563 throw CreateManagedException (error);
566 [DllImport ("moon")]
567 // DependencyObject *dependency_object_new ();
568 public extern static IntPtr dependency_object_new ();
570 [DllImport ("moon")]
571 // DependencyObject *dependency_object_find_name (DependencyObject *instance, const char *name, Type::Kind *element_kind);
572 public extern static IntPtr dependency_object_find_name (IntPtr instance, string name, out Kind element_kind);
574 [DllImport ("moon", EntryPoint="dependency_object_get_name")]
575 // const char *dependency_object_get_name (DependencyObject *instance);
576 private extern static IntPtr dependency_object_get_name_ (IntPtr instance);
577 public static string dependency_object_get_name (IntPtr instance)
579 IntPtr result;
580 result = dependency_object_get_name_ (instance);
581 if (result == IntPtr.Zero)
582 return null;
583 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
584 return s;
587 [DllImport ("moon")]
588 // DependencyObject *dependency_object_get_template_owner (DependencyObject *instance);
589 public extern static IntPtr dependency_object_get_template_owner (IntPtr instance);
591 [DllImport ("moon", EntryPoint="dependency_object_get_value_no_default_with_error")]
592 // Value *dependency_object_get_value_no_default_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error);
593 private extern static IntPtr dependency_object_get_value_no_default_with_error_ (IntPtr instance, IntPtr property, out MoonError error);
594 public static IntPtr dependency_object_get_value_no_default (IntPtr instance, IntPtr property)
596 IntPtr result;
597 MoonError error;
598 result = dependency_object_get_value_no_default_with_error_ (instance, property, out error);
599 if (error.Number != 0)
600 throw CreateManagedException (error);
601 return result;
604 [DllImport ("moon", EntryPoint="dependency_object_get_value_with_error")]
605 // Value *dependency_object_get_value_with_error (DependencyObject *instance, Type::Kind whatami, DependencyProperty *property, MoonError *error);
606 private extern static IntPtr dependency_object_get_value_with_error_ (IntPtr instance, Kind whatami, IntPtr property, out MoonError error);
607 public static IntPtr dependency_object_get_value (IntPtr instance, Kind whatami, IntPtr property)
609 IntPtr result;
610 MoonError error;
611 result = dependency_object_get_value_with_error_ (instance, whatami, property, out error);
612 if (error.Number != 0)
613 throw CreateManagedException (error);
614 return result;
617 [DllImport ("moon", EntryPoint="dependency_object_read_local_value_with_error")]
618 // Value *dependency_object_read_local_value_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error);
619 private extern static IntPtr dependency_object_read_local_value_with_error_ (IntPtr instance, IntPtr property, out MoonError error);
620 public static IntPtr dependency_object_read_local_value (IntPtr instance, IntPtr property)
622 IntPtr result;
623 MoonError error;
624 result = dependency_object_read_local_value_with_error_ (instance, property, out error);
625 if (error.Number != 0)
626 throw CreateManagedException (error);
627 return result;
630 [DllImport ("moon")]
631 // void dependency_object_remove_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb);
632 public extern static void dependency_object_remove_property_change_handler (IntPtr instance, IntPtr property, Mono.UnmanagedPropertyChangeHandler cb);
634 [DllImport ("moon")]
635 // void dependency_object_set_name (DependencyObject *instance, const char *name);
636 public extern static void dependency_object_set_name (IntPtr instance, string name);
638 [DllImport ("moon", EntryPoint="dependency_object_set_parent_safe")]
639 // void dependency_object_set_parent_safe (DependencyObject *instance, DependencyObject *parent, MoonError *error);
640 private extern static void dependency_object_set_parent_safe_ (IntPtr instance, IntPtr parent, out MoonError error);
641 public static void dependency_object_set_parent_safe (IntPtr instance, IntPtr parent)
643 MoonError error;
644 dependency_object_set_parent_safe_ (instance, parent, out error);
645 if (error.Number != 0)
646 throw CreateManagedException (error);
649 [DllImport ("moon")]
650 // void dependency_object_set_template_owner (DependencyObject *instance, DependencyObject *value);
651 public extern static void dependency_object_set_template_owner (IntPtr instance, IntPtr value);
653 [DllImport ("moon", EntryPoint="dependency_object_set_value_with_error")]
654 [return: MarshalAs (UnmanagedType.U1)]
655 // bool dependency_object_set_value_with_error (DependencyObject *instance, DependencyProperty *property, Value *value, MoonError *error);
656 private extern static bool dependency_object_set_value_with_error_ (IntPtr instance, IntPtr property, ref Value value, out MoonError error);
657 public static bool dependency_object_set_value (IntPtr instance, IntPtr property, ref Value value)
659 bool result;
660 MoonError error;
661 result = dependency_object_set_value_with_error_ (instance, property, ref value, out error);
662 if (error.Number != 0)
663 throw CreateManagedException (error);
664 return result;
667 [DllImport ("moon")]
668 // DependencyObjectCollection *dependency_object_collection_new ();
669 public extern static IntPtr dependency_object_collection_new ();
671 [DllImport ("moon")]
672 // Value *dependency_property_get_default_value (DependencyProperty *instance);
673 public extern static IntPtr dependency_property_get_default_value (IntPtr instance);
675 [DllImport ("moon")]
676 // DependencyProperty *dependency_property_get_dependency_property (Type::Kind type, const char *name);
677 public extern static IntPtr dependency_property_get_dependency_property (Kind type, string name);
679 [DllImport ("moon")]
680 // DependencyProperty *dependency_property_get_dependency_property_full (Type::Kind type, const char *name, bool inherits);
681 public extern static IntPtr dependency_property_get_dependency_property_full (Kind type, string name, [MarshalAs (UnmanagedType.U1)] bool inherits);
683 [DllImport ("moon", EntryPoint="dependency_property_get_name")]
684 // const char *dependency_property_get_name (DependencyProperty *instance);
685 private extern static IntPtr dependency_property_get_name_ (IntPtr instance);
686 public static string dependency_property_get_name (IntPtr instance)
688 IntPtr result;
689 result = dependency_property_get_name_ (instance);
690 if (result == IntPtr.Zero)
691 return null;
692 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
693 return s;
696 [DllImport ("moon")]
697 // Type::Kind dependency_property_get_property_type (DependencyProperty *instance);
698 public extern static Kind dependency_property_get_property_type (IntPtr instance);
700 [DllImport ("moon")]
701 [return: MarshalAs (UnmanagedType.U1)]
702 // bool dependency_property_is_attached (DependencyProperty *instance);
703 public extern static bool dependency_property_is_attached (IntPtr instance);
705 [DllImport ("moon")]
706 [return: MarshalAs (UnmanagedType.U1)]
707 // bool dependency_property_is_nullable (DependencyProperty *instance);
708 public extern static bool dependency_property_is_nullable (IntPtr instance);
710 [DllImport ("moon")]
711 [return: MarshalAs (UnmanagedType.U1)]
712 // bool dependency_property_is_read_only (DependencyProperty *instance);
713 public extern static bool dependency_property_is_read_only (IntPtr instance);
715 [DllImport ("moon")]
716 // DependencyProperty *dependency_property_register_core_property (const char *name, Type::Kind property_type, Type::Kind owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback);
717 public extern static IntPtr dependency_property_register_core_property (string name, Kind property_type, Kind owner_type, ref Value defaultValue, [MarshalAs (UnmanagedType.U1)] bool attached, [MarshalAs (UnmanagedType.U1)] bool read_only, Mono.UnmanagedPropertyChangeHandler callback);
719 [DllImport ("moon")]
720 // DependencyProperty *dependency_property_register_custom_property (const char *name, Type::Kind property_type, Type::Kind owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback);
721 public extern static IntPtr dependency_property_register_custom_property (string name, Kind property_type, Kind owner_type, ref Value defaultValue, [MarshalAs (UnmanagedType.U1)] bool attached, [MarshalAs (UnmanagedType.U1)] bool read_only, Mono.UnmanagedPropertyChangeHandler callback);
723 [DllImport ("moon")]
724 // void dependency_property_set_is_nullable (DependencyProperty *instance, bool value);
725 public extern static void dependency_property_set_is_nullable (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool value);
727 [DllImport ("moon")]
728 // void dependency_property_set_property_changed_callback (DependencyProperty *instance, PropertyChangeHandler changed_callback);
729 public extern static void dependency_property_set_property_changed_callback (IntPtr instance, Mono.UnmanagedPropertyChangeHandler changed_callback);
731 [DllImport ("moon")]
732 // Deployment *deployment_new ();
733 public extern static IntPtr deployment_new ();
735 [DllImport ("moon")]
736 // Deployment *deployment_get_current ();
737 public extern static IntPtr deployment_get_current ();
739 [DllImport ("moon")]
740 // Surface *deployment_get_surface_reffed (Deployment *instance);
741 public extern static IntPtr deployment_get_surface_reffed (IntPtr instance);
743 [DllImport ("moon")]
744 // Types *deployment_get_types (Deployment *instance);
745 public extern static IntPtr deployment_get_types (IntPtr instance);
747 [DllImport ("moon")]
748 // void deployment_set_current (Deployment *value);
749 public extern static void deployment_set_current (IntPtr value);
751 [DllImport ("moon")]
752 // void deployment_set_current_application (Deployment *instance, Application *value);
753 public extern static void deployment_set_current_application (IntPtr instance, IntPtr value);
755 [DllImport ("moon")]
756 // void deployment_set_is_loaded_from_xap (Deployment *instance, bool flag);
757 public extern static void deployment_set_is_loaded_from_xap (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool flag);
759 [DllImport ("moon")]
760 // DiscreteColorKeyFrame *discrete_color_key_frame_new ();
761 public extern static IntPtr discrete_color_key_frame_new ();
763 [DllImport ("moon")]
764 // DiscreteDoubleKeyFrame *discrete_double_key_frame_new ();
765 public extern static IntPtr discrete_double_key_frame_new ();
767 [DllImport ("moon")]
768 // DiscreteObjectKeyFrame *discrete_object_key_frame_new ();
769 public extern static IntPtr discrete_object_key_frame_new ();
771 [DllImport ("moon")]
772 // DiscretePointKeyFrame *discrete_point_key_frame_new ();
773 public extern static IntPtr discrete_point_key_frame_new ();
775 [DllImport ("moon")]
776 // DispatcherTimer *dispatcher_timer_new ();
777 public extern static IntPtr dispatcher_timer_new ();
779 [DllImport ("moon")]
780 // void dispatcher_timer_start (DispatcherTimer *instance);
781 public extern static void dispatcher_timer_start (IntPtr instance);
783 [DllImport ("moon")]
784 // void dispatcher_timer_stop (DispatcherTimer *instance);
785 public extern static void dispatcher_timer_stop (IntPtr instance);
787 [DllImport ("moon")]
788 // DoubleAnimation *double_animation_new ();
789 public extern static IntPtr double_animation_new ();
791 [DllImport ("moon")]
792 // DoubleAnimationUsingKeyFrames *double_animation_using_key_frames_new ();
793 public extern static IntPtr double_animation_using_key_frames_new ();
795 [DllImport ("moon")]
796 // DoubleCollection *double_collection_new ();
797 public extern static IntPtr double_collection_new ();
799 [DllImport ("moon")]
800 // DoubleKeyFrame *double_key_frame_new ();
801 public extern static IntPtr double_key_frame_new ();
803 [DllImport ("moon")]
804 // DoubleKeyFrameCollection *double_key_frame_collection_new ();
805 public extern static IntPtr double_key_frame_collection_new ();
807 [DllImport ("moon")]
808 // void *downloader_create_web_request (Downloader *instance, const char *method, const char *uri);
809 public extern static IntPtr downloader_create_web_request (IntPtr instance, string method, string uri);
811 [DllImport ("moon")]
812 // Downloader *downloader_new ();
813 public extern static IntPtr downloader_new ();
815 [DllImport ("moon")]
816 // void downloader_notify_failed (Downloader *instance, const char *msg);
817 public extern static void downloader_notify_failed (IntPtr instance, string msg);
819 [DllImport ("moon")]
820 // void downloader_notify_finished (Downloader *instance, const char *final_uri);
821 public extern static void downloader_notify_finished (IntPtr instance, string final_uri);
823 [DllImport ("moon")]
824 // void downloader_notify_size (Downloader *instance, gint64 size);
825 public extern static void downloader_notify_size (IntPtr instance, long size);
827 [DllImport ("moon")]
828 // void downloader_set_functions (DownloaderCreateStateFunc create_state, DownloaderDestroyStateFunc destroy_state, DownloaderOpenFunc open, DownloaderSendFunc send, DownloaderAbortFunc abort, DownloaderHeaderFunc header, DownloaderBodyFunc body, DownloaderCreateWebRequestFunc request, DownloaderSetResponseHeaderCallbackFunc response_header_callback, DownloaderGetResponseFunc get_response);
829 public extern static void downloader_set_functions (Mono.DownloaderCreateStateFunc create_state, Mono.DownloaderDestroyStateFunc destroy_state, Mono.DownloaderOpenFunc open, Mono.DownloaderSendFunc send, Mono.DownloaderAbortFunc abort, Mono.DownloaderHeaderFunc header, Mono.DownloaderBodyFunc body, Mono.DownloaderCreateWebRequestFunc request, Mono.DownloaderSetResponseHeaderCallbackFunc response_header_callback, Mono.DownloaderGetResponseFunc get_response);
831 [DllImport ("moon")]
832 // void downloader_write (Downloader *instance, void *buf, gint32 offset, gint32 n);
833 public extern static void downloader_write (IntPtr instance, IntPtr buf, int offset, int n);
835 [DllImport ("moon")]
836 // void downloader_request_free (DownloaderRequest *instance);
837 public extern static void downloader_request_free (IntPtr instance);
839 [DllImport ("moon")]
840 // void downloader_request_abort (DownloaderRequest *instance);
841 public extern static void downloader_request_abort (IntPtr instance);
843 [DllImport ("moon")]
844 // DownloaderResponse *downloader_request_get_downloader_response (DownloaderRequest *instance);
845 public extern static IntPtr downloader_request_get_downloader_response (IntPtr instance);
847 [DllImport ("moon")]
848 [return: MarshalAs (UnmanagedType.U1)]
849 // bool downloader_request_get_response (DownloaderRequest *instance, DownloaderResponseStartedHandler started, DownloaderResponseDataAvailableHandler available, DownloaderResponseFinishedHandler finished, gpointer context);
850 public extern static bool downloader_request_get_response (IntPtr instance, DownloaderResponseStartedDelegate started, DownloaderResponseAvailableDelegate available, DownloaderResponseFinishedDelegate finished, IntPtr context);
852 [DllImport ("moon")]
853 [return: MarshalAs (UnmanagedType.U1)]
854 // const bool downloader_request_is_aborted (DownloaderRequest *instance);
855 public extern static bool downloader_request_is_aborted (IntPtr instance);
857 [DllImport ("moon")]
858 // void downloader_request_set_body (DownloaderRequest *instance, void *body, int size);
859 public extern static void downloader_request_set_body (IntPtr instance, byte[] body, int size);
861 [DllImport ("moon")]
862 // void downloader_request_set_http_header (DownloaderRequest *instance, const char *name, const char *value);
863 public extern static void downloader_request_set_http_header (IntPtr instance, string name, string value);
865 [DllImport ("moon")]
866 // void downloader_response_free (DownloaderResponse *instance);
867 public extern static void downloader_response_free (IntPtr instance);
869 [DllImport ("moon")]
870 // void downloader_response_abort (DownloaderResponse *instance);
871 public extern static void downloader_response_abort (IntPtr instance);
873 [DllImport ("moon")]
874 // int downloader_response_get_response_status (DownloaderResponse *instance);
875 public extern static int downloader_response_get_response_status (IntPtr instance);
877 [DllImport ("moon", EntryPoint="downloader_response_get_response_status_text")]
878 // const char *downloader_response_get_response_status_text (DownloaderResponse *instance);
879 private extern static IntPtr downloader_response_get_response_status_text_ (IntPtr instance);
880 public static string downloader_response_get_response_status_text (IntPtr instance)
882 IntPtr result;
883 result = downloader_response_get_response_status_text_ (instance);
884 if (result == IntPtr.Zero)
885 return null;
886 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
887 return s;
890 [DllImport ("moon")]
891 // void downloader_response_set_header_visitor (DownloaderResponse *instance, DownloaderResponseHeaderCallback visitor, gpointer context);
892 public extern static void downloader_response_set_header_visitor (IntPtr instance, HeaderVisitor visitor, IntPtr context);
894 [DllImport ("moon")]
895 // double download_progress_event_args_get_progress (DownloadProgressEventArgs *instance);
896 public extern static double download_progress_event_args_get_progress (IntPtr instance);
898 [DllImport ("moon")]
899 // DrawingAttributes *drawing_attributes_new ();
900 public extern static IntPtr drawing_attributes_new ();
902 [DllImport ("moon")]
903 // DropShadowEffect *drop_shadow_effect_new ();
904 public extern static IntPtr drop_shadow_effect_new ();
906 [DllImport ("moon")]
907 // EasingColorKeyFrame *easing_color_key_frame_new ();
908 public extern static IntPtr easing_color_key_frame_new ();
910 [DllImport ("moon")]
911 // EasingDoubleKeyFrame *easing_double_key_frame_new ();
912 public extern static IntPtr easing_double_key_frame_new ();
914 [DllImport ("moon")]
915 // EasingFunctionBase *easing_function_base_new ();
916 public extern static IntPtr easing_function_base_new ();
918 [DllImport ("moon")]
919 // void easing_function_base_set_easing_function (EasingFunctionBase *instance, EasingFunction value);
920 public extern static void easing_function_base_set_easing_function (IntPtr instance, Mono.EasingFunctionCallback value);
922 [DllImport ("moon")]
923 // EasingPointKeyFrame *easing_point_key_frame_new ();
924 public extern static IntPtr easing_point_key_frame_new ();
926 [DllImport ("moon")]
927 // Effect *effect_new ();
928 public extern static IntPtr effect_new ();
930 [DllImport ("moon")]
931 // double elastic_ease_ease_in_core (ElasticEase *instance, double normalizedTime);
932 public extern static double elastic_ease_ease_in_core (IntPtr instance, double normalizedTime);
934 [DllImport ("moon")]
935 // ElasticEase *elastic_ease_new ();
936 public extern static IntPtr elastic_ease_new ();
938 [DllImport ("moon")]
939 // Ellipse *ellipse_new ();
940 public extern static IntPtr ellipse_new ();
942 [DllImport ("moon")]
943 // EllipseGeometry *ellipse_geometry_new ();
944 public extern static IntPtr ellipse_geometry_new ();
946 [DllImport ("moon")]
947 // int error_event_args_get_error_code (ErrorEventArgs *instance);
948 public extern static int error_event_args_get_error_code (IntPtr instance);
950 [DllImport ("moon", EntryPoint="error_event_args_get_error_message")]
951 // const char *error_event_args_get_error_message (ErrorEventArgs *instance);
952 private extern static IntPtr error_event_args_get_error_message_ (IntPtr instance);
953 public static string error_event_args_get_error_message (IntPtr instance)
955 IntPtr result;
956 result = error_event_args_get_error_message_ (instance);
957 if (result == IntPtr.Zero)
958 return null;
959 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
960 return s;
963 [DllImport ("moon")]
964 // int error_event_args_get_error_type (ErrorEventArgs *instance);
965 public extern static int error_event_args_get_error_type (IntPtr instance);
967 [DllImport ("moon")]
968 // gpointer error_event_args_get_moon_error (ErrorEventArgs *instance);
969 public extern static IntPtr error_event_args_get_moon_error (IntPtr instance);
971 [DllImport ("moon")]
972 // int event_object_add_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
973 public extern static int event_object_add_handler (IntPtr instance, int event_id, UnmanagedEventHandler handler, IntPtr data, IntPtr data_dtor);
975 [DllImport ("moon")]
976 // void event_object_add_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
977 public extern static void event_object_add_on_event_handler (IntPtr instance, int event_id, UnmanagedEventHandler handler, IntPtr data, IntPtr data_dtor);
979 [DllImport ("moon")]
980 // void event_object_add_toggle_ref_notifier (EventObject *instance, ToggleNotifyHandler tr);
981 public extern static void event_object_add_toggle_ref_notifier (IntPtr instance, Mono.ToggleRef.ToggleNotifyHandler tr);
983 [DllImport ("moon")]
984 // int event_object_add_xaml_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
985 public extern static int event_object_add_xaml_handler (IntPtr instance, int event_id, UnmanagedEventHandler handler, IntPtr data, IntPtr data_dtor);
987 [DllImport ("moon")]
988 // void event_object_do_emit_current_context (EventObject *instance, int event_id, EventArgs *calldata);
989 public extern static void event_object_do_emit_current_context (IntPtr instance, int event_id, IntPtr calldata);
991 [DllImport ("moon")]
992 // Type::Kind event_object_get_object_type (EventObject *instance);
993 public extern static Kind event_object_get_object_type (IntPtr instance);
995 [DllImport ("moon", EntryPoint="event_object_get_type_name")]
996 // const char *event_object_get_type_name (EventObject *instance);
997 private extern static IntPtr event_object_get_type_name_ (IntPtr instance);
998 public static string event_object_get_type_name (IntPtr instance)
1000 IntPtr result;
1001 result = event_object_get_type_name_ (instance);
1002 if (result == IntPtr.Zero)
1003 return null;
1004 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
1005 return s;
1008 [DllImport ("moon")]
1009 // void event_object_ref (EventObject *instance);
1010 public extern static void event_object_ref (IntPtr instance);
1012 [DllImport ("moon")]
1013 // int event_object_remove_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data);
1014 public extern static int event_object_remove_handler (IntPtr instance, int event_id, UnmanagedEventHandler handler, IntPtr data);
1016 [DllImport ("moon")]
1017 // void event_object_remove_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data);
1018 public extern static void event_object_remove_on_event_handler (IntPtr instance, int event_id, UnmanagedEventHandler handler, IntPtr data);
1020 [DllImport ("moon")]
1021 // void event_object_remove_toggle_ref_notifier (EventObject *instance);
1022 public extern static void event_object_remove_toggle_ref_notifier (IntPtr instance);
1024 [DllImport ("moon")]
1025 // void event_object_set_object_type (EventObject *instance, Type::Kind value);
1026 public extern static void event_object_set_object_type (IntPtr instance, Kind value);
1028 [DllImport ("moon")]
1029 // void event_object_unref (EventObject *instance);
1030 public extern static void event_object_unref (IntPtr instance);
1032 [DllImport ("moon")]
1033 // EventTrigger *event_trigger_new ();
1034 public extern static IntPtr event_trigger_new ();
1036 [DllImport ("moon")]
1037 // double exponential_ease_ease_in_core (ExponentialEase *instance, double normalizedTime);
1038 public extern static double exponential_ease_ease_in_core (IntPtr instance, double normalizedTime);
1040 [DllImport ("moon")]
1041 // ExponentialEase *exponential_ease_new ();
1042 public extern static IntPtr exponential_ease_new ();
1044 [DllImport ("moon")]
1045 // ExtensionPart *extension_part_new ();
1046 public extern static IntPtr extension_part_new ();
1048 [DllImport ("moon")]
1049 // gint32 external_demuxer_add_stream (ExternalDemuxer *instance, IMediaStream *stream);
1050 public extern static int external_demuxer_add_stream (IntPtr instance, IntPtr stream);
1052 [DllImport ("moon")]
1053 // void external_demuxer_clear_callbacks (ExternalDemuxer *instance);
1054 public extern static void external_demuxer_clear_callbacks (IntPtr instance);
1056 [DllImport ("moon")]
1057 // void external_demuxer_set_can_seek (ExternalDemuxer *instance, bool value);
1058 public extern static void external_demuxer_set_can_seek (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool value);
1060 [DllImport ("moon")]
1061 // ExternalPart *external_part_new ();
1062 public extern static IntPtr external_part_new ();
1064 [DllImport ("moon")]
1065 // ExternalPartCollection *external_part_collection_new ();
1066 public extern static IntPtr external_part_collection_new ();
1068 [DllImport ("moon")]
1069 [return: MarshalAs (UnmanagedType.U1)]
1070 // bool framework_element_apply_template (FrameworkElement *instance);
1071 public extern static bool framework_element_apply_template (IntPtr instance);
1073 [DllImport ("moon")]
1074 // Size framework_element_arrange_override (FrameworkElement *instance, Size finalSize);
1075 public extern static Size framework_element_arrange_override (IntPtr instance, Size finalSize);
1077 [DllImport ("moon")]
1078 // FrameworkElement *framework_element_new ();
1079 public extern static IntPtr framework_element_new ();
1081 [DllImport ("moon")]
1082 // DependencyObject *framework_element_get_logical_parent (FrameworkElement *instance);
1083 public extern static IntPtr framework_element_get_logical_parent (IntPtr instance);
1085 [DllImport ("moon")]
1086 // Size framework_element_measure_override (FrameworkElement *instance, Size availableSize);
1087 public extern static Size framework_element_measure_override (IntPtr instance, Size availableSize);
1089 [DllImport ("moon")]
1090 // void framework_element_register_managed_overrides (FrameworkElement *instance, MeasureOverrideCallback measure_cb, ArrangeOverrideCallback arrange_cb, GetDefaultTemplateCallback get_default_template_cb, LoadedCallback loaded_cb);
1091 public extern static void framework_element_register_managed_overrides (IntPtr instance, Mono.MeasureOverrideCallback measure_cb, Mono.ArrangeOverrideCallback arrange_cb, Mono.GetDefaultTemplateCallback get_default_template_cb, Mono.LoadedCallback loaded_cb);
1093 [DllImport ("moon")]
1094 // void framework_element_set_default_style (FrameworkElement *instance, Style *value);
1095 public extern static void framework_element_set_default_style (IntPtr instance, IntPtr value);
1097 [DllImport ("moon", EntryPoint="framework_element_set_logical_parent")]
1098 // void framework_element_set_logical_parent (FrameworkElement *instance, DependencyObject *logical_parent, MoonError *error);
1099 private extern static void framework_element_set_logical_parent_ (IntPtr instance, IntPtr logical_parent, out MoonError error);
1100 public static void framework_element_set_logical_parent (IntPtr instance, IntPtr logical_parent)
1102 MoonError error;
1103 framework_element_set_logical_parent_ (instance, logical_parent, out error);
1104 if (error.Number != 0)
1105 throw CreateManagedException (error);
1108 [DllImport ("moon")]
1109 // FrameworkTemplate *framework_template_new ();
1110 public extern static IntPtr framework_template_new ();
1112 [DllImport ("moon")]
1113 // DependencyObject *framework_template_get_visual_tree (FrameworkTemplate *instance, FrameworkElement *templateBindingSource);
1114 public extern static IntPtr framework_template_get_visual_tree (IntPtr instance, IntPtr templateBindingSource);
1116 [DllImport ("moon")]
1117 // GeneralTransform *general_transform_new ();
1118 public extern static IntPtr general_transform_new ();
1120 [DllImport ("moon")]
1121 // Matrix *general_transform_get_matrix (GeneralTransform *instance);
1122 public extern static IntPtr general_transform_get_matrix (IntPtr instance);
1124 [DllImport ("moon")]
1125 // Geometry *geometry_new ();
1126 public extern static IntPtr geometry_new ();
1128 [DllImport ("moon")]
1129 // Rect geometry_get_bounds (Geometry *instance);
1130 public extern static Rect geometry_get_bounds (IntPtr instance);
1132 [DllImport ("moon")]
1133 // GeometryCollection *geometry_collection_new ();
1134 public extern static IntPtr geometry_collection_new ();
1136 [DllImport ("moon")]
1137 // GeometryGroup *geometry_group_new ();
1138 public extern static IntPtr geometry_group_new ();
1140 [DllImport ("moon")]
1141 // Glyphs *glyphs_new ();
1142 public extern static IntPtr glyphs_new ();
1144 [DllImport ("moon")]
1145 // GradientBrush *gradient_brush_new ();
1146 public extern static IntPtr gradient_brush_new ();
1148 [DllImport ("moon")]
1149 // GradientStop *gradient_stop_new ();
1150 public extern static IntPtr gradient_stop_new ();
1152 [DllImport ("moon")]
1153 // GradientStopCollection *gradient_stop_collection_new ();
1154 public extern static IntPtr gradient_stop_collection_new ();
1156 [DllImport ("moon")]
1157 // Grid *grid_new ();
1158 public extern static IntPtr grid_new ();
1160 [DllImport ("moon")]
1161 // HitTestCollection *hit_test_collection_new ();
1162 public extern static IntPtr hit_test_collection_new ();
1164 [DllImport ("moon")]
1165 // Icon *icon_new ();
1166 public extern static IntPtr icon_new ();
1168 [DllImport ("moon")]
1169 // IconCollection *icon_collection_new ();
1170 public extern static IntPtr icon_collection_new ();
1172 [DllImport ("moon")]
1173 // Image *image_new ();
1174 public extern static IntPtr image_new ();
1176 [DllImport ("moon")]
1177 // void image_set_source (Image *instance, ImageSource *source);
1178 public extern static void image_set_source (IntPtr instance, IntPtr source);
1180 [DllImport ("moon")]
1181 // ImageBrush *image_brush_new ();
1182 public extern static IntPtr image_brush_new ();
1184 [DllImport ("moon")]
1185 // ImageSource *image_source_new ();
1186 public extern static IntPtr image_source_new ();
1188 // This method contains types the generator didn't know about. Fix the generator (find the method 'GetManagedType' in TypeReference.cs and add the missing case) and try again.
1189 // [DllImport ("moon")]
1190 // void imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer *instance, MediaStreamSourceDiagnosticKind diagnosticKind, gint64 diagnosticValue);
1191 // public extern static void imedia_demuxer_report_get_diagnostic_completed (IntPtr instance, /* Unknown: 'MediaStreamSourceDiagnosticKind' */ diagnosticKind, long diagnosticValue);
1193 [DllImport ("moon")]
1194 // void imedia_demuxer_report_get_frame_completed (IMediaDemuxer *instance, MediaFrame *frame);
1195 public extern static void imedia_demuxer_report_get_frame_completed (IntPtr instance, IntPtr frame);
1197 [DllImport ("moon")]
1198 // void imedia_demuxer_report_get_frame_progress (IMediaDemuxer *instance, double bufferingProgress);
1199 public extern static void imedia_demuxer_report_get_frame_progress (IntPtr instance, double bufferingProgress);
1201 [DllImport ("moon")]
1202 // void imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer *instance);
1203 public extern static void imedia_demuxer_report_open_demuxer_completed (IntPtr instance);
1205 [DllImport ("moon")]
1206 // void imedia_demuxer_report_seek_completed (IMediaDemuxer *instance, guint64 pts);
1207 public extern static void imedia_demuxer_report_seek_completed (IntPtr instance, ulong pts);
1209 [DllImport ("moon")]
1210 // void imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer *instance, IMediaStream *stream);
1211 public extern static void imedia_demuxer_report_switch_media_stream_completed (IntPtr instance, IntPtr stream);
1213 [DllImport ("moon")]
1214 // Media *imedia_object_get_media_reffed (IMediaObject *instance);
1215 public extern static IntPtr imedia_object_get_media_reffed (IntPtr instance);
1217 [DllImport ("moon")]
1218 // InkPresenter *ink_presenter_new ();
1219 public extern static IntPtr ink_presenter_new ();
1221 [DllImport ("moon")]
1222 // Inline *inline_new ();
1223 public extern static IntPtr inline_new ();
1225 [DllImport ("moon")]
1226 // InlineCollection *inline_collection_new ();
1227 public extern static IntPtr inline_collection_new ();
1229 [DllImport ("moon")]
1230 // InputMethod *input_method_new ();
1231 public extern static IntPtr input_method_new ();
1233 [DllImport ("moon")]
1234 // ItemCollection *item_collection_new ();
1235 public extern static IntPtr item_collection_new ();
1237 [DllImport ("moon")]
1238 // ModifierKeys keyboard_get_modifiers ();
1239 public extern static int keyboard_get_modifiers ();
1241 [DllImport ("moon")]
1242 // int key_event_args_get_key (KeyEventArgs *instance);
1243 public extern static int key_event_args_get_key (IntPtr instance);
1245 [DllImport ("moon")]
1246 // int key_event_args_get_platform_key_code (KeyEventArgs *instance);
1247 public extern static int key_event_args_get_platform_key_code (IntPtr instance);
1249 [DllImport ("moon")]
1250 // KeyEventArgs *key_event_args_new ();
1251 public extern static IntPtr key_event_args_new ();
1253 [DllImport ("moon")]
1254 // KeyFrameCollection *key_frame_collection_new ();
1255 public extern static IntPtr key_frame_collection_new ();
1257 [DllImport ("moon")]
1258 // KeySpline *key_spline_new ();
1259 public extern static IntPtr key_spline_new ();
1261 [DllImport ("moon")]
1262 // Line *line_new ();
1263 public extern static IntPtr line_new ();
1265 [DllImport ("moon")]
1266 // LinearColorKeyFrame *linear_color_key_frame_new ();
1267 public extern static IntPtr linear_color_key_frame_new ();
1269 [DllImport ("moon")]
1270 // LinearDoubleKeyFrame *linear_double_key_frame_new ();
1271 public extern static IntPtr linear_double_key_frame_new ();
1273 [DllImport ("moon")]
1274 // LinearGradientBrush *linear_gradient_brush_new ();
1275 public extern static IntPtr linear_gradient_brush_new ();
1277 [DllImport ("moon")]
1278 // LinearPointKeyFrame *linear_point_key_frame_new ();
1279 public extern static IntPtr linear_point_key_frame_new ();
1281 [DllImport ("moon")]
1282 // LineBreak *line_break_new ();
1283 public extern static IntPtr line_break_new ();
1285 [DllImport ("moon")]
1286 // LineGeometry *line_geometry_new ();
1287 public extern static IntPtr line_geometry_new ();
1289 [DllImport ("moon")]
1290 // LineSegment *line_segment_new ();
1291 public extern static IntPtr line_segment_new ();
1293 [DllImport ("moon")]
1294 // LogReadyRoutedEventArgs *log_ready_routed_event_args_new ();
1295 public extern static IntPtr log_ready_routed_event_args_new ();
1297 [DllImport ("moon")]
1298 // cairo_matrix_t *matrix_get_matrix_values (Matrix *instance);
1299 public extern static IntPtr matrix_get_matrix_values (IntPtr instance);
1301 [DllImport ("moon")]
1302 // Matrix *matrix_new ();
1303 public extern static IntPtr matrix_new ();
1305 [DllImport ("moon")]
1306 // gpointer matrix3_d_get_matrix_values (Matrix3D *instance);
1307 public extern static IntPtr matrix3_d_get_matrix_values (IntPtr instance);
1309 [DllImport ("moon")]
1310 // Matrix3D *matrix3_d_new ();
1311 public extern static IntPtr matrix3_d_new ();
1313 [DllImport ("moon")]
1314 // Matrix3DProjection *matrix3_dprojection_new ();
1315 public extern static IntPtr matrix3_dprojection_new ();
1317 [DllImport ("moon")]
1318 // MatrixTransform *matrix_transform_new ();
1319 public extern static IntPtr matrix_transform_new ();
1321 [DllImport ("moon")]
1322 // MediaAttribute *media_attribute_new ();
1323 public extern static IntPtr media_attribute_new ();
1325 [DllImport ("moon")]
1326 // MediaAttribute *media_attribute_collection_get_item_by_name (MediaAttributeCollection *instance, const char *name);
1327 public extern static IntPtr media_attribute_collection_get_item_by_name (IntPtr instance, string name);
1329 [DllImport ("moon")]
1330 // MediaAttributeCollection *media_attribute_collection_new ();
1331 public extern static IntPtr media_attribute_collection_new ();
1333 [DllImport ("moon")]
1334 // MediaBase *media_base_new ();
1335 public extern static IntPtr media_base_new ();
1337 [DllImport ("moon")]
1338 // void media_base_set_source (MediaBase *instance, const char *uri);
1339 public extern static void media_base_set_source (IntPtr instance, string uri);
1341 [DllImport ("moon")]
1342 // MediaElement *media_element_new ();
1343 public extern static IntPtr media_element_new ();
1345 [DllImport ("moon")]
1346 // void media_element_pause (MediaElement *instance);
1347 public extern static void media_element_pause (IntPtr instance);
1349 [DllImport ("moon")]
1350 // void media_element_play (MediaElement *instance);
1351 public extern static void media_element_play (IntPtr instance);
1353 [DllImport ("moon")]
1354 // void media_element_report_error_occurred (MediaElement *instance, const char *args);
1355 public extern static void media_element_report_error_occurred (IntPtr instance, string args);
1357 [DllImport ("moon")]
1358 // IMediaDemuxer *media_element_set_demuxer_source (MediaElement *instance, void *context, CloseDemuxerCallback close_demuxer, GetDiagnosticAsyncCallback get_diagnostic, GetFrameAsyncCallback get_sample, OpenDemuxerAsyncCallback open_demuxer, SeekAsyncCallback seek, SwitchMediaStreamAsyncCallback switch_media_stream);
1359 public extern static IntPtr media_element_set_demuxer_source (IntPtr instance, IntPtr context, System.Windows.Media.MediaStreamSource.CloseDemuxerDelegate close_demuxer, System.Windows.Media.MediaStreamSource.GetDiagnosticAsyncDelegate get_diagnostic, System.Windows.Media.MediaStreamSource.GetFrameAsyncDelegate get_sample, System.Windows.Media.MediaStreamSource.OpenDemuxerAsyncDelegate open_demuxer, System.Windows.Media.MediaStreamSource.SeekAsyncDelegate seek, System.Windows.Media.MediaStreamSource.SwitchMediaStreamAsyncDelegate switch_media_stream);
1361 [DllImport ("moon")]
1362 // void media_element_set_stream_source (MediaElement *instance, ManagedStreamCallbacks *stream);
1363 public extern static void media_element_set_stream_source (IntPtr instance, ref ManagedStreamCallbacks stream);
1365 [DllImport ("moon")]
1366 // void media_element_stop (MediaElement *instance);
1367 public extern static void media_element_stop (IntPtr instance);
1369 [DllImport ("moon")]
1370 // MediaFrame *media_frame_new (IMediaStream *stream, guint8 *buffer, guint32 buflen, guint64 pts, bool keyframe);
1371 public extern static IntPtr media_frame_new (IntPtr stream, IntPtr buffer, uint buflen, ulong pts, [MarshalAs (UnmanagedType.U1)] bool keyframe);
1373 [DllImport ("moon")]
1374 [return: MarshalAs (UnmanagedType.U1)]
1375 // bool moon_window_get_transparent (MoonWindow *instance);
1376 public extern static bool moon_window_get_transparent (IntPtr instance);
1378 [DllImport ("moon")]
1379 // void moon_window_set_transparent (MoonWindow *instance, bool flag);
1380 public extern static void moon_window_set_transparent (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool flag);
1382 [DllImport ("moon")]
1383 // void *moon_window_gtk_get_native_widget (MoonWindowGtk *instance);
1384 public extern static IntPtr moon_window_gtk_get_native_widget (IntPtr instance);
1386 [DllImport ("moon")]
1387 // MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface);
1388 public extern static IntPtr moon_window_gtk_new ([MarshalAs (UnmanagedType.U1)] bool fullscreen, int w, int h, IntPtr parent, IntPtr surface);
1390 [DllImport ("moon")]
1391 // MouseButtonEventArgs *mouse_button_event_args_new ();
1392 public extern static IntPtr mouse_button_event_args_new ();
1394 [DllImport ("moon")]
1395 // void mouse_event_args_get_position (MouseEventArgs *instance, UIElement *relative_to, double *x, double *y);
1396 public extern static void mouse_event_args_get_position (IntPtr instance, IntPtr relative_to, out double x, out double y);
1398 [DllImport ("moon")]
1399 // StylusInfo *mouse_event_args_get_stylus_info (MouseEventArgs *instance);
1400 public extern static IntPtr mouse_event_args_get_stylus_info (IntPtr instance);
1402 [DllImport ("moon")]
1403 // StylusPointCollection *mouse_event_args_get_stylus_points (MouseEventArgs *instance, UIElement *ink_presenter);
1404 public extern static IntPtr mouse_event_args_get_stylus_points (IntPtr instance, IntPtr ink_presenter);
1406 [DllImport ("moon")]
1407 // MouseEventArgs *mouse_event_args_new ();
1408 public extern static IntPtr mouse_event_args_new ();
1410 [DllImport ("moon")]
1411 // int mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs *instance);
1412 public extern static int mouse_wheel_event_args_get_wheel_delta (IntPtr instance);
1414 [DllImport ("moon")]
1415 // MouseWheelEventArgs *mouse_wheel_event_args_new ();
1416 public extern static IntPtr mouse_wheel_event_args_new ();
1418 [DllImport ("moon")]
1419 // Point multi_scale_image_element_to_logical_point (MultiScaleImage *instance, Point elementPoint);
1420 public extern static Point multi_scale_image_element_to_logical_point (IntPtr instance, Point elementPoint);
1422 [DllImport ("moon")]
1423 // Point multi_scale_image_logical_to_element_point (MultiScaleImage *instance, Point logicalPoint);
1424 public extern static Point multi_scale_image_logical_to_element_point (IntPtr instance, Point logicalPoint);
1426 [DllImport ("moon")]
1427 // MultiScaleImage *multi_scale_image_new ();
1428 public extern static IntPtr multi_scale_image_new ();
1430 [DllImport ("moon")]
1431 // void multi_scale_image_zoom_about_logical_point (MultiScaleImage *instance, double zoomIncrementFactor, double zoomCenterLogicalX, double zoomCenterLogicalY);
1432 public extern static void multi_scale_image_zoom_about_logical_point (IntPtr instance, double zoomIncrementFactor, double zoomCenterLogicalX, double zoomCenterLogicalY);
1434 [DllImport ("moon")]
1435 // MultiScaleSubImage *multi_scale_sub_image_new ();
1436 public extern static IntPtr multi_scale_sub_image_new ();
1438 [DllImport ("moon")]
1439 // MultiScaleSubImageCollection *multi_scale_sub_image_collection_new ();
1440 public extern static IntPtr multi_scale_sub_image_collection_new ();
1442 [DllImport ("moon")]
1443 // void multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource *instance, int level, int tilePositionX, int tilePositionY, int tileLayer);
1444 public extern static void multi_scale_tile_source_invalidate_tile_layer (IntPtr instance, int level, int tilePositionX, int tilePositionY, int tileLayer);
1446 [DllImport ("moon")]
1447 // MultiScaleTileSource *multi_scale_tile_source_new ();
1448 public extern static IntPtr multi_scale_tile_source_new ();
1450 [DllImport ("moon")]
1451 // void multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource *instance, get_image_uri_func func);
1452 public extern static void multi_scale_tile_source_set_image_uri_func (IntPtr instance, Mono.ImageUriFunc func);
1454 [DllImport ("moon")]
1455 // ObjectAnimationUsingKeyFrames *object_animation_using_key_frames_new ();
1456 public extern static IntPtr object_animation_using_key_frames_new ();
1458 [DllImport ("moon")]
1459 // ObjectKeyFrame *object_key_frame_new ();
1460 public extern static IntPtr object_key_frame_new ();
1462 [DllImport ("moon")]
1463 // ObjectKeyFrameCollection *object_key_frame_collection_new ();
1464 public extern static IntPtr object_key_frame_collection_new ();
1466 [DllImport ("moon")]
1467 // OutOfBrowserSettings *out_of_browser_settings_new ();
1468 public extern static IntPtr out_of_browser_settings_new ();
1470 [DllImport ("moon")]
1471 // Panel *panel_new ();
1472 public extern static IntPtr panel_new ();
1474 [DllImport ("moon")]
1475 // ParallelTimeline *parallel_timeline_new ();
1476 public extern static IntPtr parallel_timeline_new ();
1478 [DllImport ("moon")]
1479 // PasswordBox *password_box_new ();
1480 public extern static IntPtr password_box_new ();
1482 [DllImport ("moon")]
1483 // Path *path_new ();
1484 public extern static IntPtr path_new ();
1486 [DllImport ("moon")]
1487 // PathFigure *path_figure_new ();
1488 public extern static IntPtr path_figure_new ();
1490 [DllImport ("moon")]
1491 // PathFigureCollection *path_figure_collection_new ();
1492 public extern static IntPtr path_figure_collection_new ();
1494 [DllImport ("moon")]
1495 // PathGeometry *path_geometry_new ();
1496 public extern static IntPtr path_geometry_new ();
1498 [DllImport ("moon")]
1499 // PathSegment *path_segment_new ();
1500 public extern static IntPtr path_segment_new ();
1502 [DllImport ("moon")]
1503 // PathSegmentCollection *path_segment_collection_new ();
1504 public extern static IntPtr path_segment_collection_new ();
1506 [DllImport ("moon")]
1507 // PixelShader *pixel_shader_new ();
1508 public extern static IntPtr pixel_shader_new ();
1510 [DllImport ("moon")]
1511 // PlaneProjection *plane_projection_new ();
1512 public extern static IntPtr plane_projection_new ();
1514 [DllImport ("moon")]
1515 // PointAnimation *point_animation_new ();
1516 public extern static IntPtr point_animation_new ();
1518 [DllImport ("moon")]
1519 // PointAnimationUsingKeyFrames *point_animation_using_key_frames_new ();
1520 public extern static IntPtr point_animation_using_key_frames_new ();
1522 [DllImport ("moon")]
1523 // PointCollection *point_collection_new ();
1524 public extern static IntPtr point_collection_new ();
1526 [DllImport ("moon")]
1527 // PointKeyFrame *point_key_frame_new ();
1528 public extern static IntPtr point_key_frame_new ();
1530 [DllImport ("moon")]
1531 // PointKeyFrameCollection *point_key_frame_collection_new ();
1532 public extern static IntPtr point_key_frame_collection_new ();
1534 [DllImport ("moon")]
1535 // PolyBezierSegment *poly_bezier_segment_new ();
1536 public extern static IntPtr poly_bezier_segment_new ();
1538 [DllImport ("moon")]
1539 // Polygon *polygon_new ();
1540 public extern static IntPtr polygon_new ();
1542 [DllImport ("moon")]
1543 // Polyline *polyline_new ();
1544 public extern static IntPtr polyline_new ();
1546 [DllImport ("moon")]
1547 // PolyLineSegment *poly_line_segment_new ();
1548 public extern static IntPtr poly_line_segment_new ();
1550 [DllImport ("moon")]
1551 // PolyQuadraticBezierSegment *poly_quadratic_bezier_segment_new ();
1552 public extern static IntPtr poly_quadratic_bezier_segment_new ();
1554 [DllImport ("moon")]
1555 // Popup *popup_new ();
1556 public extern static IntPtr popup_new ();
1558 [DllImport ("moon")]
1559 // double power_ease_ease_in_core (PowerEase *instance, double normalizedTime);
1560 public extern static double power_ease_ease_in_core (IntPtr instance, double normalizedTime);
1562 [DllImport ("moon")]
1563 // PowerEase *power_ease_new ();
1564 public extern static IntPtr power_ease_new ();
1566 [DllImport ("moon")]
1567 // Projection *projection_new ();
1568 public extern static IntPtr projection_new ();
1570 [DllImport ("moon")]
1571 // int property_changed_event_args_get_id (PropertyChangedEventArgs *instance);
1572 public extern static int property_changed_event_args_get_id (IntPtr instance);
1574 [DllImport ("moon")]
1575 // Value *property_changed_event_args_get_new_value (PropertyChangedEventArgs *instance);
1576 public extern static IntPtr property_changed_event_args_get_new_value (IntPtr instance);
1578 [DllImport ("moon")]
1579 // Value *property_changed_event_args_get_old_value (PropertyChangedEventArgs *instance);
1580 public extern static IntPtr property_changed_event_args_get_old_value (IntPtr instance);
1582 [DllImport ("moon")]
1583 // DependencyProperty *property_changed_event_args_get_property (PropertyChangedEventArgs *instance);
1584 public extern static IntPtr property_changed_event_args_get_property (IntPtr instance);
1586 [DllImport ("moon")]
1587 // QuadraticBezierSegment *quadratic_bezier_segment_new ();
1588 public extern static IntPtr quadratic_bezier_segment_new ();
1590 [DllImport ("moon")]
1591 // double quadratic_ease_ease_in_core (QuadraticEase *instance, double normalizedTime);
1592 public extern static double quadratic_ease_ease_in_core (IntPtr instance, double normalizedTime);
1594 [DllImport ("moon")]
1595 // QuadraticEase *quadratic_ease_new ();
1596 public extern static IntPtr quadratic_ease_new ();
1598 [DllImport ("moon")]
1599 // double quartic_ease_ease_in_core (QuarticEase *instance, double normalizedTime);
1600 public extern static double quartic_ease_ease_in_core (IntPtr instance, double normalizedTime);
1602 [DllImport ("moon")]
1603 // QuarticEase *quartic_ease_new ();
1604 public extern static IntPtr quartic_ease_new ();
1606 [DllImport ("moon")]
1607 // double quintic_ease_ease_in_core (QuinticEase *instance, double normalizedTime);
1608 public extern static double quintic_ease_ease_in_core (IntPtr instance, double normalizedTime);
1610 [DllImport ("moon")]
1611 // QuinticEase *quintic_ease_new ();
1612 public extern static IntPtr quintic_ease_new ();
1614 [DllImport ("moon")]
1615 // RadialGradientBrush *radial_gradient_brush_new ();
1616 public extern static IntPtr radial_gradient_brush_new ();
1618 [DllImport ("moon")]
1619 // Rectangle *rectangle_new ();
1620 public extern static IntPtr rectangle_new ();
1622 [DllImport ("moon")]
1623 // RectangleGeometry *rectangle_geometry_new ();
1624 public extern static IntPtr rectangle_geometry_new ();
1626 [DllImport ("moon")]
1627 // TimeSpan rendering_event_args_get_rendering_time (RenderingEventArgs *instance);
1628 public extern static long rendering_event_args_get_rendering_time (IntPtr instance);
1630 [DllImport ("moon", EntryPoint="resource_dictionary_add_with_error")]
1631 [return: MarshalAs (UnmanagedType.U1)]
1632 // bool resource_dictionary_add_with_error (ResourceDictionary *instance, const char *key, Value *value, MoonError *error);
1633 private extern static bool resource_dictionary_add_with_error_ (IntPtr instance, string key, ref Value value, out MoonError error);
1634 public static bool resource_dictionary_add (IntPtr instance, string key, ref Value value)
1636 bool result;
1637 MoonError error;
1638 result = resource_dictionary_add_with_error_ (instance, key, ref value, out error);
1639 if (error.Number != 0)
1640 throw CreateManagedException (error);
1641 return result;
1644 [DllImport ("moon")]
1645 [return: MarshalAs (UnmanagedType.U1)]
1646 // bool resource_dictionary_clear (ResourceDictionary *instance);
1647 public extern static bool resource_dictionary_clear (IntPtr instance);
1649 [DllImport ("moon")]
1650 [return: MarshalAs (UnmanagedType.U1)]
1651 // bool resource_dictionary_contains_key (ResourceDictionary *instance, const char *key);
1652 public extern static bool resource_dictionary_contains_key (IntPtr instance, string key);
1654 [DllImport ("moon")]
1655 // Value *resource_dictionary_get (ResourceDictionary *instance, const char *key, bool *exists);
1656 public extern static IntPtr resource_dictionary_get (IntPtr instance, string key, [MarshalAs (UnmanagedType.U1)] out bool exists);
1658 [DllImport ("moon")]
1659 [return: MarshalAs (UnmanagedType.U1)]
1660 // bool resource_dictionary_remove (ResourceDictionary *instance, const char *key);
1661 public extern static bool resource_dictionary_remove (IntPtr instance, string key);
1663 [DllImport ("moon")]
1664 // ResourceDictionary *resource_dictionary_new ();
1665 public extern static IntPtr resource_dictionary_new ();
1667 [DllImport ("moon")]
1668 [return: MarshalAs (UnmanagedType.U1)]
1669 // bool resource_dictionary_set (ResourceDictionary *instance, const char *key, Value *value);
1670 public extern static bool resource_dictionary_set (IntPtr instance, string key, ref Value value);
1672 [DllImport ("moon")]
1673 // ResourceDictionaryCollection *resource_dictionary_collection_new ();
1674 public extern static IntPtr resource_dictionary_collection_new ();
1676 [DllImport ("moon")]
1677 // RotateTransform *rotate_transform_new ();
1678 public extern static IntPtr rotate_transform_new ();
1680 [DllImport ("moon")]
1681 [return: MarshalAs (UnmanagedType.U1)]
1682 // bool routed_event_args_get_handled (RoutedEventArgs *instance);
1683 public extern static bool routed_event_args_get_handled (IntPtr instance);
1685 [DllImport ("moon")]
1686 // DependencyObject *routed_event_args_get_source (RoutedEventArgs *instance);
1687 public extern static IntPtr routed_event_args_get_source (IntPtr instance);
1689 [DllImport ("moon")]
1690 // RoutedEventArgs *routed_event_args_new ();
1691 public extern static IntPtr routed_event_args_new ();
1693 [DllImport ("moon")]
1694 // void routed_event_args_set_handled (RoutedEventArgs *instance, bool handled);
1695 public extern static void routed_event_args_set_handled (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool handled);
1697 [DllImport ("moon")]
1698 // void routed_event_args_set_source (RoutedEventArgs *instance, DependencyObject *el);
1699 public extern static void routed_event_args_set_source (IntPtr instance, IntPtr el);
1701 [DllImport ("moon")]
1702 // RowDefinition *row_definition_new ();
1703 public extern static IntPtr row_definition_new ();
1705 [DllImport ("moon")]
1706 // RowDefinitionCollection *row_definition_collection_new ();
1707 public extern static IntPtr row_definition_collection_new ();
1709 [DllImport ("moon")]
1710 // Run *run_new ();
1711 public extern static IntPtr run_new ();
1713 [DllImport ("moon")]
1714 // ScaleTransform *scale_transform_new ();
1715 public extern static IntPtr scale_transform_new ();
1717 [DllImport ("moon")]
1718 // Setter *setter_new ();
1719 public extern static IntPtr setter_new ();
1721 [DllImport ("moon")]
1722 // SetterBase *setter_base_new ();
1723 public extern static IntPtr setter_base_new ();
1725 [DllImport ("moon")]
1726 // SetterBaseCollection *setter_base_collection_new ();
1727 public extern static IntPtr setter_base_collection_new ();
1729 [DllImport ("moon")]
1730 // ShaderEffect *shader_effect_new ();
1731 public extern static IntPtr shader_effect_new ();
1733 [DllImport ("moon")]
1734 // Transform *shape_get_geometry_transform (Shape *instance);
1735 public extern static IntPtr shape_get_geometry_transform (IntPtr instance);
1737 [DllImport ("moon")]
1738 // Shape *shape_new ();
1739 public extern static IntPtr shape_new ();
1741 [DllImport ("moon")]
1742 // double sine_ease_ease_in_core (SineEase *instance, double normalizedTime);
1743 public extern static double sine_ease_ease_in_core (IntPtr instance, double normalizedTime);
1745 [DllImport ("moon")]
1746 // SineEase *sine_ease_new ();
1747 public extern static IntPtr sine_ease_new ();
1749 [DllImport ("moon")]
1750 // SizeChangedEventArgs *size_changed_event_args_new ();
1751 public extern static IntPtr size_changed_event_args_new ();
1753 [DllImport ("moon")]
1754 // SkewTransform *skew_transform_new ();
1755 public extern static IntPtr skew_transform_new ();
1757 [DllImport ("moon")]
1758 // SolidColorBrush *solid_color_brush_new ();
1759 public extern static IntPtr solid_color_brush_new ();
1761 [DllImport ("moon")]
1762 // SplineColorKeyFrame *spline_color_key_frame_new ();
1763 public extern static IntPtr spline_color_key_frame_new ();
1765 [DllImport ("moon")]
1766 // SplineDoubleKeyFrame *spline_double_key_frame_new ();
1767 public extern static IntPtr spline_double_key_frame_new ();
1769 [DllImport ("moon")]
1770 // SplinePointKeyFrame *spline_point_key_frame_new ();
1771 public extern static IntPtr spline_point_key_frame_new ();
1773 [DllImport ("moon", EntryPoint="storyboard_begin_with_error")]
1774 [return: MarshalAs (UnmanagedType.U1)]
1775 // bool storyboard_begin_with_error (Storyboard *instance, MoonError *error);
1776 private extern static bool storyboard_begin_with_error_ (IntPtr instance, out MoonError error);
1777 public static bool storyboard_begin (IntPtr instance)
1779 bool result;
1780 MoonError error;
1781 result = storyboard_begin_with_error_ (instance, out error);
1782 if (error.Number != 0)
1783 throw CreateManagedException (error);
1784 return result;
1787 [DllImport ("moon")]
1788 // int storyboard_get_current_state (Storyboard *instance);
1789 public extern static int storyboard_get_current_state (IntPtr instance);
1791 [DllImport ("moon")]
1792 // TimeSpan storyboard_get_current_time (Storyboard *instance);
1793 public extern static long storyboard_get_current_time (IntPtr instance);
1795 [DllImport ("moon")]
1796 // DependencyProperty *storyboard_get_target_dependency_property (Storyboard *instance);
1797 public extern static IntPtr storyboard_get_target_dependency_property (IntPtr instance);
1799 [DllImport ("moon", EntryPoint="storyboard_pause_with_error")]
1800 // void storyboard_pause_with_error (Storyboard *instance, MoonError *error);
1801 private extern static void storyboard_pause_with_error_ (IntPtr instance, out MoonError error);
1802 public static void storyboard_pause (IntPtr instance)
1804 MoonError error;
1805 storyboard_pause_with_error_ (instance, out error);
1806 if (error.Number != 0)
1807 throw CreateManagedException (error);
1810 [DllImport ("moon", EntryPoint="storyboard_resume_with_error")]
1811 // void storyboard_resume_with_error (Storyboard *instance, MoonError *error);
1812 private extern static void storyboard_resume_with_error_ (IntPtr instance, out MoonError error);
1813 public static void storyboard_resume (IntPtr instance)
1815 MoonError error;
1816 storyboard_resume_with_error_ (instance, out error);
1817 if (error.Number != 0)
1818 throw CreateManagedException (error);
1821 [DllImport ("moon", EntryPoint="storyboard_seek_aligned_to_last_tick_with_error")]
1822 // void storyboard_seek_aligned_to_last_tick_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error);
1823 private extern static void storyboard_seek_aligned_to_last_tick_with_error_ (IntPtr instance, long timespan, out MoonError error);
1824 public static void storyboard_seek_aligned_to_last_tick (IntPtr instance, long timespan)
1826 MoonError error;
1827 storyboard_seek_aligned_to_last_tick_with_error_ (instance, timespan, out error);
1828 if (error.Number != 0)
1829 throw CreateManagedException (error);
1832 [DllImport ("moon", EntryPoint="storyboard_seek_with_error")]
1833 // void storyboard_seek_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error);
1834 private extern static void storyboard_seek_with_error_ (IntPtr instance, long timespan, out MoonError error);
1835 public static void storyboard_seek (IntPtr instance, long timespan)
1837 MoonError error;
1838 storyboard_seek_with_error_ (instance, timespan, out error);
1839 if (error.Number != 0)
1840 throw CreateManagedException (error);
1843 [DllImport ("moon", EntryPoint="storyboard_skip_to_fill_with_error")]
1844 // void storyboard_skip_to_fill_with_error (Storyboard *instance, MoonError *error);
1845 private extern static void storyboard_skip_to_fill_with_error_ (IntPtr instance, out MoonError error);
1846 public static void storyboard_skip_to_fill (IntPtr instance)
1848 MoonError error;
1849 storyboard_skip_to_fill_with_error_ (instance, out error);
1850 if (error.Number != 0)
1851 throw CreateManagedException (error);
1854 [DllImport ("moon", EntryPoint="storyboard_stop_with_error")]
1855 // void storyboard_stop_with_error (Storyboard *instance, MoonError *error);
1856 private extern static void storyboard_stop_with_error_ (IntPtr instance, out MoonError error);
1857 public static void storyboard_stop (IntPtr instance)
1859 MoonError error;
1860 storyboard_stop_with_error_ (instance, out error);
1861 if (error.Number != 0)
1862 throw CreateManagedException (error);
1865 [DllImport ("moon")]
1866 // Storyboard *storyboard_new ();
1867 public extern static IntPtr storyboard_new ();
1869 [DllImport ("moon")]
1870 [return: MarshalAs (UnmanagedType.U1)]
1871 // bool stroke_hit_test (Stroke *instance, StylusPointCollection *stylusPoints);
1872 public extern static bool stroke_hit_test (IntPtr instance, IntPtr stylusPoints);
1874 [DllImport ("moon")]
1875 // Stroke *stroke_new ();
1876 public extern static IntPtr stroke_new ();
1878 [DllImport ("moon")]
1879 // StrokeCollection *stroke_collection_hit_test (StrokeCollection *instance, StylusPointCollection *stylusPoints);
1880 public extern static IntPtr stroke_collection_hit_test (IntPtr instance, IntPtr stylusPoints);
1882 [DllImport ("moon")]
1883 // StrokeCollection *stroke_collection_new ();
1884 public extern static IntPtr stroke_collection_new ();
1886 [DllImport ("moon")]
1887 // void style_seal (Style *instance);
1888 public extern static void style_seal (IntPtr instance);
1890 [DllImport ("moon")]
1891 // Style *style_new ();
1892 public extern static IntPtr style_new ();
1894 [DllImport ("moon")]
1895 // StylusInfo *stylus_info_new ();
1896 public extern static IntPtr stylus_info_new ();
1898 [DllImport ("moon")]
1899 // double stylus_point_get_pressure_factor (StylusPoint *instance);
1900 public extern static double stylus_point_get_pressure_factor (IntPtr instance);
1902 [DllImport ("moon")]
1903 // double stylus_point_get_x (StylusPoint *instance);
1904 public extern static double stylus_point_get_x (IntPtr instance);
1906 [DllImport ("moon")]
1907 // double stylus_point_get_y (StylusPoint *instance);
1908 public extern static double stylus_point_get_y (IntPtr instance);
1910 [DllImport ("moon")]
1911 // void stylus_point_set_pressure_factor (StylusPoint *instance, double factor);
1912 public extern static void stylus_point_set_pressure_factor (IntPtr instance, double factor);
1914 [DllImport ("moon")]
1915 // void stylus_point_set_x (StylusPoint *instance, double x);
1916 public extern static void stylus_point_set_x (IntPtr instance, double x);
1918 [DllImport ("moon")]
1919 // void stylus_point_set_y (StylusPoint *instance, double y);
1920 public extern static void stylus_point_set_y (IntPtr instance, double y);
1922 [DllImport ("moon")]
1923 // StylusPoint *stylus_point_new ();
1924 public extern static IntPtr stylus_point_new ();
1926 [DllImport ("moon")]
1927 // double stylus_point_collection_add_stylus_points (StylusPointCollection *instance, StylusPointCollection *stylusPointCollection);
1928 public extern static double stylus_point_collection_add_stylus_points (IntPtr instance, IntPtr stylusPointCollection);
1930 [DllImport ("moon")]
1931 // StylusPointCollection *stylus_point_collection_new ();
1932 public extern static IntPtr stylus_point_collection_new ();
1934 [DllImport ("moon")]
1935 // void surface_attach (Surface *instance, UIElement *toplevel);
1936 public extern static void surface_attach (IntPtr instance, IntPtr toplevel);
1938 [DllImport ("moon")]
1939 // Downloader *surface_create_downloader (Surface *instance);
1940 public extern static IntPtr surface_create_downloader (IntPtr instance);
1942 [DllImport ("moon")]
1943 // void surface_emit_error (Surface *instance, int number, int code, const char *message);
1944 public extern static void surface_emit_error (IntPtr instance, int number, int code, string message);
1946 [DllImport ("moon")]
1947 // Color *surface_get_background_color (Surface *instance);
1948 public extern static IntPtr surface_get_background_color (IntPtr instance);
1950 [DllImport ("moon")]
1951 // UIElement *surface_get_focused_element (Surface *instance);
1952 public extern static IntPtr surface_get_focused_element (IntPtr instance);
1954 [DllImport ("moon")]
1955 [return: MarshalAs (UnmanagedType.U1)]
1956 // bool surface_get_full_screen (Surface *instance);
1957 public extern static bool surface_get_full_screen (IntPtr instance);
1959 [DllImport ("moon")]
1960 // TimeManager *surface_get_time_manager (Surface *instance);
1961 public extern static IntPtr surface_get_time_manager (IntPtr instance);
1963 [DllImport ("moon")]
1964 // UIElement *surface_get_toplevel (Surface *instance);
1965 public extern static IntPtr surface_get_toplevel (IntPtr instance);
1967 [DllImport ("moon")]
1968 [return: MarshalAs (UnmanagedType.U1)]
1969 // bool surface_in_main_thread ();
1970 public extern static bool surface_in_main_thread ();
1972 [DllImport ("moon")]
1973 [return: MarshalAs (UnmanagedType.U1)]
1974 // bool surface_is_loaded (Surface *instance);
1975 public extern static bool surface_is_loaded (IntPtr instance);
1977 [DllImport ("moon")]
1978 [return: MarshalAs (UnmanagedType.U1)]
1979 // bool surface_is_user_initiated_event (Surface *instance);
1980 public extern static bool surface_is_user_initiated_event (IntPtr instance);
1982 [DllImport ("moon")]
1983 [return: MarshalAs (UnmanagedType.U1)]
1984 // bool surface_is_version_supported (const char *version);
1985 public extern static bool surface_is_version_supported (string version);
1987 [DllImport ("moon")]
1988 // void surface_paint (Surface *instance, cairo_t *ctx, int x, int y, int width, int height);
1989 public extern static void surface_paint (IntPtr instance, IntPtr ctx, int x, int y, int width, int height);
1991 [DllImport ("moon")]
1992 // void surface_resize (Surface *instance, int width, int height);
1993 public extern static void surface_resize (IntPtr instance, int width, int height);
1995 [DllImport ("moon")]
1996 // void surface_set_full_screen (Surface *instance, bool value);
1997 public extern static void surface_set_full_screen (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool value);
1999 [DllImport ("moon")]
2000 // Surface *surface_new (MoonWindow *window);
2001 public extern static IntPtr surface_new (IntPtr window);
2003 [DllImport ("moon")]
2004 [return: MarshalAs (UnmanagedType.U1)]
2005 // bool tab_navigation_walker_focus (UIElement *element, bool forwards);
2006 public extern static bool tab_navigation_walker_focus (IntPtr element, [MarshalAs (UnmanagedType.U1)] bool forwards);
2008 [DllImport ("moon")]
2009 // TextBlock *text_block_new ();
2010 public extern static IntPtr text_block_new ();
2012 [DllImport ("moon")]
2013 // TextBox *text_box_new ();
2014 public extern static IntPtr text_box_new ();
2016 [DllImport ("moon")]
2017 // void text_box_base_on_got_focus (TextBoxBase *instance, RoutedEventArgs *args);
2018 public extern static void text_box_base_on_got_focus (IntPtr instance, IntPtr args);
2020 [DllImport ("moon")]
2021 // void text_box_base_on_key_down (TextBoxBase *instance, KeyEventArgs *args);
2022 public extern static void text_box_base_on_key_down (IntPtr instance, IntPtr args);
2024 [DllImport ("moon")]
2025 // void text_box_base_on_key_up (TextBoxBase *instance, KeyEventArgs *args);
2026 public extern static void text_box_base_on_key_up (IntPtr instance, IntPtr args);
2028 [DllImport ("moon")]
2029 // void text_box_base_on_lost_focus (TextBoxBase *instance, RoutedEventArgs *args);
2030 public extern static void text_box_base_on_lost_focus (IntPtr instance, IntPtr args);
2032 [DllImport ("moon")]
2033 // void text_box_base_on_mouse_left_button_down (TextBoxBase *instance, MouseButtonEventArgs *args);
2034 public extern static void text_box_base_on_mouse_left_button_down (IntPtr instance, IntPtr args);
2036 [DllImport ("moon")]
2037 // void text_box_base_on_mouse_left_button_up (TextBoxBase *instance, MouseButtonEventArgs *args);
2038 public extern static void text_box_base_on_mouse_left_button_up (IntPtr instance, IntPtr args);
2040 [DllImport ("moon")]
2041 // void text_box_base_on_mouse_move (TextBoxBase *instance, MouseEventArgs *args);
2042 public extern static void text_box_base_on_mouse_move (IntPtr instance, IntPtr args);
2044 [DllImport ("moon")]
2045 // void text_box_base_post_on_key_down (TextBoxBase *instance, KeyEventArgs *args);
2046 public extern static void text_box_base_post_on_key_down (IntPtr instance, IntPtr args);
2048 [DllImport ("moon")]
2049 // void text_box_base_select_all (TextBoxBase *instance);
2050 public extern static void text_box_base_select_all (IntPtr instance);
2052 [DllImport ("moon", EntryPoint="text_box_base_select_with_error")]
2053 [return: MarshalAs (UnmanagedType.U1)]
2054 // bool text_box_base_select_with_error (TextBoxBase *instance, int start, int length, MoonError *error);
2055 private extern static bool text_box_base_select_with_error_ (IntPtr instance, int start, int length, out MoonError error);
2056 public static bool text_box_base_select (IntPtr instance, int start, int length)
2058 bool result;
2059 MoonError error;
2060 result = text_box_base_select_with_error_ (instance, start, length, out error);
2061 if (error.Number != 0)
2062 throw CreateManagedException (error);
2063 return result;
2066 [DllImport ("moon")]
2067 // TextBoxView *text_box_view_new ();
2068 public extern static IntPtr text_box_view_new ();
2070 [DllImport ("moon")]
2071 // TextChangedEventArgs *text_changed_event_args_new ();
2072 public extern static IntPtr text_changed_event_args_new ();
2074 [DllImport ("moon")]
2075 // TileBrush *tile_brush_new ();
2076 public extern static IntPtr tile_brush_new ();
2078 [DllImport ("moon")]
2079 // DependencyObject *timeline_get_manual_target (Timeline *instance);
2080 public extern static IntPtr timeline_get_manual_target (IntPtr instance);
2082 [DllImport ("moon")]
2083 // void timeline_set_manual_target (Timeline *instance, DependencyObject *o);
2084 public extern static void timeline_set_manual_target (IntPtr instance, IntPtr o);
2086 [DllImport ("moon")]
2087 // Timeline *timeline_new ();
2088 public extern static IntPtr timeline_new ();
2090 [DllImport ("moon")]
2091 // TimelineCollection *timeline_collection_new ();
2092 public extern static IntPtr timeline_collection_new ();
2094 [DllImport ("moon")]
2095 // TimelineGroup *timeline_group_new ();
2096 public extern static IntPtr timeline_group_new ();
2098 [DllImport ("moon")]
2099 // TimelineMarker *timeline_marker_new ();
2100 public extern static IntPtr timeline_marker_new ();
2102 [DllImport ("moon")]
2103 // TimelineMarkerCollection *timeline_marker_collection_new ();
2104 public extern static IntPtr timeline_marker_collection_new ();
2106 [DllImport ("moon")]
2107 // TimelineMarker *timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs *instance);
2108 public extern static IntPtr timeline_marker_routed_event_args_get_marker (IntPtr instance);
2110 [DllImport ("moon")]
2111 // TimelineMarkerRoutedEventArgs *timeline_marker_routed_event_args_new (TimelineMarker *marker);
2112 public extern static IntPtr timeline_marker_routed_event_args_new (IntPtr marker);
2114 [DllImport ("moon")]
2115 // void time_manager_add_dispatcher_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2116 public extern static void time_manager_add_dispatcher_call (IntPtr instance, TickCallHandler handler, IntPtr tick_data);
2118 [DllImport ("moon")]
2119 // void time_manager_add_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2120 public extern static void time_manager_add_tick_call (IntPtr instance, TickCallHandler handler, IntPtr tick_data);
2122 [DllImport ("moon")]
2123 // int time_manager_get_maximum_refresh_rate (TimeManager *instance);
2124 public extern static int time_manager_get_maximum_refresh_rate (IntPtr instance);
2126 [DllImport ("moon")]
2127 // void time_manager_remove_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2128 public extern static void time_manager_remove_tick_call (IntPtr instance, TickCallHandler handler, IntPtr tick_data);
2130 [DllImport ("moon")]
2131 // void time_manager_set_maximum_refresh_rate (TimeManager *instance, int hz);
2132 public extern static void time_manager_set_maximum_refresh_rate (IntPtr instance, int hz);
2134 [DllImport ("moon")]
2135 // Transform *transform_new ();
2136 public extern static IntPtr transform_new ();
2138 [DllImport ("moon")]
2139 // TransformCollection *transform_collection_new ();
2140 public extern static IntPtr transform_collection_new ();
2142 [DllImport ("moon")]
2143 // TransformGroup *transform_group_new ();
2144 public extern static IntPtr transform_group_new ();
2146 [DllImport ("moon")]
2147 // TranslateTransform *translate_transform_new ();
2148 public extern static IntPtr translate_transform_new ();
2150 [DllImport ("moon")]
2151 // TriggerAction *trigger_action_new ();
2152 public extern static IntPtr trigger_action_new ();
2154 [DllImport ("moon")]
2155 // TriggerActionCollection *trigger_action_collection_new ();
2156 public extern static IntPtr trigger_action_collection_new ();
2158 [DllImport ("moon")]
2159 // TriggerBase *trigger_base_new ();
2160 public extern static IntPtr trigger_base_new ();
2162 [DllImport ("moon")]
2163 // TriggerCollection *trigger_collection_new ();
2164 public extern static IntPtr trigger_collection_new ();
2166 [DllImport ("moon")]
2167 // Type *types_find (Types *instance, Type::Kind type);
2168 public extern static IntPtr types_find (IntPtr instance, Kind type);
2170 [DllImport ("moon")]
2171 // Type::Kind types_register_type (Types *instance, const char *name, void *gc_handle, Type::Kind parent, bool is_interface, bool ctor_visible, Type::Kind *interfaces, int interface_count);
2172 public extern static Kind types_register_type (IntPtr instance, string name, IntPtr gc_handle, Kind parent, [MarshalAs (UnmanagedType.U1)] bool is_interface, [MarshalAs (UnmanagedType.U1)] bool ctor_visible, Kind[] interfaces, int interface_count);
2174 [DllImport ("moon")]
2175 // Types *types_new ();
2176 public extern static IntPtr types_new ();
2178 [DllImport ("moon")]
2179 // void uielement_arrange (UIElement *instance, Rect finalRect);
2180 public extern static void uielement_arrange (IntPtr instance, Rect finalRect);
2182 [DllImport ("moon")]
2183 [return: MarshalAs (UnmanagedType.U1)]
2184 // bool uielement_capture_mouse (UIElement *instance);
2185 public extern static bool uielement_capture_mouse (IntPtr instance);
2187 [DllImport ("moon")]
2188 // void uielement_element_added (UIElement *instance, UIElement *obj);
2189 public extern static void uielement_element_added (IntPtr instance, IntPtr obj);
2191 [DllImport ("moon")]
2192 // void uielement_element_removed (UIElement *instance, UIElement *obj);
2193 public extern static void uielement_element_removed (IntPtr instance, IntPtr obj);
2195 [DllImport ("moon")]
2196 // void uielement_find_elements_in_host_coordinates_p (UIElement *instance, Point p, HitTestCollection *uielement_list);
2197 public extern static void uielement_find_elements_in_host_coordinates_p (IntPtr instance, Point p, IntPtr uielement_list);
2199 [DllImport ("moon")]
2200 // void uielement_find_elements_in_host_coordinates_r (UIElement *instance, Rect p, HitTestCollection *uielement_list);
2201 public extern static void uielement_find_elements_in_host_coordinates_r (IntPtr instance, Rect p, IntPtr uielement_list);
2203 [DllImport ("moon")]
2204 [return: MarshalAs (UnmanagedType.U1)]
2205 // bool uielement_focus (UIElement *instance, bool recurse);
2206 public extern static bool uielement_focus (IntPtr instance, [MarshalAs (UnmanagedType.U1)] bool recurse);
2208 [DllImport ("moon")]
2209 // Size uielement_get_desired_size (UIElement *instance);
2210 public extern static Size uielement_get_desired_size (IntPtr instance);
2212 [DllImport ("moon")]
2213 // Size uielement_get_render_size (UIElement *instance);
2214 public extern static Size uielement_get_render_size (IntPtr instance);
2216 [DllImport ("moon")]
2217 // DependencyObject *uielement_get_subtree_object (UIElement *instance);
2218 public extern static IntPtr uielement_get_subtree_object (IntPtr instance);
2220 [DllImport ("moon", EntryPoint="uielement_get_transform_to_uielement_with_error")]
2221 // GeneralTransform *uielement_get_transform_to_uielement_with_error (UIElement *instance, UIElement *to_element, MoonError *error);
2222 private extern static IntPtr uielement_get_transform_to_uielement_with_error_ (IntPtr instance, IntPtr to_element, out MoonError error);
2223 public static IntPtr uielement_get_transform_to_uielement (IntPtr instance, IntPtr to_element)
2225 IntPtr result;
2226 MoonError error;
2227 result = uielement_get_transform_to_uielement_with_error_ (instance, to_element, out error);
2228 if (error.Number != 0)
2229 throw CreateManagedException (error);
2230 return result;
2233 [DllImport ("moon")]
2234 // UIElement *uielement_get_visual_parent (UIElement *instance);
2235 public extern static IntPtr uielement_get_visual_parent (IntPtr instance);
2237 [DllImport ("moon")]
2238 // void uielement_invalidate_arrange (UIElement *instance);
2239 public extern static void uielement_invalidate_arrange (IntPtr instance);
2241 [DllImport ("moon")]
2242 // void uielement_invalidate_measure (UIElement *instance);
2243 public extern static void uielement_invalidate_measure (IntPtr instance);
2245 [DllImport ("moon")]
2246 // void uielement_measure (UIElement *instance, Size availableSize);
2247 public extern static void uielement_measure (IntPtr instance, Size availableSize);
2249 [DllImport ("moon")]
2250 // void uielement_release_mouse_capture (UIElement *instance);
2251 public extern static void uielement_release_mouse_capture (IntPtr instance);
2253 [DllImport ("moon")]
2254 // void uielement_set_subtree_object (UIElement *instance, DependencyObject *value);
2255 public extern static void uielement_set_subtree_object (IntPtr instance, IntPtr value);
2257 [DllImport ("moon")]
2258 // void uielement_update_layout (UIElement *instance);
2259 public extern static void uielement_update_layout (IntPtr instance);
2261 [DllImport ("moon")]
2262 // UIElementCollection *uielement_collection_new ();
2263 public extern static IntPtr uielement_collection_new ();
2265 [DllImport ("moon")]
2266 // UnmanagedMatrix *unmanaged_matrix_new ();
2267 public extern static IntPtr unmanaged_matrix_new ();
2269 [DllImport ("moon")]
2270 // UnmanagedMatrix3D *unmanaged_matrix3_d_new ();
2271 public extern static IntPtr unmanaged_matrix3_d_new ();
2273 [DllImport ("moon")]
2274 // void uri_free (Uri *instance);
2275 public extern static void uri_free (IntPtr instance);
2277 [DllImport ("moon")]
2278 [return: MarshalAs (UnmanagedType.U1)]
2279 // bool uri_parse (Uri *instance, const char *uri, bool allow_trailing_sep);
2280 public extern static bool uri_parse (IntPtr instance, string uri, [MarshalAs (UnmanagedType.U1)] bool allow_trailing_sep);
2282 [DllImport ("moon")]
2283 // UserControl *user_control_new ();
2284 public extern static IntPtr user_control_new ();
2286 [DllImport ("moon")]
2287 // void video_brush_set_source (VideoBrush *instance, MediaElement *source);
2288 public extern static void video_brush_set_source (IntPtr instance, IntPtr source);
2290 [DllImport ("moon")]
2291 // VideoBrush *video_brush_new ();
2292 public extern static IntPtr video_brush_new ();
2294 [DllImport ("moon")]
2295 // VideoStream *video_stream_new (Media *media, int codec_id, guint32 width, guint32 height, guint64 duration, gpointer extra_data, guint32 extra_data_size);
2296 public extern static IntPtr video_stream_new (IntPtr media, int codec_id, uint width, uint height, ulong duration, IntPtr extra_data, uint extra_data_size);
2298 [DllImport ("moon")]
2299 // VisualBrush *visual_brush_new ();
2300 public extern static IntPtr visual_brush_new ();
2302 [DllImport ("moon")]
2303 // WindowSettings *window_settings_new ();
2304 public extern static IntPtr window_settings_new ();
2306 [DllImport ("moon")]
2307 // gpointer writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap *instance, BitmapSource *source);
2308 public extern static IntPtr writeable_bitmap_initialize_from_bitmap_source (IntPtr instance, IntPtr source);
2310 [DllImport ("moon")]
2311 // void writeable_bitmap_lock (WriteableBitmap *instance);
2312 public extern static void writeable_bitmap_lock (IntPtr instance);
2314 [DllImport ("moon")]
2315 // void writeable_bitmap_render (WriteableBitmap *instance, UIElement *element, Transform *transform);
2316 public extern static void writeable_bitmap_render (IntPtr instance, IntPtr element, IntPtr transform);
2318 [DllImport ("moon")]
2319 // void writeable_bitmap_unlock (WriteableBitmap *instance);
2320 public extern static void writeable_bitmap_unlock (IntPtr instance);
2322 [DllImport ("moon")]
2323 // WriteableBitmap *writeable_bitmap_new ();
2324 public extern static IntPtr writeable_bitmap_new ();
2326 [DllImport ("moon")]
2327 // DependencyObject *xaml_context_get_template_binding_source (XamlContext *instance);
2328 public extern static IntPtr xaml_context_get_template_binding_source (IntPtr instance);
2330 [DllImport ("moon", EntryPoint="xaml_loader_create_from_file_with_error")]
2331 // Value *xaml_loader_create_from_file_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, Type::Kind *element_type, MoonError *error);
2332 private extern static IntPtr xaml_loader_create_from_file_with_error_ (IntPtr instance, string xaml, [MarshalAs (UnmanagedType.U1)] bool create_namescope, out Kind element_type, out MoonError error);
2333 public static IntPtr xaml_loader_create_from_file (IntPtr instance, string xaml, bool create_namescope, out Kind element_type)
2335 IntPtr result;
2336 MoonError error;
2337 result = xaml_loader_create_from_file_with_error_ (instance, xaml, create_namescope, out element_type, out error);
2338 if (error.Number != 0)
2339 throw CreateManagedException (error);
2340 return result;
2343 [DllImport ("moon", EntryPoint="xaml_loader_create_from_string_with_error")]
2344 // Value *xaml_loader_create_from_string_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, Type::Kind *element_type, int flags, MoonError *error);
2345 private extern static IntPtr xaml_loader_create_from_string_with_error_ (IntPtr instance, string xaml, [MarshalAs (UnmanagedType.U1)] bool create_namescope, out Kind element_type, int flags, out MoonError error);
2346 public static IntPtr xaml_loader_create_from_string (IntPtr instance, string xaml, bool create_namescope, out Kind element_type, int flags)
2348 IntPtr result;
2349 MoonError error;
2350 result = xaml_loader_create_from_string_with_error_ (instance, xaml, create_namescope, out element_type, flags, out error);
2351 if (error.Number != 0)
2352 throw CreateManagedException (error);
2353 return result;
2356 [DllImport ("moon")]
2357 // XamlContext *xaml_loader_get_context (XamlLoader *instance);
2358 public extern static IntPtr xaml_loader_get_context (IntPtr instance);
2360 [DllImport ("moon", EntryPoint="xaml_loader_hydrate_from_string_with_error")]
2361 // Value *xaml_loader_hydrate_from_string_with_error (XamlLoader *instance, const char *xaml, Value *obj, bool create_namescope, Type::Kind *element_type, int flags, MoonError *error);
2362 private extern static IntPtr xaml_loader_hydrate_from_string_with_error_ (IntPtr instance, string xaml, ref Value obj, [MarshalAs (UnmanagedType.U1)] bool create_namescope, out Kind element_type, int flags, out MoonError error);
2363 public static IntPtr xaml_loader_hydrate_from_string (IntPtr instance, string xaml, ref Value obj, bool create_namescope, out Kind element_type, int flags)
2365 IntPtr result;
2366 MoonError error;
2367 result = xaml_loader_hydrate_from_string_with_error_ (instance, xaml, ref obj, create_namescope, out element_type, flags, out error);
2368 if (error.Number != 0)
2369 throw CreateManagedException (error);
2370 return result;
2373 [DllImport ("moon", EntryPoint="xap_unpack")]
2374 // char *xap_unpack (const char *fname);
2375 private extern static IntPtr xap_unpack_ (string fname);
2376 public static string xap_unpack (string fname)
2378 IntPtr result;
2379 result = xap_unpack_ (fname);
2380 if (result == IntPtr.Zero)
2381 return null;
2382 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
2383 Marshal.FreeHGlobal (result); // g_free the unmanaged string
2384 return s;
2387 [DllImport ("moon")]
2388 // int message_box_show (const char *caption, const char *text, int buttons);
2389 public extern static int message_box_show (string caption, string text, int buttons);
2391 [DllImport ("moon")]
2392 // char* *open_file_dialog_show (const char *title, bool multsel, const char *filter, int idx);
2393 public extern static IntPtr open_file_dialog_show (string title, [MarshalAs (UnmanagedType.U1)] bool multsel, string filter, int idx);
2395 [DllImport ("moon", EntryPoint="save_file_dialog_show")]
2396 // char *save_file_dialog_show (const char *title, const char *filter, int idx);
2397 private extern static IntPtr save_file_dialog_show_ (string title, string filter, int idx);
2398 public static string save_file_dialog_show (string title, string filter, int idx)
2400 IntPtr result;
2401 result = save_file_dialog_show_ (title, filter, idx);
2402 if (result == IntPtr.Zero)
2403 return null;
2404 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
2405 Marshal.FreeHGlobal (result); // g_free the unmanaged string
2406 return s;
2409 [DllImport ("moon")]
2410 // void runtime_init_desktop ();
2411 public extern static void runtime_init_desktop ();
2413 [DllImport ("moon")]
2414 [return: MarshalAs (UnmanagedType.U1)]
2415 // bool runtime_is_running_out_of_browser ();
2416 public extern static bool runtime_is_running_out_of_browser ();
2418 [DllImport ("moon")]
2419 // void size_changed_event_args_get_prev_size (SizeChangedEventArgs *args, Size *prev_size);
2420 public extern static void size_changed_event_args_get_prev_size (IntPtr args, ref Size prev_size);
2422 [DllImport ("moon")]
2423 // void size_changed_event_args_get_new_size (SizeChangedEventArgs *args, Size *new_size);
2424 public extern static void size_changed_event_args_get_new_size (IntPtr args, ref Size new_size);
2426 [DllImport ("moon")]
2427 // void stroke_get_bounds (Stroke *stroke, Rect *bounds);
2428 public extern static void stroke_get_bounds (IntPtr stroke, ref Rect bounds);
2430 [DllImport ("moon")]
2431 // void stroke_collection_get_bounds (StrokeCollection *collection, Rect *bounds);
2432 public extern static void stroke_collection_get_bounds (IntPtr collection, ref Rect bounds);
2434 [DllImport ("moon")]
2435 // void general_transform_transform_point (GeneralTransform *t, Point *p, Point *r);
2436 public extern static void general_transform_transform_point (IntPtr t, ref Point p, ref Point r);
2438 [DllImport ("moon")]
2439 [return: MarshalAs (UnmanagedType.U1)]
2440 // bool type_get_value_type (Type::Kind type);
2441 public extern static bool type_get_value_type (Kind type);
2443 [DllImport ("moon")]
2444 [return: MarshalAs (UnmanagedType.U1)]
2445 // bool type_is_dependency_object (Type::Kind type);
2446 public extern static bool type_is_dependency_object (Kind type);
2448 [DllImport ("moon")]
2449 [return: MarshalAs (UnmanagedType.Bool)]
2450 // gboolean managed_unzip_stream_to_stream (ManagedStreamCallbacks *source, ManagedStreamCallbacks *dest, const char *partname);
2451 public extern static bool managed_unzip_stream_to_stream (ref ManagedStreamCallbacks source, ref ManagedStreamCallbacks dest, string partname);
2453 [DllImport ("moon")]
2454 [return: MarshalAs (UnmanagedType.Bool)]
2455 // gboolean managed_unzip_stream_to_stream_first_file (ManagedStreamCallbacks *source, ManagedStreamCallbacks *dest);
2456 public extern static bool managed_unzip_stream_to_stream_first_file (ref ManagedStreamCallbacks source, ref ManagedStreamCallbacks dest);
2458 [DllImport ("moon")]
2459 // void value_free_value (Value *value);
2460 public extern static void value_free_value (ref Value value);
2462 [DllImport ("moon")]
2463 // void value_free_value2 (Value *value);
2464 public extern static void value_free_value2 (IntPtr value);
2466 [DllImport ("moon")]
2467 [return: MarshalAs (UnmanagedType.U1)]
2468 // bool value_from_str_with_typename (const char *type_name, const char *prop_name, const char *str, Value* *v);
2469 public extern static bool value_from_str_with_typename (string type_name, string prop_name, string str, out IntPtr v);
2471 [DllImport ("moon")]
2472 [return: MarshalAs (UnmanagedType.U1)]
2473 // bool value_from_str (Type::Kind type, const char *prop_name, const char *str, Value* *v);
2474 public extern static bool value_from_str (Kind type, string prop_name, string str, out IntPtr v);
2476 [DllImport ("moon")]
2477 // XamlLoader *xaml_loader_new (const char *resourceBase, const char *filename, const char *str, Surface *surface);
2478 public extern static IntPtr xaml_loader_new (string resourceBase, string filename, string str, IntPtr surface);
2480 [DllImport ("moon")]
2481 // void xaml_loader_free (XamlLoader *loader);
2482 public extern static void xaml_loader_free (IntPtr loader);
2484 [DllImport ("moon")]
2485 // void xaml_loader_set_callbacks (XamlLoader *loader, XamlLoaderCallbacks callbacks);
2486 public extern static void xaml_loader_set_callbacks (IntPtr loader, Xaml.XamlLoaderCallbacks callbacks);
2488 [DllImport ("moon", EntryPoint="xaml_uri_for_prefix")]
2489 // char *xaml_uri_for_prefix (void *parser, char *prefix);
2490 private extern static IntPtr xaml_uri_for_prefix_ (IntPtr parser, string prefix);
2491 public static string xaml_uri_for_prefix (IntPtr parser, string prefix)
2493 IntPtr result;
2494 result = xaml_uri_for_prefix_ (parser, prefix);
2495 if (result == IntPtr.Zero)
2496 return null;
2497 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
2498 Marshal.FreeHGlobal (result); // g_free the unmanaged string
2499 return s;
2502 [DllImport ("moon")]
2503 // Value *xaml_lookup_named_item (void *parser, void *element_instance, const char *name);
2504 public extern static IntPtr xaml_lookup_named_item (IntPtr parser, IntPtr element_instance, string name);
2506 [DllImport ("moon")]
2507 // void *xaml_get_template_parent (void *parser, void *element_instance);
2508 public extern static IntPtr xaml_get_template_parent (IntPtr parser, IntPtr element_instance);
2510 [DllImport ("moon", EntryPoint="xaml_get_element_key")]
2511 // char *xaml_get_element_key (void *parser, void *element_instance);
2512 private extern static IntPtr xaml_get_element_key_ (IntPtr parser, IntPtr element_instance);
2513 public static string xaml_get_element_key (IntPtr parser, IntPtr element_instance)
2515 IntPtr result;
2516 result = xaml_get_element_key_ (parser, element_instance);
2517 if (result == IntPtr.Zero)
2518 return null;
2519 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
2520 Marshal.FreeHGlobal (result); // g_free the unmanaged string
2521 return s;
2524 [DllImport ("moon", EntryPoint="xaml_get_element_name")]
2525 // char *xaml_get_element_name (void *parser, void *element_instance);
2526 private extern static IntPtr xaml_get_element_name_ (IntPtr parser, IntPtr element_instance);
2527 public static string xaml_get_element_name (IntPtr parser, IntPtr element_instance)
2529 IntPtr result;
2530 result = xaml_get_element_name_ (parser, element_instance);
2531 if (result == IntPtr.Zero)
2532 return null;
2533 string s = Marshal.PtrToStringAnsi (result); // *copy* unmanaged string
2534 Marshal.FreeHGlobal (result); // g_free the unmanaged string
2535 return s;
2538 [DllImport ("moon")]
2539 [return: MarshalAs (UnmanagedType.U1)]
2540 // bool xaml_is_property_set (void *parser, void *element_instance, char *name);
2541 public extern static bool xaml_is_property_set (IntPtr parser, IntPtr element_instance, string name);
2543 [DllImport ("moon")]
2544 // void xaml_mark_property_as_set (void *parser, void *element_instance, char *name);
2545 public extern static void xaml_mark_property_as_set (IntPtr parser, IntPtr element_instance, string name);
2547 [DllImport ("moon")]
2548 // void xaml_delay_set_property (void *parser, void *element_instance, const char *xmlns, const char *name, const Value *value);
2549 public extern static void xaml_delay_set_property (IntPtr parser, IntPtr element_instance, string xmlns, string name, ref Value value);