revert jeff's last commit since it breaks the build
[moon.git] / src / cbinding.cpp
blob3a9362cfdc7e0a7e8b9ccf0853b0a3efed40ece0
1 /*
2 * Automatically generated, do not edit this file directly
3 */
5 #include <config.h>
7 #include <stdio.h>
8 #include <stdlib.h>
10 #include "cbinding.h"
12 #include "animation.h"
13 #include "application.h"
14 #include "bitmapcache.h"
15 #include "bitmapimage.h"
16 #include "bitmapsource.h"
17 #include "border.h"
18 #include "brush.h"
19 #include "canvas.h"
20 #include "collection.h"
21 #include "contentcontrol.h"
22 #include "control.h"
23 #include "deepzoomimagetilesource.h"
24 #include "dependencyobject.h"
25 #include "dependencyproperty.h"
26 #include "deployment.h"
27 #include "downloader.h"
28 #include "easing.h"
29 #include "effect.h"
30 #include "eventargs.h"
31 #include "frameworkelement.h"
32 #include "geometry.h"
33 #include "glyphs.h"
34 #include "grid.h"
35 #include "imagesource.h"
36 #include "keyboard.h"
37 #include "media.h"
38 #include "mediaelement.h"
39 #include "multiscaleimage.h"
40 #include "multiscalesubimage.h"
41 #include "namescope.h"
42 #include "panel.h"
43 #include "pipeline.h"
44 #include "popup.h"
45 #include "projection.h"
46 #include "resources.h"
47 #include "runtime.h"
48 #include "shape.h"
49 #include "size.h"
50 #include "style.h"
51 #include "stylus.h"
52 #include "tabnavigationwalker.h"
53 #include "template.h"
54 #include "textblock.h"
55 #include "textbox.h"
56 #include "tilesource.h"
57 #include "timeline.h"
58 #include "timemanager.h"
59 #include "transform.h"
60 #include "trigger.h"
61 #include "type.h"
62 #include "uielement.h"
63 #include "uri.h"
64 #include "usercontrol.h"
65 #include "window.h"
66 #include "window-gtk.h"
67 #include "writeablebitmap.h"
68 #include "xaml.h"
69 #include "xap.h"
70 /**
71 * Application
72 **/
73 Application *
74 application_new (void)
76 return new Application ();
80 Application *
81 application_get_current (void)
83 return Application::GetCurrent ();
87 void
88 application_register_callbacks (Application *instance, ApplyDefaultStyleCallback apply_default_style_cb, ApplyStyleCallback apply_style_cb, GetResourceCallback get_resource_cb, ConvertKeyframeValueCallback convert_keyframe_callback)
90 if (instance == NULL)
91 return;
93 instance->RegisterCallbacks (apply_default_style_cb, apply_style_cb, get_resource_cb, convert_keyframe_callback);
97 void
98 application_set_current (Application *current)
100 Application::SetCurrent (current);
105 * ArcSegment
107 ArcSegment *
108 arc_segment_new (void)
110 return new ArcSegment ();
115 * AssemblyPart
117 AssemblyPart *
118 assembly_part_new (void)
120 return new AssemblyPart ();
125 * AssemblyPartCollection
127 AssemblyPartCollection *
128 assembly_part_collection_new (void)
130 return new AssemblyPartCollection ();
135 * AudioStream
137 AudioStream *
138 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)
140 return new AudioStream (media, codec_id, bits_per_sample, block_align, sample_rate, channels, bit_rate, extra_data, extra_data_size);
145 audio_stream_get_bit_rate (AudioStream *instance)
147 if (instance == NULL)
148 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
149 return (int) 0;
151 return instance->GetBitRate ();
156 audio_stream_get_bits_per_sample (AudioStream *instance)
158 if (instance == NULL)
159 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
160 return (int) 0;
162 return instance->GetBitsPerSample ();
167 audio_stream_get_block_align (AudioStream *instance)
169 if (instance == NULL)
170 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
171 return (int) 0;
173 return instance->GetBlockAlign ();
178 audio_stream_get_channels (AudioStream *instance)
180 if (instance == NULL)
181 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
182 return (int) 0;
184 return instance->GetChannels ();
189 audio_stream_get_input_bit_rate (AudioStream *instance)
191 if (instance == NULL)
192 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
193 return (int) 0;
195 return instance->GetInputBitRate ();
200 audio_stream_get_input_bits_per_sample (AudioStream *instance)
202 if (instance == NULL)
203 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
204 return (int) 0;
206 return instance->GetInputBitsPerSample ();
211 audio_stream_get_input_block_align (AudioStream *instance)
213 if (instance == NULL)
214 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
215 return (int) 0;
217 return instance->GetInputBlockAlign ();
222 audio_stream_get_input_channels (AudioStream *instance)
224 if (instance == NULL)
225 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
226 return (int) 0;
228 return instance->GetInputChannels ();
233 audio_stream_get_input_sample_rate (AudioStream *instance)
235 if (instance == NULL)
236 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
237 return (int) 0;
239 return instance->GetInputSampleRate ();
244 audio_stream_get_output_bit_rate (AudioStream *instance)
246 if (instance == NULL)
247 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
248 return (int) 0;
250 return instance->GetOutputBitRate ();
255 audio_stream_get_output_bits_per_sample (AudioStream *instance)
257 if (instance == NULL)
258 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
259 return (int) 0;
261 return instance->GetOutputBitsPerSample ();
266 audio_stream_get_output_block_align (AudioStream *instance)
268 if (instance == NULL)
269 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
270 return (int) 0;
272 return instance->GetOutputBlockAlign ();
277 audio_stream_get_output_channels (AudioStream *instance)
279 if (instance == NULL)
280 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
281 return (int) 0;
283 return instance->GetOutputChannels ();
288 audio_stream_get_output_sample_rate (AudioStream *instance)
290 if (instance == NULL)
291 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
292 return (int) 0;
294 return instance->GetOutputSampleRate ();
299 audio_stream_get_sample_rate (AudioStream *instance)
301 if (instance == NULL)
302 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
303 return (int) 0;
305 return instance->GetSampleRate ();
309 void
310 audio_stream_set_bit_rate (AudioStream *instance, int value)
312 if (instance == NULL)
313 return;
315 instance->SetBitRate (value);
319 void
320 audio_stream_set_bits_per_sample (AudioStream *instance, int value)
322 if (instance == NULL)
323 return;
325 instance->SetBitsPerSample (value);
329 void
330 audio_stream_set_block_align (AudioStream *instance, int value)
332 if (instance == NULL)
333 return;
335 instance->SetBlockAlign (value);
339 void
340 audio_stream_set_channels (AudioStream *instance, int value)
342 if (instance == NULL)
343 return;
345 instance->SetChannels (value);
349 void
350 audio_stream_set_input_bit_rate (AudioStream *instance, int value)
352 if (instance == NULL)
353 return;
355 instance->SetInputBitRate (value);
359 void
360 audio_stream_set_input_bits_per_sample (AudioStream *instance, int value)
362 if (instance == NULL)
363 return;
365 instance->SetInputBitsPerSample (value);
369 void
370 audio_stream_set_input_block_align (AudioStream *instance, int value)
372 if (instance == NULL)
373 return;
375 instance->SetInputBlockAlign (value);
379 void
380 audio_stream_set_input_channels (AudioStream *instance, int value)
382 if (instance == NULL)
383 return;
385 instance->SetInputChannels (value);
389 void
390 audio_stream_set_input_sample_rate (AudioStream *instance, int value)
392 if (instance == NULL)
393 return;
395 instance->SetInputSampleRate (value);
399 void
400 audio_stream_set_output_bit_rate (AudioStream *instance, int value)
402 if (instance == NULL)
403 return;
405 instance->SetOutputBitRate (value);
409 void
410 audio_stream_set_output_bits_per_sample (AudioStream *instance, int value)
412 if (instance == NULL)
413 return;
415 instance->SetOutputBitsPerSample (value);
419 void
420 audio_stream_set_output_block_align (AudioStream *instance, int value)
422 if (instance == NULL)
423 return;
425 instance->SetOutputBlockAlign (value);
429 void
430 audio_stream_set_output_channels (AudioStream *instance, int value)
432 if (instance == NULL)
433 return;
435 instance->SetOutputChannels (value);
439 void
440 audio_stream_set_output_sample_rate (AudioStream *instance, int value)
442 if (instance == NULL)
443 return;
445 instance->SetOutputSampleRate (value);
449 void
450 audio_stream_set_sample_rate (AudioStream *instance, int value)
452 if (instance == NULL)
453 return;
455 instance->SetSampleRate (value);
460 * BackEase
462 BackEase *
463 back_ease_new (void)
465 return new BackEase ();
469 double
470 back_ease_ease_in_core (BackEase *instance, double normalizedTime)
472 if (instance == NULL)
473 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
474 return (double) 0;
476 return instance->EaseInCore (normalizedTime);
481 * BeginStoryboard
483 BeginStoryboard *
484 begin_storyboard_new (void)
486 return new BeginStoryboard ();
491 * BezierSegment
493 BezierSegment *
494 bezier_segment_new (void)
496 return new BezierSegment ();
501 * BitmapCache
503 BitmapCache *
504 bitmap_cache_new (void)
506 return new BitmapCache ();
511 * BitmapImage
513 BitmapImage *
514 bitmap_image_new (void)
516 return new BitmapImage ();
520 void
521 bitmap_image_pixbuf_write (BitmapImage *instance, gpointer buffer, gint32 offset, gint32 n)
523 if (instance == NULL)
524 return;
526 instance->PixbufWrite (buffer, offset, n);
530 void
531 bitmap_image_pixmap_complete (BitmapImage *instance)
533 if (instance == NULL)
534 return;
536 instance->PixmapComplete ();
541 * BitmapSource
543 BitmapSource *
544 bitmap_source_new (void)
546 return new BitmapSource ();
550 gpointer
551 bitmap_source_get_bitmap_data (BitmapSource *instance)
553 if (instance == NULL)
554 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
555 return (gpointer) 0;
557 return instance->GetBitmapData ();
561 void
562 bitmap_source_invalidate (BitmapSource *instance)
564 if (instance == NULL)
565 return;
567 instance->Invalidate ();
571 void
572 bitmap_source_set_bitmap_data (BitmapSource *instance, gpointer data, bool own)
574 if (instance == NULL)
575 return;
577 instance->SetBitmapData (data, own);
582 * BlurEffect
584 BlurEffect *
585 blur_effect_new (void)
587 return new BlurEffect ();
592 * Border
594 Border *
595 border_new (void)
597 return new Border ();
602 * BounceEase
604 BounceEase *
605 bounce_ease_new (void)
607 return new BounceEase ();
611 double
612 bounce_ease_ease_in_core (BounceEase *instance, double normalizedTime)
614 if (instance == NULL)
615 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
616 return (double) 0;
618 return instance->EaseInCore (normalizedTime);
623 * Brush
625 Brush *
626 brush_new (void)
628 return new Brush ();
633 * CacheMode
635 CacheMode *
636 cache_mode_new (void)
638 return new CacheMode ();
643 * Canvas
645 Canvas *
646 canvas_new (void)
648 return new Canvas ();
653 * CircleEase
655 CircleEase *
656 circle_ease_new (void)
658 return new CircleEase ();
662 double
663 circle_ease_ease_in_core (CircleEase *instance, double normalizedTime)
665 if (instance == NULL)
666 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
667 return (double) 0;
669 return instance->EaseInCore (normalizedTime);
674 * Collection
677 collection_add_with_error (Collection *instance, Value *value, MoonError *error)
679 if (instance == NULL)
680 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
681 return (int) 0;
683 if (error == NULL)
684 g_warning ("Moonlight: Called collection_add_with_error () with error == NULL.");
685 return instance->AddWithError (value, error);
689 bool
690 collection_clear (Collection *instance)
692 if (instance == NULL)
693 return false;
695 return instance->Clear ();
699 bool
700 collection_contains (Collection *instance, Value *value)
702 if (instance == NULL)
703 return false;
705 return instance->Contains (value);
710 collection_get_count (Collection *instance)
712 if (instance == NULL)
713 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
714 return (int) 0;
716 return instance->GetCount ();
721 collection_get_element_type (Collection *instance)
723 if (instance == NULL)
724 return Type::INVALID;
726 return instance->GetElementType ();
730 CollectionIterator *
731 collection_get_iterator (Collection *instance)
733 if (instance == NULL)
734 return NULL;
736 return instance->GetIterator ();
740 Value *
741 collection_get_value_at_with_error (Collection *instance, int index, MoonError *error)
743 if (instance == NULL)
744 return NULL;
746 if (error == NULL)
747 g_warning ("Moonlight: Called collection_get_value_at_with_error () with error == NULL.");
748 return instance->GetValueAtWithError (index, error);
753 collection_index_of (Collection *instance, Value *value)
755 if (instance == NULL)
756 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
757 return (int) 0;
759 return instance->IndexOf (value);
763 bool
764 collection_insert_with_error (Collection *instance, int index, Value *value, MoonError *error)
766 if (instance == NULL)
767 return false;
769 if (error == NULL)
770 g_warning ("Moonlight: Called collection_insert_with_error () with error == NULL.");
771 return instance->InsertWithError (index, value, error);
775 bool
776 collection_remove (Collection *instance, Value *value)
778 if (instance == NULL)
779 return false;
781 return instance->Remove (value);
785 bool
786 collection_remove_at_with_error (Collection *instance, int index, MoonError *error)
788 if (instance == NULL)
789 return false;
791 if (error == NULL)
792 g_warning ("Moonlight: Called collection_remove_at_with_error () with error == NULL.");
793 return instance->RemoveAtWithError (index, error);
797 bool
798 collection_set_value_at_with_error (Collection *instance, int index, Value *value, MoonError *error)
800 if (instance == NULL)
801 return false;
803 if (error == NULL)
804 g_warning ("Moonlight: Called collection_set_value_at_with_error () with error == NULL.");
805 return instance->SetValueAtWithError (index, value, error);
810 * CollectionChangedEventArgs
812 CollectionChangedEventArgs *
813 collection_changed_event_args_new (void)
815 return new CollectionChangedEventArgs ();
820 collection_changed_event_args_get_changed_action (CollectionChangedEventArgs *instance)
822 if (instance == NULL)
823 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
824 return (CollectionChangedAction) 0;
826 return instance->GetChangedAction ();
831 collection_changed_event_args_get_index (CollectionChangedEventArgs *instance)
833 if (instance == NULL)
834 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
835 return (int) 0;
837 return instance->GetIndex ();
841 Value *
842 collection_changed_event_args_get_new_item (CollectionChangedEventArgs *instance)
844 if (instance == NULL)
845 return NULL;
847 return instance->GetNewItem ();
851 Value *
852 collection_changed_event_args_get_old_item (CollectionChangedEventArgs *instance)
854 if (instance == NULL)
855 return NULL;
857 return instance->GetOldItem ();
861 void
862 collection_changed_event_args_set_changed_action (CollectionChangedEventArgs *instance, int action)
864 if (instance == NULL)
865 return;
867 instance->SetChangedAction ((CollectionChangedAction) action);
871 void
872 collection_changed_event_args_set_index (CollectionChangedEventArgs *instance, int index)
874 if (instance == NULL)
875 return;
877 instance->SetIndex (index);
881 void
882 collection_changed_event_args_set_new_item (CollectionChangedEventArgs *instance, Value *item)
884 if (instance == NULL)
885 return;
887 instance->SetNewItem (item);
891 void
892 collection_changed_event_args_set_old_item (CollectionChangedEventArgs *instance, Value *item)
894 if (instance == NULL)
895 return;
897 instance->SetOldItem (item);
902 * CollectionIterator
904 void
905 collection_iterator_destroy (CollectionIterator *iterator)
907 CollectionIterator::Destroy (iterator);
911 Value *
912 collection_iterator_get_current (CollectionIterator *instance, int *err)
914 if (instance == NULL)
915 return NULL;
917 return instance->GetCurrent ((CollectionIteratorError*) err);
921 bool
922 collection_iterator_next (CollectionIterator *instance, int *err)
924 if (instance == NULL)
925 return false;
927 return instance->Next ((CollectionIteratorError*) err);
931 bool
932 collection_iterator_reset (CollectionIterator *instance)
934 if (instance == NULL)
935 return false;
937 return instance->Reset ();
942 * ColorAnimation
944 ColorAnimation *
945 color_animation_new (void)
947 return new ColorAnimation ();
952 * ColorAnimationUsingKeyFrames
954 ColorAnimationUsingKeyFrames *
955 color_animation_using_key_frames_new (void)
957 return new ColorAnimationUsingKeyFrames ();
962 * ColorKeyFrame
964 ColorKeyFrame *
965 color_key_frame_new (void)
967 return new ColorKeyFrame ();
972 * ColorKeyFrameCollection
974 ColorKeyFrameCollection *
975 color_key_frame_collection_new (void)
977 return new ColorKeyFrameCollection ();
982 * ColumnDefinition
984 ColumnDefinition *
985 column_definition_new (void)
987 return new ColumnDefinition ();
992 * ColumnDefinitionCollection
994 ColumnDefinitionCollection *
995 column_definition_collection_new (void)
997 return new ColumnDefinitionCollection ();
1002 * ContentChangedEventArgs
1004 Value *
1005 content_changed_event_args_get_new_content (ContentChangedEventArgs *instance)
1007 if (instance == NULL)
1008 return NULL;
1010 return instance->GetNewContent ();
1014 Value *
1015 content_changed_event_args_get_old_content (ContentChangedEventArgs *instance)
1017 if (instance == NULL)
1018 return NULL;
1020 return instance->GetOldContent ();
1025 * ContentControl
1027 ContentControl *
1028 content_control_new (void)
1030 return new ContentControl ();
1034 bool
1035 content_control_get_content_sets_parent (ContentControl *instance)
1037 if (instance == NULL)
1038 return false;
1040 return instance->GetContentSetsParent ();
1044 void
1045 content_control_set_content_sets_parent (ContentControl *instance, bool value)
1047 if (instance == NULL)
1048 return;
1050 instance->SetContentSetsParent (value);
1055 * Control
1057 Control *
1058 control_new (void)
1060 return new Control ();
1064 DependencyObject *
1065 control_get_template_child (Control *instance, const char *name)
1067 if (instance == NULL)
1068 return NULL;
1070 return instance->GetTemplateChild (name);
1075 * ControlTemplate
1077 ControlTemplate *
1078 control_template_new (void)
1080 return new ControlTemplate ();
1085 * CubicEase
1087 CubicEase *
1088 cubic_ease_new (void)
1090 return new CubicEase ();
1094 double
1095 cubic_ease_ease_in_core (CubicEase *instance, double normalizedTime)
1097 if (instance == NULL)
1098 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1099 return (double) 0;
1101 return instance->EaseInCore (normalizedTime);
1106 * CursorPositionChangedEventArgs
1108 CursorPositionChangedEventArgs *
1109 cursor_position_changed_event_args_new (void)
1111 return new CursorPositionChangedEventArgs ();
1115 double
1116 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs *instance)
1118 if (instance == NULL)
1119 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1120 return (double) 0;
1122 return instance->GetCursorHeight ();
1126 double
1127 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs *instance)
1129 if (instance == NULL)
1130 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1131 return (double) 0;
1133 return instance->GetCursorX ();
1137 double
1138 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs *instance)
1140 if (instance == NULL)
1141 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1142 return (double) 0;
1144 return instance->GetCursorY ();
1149 * DataTemplate
1151 DataTemplate *
1152 data_template_new (void)
1154 return new DataTemplate ();
1159 * DeepZoomImageTileSource
1161 DeepZoomImageTileSource *
1162 deep_zoom_image_tile_source_new (void)
1164 return new DeepZoomImageTileSource ();
1169 * DependencyObject
1171 void
1172 dependency_object_add_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb, gpointer closure)
1174 if (instance == NULL)
1175 return;
1177 instance->AddPropertyChangeHandler (property, cb, closure);
1181 void
1182 dependency_object_clear_value (DependencyObject *instance, DependencyProperty *property, bool notify_listeners, MoonError *error)
1184 if (instance == NULL)
1185 return;
1187 if (error == NULL)
1188 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1189 instance->ClearValue (property, notify_listeners, error);
1193 DependencyObject *
1194 dependency_object_new (void)
1196 return new DependencyObject ();
1200 DependencyObject *
1201 dependency_object_find_name (DependencyObject *instance, const char *name, int *element_kind)
1203 if (instance == NULL)
1204 return NULL;
1206 return instance->FindName (name, (Type::Kind*) element_kind);
1210 const char *
1211 dependency_object_get_name (DependencyObject *instance)
1213 if (instance == NULL)
1214 return NULL;
1216 return instance->GetName ();
1220 DependencyObject *
1221 dependency_object_get_template_owner (DependencyObject *instance)
1223 if (instance == NULL)
1224 return NULL;
1226 return instance->GetTemplateOwner ();
1230 Value *
1231 dependency_object_get_value_no_default_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error)
1233 if (instance == NULL)
1234 return NULL;
1236 if (error == NULL)
1237 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1238 return instance->GetValueNoDefaultWithError (property, error);
1242 Value *
1243 dependency_object_get_value_with_error (DependencyObject *instance, int whatami, DependencyProperty *property, MoonError *error)
1245 if (instance == NULL)
1246 return NULL;
1248 if (error == NULL)
1249 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1250 return instance->GetValueWithError ((Type::Kind) whatami, property, error);
1254 Value *
1255 dependency_object_read_local_value_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error)
1257 if (instance == NULL)
1258 return NULL;
1260 if (error == NULL)
1261 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1262 return instance->ReadLocalValueWithError (property, error);
1266 void
1267 dependency_object_remove_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb)
1269 if (instance == NULL)
1270 return;
1272 instance->RemovePropertyChangeHandler (property, cb);
1276 void
1277 dependency_object_set_name (DependencyObject *instance, const char *name)
1279 if (instance == NULL)
1280 return;
1282 instance->SetName (name);
1286 void
1287 dependency_object_set_parent_safe (DependencyObject *instance, DependencyObject *parent, MoonError *error)
1289 if (instance == NULL)
1290 return;
1292 if (error == NULL)
1293 g_warning ("Moonlight: Called dependency_object_set_parent_safe () with error == NULL.");
1294 instance->SetParentSafe (parent, error);
1298 void
1299 dependency_object_set_template_owner (DependencyObject *instance, DependencyObject *value)
1301 if (instance == NULL)
1302 return;
1304 instance->SetTemplateOwner (value);
1308 bool
1309 dependency_object_set_value_with_error (DependencyObject *instance, DependencyProperty *property, Value *value, MoonError *error)
1311 if (instance == NULL)
1312 return false;
1314 if (error == NULL)
1315 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1316 return instance->SetValueWithError (property, value, error);
1321 * DependencyObjectCollection
1323 DependencyObjectCollection *
1324 dependency_object_collection_new (void)
1326 return new DependencyObjectCollection ();
1331 * DependencyProperty
1333 Value *
1334 dependency_property_get_default_value (DependencyProperty *instance)
1336 if (instance == NULL)
1337 return NULL;
1339 return instance->GetDefaultValue ();
1343 DependencyProperty *
1344 dependency_property_get_dependency_property (int type, const char *name)
1346 return DependencyProperty::GetDependencyProperty ((Type::Kind) type, name);
1350 DependencyProperty *
1351 dependency_property_get_dependency_property_full (int type, const char *name, bool inherits)
1353 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind) type, name, inherits);
1357 const char *
1358 dependency_property_get_name (DependencyProperty *instance)
1360 if (instance == NULL)
1361 return NULL;
1363 return instance->GetName ();
1368 dependency_property_get_property_type (DependencyProperty *instance)
1370 if (instance == NULL)
1371 return Type::INVALID;
1373 return instance->GetPropertyType ();
1377 bool
1378 dependency_property_is_attached (DependencyProperty *instance)
1380 if (instance == NULL)
1381 return false;
1383 return instance->IsAttached ();
1387 bool
1388 dependency_property_is_nullable (DependencyProperty *instance)
1390 if (instance == NULL)
1391 return false;
1393 return instance->IsNullable ();
1397 bool
1398 dependency_property_is_read_only (DependencyProperty *instance)
1400 if (instance == NULL)
1401 return false;
1403 return instance->IsReadOnly ();
1407 DependencyProperty *
1408 dependency_property_register_core_property (const char *name, int property_type, int owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback)
1410 return DependencyProperty::RegisterCoreProperty (name, (Type::Kind) property_type, (Type::Kind) owner_type, defaultValue, attached, read_only, callback);
1414 DependencyProperty *
1415 dependency_property_register_custom_property (const char *name, int property_type, int owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback)
1417 return DependencyProperty::RegisterCustomProperty (name, (Type::Kind) property_type, (Type::Kind) owner_type, defaultValue, attached, read_only, callback);
1421 void
1422 dependency_property_set_is_nullable (DependencyProperty *instance, bool value)
1424 if (instance == NULL)
1425 return;
1427 instance->SetIsNullable (value);
1431 void
1432 dependency_property_set_property_changed_callback (DependencyProperty *instance, PropertyChangeHandler changed_callback)
1434 if (instance == NULL)
1435 return;
1437 instance->SetPropertyChangedCallback (changed_callback);
1442 * Deployment
1444 Deployment *
1445 deployment_new (void)
1447 return new Deployment ();
1451 Deployment *
1452 deployment_get_current (void)
1454 return Deployment::GetCurrent ();
1458 Surface *
1459 deployment_get_surface_reffed (Deployment *instance)
1461 if (instance == NULL)
1462 return NULL;
1464 return instance->GetSurfaceReffed ();
1468 Types *
1469 deployment_get_types (Deployment *instance)
1471 if (instance == NULL)
1472 return NULL;
1474 return instance->GetTypes ();
1478 void
1479 deployment_set_current (Deployment *value)
1481 Deployment::SetCurrent (value);
1485 void
1486 deployment_set_current_application (Deployment *instance, Application *value)
1488 if (instance == NULL)
1489 return;
1491 instance->SetCurrentApplication (value);
1495 void
1496 deployment_set_is_loaded_from_xap (Deployment *instance, bool flag)
1498 if (instance == NULL)
1499 return;
1501 instance->SetIsLoadedFromXap (flag);
1506 * DiscreteColorKeyFrame
1508 DiscreteColorKeyFrame *
1509 discrete_color_key_frame_new (void)
1511 return new DiscreteColorKeyFrame ();
1516 * DiscreteDoubleKeyFrame
1518 DiscreteDoubleKeyFrame *
1519 discrete_double_key_frame_new (void)
1521 return new DiscreteDoubleKeyFrame ();
1526 * DiscreteObjectKeyFrame
1528 DiscreteObjectKeyFrame *
1529 discrete_object_key_frame_new (void)
1531 return new DiscreteObjectKeyFrame ();
1536 * DiscretePointKeyFrame
1538 DiscretePointKeyFrame *
1539 discrete_point_key_frame_new (void)
1541 return new DiscretePointKeyFrame ();
1546 * DispatcherTimer
1548 DispatcherTimer *
1549 dispatcher_timer_new (void)
1551 return new DispatcherTimer ();
1555 void
1556 dispatcher_timer_start (DispatcherTimer *instance)
1558 if (instance == NULL)
1559 return;
1561 instance->Start ();
1565 void
1566 dispatcher_timer_stop (DispatcherTimer *instance)
1568 if (instance == NULL)
1569 return;
1571 instance->Stop ();
1576 * DoubleAnimation
1578 DoubleAnimation *
1579 double_animation_new (void)
1581 return new DoubleAnimation ();
1586 * DoubleAnimationUsingKeyFrames
1588 DoubleAnimationUsingKeyFrames *
1589 double_animation_using_key_frames_new (void)
1591 return new DoubleAnimationUsingKeyFrames ();
1596 * DoubleCollection
1598 DoubleCollection *
1599 double_collection_new (void)
1601 return new DoubleCollection ();
1606 * DoubleKeyFrame
1608 DoubleKeyFrame *
1609 double_key_frame_new (void)
1611 return new DoubleKeyFrame ();
1616 * DoubleKeyFrameCollection
1618 DoubleKeyFrameCollection *
1619 double_key_frame_collection_new (void)
1621 return new DoubleKeyFrameCollection ();
1626 * Downloader
1628 void *
1629 downloader_create_web_request (Downloader *instance, const char *method, const char *uri)
1631 if (instance == NULL)
1632 return NULL;
1634 return instance->CreateWebRequest (method, uri);
1638 Downloader *
1639 downloader_new (void)
1641 return new Downloader ();
1645 void
1646 downloader_notify_failed (Downloader *instance, const char *msg)
1648 if (instance == NULL)
1649 return;
1651 instance->NotifyFailed (msg);
1655 void
1656 downloader_notify_finished (Downloader *instance, const char *final_uri)
1658 if (instance == NULL)
1659 return;
1661 instance->NotifyFinished (final_uri);
1665 void
1666 downloader_notify_size (Downloader *instance, gint64 size)
1668 if (instance == NULL)
1669 return;
1671 instance->NotifySize (size);
1675 void
1676 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)
1678 Downloader::SetFunctions (create_state, destroy_state, open, send, abort, header, body, request, response_header_callback, get_response);
1682 void
1683 downloader_write (Downloader *instance, void *buf, gint32 offset, gint32 n)
1685 if (instance == NULL)
1686 return;
1688 instance->Write (buf, offset, n);
1693 * DownloaderRequest
1695 void
1696 downloader_request_free (DownloaderRequest *instance)
1698 delete instance;
1702 void
1703 downloader_request_abort (DownloaderRequest *instance)
1705 if (instance == NULL)
1706 return;
1708 instance->Abort ();
1712 DownloaderResponse *
1713 downloader_request_get_downloader_response (DownloaderRequest *instance)
1715 if (instance == NULL)
1716 return NULL;
1718 return instance->GetDownloaderResponse ();
1722 bool
1723 downloader_request_get_response (DownloaderRequest *instance, DownloaderResponseStartedHandler started, DownloaderResponseDataAvailableHandler available, DownloaderResponseFinishedHandler finished, gpointer context)
1725 if (instance == NULL)
1726 return false;
1728 return instance->GetResponse (started, available, finished, context);
1732 const bool
1733 downloader_request_is_aborted (DownloaderRequest *instance)
1735 if (instance == NULL)
1736 return false;
1738 return instance->IsAborted ();
1742 void
1743 downloader_request_set_body (DownloaderRequest *instance, void *body, int size)
1745 if (instance == NULL)
1746 return;
1748 instance->SetBody (body, size);
1752 void
1753 downloader_request_set_http_header (DownloaderRequest *instance, const char *name, const char *value)
1755 if (instance == NULL)
1756 return;
1758 instance->SetHttpHeader (name, value);
1763 * DownloaderResponse
1765 void
1766 downloader_response_free (DownloaderResponse *instance)
1768 delete instance;
1772 void
1773 downloader_response_abort (DownloaderResponse *instance)
1775 if (instance == NULL)
1776 return;
1778 instance->Abort ();
1783 downloader_response_get_response_status (DownloaderResponse *instance)
1785 if (instance == NULL)
1786 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1787 return (int) 0;
1789 return instance->GetResponseStatus ();
1793 const char *
1794 downloader_response_get_response_status_text (DownloaderResponse *instance)
1796 if (instance == NULL)
1797 return NULL;
1799 return instance->GetResponseStatusText ();
1803 void
1804 downloader_response_set_header_visitor (DownloaderResponse *instance, DownloaderResponseHeaderCallback visitor, gpointer context)
1806 if (instance == NULL)
1807 return;
1809 instance->SetHeaderVisitor (visitor, context);
1814 * DownloadProgressEventArgs
1816 double
1817 download_progress_event_args_get_progress (DownloadProgressEventArgs *instance)
1819 if (instance == NULL)
1820 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1821 return (double) 0;
1823 return instance->GetProgress ();
1828 * DrawingAttributes
1830 DrawingAttributes *
1831 drawing_attributes_new (void)
1833 return new DrawingAttributes ();
1838 * DropShadowEffect
1840 DropShadowEffect *
1841 drop_shadow_effect_new (void)
1843 return new DropShadowEffect ();
1848 * EasingColorKeyFrame
1850 EasingColorKeyFrame *
1851 easing_color_key_frame_new (void)
1853 return new EasingColorKeyFrame ();
1858 * EasingDoubleKeyFrame
1860 EasingDoubleKeyFrame *
1861 easing_double_key_frame_new (void)
1863 return new EasingDoubleKeyFrame ();
1868 * EasingFunctionBase
1870 EasingFunctionBase *
1871 easing_function_base_new (void)
1873 return new EasingFunctionBase ();
1877 void
1878 easing_function_base_set_easing_function (EasingFunctionBase *instance, EasingFunction value)
1880 if (instance == NULL)
1881 return;
1883 instance->SetEasingFunction (value);
1888 * EasingPointKeyFrame
1890 EasingPointKeyFrame *
1891 easing_point_key_frame_new (void)
1893 return new EasingPointKeyFrame ();
1898 * Effect
1900 Effect *
1901 effect_new (void)
1903 return new Effect ();
1908 * ElasticEase
1910 double
1911 elastic_ease_ease_in_core (ElasticEase *instance, double normalizedTime)
1913 if (instance == NULL)
1914 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1915 return (double) 0;
1917 return instance->EaseInCore (normalizedTime);
1921 ElasticEase *
1922 elastic_ease_new (void)
1924 return new ElasticEase ();
1929 * Ellipse
1931 Ellipse *
1932 ellipse_new (void)
1934 return new Ellipse ();
1939 * EllipseGeometry
1941 EllipseGeometry *
1942 ellipse_geometry_new (void)
1944 return new EllipseGeometry ();
1949 * ErrorEventArgs
1952 error_event_args_get_error_code (ErrorEventArgs *instance)
1954 if (instance == NULL)
1955 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1956 return (int) 0;
1958 return instance->GetErrorCode ();
1962 const char *
1963 error_event_args_get_error_message (ErrorEventArgs *instance)
1965 if (instance == NULL)
1966 return NULL;
1968 return instance->GetErrorMessage ();
1973 error_event_args_get_error_type (ErrorEventArgs *instance)
1975 if (instance == NULL)
1976 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1977 return (int) 0;
1979 return instance->GetErrorType ();
1983 gpointer
1984 error_event_args_get_moon_error (ErrorEventArgs *instance)
1986 if (instance == NULL)
1987 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1988 return (gpointer) 0;
1990 return instance->GetMoonError ();
1995 * EventObject
1998 event_object_add_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2000 if (instance == NULL)
2001 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2002 return (int) 0;
2004 return instance->AddHandler (event_id, handler, data, data_dtor);
2008 void
2009 event_object_add_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2011 if (instance == NULL)
2012 return;
2014 instance->AddOnEventHandler (event_id, handler, data, data_dtor);
2018 void
2019 event_object_add_toggle_ref_notifier (EventObject *instance, ToggleNotifyHandler tr)
2021 if (instance == NULL)
2022 return;
2024 instance->AddToggleRefNotifier (tr);
2029 event_object_add_xaml_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2031 if (instance == NULL)
2032 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2033 return (int) 0;
2035 return instance->AddXamlHandler (event_id, handler, data, data_dtor);
2039 void
2040 event_object_do_emit_current_context (EventObject *instance, int event_id, EventArgs *calldata)
2042 if (instance == NULL)
2043 return;
2045 instance->DoEmitCurrentContext (event_id, calldata);
2050 event_object_get_object_type (EventObject *instance)
2052 if (instance == NULL)
2053 return Type::INVALID;
2055 return instance->GetObjectType ();
2059 const char *
2060 event_object_get_type_name (EventObject *instance)
2062 if (instance == NULL)
2063 return NULL;
2065 return instance->GetTypeName ();
2069 void
2070 event_object_ref (EventObject *instance)
2072 if (instance == NULL)
2073 return;
2075 instance->ref ();
2080 event_object_remove_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data)
2082 if (instance == NULL)
2083 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2084 return (int) 0;
2086 return instance->RemoveHandler (event_id, handler, data);
2090 void
2091 event_object_remove_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data)
2093 if (instance == NULL)
2094 return;
2096 instance->RemoveOnEventHandler (event_id, handler, data);
2100 void
2101 event_object_remove_toggle_ref_notifier (EventObject *instance)
2103 if (instance == NULL)
2104 return;
2106 instance->RemoveToggleRefNotifier ();
2110 void
2111 event_object_set_object_type (EventObject *instance, int value)
2113 if (instance == NULL)
2114 return;
2116 instance->SetObjectType ((Type::Kind) value);
2120 void
2121 event_object_unref (EventObject *instance)
2123 if (instance == NULL)
2124 return;
2126 instance->unref ();
2131 * EventTrigger
2133 EventTrigger *
2134 event_trigger_new (void)
2136 return new EventTrigger ();
2141 * ExponentialEase
2143 double
2144 exponential_ease_ease_in_core (ExponentialEase *instance, double normalizedTime)
2146 if (instance == NULL)
2147 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2148 return (double) 0;
2150 return instance->EaseInCore (normalizedTime);
2154 ExponentialEase *
2155 exponential_ease_new (void)
2157 return new ExponentialEase ();
2162 * ExtensionPart
2164 ExtensionPart *
2165 extension_part_new (void)
2167 return new ExtensionPart ();
2172 * ExternalDecoder
2174 ExternalDecoder *
2175 external_decoder_new (Media *media, IMediaStream *stream, void *instance, const char *name, ExternalDecoder_DecodeFrameAsyncCallback decode_frame_async, ExternalDecoder_OpenDecoderAsyncCallback open_decoder_async, ExternalDecoder_CleanupCallback cleanup, ExternalDecoder_CleanStateCallback clean_state, ExternalDecoder_HasDelayedFrameCallback has_delayed_frame, ExternalDecoder_DisposeCallback dispose, ExternalDecoder_DtorCallback dtor)
2177 return new ExternalDecoder (media, stream, instance, name, decode_frame_async, open_decoder_async, cleanup, clean_state, has_delayed_frame, dispose, dtor);
2182 * ExternalDecoderInfo
2184 ExternalDecoderInfo *
2185 external_decoder_info_new (void *instance, const char *name, ExternalDecoderInfo_SupportsCallback supports, ExternalDecoderInfo_Create create, ExternalDecoderInfo_dtor dtor)
2187 return new ExternalDecoderInfo (instance, name, supports, create, dtor);
2192 * ExternalDemuxer
2194 gint32
2195 external_demuxer_add_stream (ExternalDemuxer *instance, IMediaStream *stream)
2197 if (instance == NULL)
2198 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2199 return (gint32) 0;
2201 return instance->AddStream (stream);
2205 void
2206 external_demuxer_clear_callbacks (ExternalDemuxer *instance)
2208 if (instance == NULL)
2209 return;
2211 instance->ClearCallbacks ();
2215 void
2216 external_demuxer_set_can_seek (ExternalDemuxer *instance, bool value)
2218 if (instance == NULL)
2219 return;
2221 instance->SetCanSeek (value);
2226 * ExternalPart
2228 ExternalPart *
2229 external_part_new (void)
2231 return new ExternalPart ();
2236 * ExternalPartCollection
2238 ExternalPartCollection *
2239 external_part_collection_new (void)
2241 return new ExternalPartCollection ();
2246 * FrameworkElement
2248 bool
2249 framework_element_apply_template (FrameworkElement *instance)
2251 if (instance == NULL)
2252 return false;
2254 return instance->ApplyTemplate ();
2258 Size
2259 framework_element_arrange_override (FrameworkElement *instance, Size finalSize)
2261 if (instance == NULL)
2262 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2263 return (Size) 0;
2265 return instance->ArrangeOverride (finalSize);
2269 FrameworkElement *
2270 framework_element_new (void)
2272 return new FrameworkElement ();
2276 DependencyObject *
2277 framework_element_get_logical_parent (FrameworkElement *instance)
2279 if (instance == NULL)
2280 return NULL;
2282 return instance->GetLogicalParent ();
2286 Size
2287 framework_element_measure_override (FrameworkElement *instance, Size availableSize)
2289 if (instance == NULL)
2290 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2291 return (Size) 0;
2293 return instance->MeasureOverride (availableSize);
2297 void
2298 framework_element_register_managed_overrides (FrameworkElement *instance, MeasureOverrideCallback measure_cb, ArrangeOverrideCallback arrange_cb, GetDefaultTemplateCallback get_default_template_cb, LoadedCallback loaded_cb)
2300 if (instance == NULL)
2301 return;
2303 instance->RegisterManagedOverrides (measure_cb, arrange_cb, get_default_template_cb, loaded_cb);
2307 void
2308 framework_element_set_default_style (FrameworkElement *instance, Style *value)
2310 if (instance == NULL)
2311 return;
2313 instance->SetDefaultStyle (value);
2317 void
2318 framework_element_set_logical_parent (FrameworkElement *instance, DependencyObject *logical_parent, MoonError *error)
2320 if (instance == NULL)
2321 return;
2323 if (error == NULL)
2324 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2325 instance->SetLogicalParent (logical_parent, error);
2330 * FrameworkTemplate
2332 FrameworkTemplate *
2333 framework_template_new (void)
2335 return new FrameworkTemplate ();
2339 DependencyObject *
2340 framework_template_get_visual_tree (FrameworkTemplate *instance, FrameworkElement *templateBindingSource)
2342 if (instance == NULL)
2343 return NULL;
2345 return instance->GetVisualTree (templateBindingSource);
2350 * GeneralTransform
2352 GeneralTransform *
2353 general_transform_new (void)
2355 return new GeneralTransform ();
2359 Matrix *
2360 general_transform_get_matrix (GeneralTransform *instance)
2362 if (instance == NULL)
2363 return NULL;
2365 return instance->GetMatrix ();
2370 * Geometry
2372 Geometry *
2373 geometry_new (void)
2375 return new Geometry ();
2379 Rect
2380 geometry_get_bounds (Geometry *instance)
2382 if (instance == NULL)
2383 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2384 return (Rect) 0;
2386 return instance->GetBounds ();
2391 * GeometryCollection
2393 GeometryCollection *
2394 geometry_collection_new (void)
2396 return new GeometryCollection ();
2401 * GeometryGroup
2403 GeometryGroup *
2404 geometry_group_new (void)
2406 return new GeometryGroup ();
2411 * Glyphs
2413 Glyphs *
2414 glyphs_new (void)
2416 return new Glyphs ();
2421 * GradientBrush
2423 GradientBrush *
2424 gradient_brush_new (void)
2426 return new GradientBrush ();
2431 * GradientStop
2433 GradientStop *
2434 gradient_stop_new (void)
2436 return new GradientStop ();
2441 * GradientStopCollection
2443 GradientStopCollection *
2444 gradient_stop_collection_new (void)
2446 return new GradientStopCollection ();
2451 * Grid
2453 Grid *
2454 grid_new (void)
2456 return new Grid ();
2461 * HitTestCollection
2463 HitTestCollection *
2464 hit_test_collection_new (void)
2466 return new HitTestCollection ();
2471 * Icon
2473 Icon *
2474 icon_new (void)
2476 return new Icon ();
2481 * IconCollection
2483 IconCollection *
2484 icon_collection_new (void)
2486 return new IconCollection ();
2491 * Image
2493 Image *
2494 image_new (void)
2496 return new Image ();
2500 void
2501 image_set_source (Image *instance, ImageSource *source)
2503 if (instance == NULL)
2504 return;
2506 instance->SetSource (source);
2511 * ImageBrush
2513 ImageBrush *
2514 image_brush_new (void)
2516 return new ImageBrush ();
2521 * ImageSource
2523 ImageSource *
2524 image_source_new (void)
2526 return new ImageSource ();
2531 * IMediaDecoder
2533 void
2534 imedia_decoder_report_decode_frame_completed (IMediaDecoder *instance, MediaFrame *frame)
2536 if (instance == NULL)
2537 return;
2539 instance->ReportDecodeFrameCompleted (frame);
2543 void
2544 imedia_decoder_report_open_decoder_completed (IMediaDecoder *instance)
2546 if (instance == NULL)
2547 return;
2549 instance->ReportOpenDecoderCompleted ();
2553 void
2554 imedia_decoder_set_pixel_format (IMediaDecoder *instance, int value)
2556 if (instance == NULL)
2557 return;
2559 instance->SetPixelFormat ((MoonPixelFormat) value);
2564 * IMediaDemuxer
2566 void
2567 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer *instance, int diagnosticKind, gint64 diagnosticValue)
2569 if (instance == NULL)
2570 return;
2572 instance->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind) diagnosticKind, diagnosticValue);
2576 void
2577 imedia_demuxer_report_get_frame_completed (IMediaDemuxer *instance, MediaFrame *frame)
2579 if (instance == NULL)
2580 return;
2582 instance->ReportGetFrameCompleted (frame);
2586 void
2587 imedia_demuxer_report_get_frame_progress (IMediaDemuxer *instance, double bufferingProgress)
2589 if (instance == NULL)
2590 return;
2592 instance->ReportGetFrameProgress (bufferingProgress);
2596 void
2597 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer *instance)
2599 if (instance == NULL)
2600 return;
2602 instance->ReportOpenDemuxerCompleted ();
2606 void
2607 imedia_demuxer_report_seek_completed (IMediaDemuxer *instance, guint64 pts)
2609 if (instance == NULL)
2610 return;
2612 instance->ReportSeekCompleted (pts);
2616 void
2617 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer *instance, IMediaStream *stream)
2619 if (instance == NULL)
2620 return;
2622 instance->ReportSwitchMediaStreamCompleted (stream);
2627 * IMediaObject
2629 Media *
2630 imedia_object_get_media_reffed (IMediaObject *instance)
2632 if (instance == NULL)
2633 return NULL;
2635 return instance->GetMediaReffed ();
2639 void
2640 imedia_object_report_error_occurred (IMediaObject *instance, const char *message)
2642 if (instance == NULL)
2643 return;
2645 instance->ReportErrorOccurred (message);
2650 * IMediaStream
2652 const char *
2653 imedia_stream_get_codec (IMediaStream *instance)
2655 if (instance == NULL)
2656 return NULL;
2658 return instance->GetCodec ();
2663 imedia_stream_get_codec_id (IMediaStream *instance)
2665 if (instance == NULL)
2666 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2667 return (int) 0;
2669 return instance->GetCodecId ();
2673 guint64
2674 imedia_stream_get_duration (IMediaStream *instance)
2676 if (instance == NULL)
2677 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2678 return (guint64) 0;
2680 return instance->GetDuration ();
2684 void *
2685 imedia_stream_get_extra_data (IMediaStream *instance)
2687 if (instance == NULL)
2688 return NULL;
2690 return instance->GetExtraData ();
2695 imedia_stream_get_extra_data_size (IMediaStream *instance)
2697 if (instance == NULL)
2698 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2699 return (int) 0;
2701 return instance->GetExtraDataSize ();
2706 imedia_stream_get_stream_type (IMediaStream *instance)
2708 if (instance == NULL)
2709 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2710 return (MediaStreamType) 0;
2712 return instance->GetStreamType ();
2716 void
2717 imedia_stream_set_codec_id (IMediaStream *instance, int value)
2719 if (instance == NULL)
2720 return;
2722 instance->SetCodecId (value);
2726 void
2727 imedia_stream_set_duration (IMediaStream *instance, guint64 value)
2729 if (instance == NULL)
2730 return;
2732 instance->SetDuration (value);
2736 void
2737 imedia_stream_set_extra_data (IMediaStream *instance, void *value)
2739 if (instance == NULL)
2740 return;
2742 instance->SetExtraData (value);
2746 void
2747 imedia_stream_set_extra_data_size (IMediaStream *instance, int value)
2749 if (instance == NULL)
2750 return;
2752 instance->SetExtraDataSize (value);
2757 * InkPresenter
2759 InkPresenter *
2760 ink_presenter_new (void)
2762 return new InkPresenter ();
2767 * Inline
2769 Inline *
2770 inline_new (void)
2772 return new Inline ();
2777 * InlineCollection
2779 InlineCollection *
2780 inline_collection_new (void)
2782 return new InlineCollection ();
2787 * InputMethod
2789 InputMethod *
2790 input_method_new (void)
2792 return new InputMethod ();
2797 * ItemCollection
2799 ItemCollection *
2800 item_collection_new (void)
2802 return new ItemCollection ();
2807 * Keyboard
2810 keyboard_get_modifiers (void)
2812 return Keyboard::GetModifiers ();
2817 * KeyEventArgs
2820 key_event_args_get_key (KeyEventArgs *instance)
2822 if (instance == NULL)
2823 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2824 return (int) 0;
2826 return instance->GetKey ();
2831 key_event_args_get_platform_key_code (KeyEventArgs *instance)
2833 if (instance == NULL)
2834 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2835 return (int) 0;
2837 return instance->GetPlatformKeyCode ();
2841 KeyEventArgs *
2842 key_event_args_new (void)
2844 return new KeyEventArgs ();
2849 * KeyFrameCollection
2851 KeyFrameCollection *
2852 key_frame_collection_new (void)
2854 return new KeyFrameCollection ();
2859 * KeySpline
2861 KeySpline *
2862 key_spline_new (void)
2864 return new KeySpline ();
2869 * Line
2871 Line *
2872 line_new (void)
2874 return new Line ();
2879 * LinearColorKeyFrame
2881 LinearColorKeyFrame *
2882 linear_color_key_frame_new (void)
2884 return new LinearColorKeyFrame ();
2889 * LinearDoubleKeyFrame
2891 LinearDoubleKeyFrame *
2892 linear_double_key_frame_new (void)
2894 return new LinearDoubleKeyFrame ();
2899 * LinearGradientBrush
2901 LinearGradientBrush *
2902 linear_gradient_brush_new (void)
2904 return new LinearGradientBrush ();
2909 * LinearPointKeyFrame
2911 LinearPointKeyFrame *
2912 linear_point_key_frame_new (void)
2914 return new LinearPointKeyFrame ();
2919 * LineBreak
2921 LineBreak *
2922 line_break_new (void)
2924 return new LineBreak ();
2929 * LineGeometry
2931 LineGeometry *
2932 line_geometry_new (void)
2934 return new LineGeometry ();
2939 * LineSegment
2941 LineSegment *
2942 line_segment_new (void)
2944 return new LineSegment ();
2949 * LogReadyRoutedEventArgs
2951 LogReadyRoutedEventArgs *
2952 log_ready_routed_event_args_new (void)
2954 return new LogReadyRoutedEventArgs ();
2959 * Matrix
2961 cairo_matrix_t *
2962 matrix_get_matrix_values (Matrix *instance)
2964 if (instance == NULL)
2965 return NULL;
2967 return instance->GetMatrixValues ();
2971 Matrix *
2972 matrix_new (void)
2974 return new Matrix ();
2979 * Matrix3D
2981 gpointer
2982 matrix3_d_get_matrix_values (Matrix3D *instance)
2984 if (instance == NULL)
2985 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2986 return (gpointer) 0;
2988 return instance->GetMatrixValues ();
2992 Matrix3D *
2993 matrix3_d_new (void)
2995 return new Matrix3D ();
3000 * Matrix3DProjection
3002 Matrix3DProjection *
3003 matrix3_dprojection_new (void)
3005 return new Matrix3DProjection ();
3010 * MatrixTransform
3012 MatrixTransform *
3013 matrix_transform_new (void)
3015 return new MatrixTransform ();
3020 * Media
3022 void
3023 media_register_decoder (DecoderInfo *info)
3025 Media::RegisterDecoder (info);
3030 * MediaAttribute
3032 MediaAttribute *
3033 media_attribute_new (void)
3035 return new MediaAttribute ();
3040 * MediaAttributeCollection
3042 MediaAttribute *
3043 media_attribute_collection_get_item_by_name (MediaAttributeCollection *instance, const char *name)
3045 if (instance == NULL)
3046 return NULL;
3048 return instance->GetItemByName (name);
3052 MediaAttributeCollection *
3053 media_attribute_collection_new (void)
3055 return new MediaAttributeCollection ();
3060 * MediaBase
3062 MediaBase *
3063 media_base_new (void)
3065 return new MediaBase ();
3069 void
3070 media_base_set_source (MediaBase *instance, const char *uri)
3072 if (instance == NULL)
3073 return;
3075 instance->SetSource (uri);
3080 * MediaElement
3082 MediaElement *
3083 media_element_new (void)
3085 return new MediaElement ();
3089 void
3090 media_element_pause (MediaElement *instance)
3092 if (instance == NULL)
3093 return;
3095 instance->Pause ();
3099 void
3100 media_element_play (MediaElement *instance)
3102 if (instance == NULL)
3103 return;
3105 instance->Play ();
3109 void
3110 media_element_report_error_occurred (MediaElement *instance, const char *args)
3112 if (instance == NULL)
3113 return;
3115 instance->ReportErrorOccurred (args);
3119 IMediaDemuxer *
3120 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)
3122 if (instance == NULL)
3123 return NULL;
3125 return instance->SetDemuxerSource (context, close_demuxer, get_diagnostic, get_sample, open_demuxer, seek, switch_media_stream);
3129 void
3130 media_element_set_stream_source (MediaElement *instance, ManagedStreamCallbacks *stream)
3132 if (instance == NULL)
3133 return;
3135 instance->SetStreamSource (stream);
3139 void
3140 media_element_stop (MediaElement *instance)
3142 if (instance == NULL)
3143 return;
3145 instance->Stop ();
3150 * MediaFrame
3152 void
3153 media_frame_add_state (MediaFrame *instance, int state)
3155 if (instance == NULL)
3156 return;
3158 instance->AddState ((MediaFrameState) state);
3162 guint8 *
3163 media_frame_get_buffer (MediaFrame *instance)
3165 if (instance == NULL)
3166 return NULL;
3168 return instance->GetBuffer ();
3172 guint32
3173 media_frame_get_buf_len (MediaFrame *instance)
3175 if (instance == NULL)
3176 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3177 return (guint32) 0;
3179 return instance->GetBufLen ();
3183 gint32
3184 media_frame_get_height (MediaFrame *instance)
3186 if (instance == NULL)
3187 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3188 return (gint32) 0;
3190 return instance->GetHeight ();
3194 guint64
3195 media_frame_get_pts (MediaFrame *instance)
3197 if (instance == NULL)
3198 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3199 return (guint64) 0;
3201 return instance->GetPts ();
3205 gint32
3206 media_frame_get_width (MediaFrame *instance)
3208 if (instance == NULL)
3209 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3210 return (gint32) 0;
3212 return instance->GetWidth ();
3216 bool
3217 media_frame_is_key_frame (MediaFrame *instance)
3219 if (instance == NULL)
3220 return false;
3222 return instance->IsKeyFrame ();
3226 MediaFrame *
3227 media_frame_new (IMediaStream *stream, guint8 *buffer, guint32 buflen, guint64 pts, bool keyframe)
3229 return new MediaFrame (stream, buffer, buflen, pts, keyframe);
3233 void
3234 media_frame_set_buffer (MediaFrame *instance, guint8 *value)
3236 if (instance == NULL)
3237 return;
3239 instance->SetBuffer (value);
3243 void
3244 media_frame_set_buf_len (MediaFrame *instance, guint32 value)
3246 if (instance == NULL)
3247 return;
3249 instance->SetBufLen (value);
3253 void
3254 media_frame_set_data_stride (MediaFrame *instance, guint8 *a, guint8 *b, guint8 *c, guint8 *d)
3256 if (instance == NULL)
3257 return;
3259 instance->SetDataStride (a, b, c, d);
3263 void
3264 media_frame_set_decoder_specific_data (MediaFrame *instance, void *value)
3266 if (instance == NULL)
3267 return;
3269 instance->SetDecoderSpecificData (value);
3273 void
3274 media_frame_set_height (MediaFrame *instance, gint32 value)
3276 if (instance == NULL)
3277 return;
3279 instance->SetHeight (value);
3283 void
3284 media_frame_set_pts (MediaFrame *instance, guint64 value)
3286 if (instance == NULL)
3287 return;
3289 instance->SetPts (value);
3293 void
3294 media_frame_set_src_slide_h (MediaFrame *instance, int value)
3296 if (instance == NULL)
3297 return;
3299 instance->SetSrcSlideH (value);
3303 void
3304 media_frame_set_src_slide_y (MediaFrame *instance, int value)
3306 if (instance == NULL)
3307 return;
3309 instance->SetSrcSlideY (value);
3313 void
3314 media_frame_set_src_stride (MediaFrame *instance, int a, int b, int c, int d)
3316 if (instance == NULL)
3317 return;
3319 instance->SetSrcStride (a, b, c, d);
3323 void
3324 media_frame_set_width (MediaFrame *instance, gint32 value)
3326 if (instance == NULL)
3327 return;
3329 instance->SetWidth (value);
3334 * MoonWindow
3336 bool
3337 moon_window_get_transparent (MoonWindow *instance)
3339 if (instance == NULL)
3340 return false;
3342 return instance->GetTransparent ();
3346 void
3347 moon_window_set_transparent (MoonWindow *instance, bool flag)
3349 if (instance == NULL)
3350 return;
3352 instance->SetTransparent (flag);
3357 * MoonWindowGtk
3359 void *
3360 moon_window_gtk_get_native_widget (MoonWindowGtk *instance)
3362 if (instance == NULL)
3363 return NULL;
3365 return instance->GetNativeWidget ();
3369 MoonWindowGtk *
3370 moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface)
3372 return new MoonWindowGtk (fullscreen, w, h, parent, surface);
3377 * MouseButtonEventArgs
3379 MouseButtonEventArgs *
3380 mouse_button_event_args_new (void)
3382 return new MouseButtonEventArgs ();
3387 * MouseEventArgs
3389 void
3390 mouse_event_args_get_position (MouseEventArgs *instance, UIElement *relative_to, double *x, double *y)
3392 if (instance == NULL)
3393 return;
3395 instance->GetPosition (relative_to, x, y);
3399 StylusInfo *
3400 mouse_event_args_get_stylus_info (MouseEventArgs *instance)
3402 if (instance == NULL)
3403 return NULL;
3405 return instance->GetStylusInfo ();
3409 StylusPointCollection *
3410 mouse_event_args_get_stylus_points (MouseEventArgs *instance, UIElement *ink_presenter)
3412 if (instance == NULL)
3413 return NULL;
3415 return instance->GetStylusPoints (ink_presenter);
3419 MouseEventArgs *
3420 mouse_event_args_new (void)
3422 return new MouseEventArgs ();
3427 * MouseWheelEventArgs
3430 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs *instance)
3432 if (instance == NULL)
3433 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3434 return (int) 0;
3436 return instance->GetWheelDelta ();
3440 MouseWheelEventArgs *
3441 mouse_wheel_event_args_new (void)
3443 return new MouseWheelEventArgs ();
3448 * MultiScaleImage
3450 Point
3451 multi_scale_image_element_to_logical_point (MultiScaleImage *instance, Point elementPoint)
3453 if (instance == NULL)
3454 return Point (0, 0);
3456 return instance->ElementToLogicalPoint (elementPoint);
3460 void
3461 multi_scale_image_emit_image_failed (MultiScaleImage *instance)
3463 if (instance == NULL)
3464 return;
3466 instance->EmitImageFailed ();
3470 void
3471 multi_scale_image_emit_image_open_failed (MultiScaleImage *instance)
3473 if (instance == NULL)
3474 return;
3476 instance->EmitImageOpenFailed ();
3480 void
3481 multi_scale_image_emit_motion_finished (MultiScaleImage *instance)
3483 if (instance == NULL)
3484 return;
3486 instance->EmitMotionFinished ();
3490 void
3491 multi_scale_image_handle_dz_parsed (MultiScaleImage *instance)
3493 if (instance == NULL)
3494 return;
3496 instance->HandleDzParsed ();
3500 void
3501 multi_scale_image_invalidate_tile_layer (MultiScaleImage *instance, int level, int tilePositionX, int tilePositionY, int tileLayer)
3503 if (instance == NULL)
3504 return;
3506 instance->InvalidateTileLayer (level, tilePositionX, tilePositionY, tileLayer);
3510 Point
3511 multi_scale_image_logical_to_element_point (MultiScaleImage *instance, Point logicalPoint)
3513 if (instance == NULL)
3514 return Point (0, 0);
3516 return instance->LogicalToElementPoint (logicalPoint);
3520 MultiScaleImage *
3521 multi_scale_image_new (void)
3523 return new MultiScaleImage ();
3527 void
3528 multi_scale_image_on_source_property_changed (MultiScaleImage *instance)
3530 if (instance == NULL)
3531 return;
3533 instance->OnSourcePropertyChanged ();
3537 void
3538 multi_scale_image_zoom_about_logical_point (MultiScaleImage *instance, double zoomIncrementFactor, double zoomCenterLogicalX, double zoomCenterLogicalY)
3540 if (instance == NULL)
3541 return;
3543 instance->ZoomAboutLogicalPoint (zoomIncrementFactor, zoomCenterLogicalX, zoomCenterLogicalY);
3548 * MultiScaleSubImage
3550 gint32
3551 multi_scale_sub_image_get_zindex (MultiScaleSubImage *instance)
3553 if (instance == NULL)
3554 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3555 return (gint32) 0;
3557 return instance->GetZIndex ();
3561 MultiScaleSubImage *
3562 multi_scale_sub_image_new (void)
3564 return new MultiScaleSubImage ();
3569 * MultiScaleSubImageCollection
3571 MultiScaleSubImageCollection *
3572 multi_scale_sub_image_collection_new (void)
3574 return new MultiScaleSubImageCollection ();
3579 * MultiScaleTileSource
3581 void
3582 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource *instance, int level, int tilePositionX, int tilePositionY, int tileLayer)
3584 if (instance == NULL)
3585 return;
3587 instance->InvalidateTileLayer (level, tilePositionX, tilePositionY, tileLayer);
3591 MultiScaleTileSource *
3592 multi_scale_tile_source_new (void)
3594 return new MultiScaleTileSource ();
3598 void
3599 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource *instance, get_image_uri_func func)
3601 if (instance == NULL)
3602 return;
3604 instance->set_image_uri_func (func);
3609 * NameScope
3611 NameScope *
3612 name_scope_new (void)
3614 return new NameScope ();
3619 * ObjectAnimationUsingKeyFrames
3621 ObjectAnimationUsingKeyFrames *
3622 object_animation_using_key_frames_new (void)
3624 return new ObjectAnimationUsingKeyFrames ();
3629 * ObjectKeyFrame
3631 ObjectKeyFrame *
3632 object_key_frame_new (void)
3634 return new ObjectKeyFrame ();
3639 * ObjectKeyFrameCollection
3641 ObjectKeyFrameCollection *
3642 object_key_frame_collection_new (void)
3644 return new ObjectKeyFrameCollection ();
3649 * OutOfBrowserSettings
3651 OutOfBrowserSettings *
3652 out_of_browser_settings_new (void)
3654 return new OutOfBrowserSettings ();
3659 * Panel
3661 Panel *
3662 panel_new (void)
3664 return new Panel ();
3669 * ParallelTimeline
3671 ParallelTimeline *
3672 parallel_timeline_new (void)
3674 return new ParallelTimeline ();
3679 * PasswordBox
3681 PasswordBox *
3682 password_box_new (void)
3684 return new PasswordBox ();
3689 * Path
3691 Path *
3692 path_new (void)
3694 return new Path ();
3699 * PathFigure
3701 PathFigure *
3702 path_figure_new (void)
3704 return new PathFigure ();
3709 * PathFigureCollection
3711 PathFigureCollection *
3712 path_figure_collection_new (void)
3714 return new PathFigureCollection ();
3719 * PathGeometry
3721 PathGeometry *
3722 path_geometry_new (void)
3724 return new PathGeometry ();
3729 * PathSegment
3731 PathSegment *
3732 path_segment_new (void)
3734 return new PathSegment ();
3739 * PathSegmentCollection
3741 PathSegmentCollection *
3742 path_segment_collection_new (void)
3744 return new PathSegmentCollection ();
3749 * PixelShader
3751 PixelShader *
3752 pixel_shader_new (void)
3754 return new PixelShader ();
3759 * PlaneProjection
3761 PlaneProjection *
3762 plane_projection_new (void)
3764 return new PlaneProjection ();
3769 * PointAnimation
3771 PointAnimation *
3772 point_animation_new (void)
3774 return new PointAnimation ();
3779 * PointAnimationUsingKeyFrames
3781 PointAnimationUsingKeyFrames *
3782 point_animation_using_key_frames_new (void)
3784 return new PointAnimationUsingKeyFrames ();
3789 * PointCollection
3791 PointCollection *
3792 point_collection_new (void)
3794 return new PointCollection ();
3799 * PointKeyFrame
3801 PointKeyFrame *
3802 point_key_frame_new (void)
3804 return new PointKeyFrame ();
3809 * PointKeyFrameCollection
3811 PointKeyFrameCollection *
3812 point_key_frame_collection_new (void)
3814 return new PointKeyFrameCollection ();
3819 * PolyBezierSegment
3821 PolyBezierSegment *
3822 poly_bezier_segment_new (void)
3824 return new PolyBezierSegment ();
3828 void
3829 poly_bezier_segment_set_points (PolyBezierSegment *instance, PointCollection *points)
3831 if (instance == NULL)
3832 return;
3834 instance->SetPoints (points);
3839 * Polygon
3841 Polygon *
3842 polygon_new (void)
3844 return new Polygon ();
3849 * Polyline
3851 Polyline *
3852 polyline_new (void)
3854 return new Polyline ();
3859 * PolyLineSegment
3861 PolyLineSegment *
3862 poly_line_segment_new (void)
3864 return new PolyLineSegment ();
3869 * PolyQuadraticBezierSegment
3871 PolyQuadraticBezierSegment *
3872 poly_quadratic_bezier_segment_new (void)
3874 return new PolyQuadraticBezierSegment ();
3879 * Popup
3881 Popup *
3882 popup_new (void)
3884 return new Popup ();
3889 * PowerEase
3891 double
3892 power_ease_ease_in_core (PowerEase *instance, double normalizedTime)
3894 if (instance == NULL)
3895 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3896 return (double) 0;
3898 return instance->EaseInCore (normalizedTime);
3902 PowerEase *
3903 power_ease_new (void)
3905 return new PowerEase ();
3910 * Projection
3912 Projection *
3913 projection_new (void)
3915 return new Projection ();
3920 * PropertyChangedEventArgs
3923 property_changed_event_args_get_id (PropertyChangedEventArgs *instance)
3925 if (instance == NULL)
3926 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3927 return (int) 0;
3929 return instance->GetId ();
3933 Value *
3934 property_changed_event_args_get_new_value (PropertyChangedEventArgs *instance)
3936 if (instance == NULL)
3937 return NULL;
3939 return instance->GetNewValue ();
3943 Value *
3944 property_changed_event_args_get_old_value (PropertyChangedEventArgs *instance)
3946 if (instance == NULL)
3947 return NULL;
3949 return instance->GetOldValue ();
3953 DependencyProperty *
3954 property_changed_event_args_get_property (PropertyChangedEventArgs *instance)
3956 if (instance == NULL)
3957 return NULL;
3959 return instance->GetProperty ();
3964 * QuadraticBezierSegment
3966 QuadraticBezierSegment *
3967 quadratic_bezier_segment_new (void)
3969 return new QuadraticBezierSegment ();
3974 * QuadraticEase
3976 double
3977 quadratic_ease_ease_in_core (QuadraticEase *instance, double normalizedTime)
3979 if (instance == NULL)
3980 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3981 return (double) 0;
3983 return instance->EaseInCore (normalizedTime);
3987 QuadraticEase *
3988 quadratic_ease_new (void)
3990 return new QuadraticEase ();
3995 * QuarticEase
3997 double
3998 quartic_ease_ease_in_core (QuarticEase *instance, double normalizedTime)
4000 if (instance == NULL)
4001 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4002 return (double) 0;
4004 return instance->EaseInCore (normalizedTime);
4008 QuarticEase *
4009 quartic_ease_new (void)
4011 return new QuarticEase ();
4016 * QuinticEase
4018 double
4019 quintic_ease_ease_in_core (QuinticEase *instance, double normalizedTime)
4021 if (instance == NULL)
4022 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4023 return (double) 0;
4025 return instance->EaseInCore (normalizedTime);
4029 QuinticEase *
4030 quintic_ease_new (void)
4032 return new QuinticEase ();
4037 * RadialGradientBrush
4039 RadialGradientBrush *
4040 radial_gradient_brush_new (void)
4042 return new RadialGradientBrush ();
4047 * Rectangle
4049 Rectangle *
4050 rectangle_new (void)
4052 return new Rectangle ();
4057 * RectangleGeometry
4059 RectangleGeometry *
4060 rectangle_geometry_new (void)
4062 return new RectangleGeometry ();
4067 * RenderingEventArgs
4069 TimeSpan
4070 rendering_event_args_get_rendering_time (RenderingEventArgs *instance)
4072 if (instance == NULL)
4073 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4074 return (TimeSpan) 0;
4076 return instance->GetRenderingTime ();
4081 * ResourceDictionary
4083 bool
4084 resource_dictionary_add_with_error (ResourceDictionary *instance, const char *key, Value *value, MoonError *error)
4086 if (instance == NULL)
4087 return false;
4089 if (error == NULL)
4090 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4091 return instance->AddWithError (key, value, error);
4095 bool
4096 resource_dictionary_clear (ResourceDictionary *instance)
4098 if (instance == NULL)
4099 return false;
4101 return instance->Clear ();
4105 bool
4106 resource_dictionary_contains_key (ResourceDictionary *instance, const char *key)
4108 if (instance == NULL)
4109 return false;
4111 return instance->ContainsKey (key);
4115 Value *
4116 resource_dictionary_get (ResourceDictionary *instance, const char *key, bool *exists)
4118 if (instance == NULL)
4119 return NULL;
4121 return instance->Get (key, exists);
4125 bool
4126 resource_dictionary_remove (ResourceDictionary *instance, const char *key)
4128 if (instance == NULL)
4129 return false;
4131 return instance->Remove (key);
4135 ResourceDictionary *
4136 resource_dictionary_new (void)
4138 return new ResourceDictionary ();
4142 bool
4143 resource_dictionary_set (ResourceDictionary *instance, const char *key, Value *value)
4145 if (instance == NULL)
4146 return false;
4148 return instance->Set (key, value);
4153 * ResourceDictionaryCollection
4155 ResourceDictionaryCollection *
4156 resource_dictionary_collection_new (void)
4158 return new ResourceDictionaryCollection ();
4163 * ResourceDictionaryIterator
4165 const char *
4166 resource_dictionary_iterator_get_current_key (ResourceDictionaryIterator *instance, int *err)
4168 if (instance == NULL)
4169 return NULL;
4171 return instance->GetCurrentKey ((CollectionIteratorError*) err);
4176 * RotateTransform
4178 RotateTransform *
4179 rotate_transform_new (void)
4181 return new RotateTransform ();
4186 * RoutedEventArgs
4188 bool
4189 routed_event_args_get_handled (RoutedEventArgs *instance)
4191 if (instance == NULL)
4192 return false;
4194 return instance->GetHandled ();
4198 DependencyObject *
4199 routed_event_args_get_source (RoutedEventArgs *instance)
4201 if (instance == NULL)
4202 return NULL;
4204 return instance->GetSource ();
4208 RoutedEventArgs *
4209 routed_event_args_new (void)
4211 return new RoutedEventArgs ();
4215 void
4216 routed_event_args_set_handled (RoutedEventArgs *instance, bool handled)
4218 if (instance == NULL)
4219 return;
4221 instance->SetHandled (handled);
4225 void
4226 routed_event_args_set_source (RoutedEventArgs *instance, DependencyObject *el)
4228 if (instance == NULL)
4229 return;
4231 instance->SetSource (el);
4236 * RowDefinition
4238 RowDefinition *
4239 row_definition_new (void)
4241 return new RowDefinition ();
4246 * RowDefinitionCollection
4248 RowDefinitionCollection *
4249 row_definition_collection_new (void)
4251 return new RowDefinitionCollection ();
4256 * Run
4258 Run *
4259 run_new (void)
4261 return new Run ();
4266 * ScaleTransform
4268 ScaleTransform *
4269 scale_transform_new (void)
4271 return new ScaleTransform ();
4276 * Setter
4278 Setter *
4279 setter_new (void)
4281 return new Setter ();
4286 * SetterBase
4288 SetterBase *
4289 setter_base_new (void)
4291 return new SetterBase ();
4296 * SetterBaseCollection
4298 SetterBaseCollection *
4299 setter_base_collection_new (void)
4301 return new SetterBaseCollection ();
4306 * ShaderEffect
4308 ShaderEffect *
4309 shader_effect_new (void)
4311 return new ShaderEffect ();
4316 * Shape
4318 Transform *
4319 shape_get_geometry_transform (Shape *instance)
4321 if (instance == NULL)
4322 return NULL;
4324 return instance->GetGeometryTransform ();
4328 Shape *
4329 shape_new (void)
4331 return new Shape ();
4336 * SineEase
4338 double
4339 sine_ease_ease_in_core (SineEase *instance, double normalizedTime)
4341 if (instance == NULL)
4342 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4343 return (double) 0;
4345 return instance->EaseInCore (normalizedTime);
4349 SineEase *
4350 sine_ease_new (void)
4352 return new SineEase ();
4357 * SizeChangedEventArgs
4359 SizeChangedEventArgs *
4360 size_changed_event_args_new (void)
4362 return new SizeChangedEventArgs ();
4367 * SkewTransform
4369 SkewTransform *
4370 skew_transform_new (void)
4372 return new SkewTransform ();
4377 * SolidColorBrush
4379 SolidColorBrush *
4380 solid_color_brush_new (void)
4382 return new SolidColorBrush ();
4387 * SplineColorKeyFrame
4389 SplineColorKeyFrame *
4390 spline_color_key_frame_new (void)
4392 return new SplineColorKeyFrame ();
4397 * SplineDoubleKeyFrame
4399 SplineDoubleKeyFrame *
4400 spline_double_key_frame_new (void)
4402 return new SplineDoubleKeyFrame ();
4407 * SplinePointKeyFrame
4409 SplinePointKeyFrame *
4410 spline_point_key_frame_new (void)
4412 return new SplinePointKeyFrame ();
4417 * Storyboard
4419 bool
4420 storyboard_begin_with_error (Storyboard *instance, MoonError *error)
4422 if (instance == NULL)
4423 return false;
4425 if (error == NULL)
4426 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4427 return instance->BeginWithError (error);
4432 storyboard_get_current_state (Storyboard *instance)
4434 if (instance == NULL)
4435 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4436 return (int) 0;
4438 return instance->GetCurrentState ();
4442 TimeSpan
4443 storyboard_get_current_time (Storyboard *instance)
4445 if (instance == NULL)
4446 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4447 return (TimeSpan) 0;
4449 return instance->GetCurrentTime ();
4453 DependencyProperty *
4454 storyboard_get_target_dependency_property (Storyboard *instance)
4456 if (instance == NULL)
4457 return NULL;
4459 return instance->GetTargetDependencyProperty ();
4463 void
4464 storyboard_pause_with_error (Storyboard *instance, MoonError *error)
4466 if (instance == NULL)
4467 return;
4469 if (error == NULL)
4470 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4471 instance->PauseWithError (error);
4475 void
4476 storyboard_resume_with_error (Storyboard *instance, MoonError *error)
4478 if (instance == NULL)
4479 return;
4481 if (error == NULL)
4482 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4483 instance->ResumeWithError (error);
4487 void
4488 storyboard_seek_aligned_to_last_tick_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error)
4490 if (instance == NULL)
4491 return;
4493 if (error == NULL)
4494 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4495 instance->SeekAlignedToLastTickWithError (timespan, error);
4499 void
4500 storyboard_seek_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error)
4502 if (instance == NULL)
4503 return;
4505 if (error == NULL)
4506 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4507 instance->SeekWithError (timespan, error);
4511 void
4512 storyboard_skip_to_fill_with_error (Storyboard *instance, MoonError *error)
4514 if (instance == NULL)
4515 return;
4517 if (error == NULL)
4518 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4519 instance->SkipToFillWithError (error);
4523 void
4524 storyboard_stop_with_error (Storyboard *instance, MoonError *error)
4526 if (instance == NULL)
4527 return;
4529 if (error == NULL)
4530 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4531 instance->StopWithError (error);
4535 Storyboard *
4536 storyboard_new (void)
4538 return new Storyboard ();
4543 * Stroke
4545 bool
4546 stroke_hit_test (Stroke *instance, StylusPointCollection *stylusPoints)
4548 if (instance == NULL)
4549 return false;
4551 return instance->HitTest (stylusPoints);
4555 Stroke *
4556 stroke_new (void)
4558 return new Stroke ();
4563 * StrokeCollection
4565 StrokeCollection *
4566 stroke_collection_hit_test (StrokeCollection *instance, StylusPointCollection *stylusPoints)
4568 if (instance == NULL)
4569 return NULL;
4571 return instance->HitTest (stylusPoints);
4575 StrokeCollection *
4576 stroke_collection_new (void)
4578 return new StrokeCollection ();
4583 * Style
4585 void
4586 style_seal (Style *instance)
4588 if (instance == NULL)
4589 return;
4591 instance->Seal ();
4595 Style *
4596 style_new (void)
4598 return new Style ();
4603 * StylusInfo
4605 StylusInfo *
4606 stylus_info_new (void)
4608 return new StylusInfo ();
4613 * StylusPoint
4615 double
4616 stylus_point_get_pressure_factor (StylusPoint *instance)
4618 if (instance == NULL)
4619 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4620 return (double) 0;
4622 return instance->GetPressureFactor ();
4626 double
4627 stylus_point_get_x (StylusPoint *instance)
4629 if (instance == NULL)
4630 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4631 return (double) 0;
4633 return instance->GetX ();
4637 double
4638 stylus_point_get_y (StylusPoint *instance)
4640 if (instance == NULL)
4641 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4642 return (double) 0;
4644 return instance->GetY ();
4648 void
4649 stylus_point_set_pressure_factor (StylusPoint *instance, double factor)
4651 if (instance == NULL)
4652 return;
4654 instance->SetPressureFactor (factor);
4658 void
4659 stylus_point_set_x (StylusPoint *instance, double x)
4661 if (instance == NULL)
4662 return;
4664 instance->SetX (x);
4668 void
4669 stylus_point_set_y (StylusPoint *instance, double y)
4671 if (instance == NULL)
4672 return;
4674 instance->SetY (y);
4678 StylusPoint *
4679 stylus_point_new (void)
4681 return new StylusPoint ();
4686 * StylusPointCollection
4688 double
4689 stylus_point_collection_add_stylus_points (StylusPointCollection *instance, StylusPointCollection *stylusPointCollection)
4691 if (instance == NULL)
4692 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4693 return (double) 0;
4695 return instance->AddStylusPoints (stylusPointCollection);
4699 StylusPointCollection *
4700 stylus_point_collection_new (void)
4702 return new StylusPointCollection ();
4707 * Surface
4709 void
4710 surface_attach (Surface *instance, UIElement *toplevel)
4712 if (instance == NULL)
4713 return;
4715 instance->Attach (toplevel);
4719 Downloader *
4720 surface_create_downloader (Surface *instance)
4722 if (instance == NULL)
4723 return NULL;
4725 return instance->CreateDownloader ();
4729 void
4730 surface_emit_error (Surface *instance, int number, int code, const char *message)
4732 if (instance == NULL)
4733 return;
4735 instance->EmitError (number, code, message);
4739 Color *
4740 surface_get_background_color (Surface *instance)
4742 if (instance == NULL)
4743 return NULL;
4745 return instance->GetBackgroundColor ();
4749 UIElement *
4750 surface_get_focused_element (Surface *instance)
4752 if (instance == NULL)
4753 return NULL;
4755 return instance->GetFocusedElement ();
4759 bool
4760 surface_get_full_screen (Surface *instance)
4762 if (instance == NULL)
4763 return false;
4765 return instance->GetFullScreen ();
4769 TimeManager *
4770 surface_get_time_manager (Surface *instance)
4772 if (instance == NULL)
4773 return NULL;
4775 return instance->GetTimeManager ();
4779 UIElement *
4780 surface_get_toplevel (Surface *instance)
4782 if (instance == NULL)
4783 return NULL;
4785 return instance->GetToplevel ();
4789 MoonWindow *
4790 surface_get_window (Surface *instance)
4792 if (instance == NULL)
4793 return NULL;
4795 return instance->GetWindow ();
4799 bool
4800 surface_in_main_thread (void)
4802 return Surface::InMainThread ();
4806 bool
4807 surface_is_loaded (Surface *instance)
4809 if (instance == NULL)
4810 return false;
4812 return instance->IsLoaded ();
4816 bool
4817 surface_is_user_initiated_event (Surface *instance)
4819 if (instance == NULL)
4820 return false;
4822 return instance->IsUserInitiatedEvent ();
4826 bool
4827 surface_is_version_supported (const char *version)
4829 return Surface::IsVersionSupported (version);
4833 void
4834 surface_paint (Surface *instance, cairo_t *ctx, int x, int y, int width, int height)
4836 if (instance == NULL)
4837 return;
4839 instance->Paint (ctx, x, y, width, height);
4843 void
4844 surface_resize (Surface *instance, int width, int height)
4846 if (instance == NULL)
4847 return;
4849 instance->Resize (width, height);
4853 void
4854 surface_set_full_screen (Surface *instance, bool value)
4856 if (instance == NULL)
4857 return;
4859 instance->SetFullScreen (value);
4863 Surface *
4864 surface_new (MoonWindow *window)
4866 return new Surface (window);
4871 * TabNavigationWalker
4873 bool
4874 tab_navigation_walker_focus (UIElement *element, bool forwards)
4876 return TabNavigationWalker::Focus (element, forwards);
4881 * TextBlock
4883 TextBlock *
4884 text_block_new (void)
4886 return new TextBlock ();
4891 * TextBox
4893 TextBox *
4894 text_box_new (void)
4896 return new TextBox ();
4901 * TextBoxBase
4903 void
4904 text_box_base_on_got_focus (TextBoxBase *instance, RoutedEventArgs *args)
4906 if (instance == NULL)
4907 return;
4909 instance->OnGotFocus (args);
4913 void
4914 text_box_base_on_key_down (TextBoxBase *instance, KeyEventArgs *args)
4916 if (instance == NULL)
4917 return;
4919 instance->OnKeyDown (args);
4923 void
4924 text_box_base_on_key_up (TextBoxBase *instance, KeyEventArgs *args)
4926 if (instance == NULL)
4927 return;
4929 instance->OnKeyUp (args);
4933 void
4934 text_box_base_on_lost_focus (TextBoxBase *instance, RoutedEventArgs *args)
4936 if (instance == NULL)
4937 return;
4939 instance->OnLostFocus (args);
4943 void
4944 text_box_base_on_mouse_left_button_down (TextBoxBase *instance, MouseButtonEventArgs *args)
4946 if (instance == NULL)
4947 return;
4949 instance->OnMouseLeftButtonDown (args);
4953 void
4954 text_box_base_on_mouse_left_button_up (TextBoxBase *instance, MouseButtonEventArgs *args)
4956 if (instance == NULL)
4957 return;
4959 instance->OnMouseLeftButtonUp (args);
4963 void
4964 text_box_base_on_mouse_move (TextBoxBase *instance, MouseEventArgs *args)
4966 if (instance == NULL)
4967 return;
4969 instance->OnMouseMove (args);
4973 void
4974 text_box_base_post_on_key_down (TextBoxBase *instance, KeyEventArgs *args)
4976 if (instance == NULL)
4977 return;
4979 instance->PostOnKeyDown (args);
4983 void
4984 text_box_base_select_all (TextBoxBase *instance)
4986 if (instance == NULL)
4987 return;
4989 instance->SelectAll ();
4993 bool
4994 text_box_base_select_with_error (TextBoxBase *instance, int start, int length, MoonError *error)
4996 if (instance == NULL)
4997 return false;
4999 if (error == NULL)
5000 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
5001 return instance->SelectWithError (start, length, error);
5006 * TextBoxView
5008 TextBoxView *
5009 text_box_view_new (void)
5011 return new TextBoxView ();
5016 * TextChangedEventArgs
5018 TextChangedEventArgs *
5019 text_changed_event_args_new (void)
5021 return new TextChangedEventArgs ();
5026 * TileBrush
5028 TileBrush *
5029 tile_brush_new (void)
5031 return new TileBrush ();
5036 * Timeline
5038 DependencyObject *
5039 timeline_get_manual_target (Timeline *instance)
5041 if (instance == NULL)
5042 return NULL;
5044 return instance->GetManualTarget ();
5048 void
5049 timeline_set_manual_target (Timeline *instance, DependencyObject *o)
5051 if (instance == NULL)
5052 return;
5054 instance->SetManualTarget (o);
5058 Timeline *
5059 timeline_new (void)
5061 return new Timeline ();
5066 * TimelineCollection
5068 TimelineCollection *
5069 timeline_collection_new (void)
5071 return new TimelineCollection ();
5076 * TimelineGroup
5078 TimelineGroup *
5079 timeline_group_new (void)
5081 return new TimelineGroup ();
5086 * TimelineMarker
5088 TimelineMarker *
5089 timeline_marker_new (void)
5091 return new TimelineMarker ();
5096 * TimelineMarkerCollection
5098 TimelineMarkerCollection *
5099 timeline_marker_collection_new (void)
5101 return new TimelineMarkerCollection ();
5106 * TimelineMarkerRoutedEventArgs
5108 TimelineMarker *
5109 timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs *instance)
5111 if (instance == NULL)
5112 return NULL;
5114 return instance->GetMarker ();
5118 TimelineMarkerRoutedEventArgs *
5119 timeline_marker_routed_event_args_new (TimelineMarker *marker)
5121 return new TimelineMarkerRoutedEventArgs (marker);
5126 * TimeManager
5128 void
5129 time_manager_add_dispatcher_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5131 if (instance == NULL)
5132 return;
5134 instance->AddDispatcherCall (handler, tick_data);
5138 void
5139 time_manager_add_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5141 if (instance == NULL)
5142 return;
5144 instance->AddTickCall (handler, tick_data);
5148 guint
5149 time_manager_add_timeout (TimeManager *instance, gint priority, guint ms_interval, GSourceFunc func, gpointer timeout_data)
5151 if (instance == NULL)
5152 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5153 return (guint) 0;
5155 return instance->AddTimeout (priority, ms_interval, func, timeout_data);
5160 time_manager_get_maximum_refresh_rate (TimeManager *instance)
5162 if (instance == NULL)
5163 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5164 return (int) 0;
5166 return instance->GetMaximumRefreshRate ();
5170 void
5171 time_manager_remove_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5173 if (instance == NULL)
5174 return;
5176 instance->RemoveTickCall (handler, tick_data);
5180 void
5181 time_manager_remove_timeout (TimeManager *instance, guint timeout_id)
5183 if (instance == NULL)
5184 return;
5186 instance->RemoveTimeout (timeout_id);
5190 void
5191 time_manager_set_maximum_refresh_rate (TimeManager *instance, int hz)
5193 if (instance == NULL)
5194 return;
5196 instance->SetMaximumRefreshRate (hz);
5201 * Transform
5203 Transform *
5204 transform_new (void)
5206 return new Transform ();
5211 * TransformCollection
5213 TransformCollection *
5214 transform_collection_new (void)
5216 return new TransformCollection ();
5221 * TransformGroup
5223 TransformGroup *
5224 transform_group_new (void)
5226 return new TransformGroup ();
5231 * TranslateTransform
5233 TranslateTransform *
5234 translate_transform_new (void)
5236 return new TranslateTransform ();
5241 * TriggerAction
5243 void
5244 trigger_action_fire (TriggerAction *instance)
5246 if (instance == NULL)
5247 return;
5249 instance->Fire ();
5253 TriggerAction *
5254 trigger_action_new (void)
5256 return new TriggerAction ();
5261 * TriggerActionCollection
5263 TriggerActionCollection *
5264 trigger_action_collection_new (void)
5266 return new TriggerActionCollection ();
5271 * TriggerBase
5273 TriggerBase *
5274 trigger_base_new (void)
5276 return new TriggerBase ();
5281 * TriggerCollection
5283 TriggerCollection *
5284 trigger_collection_new (void)
5286 return new TriggerCollection ();
5291 * Types
5293 Type *
5294 types_find (Types *instance, int type)
5296 if (instance == NULL)
5297 return NULL;
5299 return instance->Find ((Type::Kind) type);
5304 types_register_type (Types *instance, const char *name, void *gc_handle, int parent, bool is_interface, bool ctor_visible, int *interfaces, int interface_count)
5306 if (instance == NULL)
5307 return Type::INVALID;
5309 return instance->RegisterType (name, gc_handle, (Type::Kind) parent, is_interface, ctor_visible, (Type::Kind*) interfaces, interface_count);
5313 Types *
5314 types_new (void)
5316 return new Types ();
5321 * UIElement
5323 void
5324 uielement_arrange (UIElement *instance, Rect finalRect)
5326 if (instance == NULL)
5327 return;
5329 instance->Arrange (finalRect);
5333 bool
5334 uielement_capture_mouse (UIElement *instance)
5336 if (instance == NULL)
5337 return false;
5339 return instance->CaptureMouse ();
5343 void
5344 uielement_element_added (UIElement *instance, UIElement *obj)
5346 if (instance == NULL)
5347 return;
5349 instance->ElementAdded (obj);
5353 void
5354 uielement_element_removed (UIElement *instance, UIElement *obj)
5356 if (instance == NULL)
5357 return;
5359 instance->ElementRemoved (obj);
5363 void
5364 uielement_find_elements_in_host_coordinates_p (UIElement *instance, Point p, HitTestCollection *uielement_list)
5366 if (instance == NULL)
5367 return;
5369 instance->FindElementsInHostCoordinates_p (p, uielement_list);
5373 void
5374 uielement_find_elements_in_host_coordinates_r (UIElement *instance, Rect p, HitTestCollection *uielement_list)
5376 if (instance == NULL)
5377 return;
5379 instance->FindElementsInHostCoordinates_r (p, uielement_list);
5383 bool
5384 uielement_focus (UIElement *instance, bool recurse)
5386 if (instance == NULL)
5387 return false;
5389 return instance->Focus (recurse);
5393 Size
5394 uielement_get_desired_size (UIElement *instance)
5396 if (instance == NULL)
5397 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5398 return (Size) 0;
5400 return instance->GetDesiredSize ();
5404 Size
5405 uielement_get_render_size (UIElement *instance)
5407 if (instance == NULL)
5408 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5409 return (Size) 0;
5411 return instance->GetRenderSize ();
5415 DependencyObject *
5416 uielement_get_subtree_object (UIElement *instance)
5418 if (instance == NULL)
5419 return NULL;
5421 return instance->GetSubtreeObject ();
5425 GeneralTransform *
5426 uielement_get_transform_to_uielement_with_error (UIElement *instance, UIElement *to_element, MoonError *error)
5428 if (instance == NULL)
5429 return NULL;
5431 if (error == NULL)
5432 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5433 return instance->GetTransformToUIElementWithError (to_element, error);
5437 UIElement *
5438 uielement_get_visual_parent (UIElement *instance)
5440 if (instance == NULL)
5441 return NULL;
5443 return instance->GetVisualParent ();
5447 void
5448 uielement_invalidate (UIElement *instance)
5450 if (instance == NULL)
5451 return;
5453 instance->Invalidate ();
5457 void
5458 uielement_invalidate_arrange (UIElement *instance)
5460 if (instance == NULL)
5461 return;
5463 instance->InvalidateArrange ();
5467 void
5468 uielement_invalidate_measure (UIElement *instance)
5470 if (instance == NULL)
5471 return;
5473 instance->InvalidateMeasure ();
5477 void
5478 uielement_measure (UIElement *instance, Size availableSize)
5480 if (instance == NULL)
5481 return;
5483 instance->Measure (availableSize);
5487 void
5488 uielement_release_mouse_capture (UIElement *instance)
5490 if (instance == NULL)
5491 return;
5493 instance->ReleaseMouseCapture ();
5497 void
5498 uielement_set_subtree_object (UIElement *instance, DependencyObject *value)
5500 if (instance == NULL)
5501 return;
5503 instance->SetSubtreeObject (value);
5507 void
5508 uielement_update_layout (UIElement *instance)
5510 if (instance == NULL)
5511 return;
5513 instance->UpdateLayout ();
5518 * UIElementCollection
5520 UIElementCollection *
5521 uielement_collection_new (void)
5523 return new UIElementCollection ();
5528 * UnmanagedMatrix
5530 UnmanagedMatrix *
5531 unmanaged_matrix_new (void)
5533 return new UnmanagedMatrix ();
5538 * UnmanagedMatrix3D
5540 UnmanagedMatrix3D *
5541 unmanaged_matrix3_d_new (void)
5543 return new UnmanagedMatrix3D ();
5548 * Uri
5550 bool
5551 uri_equals (const Uri *left, const Uri *right)
5553 return Uri::Equals (left, right);
5557 void
5558 uri_free (Uri *instance)
5560 if (instance == NULL)
5561 return;
5563 instance->Free ();
5567 guint
5568 uri_get_hash_code (Uri *instance)
5570 if (instance == NULL)
5571 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5572 return (guint) 0;
5574 return instance->GetHashCode ();
5578 bool
5579 uri_parse (Uri *instance, const char *uri, bool allow_trailing_sep)
5581 if (instance == NULL)
5582 return false;
5584 return instance->Parse (uri, allow_trailing_sep);
5589 * UserControl
5591 UserControl *
5592 user_control_new (void)
5594 return new UserControl ();
5599 * VideoBrush
5601 void
5602 video_brush_set_source (VideoBrush *instance, MediaElement *source)
5604 if (instance == NULL)
5605 return;
5607 instance->SetSource (source);
5611 VideoBrush *
5612 video_brush_new (void)
5614 return new VideoBrush ();
5619 * VideoStream
5621 guint32
5622 video_stream_get_height (VideoStream *instance)
5624 if (instance == NULL)
5625 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5626 return (guint32) 0;
5628 return instance->GetHeight ();
5632 guint32
5633 video_stream_get_width (VideoStream *instance)
5635 if (instance == NULL)
5636 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5637 return (guint32) 0;
5639 return instance->GetWidth ();
5643 VideoStream *
5644 video_stream_new (Media *media, int codec_id, guint32 width, guint32 height, guint64 duration, gpointer extra_data, guint32 extra_data_size)
5646 return new VideoStream (media, codec_id, width, height, duration, extra_data, extra_data_size);
5651 * VisualBrush
5653 VisualBrush *
5654 visual_brush_new (void)
5656 return new VisualBrush ();
5661 * WindowSettings
5663 WindowSettings *
5664 window_settings_new (void)
5666 return new WindowSettings ();
5671 * WriteableBitmap
5673 gpointer
5674 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap *instance, BitmapSource *source)
5676 if (instance == NULL)
5677 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5678 return (gpointer) 0;
5680 return instance->InitializeFromBitmapSource (source);
5684 void
5685 writeable_bitmap_lock (WriteableBitmap *instance)
5687 if (instance == NULL)
5688 return;
5690 instance->Lock ();
5694 void
5695 writeable_bitmap_render (WriteableBitmap *instance, UIElement *element, Transform *transform)
5697 if (instance == NULL)
5698 return;
5700 instance->Render (element, transform);
5704 void
5705 writeable_bitmap_unlock (WriteableBitmap *instance)
5707 if (instance == NULL)
5708 return;
5710 instance->Unlock ();
5714 WriteableBitmap *
5715 writeable_bitmap_new (void)
5717 return new WriteableBitmap ();
5722 * XamlContext
5724 DependencyObject *
5725 xaml_context_get_template_binding_source (XamlContext *instance)
5727 if (instance == NULL)
5728 return NULL;
5730 return instance->GetTemplateBindingSource ();
5735 * XamlLoader
5737 Value *
5738 xaml_loader_create_from_file_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, int *element_type, MoonError *error)
5740 if (instance == NULL)
5741 return NULL;
5743 if (error == NULL)
5744 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5745 return instance->CreateFromFileWithError (xaml, create_namescope, (Type::Kind*) element_type, error);
5749 Value *
5750 xaml_loader_create_from_string_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, int *element_type, int flags, MoonError *error)
5752 if (instance == NULL)
5753 return NULL;
5755 if (error == NULL)
5756 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5757 return instance->CreateFromStringWithError (xaml, create_namescope, (Type::Kind*) element_type, flags, error);
5761 XamlContext *
5762 xaml_loader_get_context (XamlLoader *instance)
5764 if (instance == NULL)
5765 return NULL;
5767 return instance->GetContext ();
5771 Value *
5772 xaml_loader_hydrate_from_string_with_error (XamlLoader *instance, const char *xaml, Value *obj, bool create_namescope, int *element_type, int flags, MoonError *error)
5774 if (instance == NULL)
5775 return NULL;
5777 if (error == NULL)
5778 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5779 return instance->HydrateFromStringWithError (xaml, obj, create_namescope, (Type::Kind*) element_type, flags, error);
5784 * Xap
5786 char *
5787 xap_unpack (const char *fname)
5789 return Xap::Unpack (fname);