2 * Automatically generated, do not edit this file directly
7 using System
.Runtime
.InteropServices
;
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
)
46 result
= plugin_instance_get_init_params_ (instance
);
47 if (result
== IntPtr
.Zero
)
49 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
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
)
59 result
= plugin_instance_get_source_ (instance
);
60 if (result
== IntPtr
.Zero
)
62 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
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
)
72 result
= plugin_instance_get_source_location_ (instance
);
73 if (result
== IntPtr
.Zero
)
75 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
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
)
85 result
= plugin_instance_get_source_location_original_ (instance
);
86 if (result
== IntPtr
.Zero
)
88 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
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
)
98 result
= plugin_instance_get_source_original_ (instance
);
99 if (result
== IntPtr
.Zero
)
101 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
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 */
193 // Application *application_new ();
194 public extern static IntPtr
application_new ();
197 // Application *application_get_current ();
198 public extern static IntPtr
application_get_current ();
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
);
205 // void application_set_current (Application *current);
206 public extern static void application_set_current (IntPtr current
);
209 // ArcSegment *arc_segment_new ();
210 public extern static IntPtr
arc_segment_new ();
213 // AssemblyPart *assembly_part_new ();
214 public extern static IntPtr
assembly_part_new ();
217 // AssemblyPartCollection *assembly_part_collection_new ();
218 public extern static IntPtr
assembly_part_collection_new ();
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
);
225 // BackEase *back_ease_new ();
226 public extern static IntPtr
back_ease_new ();
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
);
233 // BeginStoryboard *begin_storyboard_new ();
234 public extern static IntPtr
begin_storyboard_new ();
237 // BezierSegment *bezier_segment_new ();
238 public extern static IntPtr
bezier_segment_new ();
241 // BitmapCache *bitmap_cache_new ();
242 public extern static IntPtr
bitmap_cache_new ();
245 // BitmapImage *bitmap_image_new ();
246 public extern static IntPtr
bitmap_image_new ();
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
);
253 // void bitmap_image_pixmap_complete (BitmapImage *instance);
254 public extern static void bitmap_image_pixmap_complete (IntPtr instance
);
257 // BitmapSource *bitmap_source_new ();
258 public extern static IntPtr
bitmap_source_new ();
261 // gpointer bitmap_source_get_bitmap_data (BitmapSource *instance);
262 public extern static IntPtr
bitmap_source_get_bitmap_data (IntPtr instance
);
265 // void bitmap_source_invalidate (BitmapSource *instance);
266 public extern static void bitmap_source_invalidate (IntPtr instance
);
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
);
273 // BlurEffect *blur_effect_new ();
274 public extern static IntPtr
blur_effect_new ();
277 // Border *border_new ();
278 public extern static IntPtr
border_new ();
281 // BounceEase *bounce_ease_new ();
282 public extern static IntPtr
bounce_ease_new ();
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
);
289 // Brush *brush_new ();
290 public extern static IntPtr
brush_new ();
293 // CacheMode *cache_mode_new ();
294 public extern static IntPtr
cache_mode_new ();
297 // Canvas *canvas_new ();
298 public extern static IntPtr
canvas_new ();
301 // CircleEase *circle_ease_new ();
302 public extern static IntPtr
circle_ease_new ();
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)
315 result
= collection_add_with_error_ (instance
, ref value, out error
);
316 if (error
.Number
!= 0)
317 throw CreateManagedException (error
);
322 [return: MarshalAs (UnmanagedType
.U1
)]
323 // bool collection_clear (Collection *instance);
324 public extern static bool collection_clear (IntPtr instance
);
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);
332 // int collection_get_count (Collection *instance);
333 public extern static int collection_get_count (IntPtr instance
);
336 // Type::Kind collection_get_element_type (Collection *instance);
337 public extern static Kind
collection_get_element_type (IntPtr instance
);
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
)
350 result
= collection_get_value_at_with_error_ (instance
, index
, out error
);
351 if (error
.Number
!= 0)
352 throw CreateManagedException (error
);
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)
368 result
= collection_insert_with_error_ (instance
, index
, ref value, out error
);
369 if (error
.Number
!= 0)
370 throw CreateManagedException (error
);
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
)
387 result
= collection_remove_at_with_error_ (instance
, index
, out error
);
388 if (error
.Number
!= 0)
389 throw CreateManagedException (error
);
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)
401 result
= collection_set_value_at_with_error_ (instance
, index
, ref value, out error
);
402 if (error
.Number
!= 0)
403 throw CreateManagedException (error
);
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);
417 // int collection_changed_event_args_get_index (CollectionChangedEventArgs *instance);
418 public extern static int collection_changed_event_args_get_index (IntPtr instance
);
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
);
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);
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
);
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
);
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
);
446 // void collection_iterator_destroy (CollectionIterator *iterator);
447 public extern static void collection_iterator_destroy (IntPtr iterator
);
450 // Value *collection_iterator_get_current (CollectionIterator *instance, int *error);
451 public extern static IntPtr
collection_iterator_get_current (IntPtr instance
, out int error
);
454 // int collection_iterator_next (CollectionIterator *instance);
455 public extern static int collection_iterator_next (IntPtr instance
);
458 [return: MarshalAs (UnmanagedType
.U1
)]
459 // bool collection_iterator_reset (CollectionIterator *instance);
460 public extern static bool collection_iterator_reset (IntPtr instance
);
463 // ColorAnimation *color_animation_new ();
464 public extern static IntPtr
color_animation_new ();
467 // ColorAnimationUsingKeyFrames *color_animation_using_key_frames_new ();
468 public extern static IntPtr
color_animation_using_key_frames_new ();
471 // ColorKeyFrame *color_key_frame_new ();
472 public extern static IntPtr
color_key_frame_new ();
475 // ColorKeyFrameCollection *color_key_frame_collection_new ();
476 public extern static IntPtr
color_key_frame_collection_new ();
479 // ColumnDefinition *column_definition_new ();
480 public extern static IntPtr
column_definition_new ();
483 // ColumnDefinitionCollection *column_definition_collection_new ();
484 public extern static IntPtr
column_definition_collection_new ();
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
);
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
);
495 // ContentControl *content_control_new ();
496 public extern static IntPtr
content_control_new ();
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
);
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);
508 // Control *control_new ();
509 public extern static IntPtr
control_new ();
512 // DependencyObject *control_get_template_child (Control *instance, const char *name);
513 public extern static IntPtr
control_get_template_child (IntPtr instance
, string name
);
516 // ControlTemplate *control_template_new ();
517 public extern static IntPtr
control_template_new ();
520 // CubicEase *cubic_ease_new ();
521 public extern static IntPtr
cubic_ease_new ();
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
);
528 // CursorPositionChangedEventArgs *cursor_position_changed_event_args_new ();
529 public extern static IntPtr
cursor_position_changed_event_args_new ();
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
);
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
);
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
);
544 // DataTemplate *data_template_new ();
545 public extern static IntPtr
data_template_new ();
548 // DeepZoomImageTileSource *deep_zoom_image_tile_source_new ();
549 public extern static IntPtr
deep_zoom_image_tile_source_new ();
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
)
561 dependency_object_clear_value_ (instance
, property
, notify_listeners
, out error
);
562 if (error
.Number
!= 0)
563 throw CreateManagedException (error
);
567 // DependencyObject *dependency_object_new ();
568 public extern static IntPtr
dependency_object_new ();
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
)
580 result
= dependency_object_get_name_ (instance
);
581 if (result
== IntPtr
.Zero
)
583 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
587 [DllImport ("moon", EntryPoint
="dependency_object_get_value_no_default_with_error")]
588 // Value *dependency_object_get_value_no_default_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error);
589 private extern static IntPtr
dependency_object_get_value_no_default_with_error_ (IntPtr instance
, IntPtr property
, out MoonError error
);
590 public static IntPtr
dependency_object_get_value_no_default (IntPtr instance
, IntPtr property
)
594 result
= dependency_object_get_value_no_default_with_error_ (instance
, property
, out error
);
595 if (error
.Number
!= 0)
596 throw CreateManagedException (error
);
600 [DllImport ("moon", EntryPoint
="dependency_object_get_value_with_error")]
601 // Value *dependency_object_get_value_with_error (DependencyObject *instance, Type::Kind whatami, DependencyProperty *property, MoonError *error);
602 private extern static IntPtr
dependency_object_get_value_with_error_ (IntPtr instance
, Kind whatami
, IntPtr property
, out MoonError error
);
603 public static IntPtr
dependency_object_get_value (IntPtr instance
, Kind whatami
, IntPtr property
)
607 result
= dependency_object_get_value_with_error_ (instance
, whatami
, property
, out error
);
608 if (error
.Number
!= 0)
609 throw CreateManagedException (error
);
613 [DllImport ("moon", EntryPoint
="dependency_object_read_local_value_with_error")]
614 // Value *dependency_object_read_local_value_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error);
615 private extern static IntPtr
dependency_object_read_local_value_with_error_ (IntPtr instance
, IntPtr property
, out MoonError error
);
616 public static IntPtr
dependency_object_read_local_value (IntPtr instance
, IntPtr property
)
620 result
= dependency_object_read_local_value_with_error_ (instance
, property
, out error
);
621 if (error
.Number
!= 0)
622 throw CreateManagedException (error
);
627 // void dependency_object_remove_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb);
628 public extern static void dependency_object_remove_property_change_handler (IntPtr instance
, IntPtr property
, Mono
.UnmanagedPropertyChangeHandler cb
);
631 // void dependency_object_set_name (DependencyObject *instance, const char *name);
632 public extern static void dependency_object_set_name (IntPtr instance
, string name
);
634 [DllImport ("moon", EntryPoint
="dependency_object_set_parent")]
635 // void dependency_object_set_parent (DependencyObject *instance, DependencyObject *parent, MoonError *error);
636 private extern static void dependency_object_set_parent_ (IntPtr instance
, IntPtr parent
, out MoonError error
);
637 public static void dependency_object_set_parent (IntPtr instance
, IntPtr parent
)
640 dependency_object_set_parent_ (instance
, parent
, out error
);
641 if (error
.Number
!= 0)
642 throw CreateManagedException (error
);
645 [DllImport ("moon", EntryPoint
="dependency_object_set_value_with_error")]
646 [return: MarshalAs (UnmanagedType
.U1
)]
647 // bool dependency_object_set_value_with_error (DependencyObject *instance, DependencyProperty *property, Value *value, MoonError *error);
648 private extern static bool dependency_object_set_value_with_error_ (IntPtr instance
, IntPtr property
, ref Value
value, out MoonError error
);
649 public static bool dependency_object_set_value (IntPtr instance
, IntPtr property
, ref Value
value)
653 result
= dependency_object_set_value_with_error_ (instance
, property
, ref value, out error
);
654 if (error
.Number
!= 0)
655 throw CreateManagedException (error
);
660 // DependencyObjectCollection *dependency_object_collection_new ();
661 public extern static IntPtr
dependency_object_collection_new ();
664 // Value *dependency_property_get_default_value (DependencyProperty *instance);
665 public extern static IntPtr
dependency_property_get_default_value (IntPtr instance
);
668 // DependencyProperty *dependency_property_get_dependency_property (Type::Kind type, const char *name);
669 public extern static IntPtr
dependency_property_get_dependency_property (Kind type
, string name
);
672 // DependencyProperty *dependency_property_get_dependency_property_full (Type::Kind type, const char *name, bool inherits);
673 public extern static IntPtr
dependency_property_get_dependency_property_full (Kind type
, string name
, [MarshalAs (UnmanagedType
.U1
)] bool inherits
);
675 [DllImport ("moon", EntryPoint
="dependency_property_get_name")]
676 // const char *dependency_property_get_name (DependencyProperty *instance);
677 private extern static IntPtr
dependency_property_get_name_ (IntPtr instance
);
678 public static string dependency_property_get_name (IntPtr instance
)
681 result
= dependency_property_get_name_ (instance
);
682 if (result
== IntPtr
.Zero
)
684 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
689 // Type::Kind dependency_property_get_property_type (DependencyProperty *instance);
690 public extern static Kind
dependency_property_get_property_type (IntPtr instance
);
693 [return: MarshalAs (UnmanagedType
.U1
)]
694 // bool dependency_property_is_attached (DependencyProperty *instance);
695 public extern static bool dependency_property_is_attached (IntPtr instance
);
698 [return: MarshalAs (UnmanagedType
.U1
)]
699 // bool dependency_property_is_nullable (DependencyProperty *instance);
700 public extern static bool dependency_property_is_nullable (IntPtr instance
);
703 [return: MarshalAs (UnmanagedType
.U1
)]
704 // bool dependency_property_is_read_only (DependencyProperty *instance);
705 public extern static bool dependency_property_is_read_only (IntPtr instance
);
708 // 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);
709 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
);
712 // 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);
713 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
);
716 // void dependency_property_set_is_nullable (DependencyProperty *instance, bool value);
717 public extern static void dependency_property_set_is_nullable (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool value);
720 // void dependency_property_set_property_changed_callback (DependencyProperty *instance, PropertyChangeHandler changed_callback);
721 public extern static void dependency_property_set_property_changed_callback (IntPtr instance
, Mono
.UnmanagedPropertyChangeHandler changed_callback
);
724 // Deployment *deployment_new ();
725 public extern static IntPtr
deployment_new ();
728 // Deployment *deployment_get_current ();
729 public extern static IntPtr
deployment_get_current ();
732 // Types *deployment_get_types (Deployment *instance);
733 public extern static IntPtr
deployment_get_types (IntPtr instance
);
736 // void deployment_set_current (Deployment *value);
737 public extern static void deployment_set_current (IntPtr
value);
740 // void deployment_set_current_application (Deployment *instance, Application *value);
741 public extern static void deployment_set_current_application (IntPtr instance
, IntPtr
value);
744 // void deployment_set_is_loaded_from_xap (Deployment *instance, bool flag);
745 public extern static void deployment_set_is_loaded_from_xap (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool flag
);
748 // DiscreteColorKeyFrame *discrete_color_key_frame_new ();
749 public extern static IntPtr
discrete_color_key_frame_new ();
752 // DiscreteDoubleKeyFrame *discrete_double_key_frame_new ();
753 public extern static IntPtr
discrete_double_key_frame_new ();
756 // DiscreteObjectKeyFrame *discrete_object_key_frame_new ();
757 public extern static IntPtr
discrete_object_key_frame_new ();
760 // DiscretePointKeyFrame *discrete_point_key_frame_new ();
761 public extern static IntPtr
discrete_point_key_frame_new ();
764 // DispatcherTimer *dispatcher_timer_new ();
765 public extern static IntPtr
dispatcher_timer_new ();
768 // void dispatcher_timer_start (DispatcherTimer *instance);
769 public extern static void dispatcher_timer_start (IntPtr instance
);
772 // void dispatcher_timer_stop (DispatcherTimer *instance);
773 public extern static void dispatcher_timer_stop (IntPtr instance
);
776 // DoubleAnimation *double_animation_new ();
777 public extern static IntPtr
double_animation_new ();
780 // DoubleAnimationUsingKeyFrames *double_animation_using_key_frames_new ();
781 public extern static IntPtr
double_animation_using_key_frames_new ();
784 // DoubleCollection *double_collection_new ();
785 public extern static IntPtr
double_collection_new ();
788 // DoubleKeyFrame *double_key_frame_new ();
789 public extern static IntPtr
double_key_frame_new ();
792 // DoubleKeyFrameCollection *double_key_frame_collection_new ();
793 public extern static IntPtr
double_key_frame_collection_new ();
796 // void *downloader_create_web_request (Downloader *instance, const char *method, const char *uri);
797 public extern static IntPtr
downloader_create_web_request (IntPtr instance
, string method
, string uri
);
800 // Downloader *downloader_new ();
801 public extern static IntPtr
downloader_new ();
804 // void downloader_notify_failed (Downloader *instance, const char *msg);
805 public extern static void downloader_notify_failed (IntPtr instance
, string msg
);
808 // void downloader_notify_finished (Downloader *instance, const char *final_uri);
809 public extern static void downloader_notify_finished (IntPtr instance
, string final_uri
);
812 // void downloader_notify_size (Downloader *instance, gint64 size);
813 public extern static void downloader_notify_size (IntPtr instance
, long size
);
816 // 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);
817 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
);
820 // void downloader_write (Downloader *instance, void *buf, gint32 offset, gint32 n);
821 public extern static void downloader_write (IntPtr instance
, IntPtr buf
, int offset
, int n
);
824 // void downloader_request_free (DownloaderRequest *instance);
825 public extern static void downloader_request_free (IntPtr instance
);
828 // void downloader_request_abort (DownloaderRequest *instance);
829 public extern static void downloader_request_abort (IntPtr instance
);
832 // DownloaderResponse *downloader_request_get_downloader_response (DownloaderRequest *instance);
833 public extern static IntPtr
downloader_request_get_downloader_response (IntPtr instance
);
836 [return: MarshalAs (UnmanagedType
.U1
)]
837 // bool downloader_request_get_response (DownloaderRequest *instance, DownloaderResponseStartedHandler started, DownloaderResponseDataAvailableHandler available, DownloaderResponseFinishedHandler finished, gpointer context);
838 public extern static bool downloader_request_get_response (IntPtr instance
, DownloaderResponseStartedDelegate started
, DownloaderResponseAvailableDelegate available
, DownloaderResponseFinishedDelegate finished
, IntPtr context
);
841 [return: MarshalAs (UnmanagedType
.U1
)]
842 // const bool downloader_request_is_aborted (DownloaderRequest *instance);
843 public extern static bool downloader_request_is_aborted (IntPtr instance
);
846 // void downloader_request_set_body (DownloaderRequest *instance, void *body, int size);
847 public extern static void downloader_request_set_body (IntPtr instance
, byte[] body
, int size
);
850 // void downloader_request_set_http_header (DownloaderRequest *instance, const char *name, const char *value);
851 public extern static void downloader_request_set_http_header (IntPtr instance
, string name
, string value);
854 // void downloader_response_free (DownloaderResponse *instance);
855 public extern static void downloader_response_free (IntPtr instance
);
858 // void downloader_response_abort (DownloaderResponse *instance);
859 public extern static void downloader_response_abort (IntPtr instance
);
862 // int downloader_response_get_response_status (DownloaderResponse *instance);
863 public extern static int downloader_response_get_response_status (IntPtr instance
);
865 [DllImport ("moon", EntryPoint
="downloader_response_get_response_status_text")]
866 // const char *downloader_response_get_response_status_text (DownloaderResponse *instance);
867 private extern static IntPtr
downloader_response_get_response_status_text_ (IntPtr instance
);
868 public static string downloader_response_get_response_status_text (IntPtr instance
)
871 result
= downloader_response_get_response_status_text_ (instance
);
872 if (result
== IntPtr
.Zero
)
874 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
879 // void downloader_response_set_header_visitor (DownloaderResponse *instance, DownloaderResponseHeaderCallback visitor, gpointer context);
880 public extern static void downloader_response_set_header_visitor (IntPtr instance
, HeaderVisitor visitor
, IntPtr context
);
883 // double download_progress_event_args_get_progress (DownloadProgressEventArgs *instance);
884 public extern static double download_progress_event_args_get_progress (IntPtr instance
);
887 // DrawingAttributes *drawing_attributes_new ();
888 public extern static IntPtr
drawing_attributes_new ();
891 // DropShadowEffect *drop_shadow_effect_new ();
892 public extern static IntPtr
drop_shadow_effect_new ();
895 // EasingColorKeyFrame *easing_color_key_frame_new ();
896 public extern static IntPtr
easing_color_key_frame_new ();
899 // EasingDoubleKeyFrame *easing_double_key_frame_new ();
900 public extern static IntPtr
easing_double_key_frame_new ();
903 // EasingFunctionBase *easing_function_base_new ();
904 public extern static IntPtr
easing_function_base_new ();
907 // void easing_function_base_set_easing_function (EasingFunctionBase *instance, EasingFunction value);
908 public extern static void easing_function_base_set_easing_function (IntPtr instance
, Mono
.EasingFunctionCallback
value);
911 // EasingPointKeyFrame *easing_point_key_frame_new ();
912 public extern static IntPtr
easing_point_key_frame_new ();
915 // Effect *effect_new ();
916 public extern static IntPtr
effect_new ();
919 // double elastic_ease_ease_in_core (ElasticEase *instance, double normalizedTime);
920 public extern static double elastic_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
923 // ElasticEase *elastic_ease_new ();
924 public extern static IntPtr
elastic_ease_new ();
927 // Ellipse *ellipse_new ();
928 public extern static IntPtr
ellipse_new ();
931 // EllipseGeometry *ellipse_geometry_new ();
932 public extern static IntPtr
ellipse_geometry_new ();
935 // int error_event_args_get_error_code (ErrorEventArgs *instance);
936 public extern static int error_event_args_get_error_code (IntPtr instance
);
938 [DllImport ("moon", EntryPoint
="error_event_args_get_error_message")]
939 // const char *error_event_args_get_error_message (ErrorEventArgs *instance);
940 private extern static IntPtr
error_event_args_get_error_message_ (IntPtr instance
);
941 public static string error_event_args_get_error_message (IntPtr instance
)
944 result
= error_event_args_get_error_message_ (instance
);
945 if (result
== IntPtr
.Zero
)
947 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
952 // int error_event_args_get_error_type (ErrorEventArgs *instance);
953 public extern static int error_event_args_get_error_type (IntPtr instance
);
956 // gpointer error_event_args_get_moon_error (ErrorEventArgs *instance);
957 public extern static IntPtr
error_event_args_get_moon_error (IntPtr instance
);
960 // int event_object_add_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
961 public extern static int event_object_add_handler (IntPtr instance
, int event_id
, UnmanagedEventHandler handler
, IntPtr data
, IntPtr data_dtor
);
964 // void event_object_add_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
965 public extern static void event_object_add_on_event_handler (IntPtr instance
, int event_id
, UnmanagedEventHandler handler
, IntPtr data
, IntPtr data_dtor
);
968 // void event_object_add_toggle_ref_notifier (EventObject *instance, ToggleNotifyHandler tr);
969 public extern static void event_object_add_toggle_ref_notifier (IntPtr instance
, Mono
.ToggleRef
.ToggleNotifyHandler tr
);
972 // int event_object_add_xaml_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor);
973 public extern static int event_object_add_xaml_handler (IntPtr instance
, int event_id
, UnmanagedEventHandler handler
, IntPtr data
, IntPtr data_dtor
);
976 // void event_object_do_emit_current_context (EventObject *instance, int event_id, EventArgs *calldata);
977 public extern static void event_object_do_emit_current_context (IntPtr instance
, int event_id
, IntPtr calldata
);
980 // Type::Kind event_object_get_object_type (EventObject *instance);
981 public extern static Kind
event_object_get_object_type (IntPtr instance
);
984 // Surface *event_object_get_surface (EventObject *instance);
985 public extern static IntPtr
event_object_get_surface (IntPtr instance
);
987 [DllImport ("moon", EntryPoint
="event_object_get_type_name")]
988 // const char *event_object_get_type_name (EventObject *instance);
989 private extern static IntPtr
event_object_get_type_name_ (IntPtr instance
);
990 public static string event_object_get_type_name (IntPtr instance
)
993 result
= event_object_get_type_name_ (instance
);
994 if (result
== IntPtr
.Zero
)
996 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
1000 [DllImport ("moon")]
1001 // void event_object_ref (EventObject *instance);
1002 public extern static void event_object_ref (IntPtr instance
);
1004 [DllImport ("moon")]
1005 // int event_object_remove_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data);
1006 public extern static int event_object_remove_handler (IntPtr instance
, int event_id
, UnmanagedEventHandler handler
, IntPtr data
);
1008 [DllImport ("moon")]
1009 // void event_object_remove_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data);
1010 public extern static void event_object_remove_on_event_handler (IntPtr instance
, int event_id
, UnmanagedEventHandler handler
, IntPtr data
);
1012 [DllImport ("moon")]
1013 // void event_object_remove_toggle_ref_notifier (EventObject *instance);
1014 public extern static void event_object_remove_toggle_ref_notifier (IntPtr instance
);
1016 [DllImport ("moon")]
1017 // void event_object_set_object_type (EventObject *instance, Type::Kind value);
1018 public extern static void event_object_set_object_type (IntPtr instance
, Kind
value);
1020 [DllImport ("moon")]
1021 // void event_object_unref (EventObject *instance);
1022 public extern static void event_object_unref (IntPtr instance
);
1024 [DllImport ("moon")]
1025 // EventTrigger *event_trigger_new ();
1026 public extern static IntPtr
event_trigger_new ();
1028 [DllImport ("moon")]
1029 // double exponential_ease_ease_in_core (ExponentialEase *instance, double normalizedTime);
1030 public extern static double exponential_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1032 [DllImport ("moon")]
1033 // ExponentialEase *exponential_ease_new ();
1034 public extern static IntPtr
exponential_ease_new ();
1036 [DllImport ("moon")]
1037 // ExtensionPart *extension_part_new ();
1038 public extern static IntPtr
extension_part_new ();
1040 [DllImport ("moon")]
1041 // gint32 external_demuxer_add_stream (ExternalDemuxer *instance, IMediaStream *stream);
1042 public extern static int external_demuxer_add_stream (IntPtr instance
, IntPtr stream
);
1044 [DllImport ("moon")]
1045 // void external_demuxer_clear_callbacks (ExternalDemuxer *instance);
1046 public extern static void external_demuxer_clear_callbacks (IntPtr instance
);
1048 [DllImport ("moon")]
1049 // void external_demuxer_set_can_seek (ExternalDemuxer *instance, bool value);
1050 public extern static void external_demuxer_set_can_seek (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool value);
1052 [DllImport ("moon")]
1053 // ExternalPart *external_part_new ();
1054 public extern static IntPtr
external_part_new ();
1056 [DllImport ("moon")]
1057 // ExternalPartCollection *external_part_collection_new ();
1058 public extern static IntPtr
external_part_collection_new ();
1060 [DllImport ("moon")]
1061 [return: MarshalAs (UnmanagedType
.U1
)]
1062 // bool framework_element_apply_template (FrameworkElement *instance);
1063 public extern static bool framework_element_apply_template (IntPtr instance
);
1065 [DllImport ("moon")]
1066 // Size framework_element_arrange_override (FrameworkElement *instance, Size finalSize);
1067 public extern static Size
framework_element_arrange_override (IntPtr instance
, Size finalSize
);
1069 [DllImport ("moon")]
1070 // FrameworkElement *framework_element_new ();
1071 public extern static IntPtr
framework_element_new ();
1073 [DllImport ("moon")]
1074 // DependencyObject *framework_element_get_logical_parent (FrameworkElement *instance);
1075 public extern static IntPtr
framework_element_get_logical_parent (IntPtr instance
);
1077 [DllImport ("moon")]
1078 // Size framework_element_measure_override (FrameworkElement *instance, Size availableSize);
1079 public extern static Size
framework_element_measure_override (IntPtr instance
, Size availableSize
);
1081 [DllImport ("moon")]
1082 // void framework_element_register_managed_overrides (FrameworkElement *instance, MeasureOverrideCallback measure_cb, ArrangeOverrideCallback arrange_cb, GetDefaultTemplateCallback get_default_template_cb, LoadedCallback loaded_cb);
1083 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
);
1085 [DllImport ("moon")]
1086 // void framework_element_set_default_style (FrameworkElement *instance, Style *value);
1087 public extern static void framework_element_set_default_style (IntPtr instance
, IntPtr
value);
1089 [DllImport ("moon", EntryPoint
="framework_element_set_logical_parent")]
1090 // void framework_element_set_logical_parent (FrameworkElement *instance, DependencyObject *logical_parent, MoonError *error);
1091 private extern static void framework_element_set_logical_parent_ (IntPtr instance
, IntPtr logical_parent
, out MoonError error
);
1092 public static void framework_element_set_logical_parent (IntPtr instance
, IntPtr logical_parent
)
1095 framework_element_set_logical_parent_ (instance
, logical_parent
, out error
);
1096 if (error
.Number
!= 0)
1097 throw CreateManagedException (error
);
1100 [DllImport ("moon")]
1101 // FrameworkTemplate *framework_template_new ();
1102 public extern static IntPtr
framework_template_new ();
1104 [DllImport ("moon")]
1105 // DependencyObject *framework_template_get_visual_tree (FrameworkTemplate *instance, FrameworkElement *templateBindingSource);
1106 public extern static IntPtr
framework_template_get_visual_tree (IntPtr instance
, IntPtr templateBindingSource
);
1108 [DllImport ("moon")]
1109 // GeneralTransform *general_transform_new ();
1110 public extern static IntPtr
general_transform_new ();
1112 [DllImport ("moon")]
1113 // Matrix *general_transform_get_matrix (GeneralTransform *instance);
1114 public extern static IntPtr
general_transform_get_matrix (IntPtr instance
);
1116 [DllImport ("moon")]
1117 // Geometry *geometry_new ();
1118 public extern static IntPtr
geometry_new ();
1120 [DllImport ("moon")]
1121 // Rect geometry_get_bounds (Geometry *instance);
1122 public extern static Rect
geometry_get_bounds (IntPtr instance
);
1124 [DllImport ("moon")]
1125 // GeometryCollection *geometry_collection_new ();
1126 public extern static IntPtr
geometry_collection_new ();
1128 [DllImport ("moon")]
1129 // GeometryGroup *geometry_group_new ();
1130 public extern static IntPtr
geometry_group_new ();
1132 [DllImport ("moon")]
1133 // Glyphs *glyphs_new ();
1134 public extern static IntPtr
glyphs_new ();
1136 [DllImport ("moon")]
1137 // GradientBrush *gradient_brush_new ();
1138 public extern static IntPtr
gradient_brush_new ();
1140 [DllImport ("moon")]
1141 // GradientStop *gradient_stop_new ();
1142 public extern static IntPtr
gradient_stop_new ();
1144 [DllImport ("moon")]
1145 // GradientStopCollection *gradient_stop_collection_new ();
1146 public extern static IntPtr
gradient_stop_collection_new ();
1148 [DllImport ("moon")]
1149 // Grid *grid_new ();
1150 public extern static IntPtr
grid_new ();
1152 [DllImport ("moon")]
1153 // HitTestCollection *hit_test_collection_new ();
1154 public extern static IntPtr
hit_test_collection_new ();
1156 [DllImport ("moon")]
1157 // Icon *icon_new ();
1158 public extern static IntPtr
icon_new ();
1160 [DllImport ("moon")]
1161 // IconCollection *icon_collection_new ();
1162 public extern static IntPtr
icon_collection_new ();
1164 [DllImport ("moon")]
1165 // Image *image_new ();
1166 public extern static IntPtr
image_new ();
1168 [DllImport ("moon")]
1169 // void image_set_source (Image *instance, ImageSource *source);
1170 public extern static void image_set_source (IntPtr instance
, IntPtr source
);
1172 [DllImport ("moon")]
1173 // ImageBrush *image_brush_new ();
1174 public extern static IntPtr
image_brush_new ();
1176 [DllImport ("moon")]
1177 // ImageSource *image_source_new ();
1178 public extern static IntPtr
image_source_new ();
1180 // 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.
1181 // [DllImport ("moon")]
1182 // void imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer *instance, MediaStreamSourceDiagnosticKind diagnosticKind, gint64 diagnosticValue);
1183 // public extern static void imedia_demuxer_report_get_diagnostic_completed (IntPtr instance, /* Unknown: 'MediaStreamSourceDiagnosticKind' */ diagnosticKind, long diagnosticValue);
1185 [DllImport ("moon")]
1186 // void imedia_demuxer_report_get_frame_completed (IMediaDemuxer *instance, MediaFrame *frame);
1187 public extern static void imedia_demuxer_report_get_frame_completed (IntPtr instance
, IntPtr frame
);
1189 [DllImport ("moon")]
1190 // void imedia_demuxer_report_get_frame_progress (IMediaDemuxer *instance, double bufferingProgress);
1191 public extern static void imedia_demuxer_report_get_frame_progress (IntPtr instance
, double bufferingProgress
);
1193 [DllImport ("moon")]
1194 // void imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer *instance);
1195 public extern static void imedia_demuxer_report_open_demuxer_completed (IntPtr instance
);
1197 [DllImport ("moon")]
1198 // void imedia_demuxer_report_seek_completed (IMediaDemuxer *instance, guint64 pts);
1199 public extern static void imedia_demuxer_report_seek_completed (IntPtr instance
, ulong pts
);
1201 [DllImport ("moon")]
1202 // void imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer *instance, IMediaStream *stream);
1203 public extern static void imedia_demuxer_report_switch_media_stream_completed (IntPtr instance
, IntPtr stream
);
1205 [DllImport ("moon")]
1206 // Media *imedia_object_get_media_reffed (IMediaObject *instance);
1207 public extern static IntPtr
imedia_object_get_media_reffed (IntPtr instance
);
1209 [DllImport ("moon")]
1210 // InkPresenter *ink_presenter_new ();
1211 public extern static IntPtr
ink_presenter_new ();
1213 [DllImport ("moon")]
1214 // Inline *inline_new ();
1215 public extern static IntPtr
inline_new ();
1217 [DllImport ("moon")]
1218 // InlineCollection *inline_collection_new ();
1219 public extern static IntPtr
inline_collection_new ();
1221 [DllImport ("moon")]
1222 // InputMethod *input_method_new ();
1223 public extern static IntPtr
input_method_new ();
1225 [DllImport ("moon")]
1226 // ItemCollection *item_collection_new ();
1227 public extern static IntPtr
item_collection_new ();
1229 [DllImport ("moon")]
1230 // ModifierKeys keyboard_get_modifiers ();
1231 public extern static int keyboard_get_modifiers ();
1233 [DllImport ("moon")]
1234 // int key_event_args_get_key (KeyEventArgs *instance);
1235 public extern static int key_event_args_get_key (IntPtr instance
);
1237 [DllImport ("moon")]
1238 // int key_event_args_get_platform_key_code (KeyEventArgs *instance);
1239 public extern static int key_event_args_get_platform_key_code (IntPtr instance
);
1241 [DllImport ("moon")]
1242 // KeyEventArgs *key_event_args_new ();
1243 public extern static IntPtr
key_event_args_new ();
1245 [DllImport ("moon")]
1246 // KeyFrameCollection *key_frame_collection_new ();
1247 public extern static IntPtr
key_frame_collection_new ();
1249 [DllImport ("moon")]
1250 // KeySpline *key_spline_new ();
1251 public extern static IntPtr
key_spline_new ();
1253 [DllImport ("moon")]
1254 // Line *line_new ();
1255 public extern static IntPtr
line_new ();
1257 [DllImport ("moon")]
1258 // LinearColorKeyFrame *linear_color_key_frame_new ();
1259 public extern static IntPtr
linear_color_key_frame_new ();
1261 [DllImport ("moon")]
1262 // LinearDoubleKeyFrame *linear_double_key_frame_new ();
1263 public extern static IntPtr
linear_double_key_frame_new ();
1265 [DllImport ("moon")]
1266 // LinearGradientBrush *linear_gradient_brush_new ();
1267 public extern static IntPtr
linear_gradient_brush_new ();
1269 [DllImport ("moon")]
1270 // LinearPointKeyFrame *linear_point_key_frame_new ();
1271 public extern static IntPtr
linear_point_key_frame_new ();
1273 [DllImport ("moon")]
1274 // LineBreak *line_break_new ();
1275 public extern static IntPtr
line_break_new ();
1277 [DllImport ("moon")]
1278 // LineGeometry *line_geometry_new ();
1279 public extern static IntPtr
line_geometry_new ();
1281 [DllImport ("moon")]
1282 // LineSegment *line_segment_new ();
1283 public extern static IntPtr
line_segment_new ();
1285 [DllImport ("moon")]
1286 // LogReadyRoutedEventArgs *log_ready_routed_event_args_new ();
1287 public extern static IntPtr
log_ready_routed_event_args_new ();
1289 [DllImport ("moon")]
1290 // cairo_matrix_t *matrix_get_matrix_values (Matrix *instance);
1291 public extern static IntPtr
matrix_get_matrix_values (IntPtr instance
);
1293 [DllImport ("moon")]
1294 // Matrix *matrix_new ();
1295 public extern static IntPtr
matrix_new ();
1297 [DllImport ("moon")]
1298 // MatrixTransform *matrix_transform_new ();
1299 public extern static IntPtr
matrix_transform_new ();
1301 [DllImport ("moon")]
1302 // MediaAttribute *media_attribute_new ();
1303 public extern static IntPtr
media_attribute_new ();
1305 [DllImport ("moon")]
1306 // MediaAttribute *media_attribute_collection_get_item_by_name (MediaAttributeCollection *instance, const char *name);
1307 public extern static IntPtr
media_attribute_collection_get_item_by_name (IntPtr instance
, string name
);
1309 [DllImport ("moon")]
1310 // MediaAttributeCollection *media_attribute_collection_new ();
1311 public extern static IntPtr
media_attribute_collection_new ();
1313 [DllImport ("moon")]
1314 // MediaBase *media_base_new ();
1315 public extern static IntPtr
media_base_new ();
1317 [DllImport ("moon")]
1318 // void media_base_set_source (MediaBase *instance, const char *uri);
1319 public extern static void media_base_set_source (IntPtr instance
, string uri
);
1321 [DllImport ("moon")]
1322 // MediaElement *media_element_new ();
1323 public extern static IntPtr
media_element_new ();
1325 [DllImport ("moon")]
1326 // void media_element_pause (MediaElement *instance);
1327 public extern static void media_element_pause (IntPtr instance
);
1329 [DllImport ("moon")]
1330 // void media_element_play (MediaElement *instance);
1331 public extern static void media_element_play (IntPtr instance
);
1333 [DllImport ("moon")]
1334 // void media_element_report_error_occurred (MediaElement *instance, const char *args);
1335 public extern static void media_element_report_error_occurred (IntPtr instance
, string args
);
1337 [DllImport ("moon")]
1338 // 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);
1339 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
);
1341 [DllImport ("moon")]
1342 // void media_element_set_stream_source (MediaElement *instance, ManagedStreamCallbacks *stream);
1343 public extern static void media_element_set_stream_source (IntPtr instance
, ref ManagedStreamCallbacks stream
);
1345 [DllImport ("moon")]
1346 // void media_element_stop (MediaElement *instance);
1347 public extern static void media_element_stop (IntPtr instance
);
1349 [DllImport ("moon")]
1350 // MediaFrame *media_frame_new (IMediaStream *stream, guint8 *buffer, guint32 buflen, guint64 pts, bool keyframe);
1351 public extern static IntPtr
media_frame_new (IntPtr stream
, IntPtr buffer
, uint buflen
, ulong pts
, [MarshalAs (UnmanagedType
.U1
)] bool keyframe
);
1353 [DllImport ("moon")]
1354 [return: MarshalAs (UnmanagedType
.U1
)]
1355 // bool moon_window_get_transparent (MoonWindow *instance);
1356 public extern static bool moon_window_get_transparent (IntPtr instance
);
1358 [DllImport ("moon")]
1359 // void moon_window_set_transparent (MoonWindow *instance, bool flag);
1360 public extern static void moon_window_set_transparent (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool flag
);
1362 [DllImport ("moon")]
1363 // void *moon_window_gtk_get_native_widget (MoonWindowGtk *instance);
1364 public extern static IntPtr
moon_window_gtk_get_native_widget (IntPtr instance
);
1366 [DllImport ("moon")]
1367 // MoonWindowGtk *moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface);
1368 public extern static IntPtr
moon_window_gtk_new ([MarshalAs (UnmanagedType
.U1
)] bool fullscreen
, int w
, int h
, IntPtr parent
, IntPtr surface
);
1370 [DllImport ("moon")]
1371 // MouseButtonEventArgs *mouse_button_event_args_new ();
1372 public extern static IntPtr
mouse_button_event_args_new ();
1374 [DllImport ("moon")]
1375 // void mouse_event_args_get_position (MouseEventArgs *instance, UIElement *relative_to, double *x, double *y);
1376 public extern static void mouse_event_args_get_position (IntPtr instance
, IntPtr relative_to
, out double x
, out double y
);
1378 [DllImport ("moon")]
1379 // StylusInfo *mouse_event_args_get_stylus_info (MouseEventArgs *instance);
1380 public extern static IntPtr
mouse_event_args_get_stylus_info (IntPtr instance
);
1382 [DllImport ("moon")]
1383 // StylusPointCollection *mouse_event_args_get_stylus_points (MouseEventArgs *instance, UIElement *ink_presenter);
1384 public extern static IntPtr
mouse_event_args_get_stylus_points (IntPtr instance
, IntPtr ink_presenter
);
1386 [DllImport ("moon")]
1387 // MouseEventArgs *mouse_event_args_new ();
1388 public extern static IntPtr
mouse_event_args_new ();
1390 [DllImport ("moon")]
1391 // int mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs *instance);
1392 public extern static int mouse_wheel_event_args_get_wheel_delta (IntPtr instance
);
1394 [DllImport ("moon")]
1395 // MouseWheelEventArgs *mouse_wheel_event_args_new ();
1396 public extern static IntPtr
mouse_wheel_event_args_new ();
1398 [DllImport ("moon")]
1399 // Point multi_scale_image_element_to_logical_point (MultiScaleImage *instance, Point elementPoint);
1400 public extern static Point
multi_scale_image_element_to_logical_point (IntPtr instance
, Point elementPoint
);
1402 [DllImport ("moon")]
1403 // Point multi_scale_image_logical_to_element_point (MultiScaleImage *instance, Point logicalPoint);
1404 public extern static Point
multi_scale_image_logical_to_element_point (IntPtr instance
, Point logicalPoint
);
1406 [DllImport ("moon")]
1407 // MultiScaleImage *multi_scale_image_new ();
1408 public extern static IntPtr
multi_scale_image_new ();
1410 [DllImport ("moon")]
1411 // void multi_scale_image_zoom_about_logical_point (MultiScaleImage *instance, double zoomIncrementFactor, double zoomCenterLogicalX, double zoomCenterLogicalY);
1412 public extern static void multi_scale_image_zoom_about_logical_point (IntPtr instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
);
1414 [DllImport ("moon")]
1415 // MultiScaleSubImage *multi_scale_sub_image_new ();
1416 public extern static IntPtr
multi_scale_sub_image_new ();
1418 [DllImport ("moon")]
1419 // MultiScaleSubImageCollection *multi_scale_sub_image_collection_new ();
1420 public extern static IntPtr
multi_scale_sub_image_collection_new ();
1422 [DllImport ("moon")]
1423 // void multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource *instance, int level, int tilePositionX, int tilePositionY, int tileLayer);
1424 public extern static void multi_scale_tile_source_invalidate_tile_layer (IntPtr instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
);
1426 [DllImport ("moon")]
1427 // MultiScaleTileSource *multi_scale_tile_source_new ();
1428 public extern static IntPtr
multi_scale_tile_source_new ();
1430 [DllImport ("moon")]
1431 // void multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource *instance, get_image_uri_func func);
1432 public extern static void multi_scale_tile_source_set_image_uri_func (IntPtr instance
, Mono
.ImageUriFunc func
);
1434 [DllImport ("moon")]
1435 // ObjectAnimationUsingKeyFrames *object_animation_using_key_frames_new ();
1436 public extern static IntPtr
object_animation_using_key_frames_new ();
1438 [DllImport ("moon")]
1439 // ObjectKeyFrame *object_key_frame_new ();
1440 public extern static IntPtr
object_key_frame_new ();
1442 [DllImport ("moon")]
1443 // ObjectKeyFrameCollection *object_key_frame_collection_new ();
1444 public extern static IntPtr
object_key_frame_collection_new ();
1446 [DllImport ("moon")]
1447 // OutOfBrowserSettings *out_of_browser_settings_new ();
1448 public extern static IntPtr
out_of_browser_settings_new ();
1450 [DllImport ("moon")]
1451 // Panel *panel_new ();
1452 public extern static IntPtr
panel_new ();
1454 [DllImport ("moon")]
1455 // ParallelTimeline *parallel_timeline_new ();
1456 public extern static IntPtr
parallel_timeline_new ();
1458 [DllImport ("moon")]
1459 // PasswordBox *password_box_new ();
1460 public extern static IntPtr
password_box_new ();
1462 [DllImport ("moon")]
1463 // Path *path_new ();
1464 public extern static IntPtr
path_new ();
1466 [DllImport ("moon")]
1467 // PathFigure *path_figure_new ();
1468 public extern static IntPtr
path_figure_new ();
1470 [DllImport ("moon")]
1471 // PathFigureCollection *path_figure_collection_new ();
1472 public extern static IntPtr
path_figure_collection_new ();
1474 [DllImport ("moon")]
1475 // PathGeometry *path_geometry_new ();
1476 public extern static IntPtr
path_geometry_new ();
1478 [DllImport ("moon")]
1479 // PathSegment *path_segment_new ();
1480 public extern static IntPtr
path_segment_new ();
1482 [DllImport ("moon")]
1483 // PathSegmentCollection *path_segment_collection_new ();
1484 public extern static IntPtr
path_segment_collection_new ();
1486 [DllImport ("moon")]
1487 // PixelShader *pixel_shader_new ();
1488 public extern static IntPtr
pixel_shader_new ();
1490 [DllImport ("moon")]
1491 // PointAnimation *point_animation_new ();
1492 public extern static IntPtr
point_animation_new ();
1494 [DllImport ("moon")]
1495 // PointAnimationUsingKeyFrames *point_animation_using_key_frames_new ();
1496 public extern static IntPtr
point_animation_using_key_frames_new ();
1498 [DllImport ("moon")]
1499 // PointCollection *point_collection_new ();
1500 public extern static IntPtr
point_collection_new ();
1502 [DllImport ("moon")]
1503 // PointKeyFrame *point_key_frame_new ();
1504 public extern static IntPtr
point_key_frame_new ();
1506 [DllImport ("moon")]
1507 // PointKeyFrameCollection *point_key_frame_collection_new ();
1508 public extern static IntPtr
point_key_frame_collection_new ();
1510 [DllImport ("moon")]
1511 // PolyBezierSegment *poly_bezier_segment_new ();
1512 public extern static IntPtr
poly_bezier_segment_new ();
1514 [DllImport ("moon")]
1515 // Polygon *polygon_new ();
1516 public extern static IntPtr
polygon_new ();
1518 [DllImport ("moon")]
1519 // Polyline *polyline_new ();
1520 public extern static IntPtr
polyline_new ();
1522 [DllImport ("moon")]
1523 // PolyLineSegment *poly_line_segment_new ();
1524 public extern static IntPtr
poly_line_segment_new ();
1526 [DllImport ("moon")]
1527 // PolyQuadraticBezierSegment *poly_quadratic_bezier_segment_new ();
1528 public extern static IntPtr
poly_quadratic_bezier_segment_new ();
1530 [DllImport ("moon")]
1531 // Popup *popup_new ();
1532 public extern static IntPtr
popup_new ();
1534 [DllImport ("moon")]
1535 // double power_ease_ease_in_core (PowerEase *instance, double normalizedTime);
1536 public extern static double power_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1538 [DllImport ("moon")]
1539 // PowerEase *power_ease_new ();
1540 public extern static IntPtr
power_ease_new ();
1542 [DllImport ("moon")]
1543 // int property_changed_event_args_get_id (PropertyChangedEventArgs *instance);
1544 public extern static int property_changed_event_args_get_id (IntPtr instance
);
1546 [DllImport ("moon")]
1547 // Value *property_changed_event_args_get_new_value (PropertyChangedEventArgs *instance);
1548 public extern static IntPtr
property_changed_event_args_get_new_value (IntPtr instance
);
1550 [DllImport ("moon")]
1551 // Value *property_changed_event_args_get_old_value (PropertyChangedEventArgs *instance);
1552 public extern static IntPtr
property_changed_event_args_get_old_value (IntPtr instance
);
1554 [DllImport ("moon")]
1555 // DependencyProperty *property_changed_event_args_get_property (PropertyChangedEventArgs *instance);
1556 public extern static IntPtr
property_changed_event_args_get_property (IntPtr instance
);
1558 [DllImport ("moon")]
1559 // QuadraticBezierSegment *quadratic_bezier_segment_new ();
1560 public extern static IntPtr
quadratic_bezier_segment_new ();
1562 [DllImport ("moon")]
1563 // double quadratic_ease_ease_in_core (QuadraticEase *instance, double normalizedTime);
1564 public extern static double quadratic_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1566 [DllImport ("moon")]
1567 // QuadraticEase *quadratic_ease_new ();
1568 public extern static IntPtr
quadratic_ease_new ();
1570 [DllImport ("moon")]
1571 // double quartic_ease_ease_in_core (QuarticEase *instance, double normalizedTime);
1572 public extern static double quartic_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1574 [DllImport ("moon")]
1575 // QuarticEase *quartic_ease_new ();
1576 public extern static IntPtr
quartic_ease_new ();
1578 [DllImport ("moon")]
1579 // double quintic_ease_ease_in_core (QuinticEase *instance, double normalizedTime);
1580 public extern static double quintic_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1582 [DllImport ("moon")]
1583 // QuinticEase *quintic_ease_new ();
1584 public extern static IntPtr
quintic_ease_new ();
1586 [DllImport ("moon")]
1587 // RadialGradientBrush *radial_gradient_brush_new ();
1588 public extern static IntPtr
radial_gradient_brush_new ();
1590 [DllImport ("moon")]
1591 // Rectangle *rectangle_new ();
1592 public extern static IntPtr
rectangle_new ();
1594 [DllImport ("moon")]
1595 // RectangleGeometry *rectangle_geometry_new ();
1596 public extern static IntPtr
rectangle_geometry_new ();
1598 [DllImport ("moon")]
1599 // TimeSpan rendering_event_args_get_rendering_time (RenderingEventArgs *instance);
1600 public extern static long rendering_event_args_get_rendering_time (IntPtr instance
);
1602 [DllImport ("moon", EntryPoint
="resource_dictionary_add_with_error")]
1603 [return: MarshalAs (UnmanagedType
.U1
)]
1604 // bool resource_dictionary_add_with_error (ResourceDictionary *instance, const char *key, Value *value, MoonError *error);
1605 private extern static bool resource_dictionary_add_with_error_ (IntPtr instance
, string key
, ref Value
value, out MoonError error
);
1606 public static bool resource_dictionary_add (IntPtr instance
, string key
, ref Value
value)
1610 result
= resource_dictionary_add_with_error_ (instance
, key
, ref value, out error
);
1611 if (error
.Number
!= 0)
1612 throw CreateManagedException (error
);
1616 [DllImport ("moon")]
1617 [return: MarshalAs (UnmanagedType
.U1
)]
1618 // bool resource_dictionary_clear (ResourceDictionary *instance);
1619 public extern static bool resource_dictionary_clear (IntPtr instance
);
1621 [DllImport ("moon")]
1622 [return: MarshalAs (UnmanagedType
.U1
)]
1623 // bool resource_dictionary_contains_key (ResourceDictionary *instance, const char *key);
1624 public extern static bool resource_dictionary_contains_key (IntPtr instance
, string key
);
1626 [DllImport ("moon")]
1627 // Value *resource_dictionary_get (ResourceDictionary *instance, const char *key, bool *exists);
1628 public extern static IntPtr
resource_dictionary_get (IntPtr instance
, string key
, [MarshalAs (UnmanagedType
.U1
)] out bool exists
);
1630 [DllImport ("moon")]
1631 [return: MarshalAs (UnmanagedType
.U1
)]
1632 // bool resource_dictionary_remove (ResourceDictionary *instance, const char *key);
1633 public extern static bool resource_dictionary_remove (IntPtr instance
, string key
);
1635 [DllImport ("moon")]
1636 // ResourceDictionary *resource_dictionary_new ();
1637 public extern static IntPtr
resource_dictionary_new ();
1639 [DllImport ("moon")]
1640 [return: MarshalAs (UnmanagedType
.U1
)]
1641 // bool resource_dictionary_set (ResourceDictionary *instance, const char *key, Value *value);
1642 public extern static bool resource_dictionary_set (IntPtr instance
, string key
, ref Value
value);
1644 [DllImport ("moon")]
1645 // ResourceDictionaryCollection *resource_dictionary_collection_new ();
1646 public extern static IntPtr
resource_dictionary_collection_new ();
1648 [DllImport ("moon")]
1649 // RotateTransform *rotate_transform_new ();
1650 public extern static IntPtr
rotate_transform_new ();
1652 [DllImport ("moon")]
1653 [return: MarshalAs (UnmanagedType
.U1
)]
1654 // bool routed_event_args_get_handled (RoutedEventArgs *instance);
1655 public extern static bool routed_event_args_get_handled (IntPtr instance
);
1657 [DllImport ("moon")]
1658 // DependencyObject *routed_event_args_get_source (RoutedEventArgs *instance);
1659 public extern static IntPtr
routed_event_args_get_source (IntPtr instance
);
1661 [DllImport ("moon")]
1662 // RoutedEventArgs *routed_event_args_new ();
1663 public extern static IntPtr
routed_event_args_new ();
1665 [DllImport ("moon")]
1666 // void routed_event_args_set_handled (RoutedEventArgs *instance, bool handled);
1667 public extern static void routed_event_args_set_handled (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool handled
);
1669 [DllImport ("moon")]
1670 // void routed_event_args_set_source (RoutedEventArgs *instance, DependencyObject *el);
1671 public extern static void routed_event_args_set_source (IntPtr instance
, IntPtr el
);
1673 [DllImport ("moon")]
1674 // RowDefinition *row_definition_new ();
1675 public extern static IntPtr
row_definition_new ();
1677 [DllImport ("moon")]
1678 // RowDefinitionCollection *row_definition_collection_new ();
1679 public extern static IntPtr
row_definition_collection_new ();
1681 [DllImport ("moon")]
1683 public extern static IntPtr
run_new ();
1685 [DllImport ("moon")]
1686 // ScaleTransform *scale_transform_new ();
1687 public extern static IntPtr
scale_transform_new ();
1689 [DllImport ("moon")]
1690 // Setter *setter_new ();
1691 public extern static IntPtr
setter_new ();
1693 [DllImport ("moon")]
1694 // SetterBase *setter_base_new ();
1695 public extern static IntPtr
setter_base_new ();
1697 [DllImport ("moon")]
1698 // SetterBaseCollection *setter_base_collection_new ();
1699 public extern static IntPtr
setter_base_collection_new ();
1701 [DllImport ("moon")]
1702 // ShaderEffect *shader_effect_new ();
1703 public extern static IntPtr
shader_effect_new ();
1705 [DllImport ("moon")]
1706 // Transform *shape_get_geometry_transform (Shape *instance);
1707 public extern static IntPtr
shape_get_geometry_transform (IntPtr instance
);
1709 [DllImport ("moon")]
1710 // Shape *shape_new ();
1711 public extern static IntPtr
shape_new ();
1713 [DllImport ("moon")]
1714 // double sine_ease_ease_in_core (SineEase *instance, double normalizedTime);
1715 public extern static double sine_ease_ease_in_core (IntPtr instance
, double normalizedTime
);
1717 [DllImport ("moon")]
1718 // SineEase *sine_ease_new ();
1719 public extern static IntPtr
sine_ease_new ();
1721 [DllImport ("moon")]
1722 // SizeChangedEventArgs *size_changed_event_args_new ();
1723 public extern static IntPtr
size_changed_event_args_new ();
1725 [DllImport ("moon")]
1726 // SkewTransform *skew_transform_new ();
1727 public extern static IntPtr
skew_transform_new ();
1729 [DllImport ("moon")]
1730 // SolidColorBrush *solid_color_brush_new ();
1731 public extern static IntPtr
solid_color_brush_new ();
1733 [DllImport ("moon")]
1734 // SplineColorKeyFrame *spline_color_key_frame_new ();
1735 public extern static IntPtr
spline_color_key_frame_new ();
1737 [DllImport ("moon")]
1738 // SplineDoubleKeyFrame *spline_double_key_frame_new ();
1739 public extern static IntPtr
spline_double_key_frame_new ();
1741 [DllImport ("moon")]
1742 // SplinePointKeyFrame *spline_point_key_frame_new ();
1743 public extern static IntPtr
spline_point_key_frame_new ();
1745 [DllImport ("moon", EntryPoint
="storyboard_begin_with_error")]
1746 [return: MarshalAs (UnmanagedType
.U1
)]
1747 // bool storyboard_begin_with_error (Storyboard *instance, MoonError *error);
1748 private extern static bool storyboard_begin_with_error_ (IntPtr instance
, out MoonError error
);
1749 public static bool storyboard_begin (IntPtr instance
)
1753 result
= storyboard_begin_with_error_ (instance
, out error
);
1754 if (error
.Number
!= 0)
1755 throw CreateManagedException (error
);
1759 [DllImport ("moon")]
1760 // int storyboard_get_current_state (Storyboard *instance);
1761 public extern static int storyboard_get_current_state (IntPtr instance
);
1763 [DllImport ("moon")]
1764 // TimeSpan storyboard_get_current_time (Storyboard *instance);
1765 public extern static long storyboard_get_current_time (IntPtr instance
);
1767 [DllImport ("moon")]
1768 // DependencyProperty *storyboard_get_target_dependency_property (Storyboard *instance);
1769 public extern static IntPtr
storyboard_get_target_dependency_property (IntPtr instance
);
1771 [DllImport ("moon", EntryPoint
="storyboard_pause_with_error")]
1772 // void storyboard_pause_with_error (Storyboard *instance, MoonError *error);
1773 private extern static void storyboard_pause_with_error_ (IntPtr instance
, out MoonError error
);
1774 public static void storyboard_pause (IntPtr instance
)
1777 storyboard_pause_with_error_ (instance
, out error
);
1778 if (error
.Number
!= 0)
1779 throw CreateManagedException (error
);
1782 [DllImport ("moon", EntryPoint
="storyboard_resume_with_error")]
1783 // void storyboard_resume_with_error (Storyboard *instance, MoonError *error);
1784 private extern static void storyboard_resume_with_error_ (IntPtr instance
, out MoonError error
);
1785 public static void storyboard_resume (IntPtr instance
)
1788 storyboard_resume_with_error_ (instance
, out error
);
1789 if (error
.Number
!= 0)
1790 throw CreateManagedException (error
);
1793 [DllImport ("moon", EntryPoint
="storyboard_seek_aligned_to_last_tick_with_error")]
1794 // void storyboard_seek_aligned_to_last_tick_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error);
1795 private extern static void storyboard_seek_aligned_to_last_tick_with_error_ (IntPtr instance
, long timespan
, out MoonError error
);
1796 public static void storyboard_seek_aligned_to_last_tick (IntPtr instance
, long timespan
)
1799 storyboard_seek_aligned_to_last_tick_with_error_ (instance
, timespan
, out error
);
1800 if (error
.Number
!= 0)
1801 throw CreateManagedException (error
);
1804 [DllImport ("moon", EntryPoint
="storyboard_seek_with_error")]
1805 // void storyboard_seek_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error);
1806 private extern static void storyboard_seek_with_error_ (IntPtr instance
, long timespan
, out MoonError error
);
1807 public static void storyboard_seek (IntPtr instance
, long timespan
)
1810 storyboard_seek_with_error_ (instance
, timespan
, out error
);
1811 if (error
.Number
!= 0)
1812 throw CreateManagedException (error
);
1815 [DllImport ("moon", EntryPoint
="storyboard_skip_to_fill_with_error")]
1816 // void storyboard_skip_to_fill_with_error (Storyboard *instance, MoonError *error);
1817 private extern static void storyboard_skip_to_fill_with_error_ (IntPtr instance
, out MoonError error
);
1818 public static void storyboard_skip_to_fill (IntPtr instance
)
1821 storyboard_skip_to_fill_with_error_ (instance
, out error
);
1822 if (error
.Number
!= 0)
1823 throw CreateManagedException (error
);
1826 [DllImport ("moon", EntryPoint
="storyboard_stop_with_error")]
1827 // void storyboard_stop_with_error (Storyboard *instance, MoonError *error);
1828 private extern static void storyboard_stop_with_error_ (IntPtr instance
, out MoonError error
);
1829 public static void storyboard_stop (IntPtr instance
)
1832 storyboard_stop_with_error_ (instance
, out error
);
1833 if (error
.Number
!= 0)
1834 throw CreateManagedException (error
);
1837 [DllImport ("moon")]
1838 // Storyboard *storyboard_new ();
1839 public extern static IntPtr
storyboard_new ();
1841 [DllImport ("moon")]
1842 [return: MarshalAs (UnmanagedType
.U1
)]
1843 // bool stroke_hit_test (Stroke *instance, StylusPointCollection *stylusPoints);
1844 public extern static bool stroke_hit_test (IntPtr instance
, IntPtr stylusPoints
);
1846 [DllImport ("moon")]
1847 // Stroke *stroke_new ();
1848 public extern static IntPtr
stroke_new ();
1850 [DllImport ("moon")]
1851 // StrokeCollection *stroke_collection_hit_test (StrokeCollection *instance, StylusPointCollection *stylusPoints);
1852 public extern static IntPtr
stroke_collection_hit_test (IntPtr instance
, IntPtr stylusPoints
);
1854 [DllImport ("moon")]
1855 // StrokeCollection *stroke_collection_new ();
1856 public extern static IntPtr
stroke_collection_new ();
1858 [DllImport ("moon")]
1859 // void style_seal (Style *instance);
1860 public extern static void style_seal (IntPtr instance
);
1862 [DllImport ("moon")]
1863 // Style *style_new ();
1864 public extern static IntPtr
style_new ();
1866 [DllImport ("moon")]
1867 // StylusInfo *stylus_info_new ();
1868 public extern static IntPtr
stylus_info_new ();
1870 [DllImport ("moon")]
1871 // double stylus_point_get_pressure_factor (StylusPoint *instance);
1872 public extern static double stylus_point_get_pressure_factor (IntPtr instance
);
1874 [DllImport ("moon")]
1875 // double stylus_point_get_x (StylusPoint *instance);
1876 public extern static double stylus_point_get_x (IntPtr instance
);
1878 [DllImport ("moon")]
1879 // double stylus_point_get_y (StylusPoint *instance);
1880 public extern static double stylus_point_get_y (IntPtr instance
);
1882 [DllImport ("moon")]
1883 // void stylus_point_set_pressure_factor (StylusPoint *instance, double factor);
1884 public extern static void stylus_point_set_pressure_factor (IntPtr instance
, double factor
);
1886 [DllImport ("moon")]
1887 // void stylus_point_set_x (StylusPoint *instance, double x);
1888 public extern static void stylus_point_set_x (IntPtr instance
, double x
);
1890 [DllImport ("moon")]
1891 // void stylus_point_set_y (StylusPoint *instance, double y);
1892 public extern static void stylus_point_set_y (IntPtr instance
, double y
);
1894 [DllImport ("moon")]
1895 // StylusPoint *stylus_point_new ();
1896 public extern static IntPtr
stylus_point_new ();
1898 [DllImport ("moon")]
1899 // double stylus_point_collection_add_stylus_points (StylusPointCollection *instance, StylusPointCollection *stylusPointCollection);
1900 public extern static double stylus_point_collection_add_stylus_points (IntPtr instance
, IntPtr stylusPointCollection
);
1902 [DllImport ("moon")]
1903 // StylusPointCollection *stylus_point_collection_new ();
1904 public extern static IntPtr
stylus_point_collection_new ();
1906 [DllImport ("moon")]
1907 // void surface_attach (Surface *instance, UIElement *toplevel);
1908 public extern static void surface_attach (IntPtr instance
, IntPtr toplevel
);
1910 [DllImport ("moon")]
1911 // Downloader *surface_create_downloader (Surface *instance);
1912 public extern static IntPtr
surface_create_downloader (IntPtr instance
);
1914 [DllImport ("moon")]
1915 // void surface_emit_error (Surface *instance, int number, int code, const char *message);
1916 public extern static void surface_emit_error (IntPtr instance
, int number
, int code
, string message
);
1918 [DllImport ("moon")]
1919 // Color *surface_get_background_color (Surface *instance);
1920 public extern static IntPtr
surface_get_background_color (IntPtr instance
);
1922 [DllImport ("moon")]
1923 // UIElement *surface_get_focused_element (Surface *instance);
1924 public extern static IntPtr
surface_get_focused_element (IntPtr instance
);
1926 [DllImport ("moon")]
1927 [return: MarshalAs (UnmanagedType
.U1
)]
1928 // bool surface_get_full_screen (Surface *instance);
1929 public extern static bool surface_get_full_screen (IntPtr instance
);
1931 [DllImport ("moon")]
1932 // TimeManager *surface_get_time_manager (Surface *instance);
1933 public extern static IntPtr
surface_get_time_manager (IntPtr instance
);
1935 [DllImport ("moon")]
1936 // UIElement *surface_get_toplevel (Surface *instance);
1937 public extern static IntPtr
surface_get_toplevel (IntPtr instance
);
1939 [DllImport ("moon")]
1940 [return: MarshalAs (UnmanagedType
.U1
)]
1941 // bool surface_in_main_thread ();
1942 public extern static bool surface_in_main_thread ();
1944 [DllImport ("moon")]
1945 [return: MarshalAs (UnmanagedType
.U1
)]
1946 // bool surface_is_loaded (Surface *instance);
1947 public extern static bool surface_is_loaded (IntPtr instance
);
1949 [DllImport ("moon")]
1950 [return: MarshalAs (UnmanagedType
.U1
)]
1951 // bool surface_is_user_initiated_event (Surface *instance);
1952 public extern static bool surface_is_user_initiated_event (IntPtr instance
);
1954 [DllImport ("moon")]
1955 [return: MarshalAs (UnmanagedType
.U1
)]
1956 // bool surface_is_version_supported (const char *version);
1957 public extern static bool surface_is_version_supported (string version
);
1959 [DllImport ("moon")]
1960 // void surface_paint (Surface *instance, cairo_t *ctx, int x, int y, int width, int height);
1961 public extern static void surface_paint (IntPtr instance
, IntPtr ctx
, int x
, int y
, int width
, int height
);
1963 [DllImport ("moon")]
1964 // void surface_resize (Surface *instance, int width, int height);
1965 public extern static void surface_resize (IntPtr instance
, int width
, int height
);
1967 [DllImport ("moon")]
1968 // void surface_set_full_screen (Surface *instance, bool value);
1969 public extern static void surface_set_full_screen (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool value);
1971 [DllImport ("moon")]
1972 // Surface *surface_new (MoonWindow *window);
1973 public extern static IntPtr
surface_new (IntPtr window
);
1975 [DllImport ("moon")]
1976 [return: MarshalAs (UnmanagedType
.U1
)]
1977 // bool tab_navigation_walker_focus (UIElement *element, bool forwards);
1978 public extern static bool tab_navigation_walker_focus (IntPtr element
, [MarshalAs (UnmanagedType
.U1
)] bool forwards
);
1980 [DllImport ("moon")]
1981 // TextBlock *text_block_new ();
1982 public extern static IntPtr
text_block_new ();
1984 [DllImport ("moon")]
1985 // TextBox *text_box_new ();
1986 public extern static IntPtr
text_box_new ();
1988 [DllImport ("moon")]
1989 // void text_box_base_on_got_focus (TextBoxBase *instance, RoutedEventArgs *args);
1990 public extern static void text_box_base_on_got_focus (IntPtr instance
, IntPtr args
);
1992 [DllImport ("moon")]
1993 // void text_box_base_on_key_down (TextBoxBase *instance, KeyEventArgs *args);
1994 public extern static void text_box_base_on_key_down (IntPtr instance
, IntPtr args
);
1996 [DllImport ("moon")]
1997 // void text_box_base_on_key_up (TextBoxBase *instance, KeyEventArgs *args);
1998 public extern static void text_box_base_on_key_up (IntPtr instance
, IntPtr args
);
2000 [DllImport ("moon")]
2001 // void text_box_base_on_lost_focus (TextBoxBase *instance, RoutedEventArgs *args);
2002 public extern static void text_box_base_on_lost_focus (IntPtr instance
, IntPtr args
);
2004 [DllImport ("moon")]
2005 // void text_box_base_on_mouse_left_button_down (TextBoxBase *instance, MouseButtonEventArgs *args);
2006 public extern static void text_box_base_on_mouse_left_button_down (IntPtr instance
, IntPtr args
);
2008 [DllImport ("moon")]
2009 // void text_box_base_on_mouse_left_button_up (TextBoxBase *instance, MouseButtonEventArgs *args);
2010 public extern static void text_box_base_on_mouse_left_button_up (IntPtr instance
, IntPtr args
);
2012 [DllImport ("moon")]
2013 // void text_box_base_on_mouse_move (TextBoxBase *instance, MouseEventArgs *args);
2014 public extern static void text_box_base_on_mouse_move (IntPtr instance
, IntPtr args
);
2016 [DllImport ("moon")]
2017 // void text_box_base_post_on_key_down (TextBoxBase *instance, KeyEventArgs *args);
2018 public extern static void text_box_base_post_on_key_down (IntPtr instance
, IntPtr args
);
2020 [DllImport ("moon")]
2021 // void text_box_base_select_all (TextBoxBase *instance);
2022 public extern static void text_box_base_select_all (IntPtr instance
);
2024 [DllImport ("moon", EntryPoint
="text_box_base_select_with_error")]
2025 [return: MarshalAs (UnmanagedType
.U1
)]
2026 // bool text_box_base_select_with_error (TextBoxBase *instance, int start, int length, MoonError *error);
2027 private extern static bool text_box_base_select_with_error_ (IntPtr instance
, int start
, int length
, out MoonError error
);
2028 public static bool text_box_base_select (IntPtr instance
, int start
, int length
)
2032 result
= text_box_base_select_with_error_ (instance
, start
, length
, out error
);
2033 if (error
.Number
!= 0)
2034 throw CreateManagedException (error
);
2038 [DllImport ("moon")]
2039 // TextBoxView *text_box_view_new ();
2040 public extern static IntPtr
text_box_view_new ();
2042 [DllImport ("moon")]
2043 // TextChangedEventArgs *text_changed_event_args_new ();
2044 public extern static IntPtr
text_changed_event_args_new ();
2046 [DllImport ("moon")]
2047 // TileBrush *tile_brush_new ();
2048 public extern static IntPtr
tile_brush_new ();
2050 [DllImport ("moon")]
2051 // DependencyObject *timeline_get_manual_target (Timeline *instance);
2052 public extern static IntPtr
timeline_get_manual_target (IntPtr instance
);
2054 [DllImport ("moon")]
2055 // void timeline_set_manual_target (Timeline *instance, DependencyObject *o);
2056 public extern static void timeline_set_manual_target (IntPtr instance
, IntPtr o
);
2058 [DllImport ("moon")]
2059 // Timeline *timeline_new ();
2060 public extern static IntPtr
timeline_new ();
2062 [DllImport ("moon")]
2063 // TimelineCollection *timeline_collection_new ();
2064 public extern static IntPtr
timeline_collection_new ();
2066 [DllImport ("moon")]
2067 // TimelineGroup *timeline_group_new ();
2068 public extern static IntPtr
timeline_group_new ();
2070 [DllImport ("moon")]
2071 // TimelineMarker *timeline_marker_new ();
2072 public extern static IntPtr
timeline_marker_new ();
2074 [DllImport ("moon")]
2075 // TimelineMarkerCollection *timeline_marker_collection_new ();
2076 public extern static IntPtr
timeline_marker_collection_new ();
2078 [DllImport ("moon")]
2079 // TimelineMarker *timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs *instance);
2080 public extern static IntPtr
timeline_marker_routed_event_args_get_marker (IntPtr instance
);
2082 [DllImport ("moon")]
2083 // TimelineMarkerRoutedEventArgs *timeline_marker_routed_event_args_new (TimelineMarker *marker);
2084 public extern static IntPtr
timeline_marker_routed_event_args_new (IntPtr marker
);
2086 [DllImport ("moon")]
2087 // void time_manager_add_dispatcher_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2088 public extern static void time_manager_add_dispatcher_call (IntPtr instance
, TickCallHandler handler
, IntPtr tick_data
);
2090 [DllImport ("moon")]
2091 // void time_manager_add_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2092 public extern static void time_manager_add_tick_call (IntPtr instance
, TickCallHandler handler
, IntPtr tick_data
);
2094 [DllImport ("moon")]
2095 // int time_manager_get_maximum_refresh_rate (TimeManager *instance);
2096 public extern static int time_manager_get_maximum_refresh_rate (IntPtr instance
);
2098 [DllImport ("moon")]
2099 // void time_manager_remove_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data);
2100 public extern static void time_manager_remove_tick_call (IntPtr instance
, TickCallHandler handler
, IntPtr tick_data
);
2102 [DllImport ("moon")]
2103 // void time_manager_set_maximum_refresh_rate (TimeManager *instance, int hz);
2104 public extern static void time_manager_set_maximum_refresh_rate (IntPtr instance
, int hz
);
2106 [DllImport ("moon")]
2107 // Transform *transform_new ();
2108 public extern static IntPtr
transform_new ();
2110 [DllImport ("moon")]
2111 // TransformCollection *transform_collection_new ();
2112 public extern static IntPtr
transform_collection_new ();
2114 [DllImport ("moon")]
2115 // TransformGroup *transform_group_new ();
2116 public extern static IntPtr
transform_group_new ();
2118 [DllImport ("moon")]
2119 // TranslateTransform *translate_transform_new ();
2120 public extern static IntPtr
translate_transform_new ();
2122 [DllImport ("moon")]
2123 // TriggerAction *trigger_action_new ();
2124 public extern static IntPtr
trigger_action_new ();
2126 [DllImport ("moon")]
2127 // TriggerActionCollection *trigger_action_collection_new ();
2128 public extern static IntPtr
trigger_action_collection_new ();
2130 [DllImport ("moon")]
2131 // TriggerBase *trigger_base_new ();
2132 public extern static IntPtr
trigger_base_new ();
2134 [DllImport ("moon")]
2135 // TriggerCollection *trigger_collection_new ();
2136 public extern static IntPtr
trigger_collection_new ();
2138 [DllImport ("moon")]
2139 // Type *types_find (Types *instance, Type::Kind type);
2140 public extern static IntPtr
types_find (IntPtr instance
, Kind type
);
2142 [DllImport ("moon")]
2143 // Types *types_new ();
2144 public extern static IntPtr
types_new ();
2146 [DllImport ("moon")]
2147 // void uielement_arrange (UIElement *instance, Rect finalRect);
2148 public extern static void uielement_arrange (IntPtr instance
, Rect finalRect
);
2150 [DllImport ("moon")]
2151 [return: MarshalAs (UnmanagedType
.U1
)]
2152 // bool uielement_capture_mouse (UIElement *instance);
2153 public extern static bool uielement_capture_mouse (IntPtr instance
);
2155 [DllImport ("moon")]
2156 // void uielement_element_added (UIElement *instance, UIElement *obj);
2157 public extern static void uielement_element_added (IntPtr instance
, IntPtr obj
);
2159 [DllImport ("moon")]
2160 // void uielement_element_removed (UIElement *instance, UIElement *obj);
2161 public extern static void uielement_element_removed (IntPtr instance
, IntPtr obj
);
2163 [DllImport ("moon")]
2164 // void uielement_find_elements_in_host_coordinates_p (UIElement *instance, Point p, HitTestCollection *uielement_list);
2165 public extern static void uielement_find_elements_in_host_coordinates_p (IntPtr instance
, Point p
, IntPtr uielement_list
);
2167 [DllImport ("moon")]
2168 // void uielement_find_elements_in_host_coordinates_r (UIElement *instance, Rect p, HitTestCollection *uielement_list);
2169 public extern static void uielement_find_elements_in_host_coordinates_r (IntPtr instance
, Rect p
, IntPtr uielement_list
);
2171 [DllImport ("moon")]
2172 [return: MarshalAs (UnmanagedType
.U1
)]
2173 // bool uielement_focus (UIElement *instance, bool recurse);
2174 public extern static bool uielement_focus (IntPtr instance
, [MarshalAs (UnmanagedType
.U1
)] bool recurse
);
2176 [DllImport ("moon")]
2177 // Size uielement_get_desired_size (UIElement *instance);
2178 public extern static Size
uielement_get_desired_size (IntPtr instance
);
2180 [DllImport ("moon")]
2181 // Size uielement_get_render_size (UIElement *instance);
2182 public extern static Size
uielement_get_render_size (IntPtr instance
);
2184 [DllImport ("moon")]
2185 // DependencyObject *uielement_get_subtree_object (UIElement *instance);
2186 public extern static IntPtr
uielement_get_subtree_object (IntPtr instance
);
2188 [DllImport ("moon", EntryPoint
="uielement_get_transform_to_uielement_with_error")]
2189 // GeneralTransform *uielement_get_transform_to_uielement_with_error (UIElement *instance, UIElement *to_element, MoonError *error);
2190 private extern static IntPtr
uielement_get_transform_to_uielement_with_error_ (IntPtr instance
, IntPtr to_element
, out MoonError error
);
2191 public static IntPtr
uielement_get_transform_to_uielement (IntPtr instance
, IntPtr to_element
)
2195 result
= uielement_get_transform_to_uielement_with_error_ (instance
, to_element
, out error
);
2196 if (error
.Number
!= 0)
2197 throw CreateManagedException (error
);
2201 [DllImport ("moon")]
2202 // UIElement *uielement_get_visual_parent (UIElement *instance);
2203 public extern static IntPtr
uielement_get_visual_parent (IntPtr instance
);
2205 [DllImport ("moon")]
2206 // void uielement_invalidate_arrange (UIElement *instance);
2207 public extern static void uielement_invalidate_arrange (IntPtr instance
);
2209 [DllImport ("moon")]
2210 // void uielement_invalidate_measure (UIElement *instance);
2211 public extern static void uielement_invalidate_measure (IntPtr instance
);
2213 [DllImport ("moon")]
2214 // void uielement_measure (UIElement *instance, Size availableSize);
2215 public extern static void uielement_measure (IntPtr instance
, Size availableSize
);
2217 [DllImport ("moon")]
2218 // void uielement_release_mouse_capture (UIElement *instance);
2219 public extern static void uielement_release_mouse_capture (IntPtr instance
);
2221 [DllImport ("moon")]
2222 // void uielement_set_subtree_object (UIElement *instance, DependencyObject *value);
2223 public extern static void uielement_set_subtree_object (IntPtr instance
, IntPtr
value);
2225 [DllImport ("moon")]
2226 // void uielement_update_layout (UIElement *instance);
2227 public extern static void uielement_update_layout (IntPtr instance
);
2229 [DllImport ("moon")]
2230 // UIElementCollection *uielement_collection_new ();
2231 public extern static IntPtr
uielement_collection_new ();
2233 [DllImport ("moon")]
2234 // UnmanagedMatrix *unmanaged_matrix_new ();
2235 public extern static IntPtr
unmanaged_matrix_new ();
2237 [DllImport ("moon")]
2238 // void uri_free (Uri *instance);
2239 public extern static void uri_free (IntPtr instance
);
2241 [DllImport ("moon")]
2242 [return: MarshalAs (UnmanagedType
.U1
)]
2243 // bool uri_parse (Uri *instance, const char *uri, bool allow_trailing_sep);
2244 public extern static bool uri_parse (IntPtr instance
, string uri
, [MarshalAs (UnmanagedType
.U1
)] bool allow_trailing_sep
);
2246 [DllImport ("moon")]
2247 // UserControl *user_control_new ();
2248 public extern static IntPtr
user_control_new ();
2250 [DllImport ("moon")]
2251 // void video_brush_set_source (VideoBrush *instance, MediaElement *source);
2252 public extern static void video_brush_set_source (IntPtr instance
, IntPtr source
);
2254 [DllImport ("moon")]
2255 // VideoBrush *video_brush_new ();
2256 public extern static IntPtr
video_brush_new ();
2258 [DllImport ("moon")]
2259 // VideoStream *video_stream_new (Media *media, int codec_id, guint32 width, guint32 height, guint64 duration, gpointer extra_data, guint32 extra_data_size);
2260 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
);
2262 [DllImport ("moon")]
2263 // VisualBrush *visual_brush_new ();
2264 public extern static IntPtr
visual_brush_new ();
2266 [DllImport ("moon")]
2267 // WindowSettings *window_settings_new ();
2268 public extern static IntPtr
window_settings_new ();
2270 [DllImport ("moon")]
2271 // gpointer writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap *instance, BitmapSource *source);
2272 public extern static IntPtr
writeable_bitmap_initialize_from_bitmap_source (IntPtr instance
, IntPtr source
);
2274 [DllImport ("moon")]
2275 // void writeable_bitmap_lock (WriteableBitmap *instance);
2276 public extern static void writeable_bitmap_lock (IntPtr instance
);
2278 [DllImport ("moon")]
2279 // void writeable_bitmap_render (WriteableBitmap *instance, UIElement *element, Transform *transform);
2280 public extern static void writeable_bitmap_render (IntPtr instance
, IntPtr element
, IntPtr transform
);
2282 [DllImport ("moon")]
2283 // void writeable_bitmap_unlock (WriteableBitmap *instance);
2284 public extern static void writeable_bitmap_unlock (IntPtr instance
);
2286 [DllImport ("moon")]
2287 // WriteableBitmap *writeable_bitmap_new ();
2288 public extern static IntPtr
writeable_bitmap_new ();
2290 [DllImport ("moon")]
2291 // DependencyObject *xaml_context_get_template_binding_source (XamlContext *instance);
2292 public extern static IntPtr
xaml_context_get_template_binding_source (IntPtr instance
);
2294 [DllImport ("moon", EntryPoint
="xaml_loader_create_from_file_with_error")]
2295 // Value *xaml_loader_create_from_file_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, Type::Kind *element_type, MoonError *error);
2296 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
);
2297 public static IntPtr
xaml_loader_create_from_file (IntPtr instance
, string xaml
, bool create_namescope
, out Kind element_type
)
2301 result
= xaml_loader_create_from_file_with_error_ (instance
, xaml
, create_namescope
, out element_type
, out error
);
2302 if (error
.Number
!= 0)
2303 throw CreateManagedException (error
);
2307 [DllImport ("moon", EntryPoint
="xaml_loader_create_from_string_with_error")]
2308 // Value *xaml_loader_create_from_string_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, Type::Kind *element_type, int flags, MoonError *error);
2309 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
);
2310 public static IntPtr
xaml_loader_create_from_string (IntPtr instance
, string xaml
, bool create_namescope
, out Kind element_type
, int flags
)
2314 result
= xaml_loader_create_from_string_with_error_ (instance
, xaml
, create_namescope
, out element_type
, flags
, out error
);
2315 if (error
.Number
!= 0)
2316 throw CreateManagedException (error
);
2320 [DllImport ("moon")]
2321 // XamlContext *xaml_loader_get_context (XamlLoader *instance);
2322 public extern static IntPtr
xaml_loader_get_context (IntPtr instance
);
2324 [DllImport ("moon", EntryPoint
="xaml_loader_hydrate_from_string_with_error")]
2325 // 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);
2326 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
);
2327 public static IntPtr
xaml_loader_hydrate_from_string (IntPtr instance
, string xaml
, ref Value obj
, bool create_namescope
, out Kind element_type
, int flags
)
2331 result
= xaml_loader_hydrate_from_string_with_error_ (instance
, xaml
, ref obj
, create_namescope
, out element_type
, flags
, out error
);
2332 if (error
.Number
!= 0)
2333 throw CreateManagedException (error
);
2337 [DllImport ("moon", EntryPoint
="xap_unpack")]
2338 // char *xap_unpack (const char *fname);
2339 private extern static IntPtr
xap_unpack_ (string fname
);
2340 public static string xap_unpack (string fname
)
2343 result
= xap_unpack_ (fname
);
2344 if (result
== IntPtr
.Zero
)
2346 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
2347 Marshal
.FreeHGlobal (result
); // g_free the unmanaged string
2351 [DllImport ("moon")]
2352 // int message_box_show (const char *caption, const char *text, int buttons);
2353 public extern static int message_box_show (string caption
, string text
, int buttons
);
2355 [DllImport ("moon")]
2356 // char* *open_file_dialog_show (const char *title, bool multsel, const char *filter, int idx);
2357 public extern static IntPtr
open_file_dialog_show (string title
, [MarshalAs (UnmanagedType
.U1
)] bool multsel
, string filter
, int idx
);
2359 [DllImport ("moon", EntryPoint
="save_file_dialog_show")]
2360 // char *save_file_dialog_show (const char *title, const char *filter, int idx);
2361 private extern static IntPtr
save_file_dialog_show_ (string title
, string filter
, int idx
);
2362 public static string save_file_dialog_show (string title
, string filter
, int idx
)
2365 result
= save_file_dialog_show_ (title
, filter
, idx
);
2366 if (result
== IntPtr
.Zero
)
2368 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
2369 Marshal
.FreeHGlobal (result
); // g_free the unmanaged string
2373 [DllImport ("moon")]
2374 // void runtime_init_desktop ();
2375 public extern static void runtime_init_desktop ();
2377 [DllImport ("moon")]
2378 // void size_changed_event_args_get_prev_size (SizeChangedEventArgs *args, Size *prev_size);
2379 public extern static void size_changed_event_args_get_prev_size (IntPtr args
, ref Size prev_size
);
2381 [DllImport ("moon")]
2382 // void size_changed_event_args_get_new_size (SizeChangedEventArgs *args, Size *new_size);
2383 public extern static void size_changed_event_args_get_new_size (IntPtr args
, ref Size new_size
);
2385 [DllImport ("moon")]
2386 // void stroke_get_bounds (Stroke *stroke, Rect *bounds);
2387 public extern static void stroke_get_bounds (IntPtr stroke
, ref Rect bounds
);
2389 [DllImport ("moon")]
2390 // void stroke_collection_get_bounds (StrokeCollection *collection, Rect *bounds);
2391 public extern static void stroke_collection_get_bounds (IntPtr collection
, ref Rect bounds
);
2393 [DllImport ("moon")]
2394 // void general_transform_transform_point (GeneralTransform *t, Point *p, Point *r);
2395 public extern static void general_transform_transform_point (IntPtr t
, ref Point p
, ref Point r
);
2397 [DllImport ("moon")]
2398 [return: MarshalAs (UnmanagedType
.U1
)]
2399 // bool type_get_value_type (Type::Kind type);
2400 public extern static bool type_get_value_type (Kind type
);
2402 [DllImport ("moon")]
2403 [return: MarshalAs (UnmanagedType
.U1
)]
2404 // bool type_is_dependency_object (Type::Kind type);
2405 public extern static bool type_is_dependency_object (Kind type
);
2407 [DllImport ("moon")]
2408 [return: MarshalAs (UnmanagedType
.Bool
)]
2409 // gboolean managed_unzip_stream_to_stream (ManagedStreamCallbacks *source, ManagedStreamCallbacks *dest, const char *partname);
2410 public extern static bool managed_unzip_stream_to_stream (ref ManagedStreamCallbacks source
, ref ManagedStreamCallbacks dest
, string partname
);
2412 [DllImport ("moon")]
2413 [return: MarshalAs (UnmanagedType
.Bool
)]
2414 // gboolean managed_unzip_stream_to_stream_first_file (ManagedStreamCallbacks *source, ManagedStreamCallbacks *dest);
2415 public extern static bool managed_unzip_stream_to_stream_first_file (ref ManagedStreamCallbacks source
, ref ManagedStreamCallbacks dest
);
2417 [DllImport ("moon")]
2418 // void value_free_value (Value *value);
2419 public extern static void value_free_value (ref Value
value);
2421 [DllImport ("moon")]
2422 // void value_free_value2 (Value *value);
2423 public extern static void value_free_value2 (IntPtr
value);
2425 [DllImport ("moon")]
2426 [return: MarshalAs (UnmanagedType
.U1
)]
2427 // bool value_from_str_with_typename (const char *type_name, const char *prop_name, const char *str, Value* *v);
2428 public extern static bool value_from_str_with_typename (string type_name
, string prop_name
, string str
, out IntPtr v
);
2430 [DllImport ("moon")]
2431 [return: MarshalAs (UnmanagedType
.U1
)]
2432 // bool value_from_str (Type::Kind type, const char *prop_name, const char *str, Value* *v);
2433 public extern static bool value_from_str (Kind type
, string prop_name
, string str
, out IntPtr v
);
2435 [DllImport ("moon")]
2436 // XamlLoader *xaml_loader_new (const char *resourceBase, const char *filename, const char *str, Surface *surface);
2437 public extern static IntPtr
xaml_loader_new (string resourceBase
, string filename
, string str
, IntPtr surface
);
2439 [DllImport ("moon")]
2440 // void xaml_loader_free (XamlLoader *loader);
2441 public extern static void xaml_loader_free (IntPtr loader
);
2443 [DllImport ("moon")]
2444 // void xaml_loader_set_callbacks (XamlLoader *loader, XamlLoaderCallbacks callbacks);
2445 public extern static void xaml_loader_set_callbacks (IntPtr loader
, Xaml
.XamlLoaderCallbacks callbacks
);
2447 [DllImport ("moon", EntryPoint
="xaml_uri_for_prefix")]
2448 // char *xaml_uri_for_prefix (void *parser, char *prefix);
2449 private extern static IntPtr
xaml_uri_for_prefix_ (IntPtr parser
, string prefix
);
2450 public static string xaml_uri_for_prefix (IntPtr parser
, string prefix
)
2453 result
= xaml_uri_for_prefix_ (parser
, prefix
);
2454 if (result
== IntPtr
.Zero
)
2456 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
2457 Marshal
.FreeHGlobal (result
); // g_free the unmanaged string
2461 [DllImport ("moon")]
2462 // Value *xaml_lookup_named_item (void *parser, void *element_instance, const char *name);
2463 public extern static IntPtr
xaml_lookup_named_item (IntPtr parser
, IntPtr element_instance
, string name
);
2465 [DllImport ("moon")]
2466 // void *xaml_get_template_parent (void *parser, void *element_instance);
2467 public extern static IntPtr
xaml_get_template_parent (IntPtr parser
, IntPtr element_instance
);
2469 [DllImport ("moon", EntryPoint
="xaml_get_element_key")]
2470 // char *xaml_get_element_key (void *parser, void *element_instance);
2471 private extern static IntPtr
xaml_get_element_key_ (IntPtr parser
, IntPtr element_instance
);
2472 public static string xaml_get_element_key (IntPtr parser
, IntPtr element_instance
)
2475 result
= xaml_get_element_key_ (parser
, element_instance
);
2476 if (result
== IntPtr
.Zero
)
2478 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
2479 Marshal
.FreeHGlobal (result
); // g_free the unmanaged string
2483 [DllImport ("moon", EntryPoint
="xaml_get_element_name")]
2484 // char *xaml_get_element_name (void *parser, void *element_instance);
2485 private extern static IntPtr
xaml_get_element_name_ (IntPtr parser
, IntPtr element_instance
);
2486 public static string xaml_get_element_name (IntPtr parser
, IntPtr element_instance
)
2489 result
= xaml_get_element_name_ (parser
, element_instance
);
2490 if (result
== IntPtr
.Zero
)
2492 string s
= Marshal
.PtrToStringAnsi (result
); // *copy* unmanaged string
2493 Marshal
.FreeHGlobal (result
); // g_free the unmanaged string
2497 [DllImport ("moon")]
2498 [return: MarshalAs (UnmanagedType
.U1
)]
2499 // bool xaml_is_property_set (void *parser, void *element_instance, char *name);
2500 public extern static bool xaml_is_property_set (IntPtr parser
, IntPtr element_instance
, string name
);
2502 [DllImport ("moon")]
2503 // void xaml_mark_property_as_set (void *parser, void *element_instance, char *name);
2504 public extern static void xaml_mark_property_as_set (IntPtr parser
, IntPtr element_instance
, string name
);
2506 [DllImport ("moon")]
2507 // void xaml_delay_set_property (void *parser, void *element_instance, const char *xmlns, const char *name, const Value *value);
2508 public extern static void xaml_delay_set_property (IntPtr parser
, IntPtr element_instance
, string xmlns
, string name
, ref Value
value);