2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / src / cbinding.cpp
blob94fbd85bb09265e3e8c33cd57109f8a6c698e520
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, MoonError *error)
914 if (instance == NULL)
915 return NULL;
917 if (error == NULL)
918 g_warning ("Moonlight: Called collection_iterator_get_current () with error == NULL.");
919 return instance->GetCurrent (error);
923 bool
924 collection_iterator_next (CollectionIterator *instance, MoonError *error)
926 if (instance == NULL)
927 return false;
929 if (error == NULL)
930 g_warning ("Moonlight: Called collection_iterator_next () with error == NULL.");
931 return instance->Next (error);
935 bool
936 collection_iterator_reset (CollectionIterator *instance)
938 if (instance == NULL)
939 return false;
941 return instance->Reset ();
946 * ColorAnimation
948 ColorAnimation *
949 color_animation_new (void)
951 return new ColorAnimation ();
956 * ColorAnimationUsingKeyFrames
958 ColorAnimationUsingKeyFrames *
959 color_animation_using_key_frames_new (void)
961 return new ColorAnimationUsingKeyFrames ();
966 * ColorKeyFrame
968 ColorKeyFrame *
969 color_key_frame_new (void)
971 return new ColorKeyFrame ();
976 * ColorKeyFrameCollection
978 ColorKeyFrameCollection *
979 color_key_frame_collection_new (void)
981 return new ColorKeyFrameCollection ();
986 * ColumnDefinition
988 ColumnDefinition *
989 column_definition_new (void)
991 return new ColumnDefinition ();
996 * ColumnDefinitionCollection
998 ColumnDefinitionCollection *
999 column_definition_collection_new (void)
1001 return new ColumnDefinitionCollection ();
1006 * ContentChangedEventArgs
1008 Value *
1009 content_changed_event_args_get_new_content (ContentChangedEventArgs *instance)
1011 if (instance == NULL)
1012 return NULL;
1014 return instance->GetNewContent ();
1018 Value *
1019 content_changed_event_args_get_old_content (ContentChangedEventArgs *instance)
1021 if (instance == NULL)
1022 return NULL;
1024 return instance->GetOldContent ();
1029 * ContentControl
1031 ContentControl *
1032 content_control_new (void)
1034 return new ContentControl ();
1038 bool
1039 content_control_get_content_sets_parent (ContentControl *instance)
1041 if (instance == NULL)
1042 return false;
1044 return instance->GetContentSetsParent ();
1048 void
1049 content_control_set_content_sets_parent (ContentControl *instance, bool value)
1051 if (instance == NULL)
1052 return;
1054 instance->SetContentSetsParent (value);
1059 * Control
1061 Control *
1062 control_new (void)
1064 return new Control ();
1068 DependencyObject *
1069 control_get_template_child (Control *instance, const char *name)
1071 if (instance == NULL)
1072 return NULL;
1074 return instance->GetTemplateChild (name);
1079 * ControlTemplate
1081 ControlTemplate *
1082 control_template_new (void)
1084 return new ControlTemplate ();
1089 * CubicEase
1091 CubicEase *
1092 cubic_ease_new (void)
1094 return new CubicEase ();
1098 double
1099 cubic_ease_ease_in_core (CubicEase *instance, double normalizedTime)
1101 if (instance == NULL)
1102 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1103 return (double) 0;
1105 return instance->EaseInCore (normalizedTime);
1110 * CursorPositionChangedEventArgs
1112 CursorPositionChangedEventArgs *
1113 cursor_position_changed_event_args_new (void)
1115 return new CursorPositionChangedEventArgs ();
1119 double
1120 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs *instance)
1122 if (instance == NULL)
1123 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1124 return (double) 0;
1126 return instance->GetCursorHeight ();
1130 double
1131 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs *instance)
1133 if (instance == NULL)
1134 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1135 return (double) 0;
1137 return instance->GetCursorX ();
1141 double
1142 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs *instance)
1144 if (instance == NULL)
1145 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1146 return (double) 0;
1148 return instance->GetCursorY ();
1153 * DataTemplate
1155 DataTemplate *
1156 data_template_new (void)
1158 return new DataTemplate ();
1163 * DeepZoomImageTileSource
1165 DeepZoomImageTileSource *
1166 deep_zoom_image_tile_source_new (void)
1168 return new DeepZoomImageTileSource ();
1173 * DependencyObject
1175 void
1176 dependency_object_add_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb, gpointer closure)
1178 if (instance == NULL)
1179 return;
1181 instance->AddPropertyChangeHandler (property, cb, closure);
1185 void
1186 dependency_object_clear_value (DependencyObject *instance, DependencyProperty *property, bool notify_listeners, MoonError *error)
1188 if (instance == NULL)
1189 return;
1191 if (error == NULL)
1192 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1193 instance->ClearValue (property, notify_listeners, error);
1197 DependencyObject *
1198 dependency_object_new (void)
1200 return new DependencyObject ();
1204 DependencyObject *
1205 dependency_object_find_name (DependencyObject *instance, const char *name, int *element_kind)
1207 if (instance == NULL)
1208 return NULL;
1210 return instance->FindName (name, (Type::Kind*) element_kind);
1214 const char *
1215 dependency_object_get_name (DependencyObject *instance)
1217 if (instance == NULL)
1218 return NULL;
1220 return instance->GetName ();
1224 DependencyObject *
1225 dependency_object_get_template_owner (DependencyObject *instance)
1227 if (instance == NULL)
1228 return NULL;
1230 return instance->GetTemplateOwner ();
1234 Value *
1235 dependency_object_get_value_no_default_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error)
1237 if (instance == NULL)
1238 return NULL;
1240 if (error == NULL)
1241 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1242 return instance->GetValueNoDefaultWithError (property, error);
1246 Value *
1247 dependency_object_get_value_with_error (DependencyObject *instance, int whatami, DependencyProperty *property, MoonError *error)
1249 if (instance == NULL)
1250 return NULL;
1252 if (error == NULL)
1253 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1254 return instance->GetValueWithError ((Type::Kind) whatami, property, error);
1258 Value *
1259 dependency_object_read_local_value_with_error (DependencyObject *instance, DependencyProperty *property, MoonError *error)
1261 if (instance == NULL)
1262 return NULL;
1264 if (error == NULL)
1265 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1266 return instance->ReadLocalValueWithError (property, error);
1270 void
1271 dependency_object_remove_property_change_handler (DependencyObject *instance, DependencyProperty *property, PropertyChangeHandler cb)
1273 if (instance == NULL)
1274 return;
1276 instance->RemovePropertyChangeHandler (property, cb);
1280 void
1281 dependency_object_set_name (DependencyObject *instance, const char *name)
1283 if (instance == NULL)
1284 return;
1286 instance->SetName (name);
1290 void
1291 dependency_object_set_parent_safe (DependencyObject *instance, DependencyObject *parent, MoonError *error)
1293 if (instance == NULL)
1294 return;
1296 if (error == NULL)
1297 g_warning ("Moonlight: Called dependency_object_set_parent_safe () with error == NULL.");
1298 instance->SetParentSafe (parent, error);
1302 void
1303 dependency_object_set_template_owner (DependencyObject *instance, DependencyObject *value)
1305 if (instance == NULL)
1306 return;
1308 instance->SetTemplateOwner (value);
1312 bool
1313 dependency_object_set_value_with_error (DependencyObject *instance, DependencyProperty *property, Value *value, MoonError *error)
1315 if (instance == NULL)
1316 return false;
1318 if (error == NULL)
1319 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1320 return instance->SetValueWithError (property, value, error);
1325 * DependencyObjectCollection
1327 DependencyObjectCollection *
1328 dependency_object_collection_new (void)
1330 return new DependencyObjectCollection ();
1335 * DependencyProperty
1337 Value *
1338 dependency_property_get_default_value (DependencyProperty *instance)
1340 if (instance == NULL)
1341 return NULL;
1343 return instance->GetDefaultValue ();
1347 DependencyProperty *
1348 dependency_property_get_dependency_property (int type, const char *name)
1350 return DependencyProperty::GetDependencyProperty ((Type::Kind) type, name);
1354 DependencyProperty *
1355 dependency_property_get_dependency_property_full (int type, const char *name, bool inherits)
1357 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind) type, name, inherits);
1361 const char *
1362 dependency_property_get_name (DependencyProperty *instance)
1364 if (instance == NULL)
1365 return NULL;
1367 return instance->GetName ();
1372 dependency_property_get_property_type (DependencyProperty *instance)
1374 if (instance == NULL)
1375 return Type::INVALID;
1377 return instance->GetPropertyType ();
1381 bool
1382 dependency_property_is_attached (DependencyProperty *instance)
1384 if (instance == NULL)
1385 return false;
1387 return instance->IsAttached ();
1391 bool
1392 dependency_property_is_nullable (DependencyProperty *instance)
1394 if (instance == NULL)
1395 return false;
1397 return instance->IsNullable ();
1401 bool
1402 dependency_property_is_read_only (DependencyProperty *instance)
1404 if (instance == NULL)
1405 return false;
1407 return instance->IsReadOnly ();
1411 DependencyProperty *
1412 dependency_property_register_core_property (const char *name, int property_type, int owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback)
1414 return DependencyProperty::RegisterCoreProperty (name, (Type::Kind) property_type, (Type::Kind) owner_type, defaultValue, attached, read_only, callback);
1418 DependencyProperty *
1419 dependency_property_register_custom_property (const char *name, int property_type, int owner_type, Value *defaultValue, bool attached, bool read_only, PropertyChangeHandler callback)
1421 return DependencyProperty::RegisterCustomProperty (name, (Type::Kind) property_type, (Type::Kind) owner_type, defaultValue, attached, read_only, callback);
1425 void
1426 dependency_property_set_is_nullable (DependencyProperty *instance, bool value)
1428 if (instance == NULL)
1429 return;
1431 instance->SetIsNullable (value);
1435 void
1436 dependency_property_set_property_changed_callback (DependencyProperty *instance, PropertyChangeHandler changed_callback)
1438 if (instance == NULL)
1439 return;
1441 instance->SetPropertyChangedCallback (changed_callback);
1446 * Deployment
1448 Deployment *
1449 deployment_new (void)
1451 return new Deployment ();
1455 Deployment *
1456 deployment_get_current (void)
1458 return Deployment::GetCurrent ();
1462 Surface *
1463 deployment_get_surface_reffed (Deployment *instance)
1465 if (instance == NULL)
1466 return NULL;
1468 return instance->GetSurfaceReffed ();
1472 Types *
1473 deployment_get_types (Deployment *instance)
1475 if (instance == NULL)
1476 return NULL;
1478 return instance->GetTypes ();
1482 void
1483 deployment_set_current (Deployment *value)
1485 Deployment::SetCurrent (value);
1489 void
1490 deployment_set_current_application (Deployment *instance, Application *value)
1492 if (instance == NULL)
1493 return;
1495 instance->SetCurrentApplication (value);
1499 void
1500 deployment_set_is_loaded_from_xap (Deployment *instance, bool flag)
1502 if (instance == NULL)
1503 return;
1505 instance->SetIsLoadedFromXap (flag);
1510 * DiscreteColorKeyFrame
1512 DiscreteColorKeyFrame *
1513 discrete_color_key_frame_new (void)
1515 return new DiscreteColorKeyFrame ();
1520 * DiscreteDoubleKeyFrame
1522 DiscreteDoubleKeyFrame *
1523 discrete_double_key_frame_new (void)
1525 return new DiscreteDoubleKeyFrame ();
1530 * DiscreteObjectKeyFrame
1532 DiscreteObjectKeyFrame *
1533 discrete_object_key_frame_new (void)
1535 return new DiscreteObjectKeyFrame ();
1540 * DiscretePointKeyFrame
1542 DiscretePointKeyFrame *
1543 discrete_point_key_frame_new (void)
1545 return new DiscretePointKeyFrame ();
1550 * DispatcherTimer
1552 DispatcherTimer *
1553 dispatcher_timer_new (void)
1555 return new DispatcherTimer ();
1559 void
1560 dispatcher_timer_start (DispatcherTimer *instance)
1562 if (instance == NULL)
1563 return;
1565 instance->Start ();
1569 void
1570 dispatcher_timer_stop (DispatcherTimer *instance)
1572 if (instance == NULL)
1573 return;
1575 instance->Stop ();
1580 * DoubleAnimation
1582 DoubleAnimation *
1583 double_animation_new (void)
1585 return new DoubleAnimation ();
1590 * DoubleAnimationUsingKeyFrames
1592 DoubleAnimationUsingKeyFrames *
1593 double_animation_using_key_frames_new (void)
1595 return new DoubleAnimationUsingKeyFrames ();
1600 * DoubleCollection
1602 DoubleCollection *
1603 double_collection_new (void)
1605 return new DoubleCollection ();
1610 * DoubleKeyFrame
1612 DoubleKeyFrame *
1613 double_key_frame_new (void)
1615 return new DoubleKeyFrame ();
1620 * DoubleKeyFrameCollection
1622 DoubleKeyFrameCollection *
1623 double_key_frame_collection_new (void)
1625 return new DoubleKeyFrameCollection ();
1630 * Downloader
1632 void *
1633 downloader_create_web_request (Downloader *instance, const char *method, const char *uri)
1635 if (instance == NULL)
1636 return NULL;
1638 return instance->CreateWebRequest (method, uri);
1642 Downloader *
1643 downloader_new (void)
1645 return new Downloader ();
1649 void
1650 downloader_notify_failed (Downloader *instance, const char *msg)
1652 if (instance == NULL)
1653 return;
1655 instance->NotifyFailed (msg);
1659 void
1660 downloader_notify_finished (Downloader *instance, const char *final_uri)
1662 if (instance == NULL)
1663 return;
1665 instance->NotifyFinished (final_uri);
1669 void
1670 downloader_notify_size (Downloader *instance, gint64 size)
1672 if (instance == NULL)
1673 return;
1675 instance->NotifySize (size);
1679 void
1680 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)
1682 Downloader::SetFunctions (create_state, destroy_state, open, send, abort, header, body, request, response_header_callback, get_response);
1686 void
1687 downloader_write (Downloader *instance, void *buf, gint32 offset, gint32 n)
1689 if (instance == NULL)
1690 return;
1692 instance->Write (buf, offset, n);
1697 * DownloaderRequest
1699 void
1700 downloader_request_free (DownloaderRequest *instance)
1702 delete instance;
1706 void
1707 downloader_request_abort (DownloaderRequest *instance)
1709 if (instance == NULL)
1710 return;
1712 instance->Abort ();
1716 DownloaderResponse *
1717 downloader_request_get_downloader_response (DownloaderRequest *instance)
1719 if (instance == NULL)
1720 return NULL;
1722 return instance->GetDownloaderResponse ();
1726 bool
1727 downloader_request_get_response (DownloaderRequest *instance, DownloaderResponseStartedHandler started, DownloaderResponseDataAvailableHandler available, DownloaderResponseFinishedHandler finished, gpointer context)
1729 if (instance == NULL)
1730 return false;
1732 return instance->GetResponse (started, available, finished, context);
1736 const bool
1737 downloader_request_is_aborted (DownloaderRequest *instance)
1739 if (instance == NULL)
1740 return false;
1742 return instance->IsAborted ();
1746 void
1747 downloader_request_set_body (DownloaderRequest *instance, void *body, int size)
1749 if (instance == NULL)
1750 return;
1752 instance->SetBody (body, size);
1756 void
1757 downloader_request_set_http_header (DownloaderRequest *instance, const char *name, const char *value)
1759 if (instance == NULL)
1760 return;
1762 instance->SetHttpHeader (name, value);
1767 * DownloaderResponse
1769 void
1770 downloader_response_free (DownloaderResponse *instance)
1772 delete instance;
1776 void
1777 downloader_response_abort (DownloaderResponse *instance)
1779 if (instance == NULL)
1780 return;
1782 instance->Abort ();
1787 downloader_response_get_response_status (DownloaderResponse *instance)
1789 if (instance == NULL)
1790 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1791 return (int) 0;
1793 return instance->GetResponseStatus ();
1797 const char *
1798 downloader_response_get_response_status_text (DownloaderResponse *instance)
1800 if (instance == NULL)
1801 return NULL;
1803 return instance->GetResponseStatusText ();
1807 void
1808 downloader_response_set_header_visitor (DownloaderResponse *instance, DownloaderResponseHeaderCallback visitor, gpointer context)
1810 if (instance == NULL)
1811 return;
1813 instance->SetHeaderVisitor (visitor, context);
1818 * DownloadProgressEventArgs
1820 double
1821 download_progress_event_args_get_progress (DownloadProgressEventArgs *instance)
1823 if (instance == NULL)
1824 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1825 return (double) 0;
1827 return instance->GetProgress ();
1832 * DrawingAttributes
1834 DrawingAttributes *
1835 drawing_attributes_new (void)
1837 return new DrawingAttributes ();
1842 * DropShadowEffect
1844 DropShadowEffect *
1845 drop_shadow_effect_new (void)
1847 return new DropShadowEffect ();
1852 * EasingColorKeyFrame
1854 EasingColorKeyFrame *
1855 easing_color_key_frame_new (void)
1857 return new EasingColorKeyFrame ();
1862 * EasingDoubleKeyFrame
1864 EasingDoubleKeyFrame *
1865 easing_double_key_frame_new (void)
1867 return new EasingDoubleKeyFrame ();
1872 * EasingFunctionBase
1874 EasingFunctionBase *
1875 easing_function_base_new (void)
1877 return new EasingFunctionBase ();
1881 void
1882 easing_function_base_set_easing_function (EasingFunctionBase *instance, EasingFunction value)
1884 if (instance == NULL)
1885 return;
1887 instance->SetEasingFunction (value);
1892 * EasingPointKeyFrame
1894 EasingPointKeyFrame *
1895 easing_point_key_frame_new (void)
1897 return new EasingPointKeyFrame ();
1902 * Effect
1904 Effect *
1905 effect_new (void)
1907 return new Effect ();
1912 * ElasticEase
1914 double
1915 elastic_ease_ease_in_core (ElasticEase *instance, double normalizedTime)
1917 if (instance == NULL)
1918 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1919 return (double) 0;
1921 return instance->EaseInCore (normalizedTime);
1925 ElasticEase *
1926 elastic_ease_new (void)
1928 return new ElasticEase ();
1933 * Ellipse
1935 Ellipse *
1936 ellipse_new (void)
1938 return new Ellipse ();
1943 * EllipseGeometry
1945 EllipseGeometry *
1946 ellipse_geometry_new (void)
1948 return new EllipseGeometry ();
1953 * ErrorEventArgs
1956 error_event_args_get_error_code (ErrorEventArgs *instance)
1958 if (instance == NULL)
1959 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1960 return (int) 0;
1962 return instance->GetErrorCode ();
1966 const char *
1967 error_event_args_get_error_message (ErrorEventArgs *instance)
1969 if (instance == NULL)
1970 return NULL;
1972 return instance->GetErrorMessage ();
1977 error_event_args_get_error_type (ErrorEventArgs *instance)
1979 if (instance == NULL)
1980 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1981 return (int) 0;
1983 return instance->GetErrorType ();
1987 gpointer
1988 error_event_args_get_moon_error (ErrorEventArgs *instance)
1990 if (instance == NULL)
1991 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1992 return (gpointer) 0;
1994 return instance->GetMoonError ();
1999 * EventObject
2002 event_object_add_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2004 if (instance == NULL)
2005 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2006 return (int) 0;
2008 return instance->AddHandler (event_id, handler, data, data_dtor);
2012 void
2013 event_object_add_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2015 if (instance == NULL)
2016 return;
2018 instance->AddOnEventHandler (event_id, handler, data, data_dtor);
2022 void
2023 event_object_add_toggle_ref_notifier (EventObject *instance, ToggleNotifyHandler tr)
2025 if (instance == NULL)
2026 return;
2028 instance->AddToggleRefNotifier (tr);
2033 event_object_add_xaml_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data, GDestroyNotify data_dtor)
2035 if (instance == NULL)
2036 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2037 return (int) 0;
2039 return instance->AddXamlHandler (event_id, handler, data, data_dtor);
2043 void
2044 event_object_do_emit_current_context (EventObject *instance, int event_id, EventArgs *calldata)
2046 if (instance == NULL)
2047 return;
2049 instance->DoEmitCurrentContext (event_id, calldata);
2054 event_object_get_object_type (EventObject *instance)
2056 if (instance == NULL)
2057 return Type::INVALID;
2059 return instance->GetObjectType ();
2063 const char *
2064 event_object_get_type_name (EventObject *instance)
2066 if (instance == NULL)
2067 return NULL;
2069 return instance->GetTypeName ();
2073 void
2074 event_object_ref (EventObject *instance)
2076 if (instance == NULL)
2077 return;
2079 instance->ref ();
2084 event_object_remove_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data)
2086 if (instance == NULL)
2087 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2088 return (int) 0;
2090 return instance->RemoveHandler (event_id, handler, data);
2094 void
2095 event_object_remove_on_event_handler (EventObject *instance, int event_id, EventHandler handler, gpointer data)
2097 if (instance == NULL)
2098 return;
2100 instance->RemoveOnEventHandler (event_id, handler, data);
2104 void
2105 event_object_remove_toggle_ref_notifier (EventObject *instance)
2107 if (instance == NULL)
2108 return;
2110 instance->RemoveToggleRefNotifier ();
2114 void
2115 event_object_set_object_type (EventObject *instance, int value)
2117 if (instance == NULL)
2118 return;
2120 instance->SetObjectType ((Type::Kind) value);
2124 void
2125 event_object_unref (EventObject *instance)
2127 if (instance == NULL)
2128 return;
2130 instance->unref ();
2135 * EventTrigger
2137 EventTrigger *
2138 event_trigger_new (void)
2140 return new EventTrigger ();
2145 * ExponentialEase
2147 double
2148 exponential_ease_ease_in_core (ExponentialEase *instance, double normalizedTime)
2150 if (instance == NULL)
2151 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2152 return (double) 0;
2154 return instance->EaseInCore (normalizedTime);
2158 ExponentialEase *
2159 exponential_ease_new (void)
2161 return new ExponentialEase ();
2166 * ExtensionPart
2168 ExtensionPart *
2169 extension_part_new (void)
2171 return new ExtensionPart ();
2176 * ExternalDecoder
2178 ExternalDecoder *
2179 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)
2181 return new ExternalDecoder (media, stream, instance, name, decode_frame_async, open_decoder_async, cleanup, clean_state, has_delayed_frame, dispose, dtor);
2186 * ExternalDecoderInfo
2188 ExternalDecoderInfo *
2189 external_decoder_info_new (void *instance, const char *name, ExternalDecoderInfo_SupportsCallback supports, ExternalDecoderInfo_Create create, ExternalDecoderInfo_dtor dtor)
2191 return new ExternalDecoderInfo (instance, name, supports, create, dtor);
2196 * ExternalDemuxer
2198 gint32
2199 external_demuxer_add_stream (ExternalDemuxer *instance, IMediaStream *stream)
2201 if (instance == NULL)
2202 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2203 return (gint32) 0;
2205 return instance->AddStream (stream);
2209 void
2210 external_demuxer_clear_callbacks (ExternalDemuxer *instance)
2212 if (instance == NULL)
2213 return;
2215 instance->ClearCallbacks ();
2219 void
2220 external_demuxer_set_can_seek (ExternalDemuxer *instance, bool value)
2222 if (instance == NULL)
2223 return;
2225 instance->SetCanSeek (value);
2230 * ExternalPart
2232 ExternalPart *
2233 external_part_new (void)
2235 return new ExternalPart ();
2240 * ExternalPartCollection
2242 ExternalPartCollection *
2243 external_part_collection_new (void)
2245 return new ExternalPartCollection ();
2250 * FrameworkElement
2252 bool
2253 framework_element_apply_template (FrameworkElement *instance)
2255 if (instance == NULL)
2256 return false;
2258 return instance->ApplyTemplate ();
2262 Size
2263 framework_element_arrange_override (FrameworkElement *instance, Size finalSize)
2265 if (instance == NULL)
2266 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2267 return (Size) 0;
2269 return instance->ArrangeOverride (finalSize);
2273 FrameworkElement *
2274 framework_element_new (void)
2276 return new FrameworkElement ();
2280 DependencyObject *
2281 framework_element_get_logical_parent (FrameworkElement *instance)
2283 if (instance == NULL)
2284 return NULL;
2286 return instance->GetLogicalParent ();
2290 Size
2291 framework_element_measure_override (FrameworkElement *instance, Size availableSize)
2293 if (instance == NULL)
2294 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2295 return (Size) 0;
2297 return instance->MeasureOverride (availableSize);
2301 void
2302 framework_element_register_managed_overrides (FrameworkElement *instance, MeasureOverrideCallback measure_cb, ArrangeOverrideCallback arrange_cb, GetDefaultTemplateCallback get_default_template_cb, LoadedCallback loaded_cb)
2304 if (instance == NULL)
2305 return;
2307 instance->RegisterManagedOverrides (measure_cb, arrange_cb, get_default_template_cb, loaded_cb);
2311 void
2312 framework_element_set_default_style (FrameworkElement *instance, Style *value)
2314 if (instance == NULL)
2315 return;
2317 instance->SetDefaultStyle (value);
2321 void
2322 framework_element_set_logical_parent (FrameworkElement *instance, DependencyObject *logical_parent, MoonError *error)
2324 if (instance == NULL)
2325 return;
2327 if (error == NULL)
2328 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2329 instance->SetLogicalParent (logical_parent, error);
2334 * FrameworkTemplate
2336 FrameworkTemplate *
2337 framework_template_new (void)
2339 return new FrameworkTemplate ();
2343 DependencyObject *
2344 framework_template_get_visual_tree (FrameworkTemplate *instance, FrameworkElement *templateBindingSource)
2346 if (instance == NULL)
2347 return NULL;
2349 return instance->GetVisualTree (templateBindingSource);
2354 * GeneralTransform
2356 GeneralTransform *
2357 general_transform_new (void)
2359 return new GeneralTransform ();
2363 Matrix *
2364 general_transform_get_matrix (GeneralTransform *instance)
2366 if (instance == NULL)
2367 return NULL;
2369 return instance->GetMatrix ();
2374 * Geometry
2376 Geometry *
2377 geometry_new (void)
2379 return new Geometry ();
2383 Rect
2384 geometry_get_bounds (Geometry *instance)
2386 if (instance == NULL)
2387 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2388 return (Rect) 0;
2390 return instance->GetBounds ();
2395 * GeometryCollection
2397 GeometryCollection *
2398 geometry_collection_new (void)
2400 return new GeometryCollection ();
2405 * GeometryGroup
2407 GeometryGroup *
2408 geometry_group_new (void)
2410 return new GeometryGroup ();
2415 * Glyphs
2417 Glyphs *
2418 glyphs_new (void)
2420 return new Glyphs ();
2425 * GradientBrush
2427 GradientBrush *
2428 gradient_brush_new (void)
2430 return new GradientBrush ();
2435 * GradientStop
2437 GradientStop *
2438 gradient_stop_new (void)
2440 return new GradientStop ();
2445 * GradientStopCollection
2447 GradientStopCollection *
2448 gradient_stop_collection_new (void)
2450 return new GradientStopCollection ();
2455 * Grid
2457 Grid *
2458 grid_new (void)
2460 return new Grid ();
2465 * HitTestCollection
2467 HitTestCollection *
2468 hit_test_collection_new (void)
2470 return new HitTestCollection ();
2475 * Icon
2477 Icon *
2478 icon_new (void)
2480 return new Icon ();
2485 * IconCollection
2487 IconCollection *
2488 icon_collection_new (void)
2490 return new IconCollection ();
2495 * Image
2497 Image *
2498 image_new (void)
2500 return new Image ();
2504 void
2505 image_set_source (Image *instance, ImageSource *source)
2507 if (instance == NULL)
2508 return;
2510 instance->SetSource (source);
2515 * ImageBrush
2517 ImageBrush *
2518 image_brush_new (void)
2520 return new ImageBrush ();
2525 * ImageSource
2527 ImageSource *
2528 image_source_new (void)
2530 return new ImageSource ();
2535 * IMediaDecoder
2537 void
2538 imedia_decoder_report_decode_frame_completed (IMediaDecoder *instance, MediaFrame *frame)
2540 if (instance == NULL)
2541 return;
2543 instance->ReportDecodeFrameCompleted (frame);
2547 void
2548 imedia_decoder_report_open_decoder_completed (IMediaDecoder *instance)
2550 if (instance == NULL)
2551 return;
2553 instance->ReportOpenDecoderCompleted ();
2557 void
2558 imedia_decoder_set_pixel_format (IMediaDecoder *instance, int value)
2560 if (instance == NULL)
2561 return;
2563 instance->SetPixelFormat ((MoonPixelFormat) value);
2568 * IMediaDemuxer
2570 void
2571 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer *instance, int diagnosticKind, gint64 diagnosticValue)
2573 if (instance == NULL)
2574 return;
2576 instance->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind) diagnosticKind, diagnosticValue);
2580 void
2581 imedia_demuxer_report_get_frame_completed (IMediaDemuxer *instance, MediaFrame *frame)
2583 if (instance == NULL)
2584 return;
2586 instance->ReportGetFrameCompleted (frame);
2590 void
2591 imedia_demuxer_report_get_frame_progress (IMediaDemuxer *instance, double bufferingProgress)
2593 if (instance == NULL)
2594 return;
2596 instance->ReportGetFrameProgress (bufferingProgress);
2600 void
2601 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer *instance)
2603 if (instance == NULL)
2604 return;
2606 instance->ReportOpenDemuxerCompleted ();
2610 void
2611 imedia_demuxer_report_seek_completed (IMediaDemuxer *instance, guint64 pts)
2613 if (instance == NULL)
2614 return;
2616 instance->ReportSeekCompleted (pts);
2620 void
2621 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer *instance, IMediaStream *stream)
2623 if (instance == NULL)
2624 return;
2626 instance->ReportSwitchMediaStreamCompleted (stream);
2631 * IMediaObject
2633 Media *
2634 imedia_object_get_media_reffed (IMediaObject *instance)
2636 if (instance == NULL)
2637 return NULL;
2639 return instance->GetMediaReffed ();
2643 void
2644 imedia_object_report_error_occurred (IMediaObject *instance, const char *message)
2646 if (instance == NULL)
2647 return;
2649 instance->ReportErrorOccurred (message);
2654 * IMediaStream
2656 const char *
2657 imedia_stream_get_codec (IMediaStream *instance)
2659 if (instance == NULL)
2660 return NULL;
2662 return instance->GetCodec ();
2667 imedia_stream_get_codec_id (IMediaStream *instance)
2669 if (instance == NULL)
2670 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2671 return (int) 0;
2673 return instance->GetCodecId ();
2677 guint64
2678 imedia_stream_get_duration (IMediaStream *instance)
2680 if (instance == NULL)
2681 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2682 return (guint64) 0;
2684 return instance->GetDuration ();
2688 void *
2689 imedia_stream_get_extra_data (IMediaStream *instance)
2691 if (instance == NULL)
2692 return NULL;
2694 return instance->GetExtraData ();
2699 imedia_stream_get_extra_data_size (IMediaStream *instance)
2701 if (instance == NULL)
2702 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2703 return (int) 0;
2705 return instance->GetExtraDataSize ();
2710 imedia_stream_get_stream_type (IMediaStream *instance)
2712 if (instance == NULL)
2713 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2714 return (MediaStreamType) 0;
2716 return instance->GetStreamType ();
2720 void
2721 imedia_stream_set_codec_id (IMediaStream *instance, int value)
2723 if (instance == NULL)
2724 return;
2726 instance->SetCodecId (value);
2730 void
2731 imedia_stream_set_duration (IMediaStream *instance, guint64 value)
2733 if (instance == NULL)
2734 return;
2736 instance->SetDuration (value);
2740 void
2741 imedia_stream_set_extra_data (IMediaStream *instance, void *value)
2743 if (instance == NULL)
2744 return;
2746 instance->SetExtraData (value);
2750 void
2751 imedia_stream_set_extra_data_size (IMediaStream *instance, int value)
2753 if (instance == NULL)
2754 return;
2756 instance->SetExtraDataSize (value);
2761 * InkPresenter
2763 InkPresenter *
2764 ink_presenter_new (void)
2766 return new InkPresenter ();
2771 * Inline
2773 Inline *
2774 inline_new (void)
2776 return new Inline ();
2781 * InlineCollection
2783 InlineCollection *
2784 inline_collection_new (void)
2786 return new InlineCollection ();
2791 * InputMethod
2793 InputMethod *
2794 input_method_new (void)
2796 return new InputMethod ();
2801 * ItemCollection
2803 ItemCollection *
2804 item_collection_new (void)
2806 return new ItemCollection ();
2811 * Keyboard
2814 keyboard_get_modifiers (void)
2816 return Keyboard::GetModifiers ();
2821 * KeyEventArgs
2824 key_event_args_get_key (KeyEventArgs *instance)
2826 if (instance == NULL)
2827 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2828 return (int) 0;
2830 return instance->GetKey ();
2835 key_event_args_get_platform_key_code (KeyEventArgs *instance)
2837 if (instance == NULL)
2838 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2839 return (int) 0;
2841 return instance->GetPlatformKeyCode ();
2845 KeyEventArgs *
2846 key_event_args_new (void)
2848 return new KeyEventArgs ();
2853 * KeyFrameCollection
2855 KeyFrameCollection *
2856 key_frame_collection_new (void)
2858 return new KeyFrameCollection ();
2863 * KeySpline
2865 KeySpline *
2866 key_spline_new (void)
2868 return new KeySpline ();
2873 * Line
2875 Line *
2876 line_new (void)
2878 return new Line ();
2883 * LinearColorKeyFrame
2885 LinearColorKeyFrame *
2886 linear_color_key_frame_new (void)
2888 return new LinearColorKeyFrame ();
2893 * LinearDoubleKeyFrame
2895 LinearDoubleKeyFrame *
2896 linear_double_key_frame_new (void)
2898 return new LinearDoubleKeyFrame ();
2903 * LinearGradientBrush
2905 LinearGradientBrush *
2906 linear_gradient_brush_new (void)
2908 return new LinearGradientBrush ();
2913 * LinearPointKeyFrame
2915 LinearPointKeyFrame *
2916 linear_point_key_frame_new (void)
2918 return new LinearPointKeyFrame ();
2923 * LineBreak
2925 LineBreak *
2926 line_break_new (void)
2928 return new LineBreak ();
2933 * LineGeometry
2935 LineGeometry *
2936 line_geometry_new (void)
2938 return new LineGeometry ();
2943 * LineSegment
2945 LineSegment *
2946 line_segment_new (void)
2948 return new LineSegment ();
2953 * LogReadyRoutedEventArgs
2955 LogReadyRoutedEventArgs *
2956 log_ready_routed_event_args_new (void)
2958 return new LogReadyRoutedEventArgs ();
2963 * Matrix
2965 cairo_matrix_t *
2966 matrix_get_matrix_values (Matrix *instance)
2968 if (instance == NULL)
2969 return NULL;
2971 return instance->GetMatrixValues ();
2975 Matrix *
2976 matrix_new (void)
2978 return new Matrix ();
2983 * Matrix3D
2985 gpointer
2986 matrix3_d_get_matrix_values (Matrix3D *instance)
2988 if (instance == NULL)
2989 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2990 return (gpointer) 0;
2992 return instance->GetMatrixValues ();
2996 Matrix3D *
2997 matrix3_d_new (void)
2999 return new Matrix3D ();
3004 * Matrix3DProjection
3006 Matrix3DProjection *
3007 matrix3_dprojection_new (void)
3009 return new Matrix3DProjection ();
3014 * MatrixTransform
3016 MatrixTransform *
3017 matrix_transform_new (void)
3019 return new MatrixTransform ();
3024 * Media
3026 void
3027 media_register_decoder (DecoderInfo *info)
3029 Media::RegisterDecoder (info);
3034 * MediaAttribute
3036 MediaAttribute *
3037 media_attribute_new (void)
3039 return new MediaAttribute ();
3044 * MediaAttributeCollection
3046 MediaAttribute *
3047 media_attribute_collection_get_item_by_name (MediaAttributeCollection *instance, const char *name)
3049 if (instance == NULL)
3050 return NULL;
3052 return instance->GetItemByName (name);
3056 MediaAttributeCollection *
3057 media_attribute_collection_new (void)
3059 return new MediaAttributeCollection ();
3064 * MediaBase
3066 MediaBase *
3067 media_base_new (void)
3069 return new MediaBase ();
3073 void
3074 media_base_set_source (MediaBase *instance, const char *uri)
3076 if (instance == NULL)
3077 return;
3079 instance->SetSource (uri);
3084 * MediaElement
3086 MediaElement *
3087 media_element_new (void)
3089 return new MediaElement ();
3093 void
3094 media_element_pause (MediaElement *instance)
3096 if (instance == NULL)
3097 return;
3099 instance->Pause ();
3103 void
3104 media_element_play (MediaElement *instance)
3106 if (instance == NULL)
3107 return;
3109 instance->Play ();
3113 void
3114 media_element_report_error_occurred (MediaElement *instance, const char *args)
3116 if (instance == NULL)
3117 return;
3119 instance->ReportErrorOccurred (args);
3123 IMediaDemuxer *
3124 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)
3126 if (instance == NULL)
3127 return NULL;
3129 return instance->SetDemuxerSource (context, close_demuxer, get_diagnostic, get_sample, open_demuxer, seek, switch_media_stream);
3133 void
3134 media_element_set_stream_source (MediaElement *instance, ManagedStreamCallbacks *stream)
3136 if (instance == NULL)
3137 return;
3139 instance->SetStreamSource (stream);
3143 void
3144 media_element_stop (MediaElement *instance)
3146 if (instance == NULL)
3147 return;
3149 instance->Stop ();
3154 * MediaFrame
3156 void
3157 media_frame_add_state (MediaFrame *instance, int state)
3159 if (instance == NULL)
3160 return;
3162 instance->AddState ((MediaFrameState) state);
3166 guint8 *
3167 media_frame_get_buffer (MediaFrame *instance)
3169 if (instance == NULL)
3170 return NULL;
3172 return instance->GetBuffer ();
3176 guint32
3177 media_frame_get_buf_len (MediaFrame *instance)
3179 if (instance == NULL)
3180 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3181 return (guint32) 0;
3183 return instance->GetBufLen ();
3187 gint32
3188 media_frame_get_height (MediaFrame *instance)
3190 if (instance == NULL)
3191 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3192 return (gint32) 0;
3194 return instance->GetHeight ();
3198 guint64
3199 media_frame_get_pts (MediaFrame *instance)
3201 if (instance == NULL)
3202 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3203 return (guint64) 0;
3205 return instance->GetPts ();
3209 gint32
3210 media_frame_get_width (MediaFrame *instance)
3212 if (instance == NULL)
3213 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3214 return (gint32) 0;
3216 return instance->GetWidth ();
3220 bool
3221 media_frame_is_key_frame (MediaFrame *instance)
3223 if (instance == NULL)
3224 return false;
3226 return instance->IsKeyFrame ();
3230 MediaFrame *
3231 media_frame_new (IMediaStream *stream, guint8 *buffer, guint32 buflen, guint64 pts, bool keyframe)
3233 return new MediaFrame (stream, buffer, buflen, pts, keyframe);
3237 void
3238 media_frame_set_buffer (MediaFrame *instance, guint8 *value)
3240 if (instance == NULL)
3241 return;
3243 instance->SetBuffer (value);
3247 void
3248 media_frame_set_buf_len (MediaFrame *instance, guint32 value)
3250 if (instance == NULL)
3251 return;
3253 instance->SetBufLen (value);
3257 void
3258 media_frame_set_data_stride (MediaFrame *instance, guint8 *a, guint8 *b, guint8 *c, guint8 *d)
3260 if (instance == NULL)
3261 return;
3263 instance->SetDataStride (a, b, c, d);
3267 void
3268 media_frame_set_decoder_specific_data (MediaFrame *instance, void *value)
3270 if (instance == NULL)
3271 return;
3273 instance->SetDecoderSpecificData (value);
3277 void
3278 media_frame_set_height (MediaFrame *instance, gint32 value)
3280 if (instance == NULL)
3281 return;
3283 instance->SetHeight (value);
3287 void
3288 media_frame_set_pts (MediaFrame *instance, guint64 value)
3290 if (instance == NULL)
3291 return;
3293 instance->SetPts (value);
3297 void
3298 media_frame_set_src_slide_h (MediaFrame *instance, int value)
3300 if (instance == NULL)
3301 return;
3303 instance->SetSrcSlideH (value);
3307 void
3308 media_frame_set_src_slide_y (MediaFrame *instance, int value)
3310 if (instance == NULL)
3311 return;
3313 instance->SetSrcSlideY (value);
3317 void
3318 media_frame_set_src_stride (MediaFrame *instance, int a, int b, int c, int d)
3320 if (instance == NULL)
3321 return;
3323 instance->SetSrcStride (a, b, c, d);
3327 void
3328 media_frame_set_width (MediaFrame *instance, gint32 value)
3330 if (instance == NULL)
3331 return;
3333 instance->SetWidth (value);
3338 * MoonWindow
3340 bool
3341 moon_window_get_transparent (MoonWindow *instance)
3343 if (instance == NULL)
3344 return false;
3346 return instance->GetTransparent ();
3350 void
3351 moon_window_set_transparent (MoonWindow *instance, bool flag)
3353 if (instance == NULL)
3354 return;
3356 instance->SetTransparent (flag);
3361 * MoonWindowGtk
3363 void *
3364 moon_window_gtk_get_native_widget (MoonWindowGtk *instance)
3366 if (instance == NULL)
3367 return NULL;
3369 return instance->GetNativeWidget ();
3373 MoonWindowGtk *
3374 moon_window_gtk_new (bool fullscreen, int w, int h, MoonWindow *parent, Surface *surface)
3376 return new MoonWindowGtk (fullscreen, w, h, parent, surface);
3381 * MouseButtonEventArgs
3383 MouseButtonEventArgs *
3384 mouse_button_event_args_new (void)
3386 return new MouseButtonEventArgs ();
3391 * MouseEventArgs
3393 void
3394 mouse_event_args_get_position (MouseEventArgs *instance, UIElement *relative_to, double *x, double *y)
3396 if (instance == NULL)
3397 return;
3399 instance->GetPosition (relative_to, x, y);
3403 StylusInfo *
3404 mouse_event_args_get_stylus_info (MouseEventArgs *instance)
3406 if (instance == NULL)
3407 return NULL;
3409 return instance->GetStylusInfo ();
3413 StylusPointCollection *
3414 mouse_event_args_get_stylus_points (MouseEventArgs *instance, UIElement *ink_presenter)
3416 if (instance == NULL)
3417 return NULL;
3419 return instance->GetStylusPoints (ink_presenter);
3423 MouseEventArgs *
3424 mouse_event_args_new (void)
3426 return new MouseEventArgs ();
3431 * MouseWheelEventArgs
3434 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs *instance)
3436 if (instance == NULL)
3437 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3438 return (int) 0;
3440 return instance->GetWheelDelta ();
3444 MouseWheelEventArgs *
3445 mouse_wheel_event_args_new (void)
3447 return new MouseWheelEventArgs ();
3452 * MultiScaleImage
3454 Point
3455 multi_scale_image_element_to_logical_point (MultiScaleImage *instance, Point elementPoint)
3457 if (instance == NULL)
3458 return Point (0, 0);
3460 return instance->ElementToLogicalPoint (elementPoint);
3464 void
3465 multi_scale_image_emit_image_failed (MultiScaleImage *instance)
3467 if (instance == NULL)
3468 return;
3470 instance->EmitImageFailed ();
3474 void
3475 multi_scale_image_emit_image_open_failed (MultiScaleImage *instance)
3477 if (instance == NULL)
3478 return;
3480 instance->EmitImageOpenFailed ();
3484 void
3485 multi_scale_image_emit_motion_finished (MultiScaleImage *instance)
3487 if (instance == NULL)
3488 return;
3490 instance->EmitMotionFinished ();
3494 void
3495 multi_scale_image_handle_dz_parsed (MultiScaleImage *instance)
3497 if (instance == NULL)
3498 return;
3500 instance->HandleDzParsed ();
3504 void
3505 multi_scale_image_invalidate_tile_layer (MultiScaleImage *instance, int level, int tilePositionX, int tilePositionY, int tileLayer)
3507 if (instance == NULL)
3508 return;
3510 instance->InvalidateTileLayer (level, tilePositionX, tilePositionY, tileLayer);
3514 Point
3515 multi_scale_image_logical_to_element_point (MultiScaleImage *instance, Point logicalPoint)
3517 if (instance == NULL)
3518 return Point (0, 0);
3520 return instance->LogicalToElementPoint (logicalPoint);
3524 MultiScaleImage *
3525 multi_scale_image_new (void)
3527 return new MultiScaleImage ();
3531 void
3532 multi_scale_image_on_source_property_changed (MultiScaleImage *instance)
3534 if (instance == NULL)
3535 return;
3537 instance->OnSourcePropertyChanged ();
3541 void
3542 multi_scale_image_zoom_about_logical_point (MultiScaleImage *instance, double zoomIncrementFactor, double zoomCenterLogicalX, double zoomCenterLogicalY)
3544 if (instance == NULL)
3545 return;
3547 instance->ZoomAboutLogicalPoint (zoomIncrementFactor, zoomCenterLogicalX, zoomCenterLogicalY);
3552 * MultiScaleSubImage
3554 gint32
3555 multi_scale_sub_image_get_zindex (MultiScaleSubImage *instance)
3557 if (instance == NULL)
3558 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3559 return (gint32) 0;
3561 return instance->GetZIndex ();
3565 MultiScaleSubImage *
3566 multi_scale_sub_image_new (void)
3568 return new MultiScaleSubImage ();
3573 * MultiScaleSubImageCollection
3575 MultiScaleSubImageCollection *
3576 multi_scale_sub_image_collection_new (void)
3578 return new MultiScaleSubImageCollection ();
3583 * MultiScaleTileSource
3585 void
3586 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource *instance, int level, int tilePositionX, int tilePositionY, int tileLayer)
3588 if (instance == NULL)
3589 return;
3591 instance->InvalidateTileLayer (level, tilePositionX, tilePositionY, tileLayer);
3595 MultiScaleTileSource *
3596 multi_scale_tile_source_new (void)
3598 return new MultiScaleTileSource ();
3602 void
3603 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource *instance, get_image_uri_func func)
3605 if (instance == NULL)
3606 return;
3608 instance->set_image_uri_func (func);
3613 * NameScope
3615 NameScope *
3616 name_scope_new (void)
3618 return new NameScope ();
3623 * ObjectAnimationUsingKeyFrames
3625 ObjectAnimationUsingKeyFrames *
3626 object_animation_using_key_frames_new (void)
3628 return new ObjectAnimationUsingKeyFrames ();
3633 * ObjectKeyFrame
3635 ObjectKeyFrame *
3636 object_key_frame_new (void)
3638 return new ObjectKeyFrame ();
3643 * ObjectKeyFrameCollection
3645 ObjectKeyFrameCollection *
3646 object_key_frame_collection_new (void)
3648 return new ObjectKeyFrameCollection ();
3653 * OutOfBrowserSettings
3655 OutOfBrowserSettings *
3656 out_of_browser_settings_new (void)
3658 return new OutOfBrowserSettings ();
3663 * Panel
3665 Panel *
3666 panel_new (void)
3668 return new Panel ();
3673 * ParallelTimeline
3675 ParallelTimeline *
3676 parallel_timeline_new (void)
3678 return new ParallelTimeline ();
3683 * PasswordBox
3685 PasswordBox *
3686 password_box_new (void)
3688 return new PasswordBox ();
3693 * Path
3695 Path *
3696 path_new (void)
3698 return new Path ();
3703 * PathFigure
3705 PathFigure *
3706 path_figure_new (void)
3708 return new PathFigure ();
3713 * PathFigureCollection
3715 PathFigureCollection *
3716 path_figure_collection_new (void)
3718 return new PathFigureCollection ();
3723 * PathGeometry
3725 PathGeometry *
3726 path_geometry_new (void)
3728 return new PathGeometry ();
3733 * PathSegment
3735 PathSegment *
3736 path_segment_new (void)
3738 return new PathSegment ();
3743 * PathSegmentCollection
3745 PathSegmentCollection *
3746 path_segment_collection_new (void)
3748 return new PathSegmentCollection ();
3753 * PixelShader
3755 PixelShader *
3756 pixel_shader_new (void)
3758 return new PixelShader ();
3763 * PlaneProjection
3765 PlaneProjection *
3766 plane_projection_new (void)
3768 return new PlaneProjection ();
3773 * PointAnimation
3775 PointAnimation *
3776 point_animation_new (void)
3778 return new PointAnimation ();
3783 * PointAnimationUsingKeyFrames
3785 PointAnimationUsingKeyFrames *
3786 point_animation_using_key_frames_new (void)
3788 return new PointAnimationUsingKeyFrames ();
3793 * PointCollection
3795 PointCollection *
3796 point_collection_new (void)
3798 return new PointCollection ();
3803 * PointKeyFrame
3805 PointKeyFrame *
3806 point_key_frame_new (void)
3808 return new PointKeyFrame ();
3813 * PointKeyFrameCollection
3815 PointKeyFrameCollection *
3816 point_key_frame_collection_new (void)
3818 return new PointKeyFrameCollection ();
3823 * PolyBezierSegment
3825 PolyBezierSegment *
3826 poly_bezier_segment_new (void)
3828 return new PolyBezierSegment ();
3832 void
3833 poly_bezier_segment_set_points (PolyBezierSegment *instance, PointCollection *points)
3835 if (instance == NULL)
3836 return;
3838 instance->SetPoints (points);
3843 * Polygon
3845 Polygon *
3846 polygon_new (void)
3848 return new Polygon ();
3853 * Polyline
3855 Polyline *
3856 polyline_new (void)
3858 return new Polyline ();
3863 * PolyLineSegment
3865 PolyLineSegment *
3866 poly_line_segment_new (void)
3868 return new PolyLineSegment ();
3873 * PolyQuadraticBezierSegment
3875 PolyQuadraticBezierSegment *
3876 poly_quadratic_bezier_segment_new (void)
3878 return new PolyQuadraticBezierSegment ();
3883 * Popup
3885 Popup *
3886 popup_new (void)
3888 return new Popup ();
3893 * PowerEase
3895 double
3896 power_ease_ease_in_core (PowerEase *instance, double normalizedTime)
3898 if (instance == NULL)
3899 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3900 return (double) 0;
3902 return instance->EaseInCore (normalizedTime);
3906 PowerEase *
3907 power_ease_new (void)
3909 return new PowerEase ();
3914 * Projection
3916 Projection *
3917 projection_new (void)
3919 return new Projection ();
3924 * PropertyChangedEventArgs
3927 property_changed_event_args_get_id (PropertyChangedEventArgs *instance)
3929 if (instance == NULL)
3930 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3931 return (int) 0;
3933 return instance->GetId ();
3937 Value *
3938 property_changed_event_args_get_new_value (PropertyChangedEventArgs *instance)
3940 if (instance == NULL)
3941 return NULL;
3943 return instance->GetNewValue ();
3947 Value *
3948 property_changed_event_args_get_old_value (PropertyChangedEventArgs *instance)
3950 if (instance == NULL)
3951 return NULL;
3953 return instance->GetOldValue ();
3957 DependencyProperty *
3958 property_changed_event_args_get_property (PropertyChangedEventArgs *instance)
3960 if (instance == NULL)
3961 return NULL;
3963 return instance->GetProperty ();
3968 * QuadraticBezierSegment
3970 QuadraticBezierSegment *
3971 quadratic_bezier_segment_new (void)
3973 return new QuadraticBezierSegment ();
3978 * QuadraticEase
3980 double
3981 quadratic_ease_ease_in_core (QuadraticEase *instance, double normalizedTime)
3983 if (instance == NULL)
3984 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3985 return (double) 0;
3987 return instance->EaseInCore (normalizedTime);
3991 QuadraticEase *
3992 quadratic_ease_new (void)
3994 return new QuadraticEase ();
3999 * QuarticEase
4001 double
4002 quartic_ease_ease_in_core (QuarticEase *instance, double normalizedTime)
4004 if (instance == NULL)
4005 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4006 return (double) 0;
4008 return instance->EaseInCore (normalizedTime);
4012 QuarticEase *
4013 quartic_ease_new (void)
4015 return new QuarticEase ();
4020 * QuinticEase
4022 double
4023 quintic_ease_ease_in_core (QuinticEase *instance, double normalizedTime)
4025 if (instance == NULL)
4026 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4027 return (double) 0;
4029 return instance->EaseInCore (normalizedTime);
4033 QuinticEase *
4034 quintic_ease_new (void)
4036 return new QuinticEase ();
4041 * RadialGradientBrush
4043 RadialGradientBrush *
4044 radial_gradient_brush_new (void)
4046 return new RadialGradientBrush ();
4051 * Rectangle
4053 Rectangle *
4054 rectangle_new (void)
4056 return new Rectangle ();
4061 * RectangleGeometry
4063 RectangleGeometry *
4064 rectangle_geometry_new (void)
4066 return new RectangleGeometry ();
4071 * RenderingEventArgs
4073 TimeSpan
4074 rendering_event_args_get_rendering_time (RenderingEventArgs *instance)
4076 if (instance == NULL)
4077 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4078 return (TimeSpan) 0;
4080 return instance->GetRenderingTime ();
4085 * ResourceDictionary
4087 bool
4088 resource_dictionary_add_with_error (ResourceDictionary *instance, const char *key, Value *value, MoonError *error)
4090 if (instance == NULL)
4091 return false;
4093 if (error == NULL)
4094 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4095 return instance->AddWithError (key, value, error);
4099 bool
4100 resource_dictionary_clear (ResourceDictionary *instance)
4102 if (instance == NULL)
4103 return false;
4105 return instance->Clear ();
4109 bool
4110 resource_dictionary_contains_key (ResourceDictionary *instance, const char *key)
4112 if (instance == NULL)
4113 return false;
4115 return instance->ContainsKey (key);
4119 Value *
4120 resource_dictionary_get (ResourceDictionary *instance, const char *key, bool *exists)
4122 if (instance == NULL)
4123 return NULL;
4125 return instance->Get (key, exists);
4129 bool
4130 resource_dictionary_remove (ResourceDictionary *instance, const char *key)
4132 if (instance == NULL)
4133 return false;
4135 return instance->Remove (key);
4139 ResourceDictionary *
4140 resource_dictionary_new (void)
4142 return new ResourceDictionary ();
4146 bool
4147 resource_dictionary_set (ResourceDictionary *instance, const char *key, Value *value)
4149 if (instance == NULL)
4150 return false;
4152 return instance->Set (key, value);
4157 * ResourceDictionaryCollection
4159 ResourceDictionaryCollection *
4160 resource_dictionary_collection_new (void)
4162 return new ResourceDictionaryCollection ();
4167 * ResourceDictionaryIterator
4169 const char *
4170 resource_dictionary_iterator_get_current_key (ResourceDictionaryIterator *instance, MoonError *error)
4172 if (instance == NULL)
4173 return NULL;
4175 if (error == NULL)
4176 g_warning ("Moonlight: Called resource_dictionary_iterator_get_current_key () with error == NULL.");
4177 return instance->GetCurrentKey (error);
4182 * RotateTransform
4184 RotateTransform *
4185 rotate_transform_new (void)
4187 return new RotateTransform ();
4192 * RoutedEventArgs
4194 bool
4195 routed_event_args_get_handled (RoutedEventArgs *instance)
4197 if (instance == NULL)
4198 return false;
4200 return instance->GetHandled ();
4204 DependencyObject *
4205 routed_event_args_get_source (RoutedEventArgs *instance)
4207 if (instance == NULL)
4208 return NULL;
4210 return instance->GetSource ();
4214 RoutedEventArgs *
4215 routed_event_args_new (void)
4217 return new RoutedEventArgs ();
4221 void
4222 routed_event_args_set_handled (RoutedEventArgs *instance, bool handled)
4224 if (instance == NULL)
4225 return;
4227 instance->SetHandled (handled);
4231 void
4232 routed_event_args_set_source (RoutedEventArgs *instance, DependencyObject *el)
4234 if (instance == NULL)
4235 return;
4237 instance->SetSource (el);
4242 * RowDefinition
4244 RowDefinition *
4245 row_definition_new (void)
4247 return new RowDefinition ();
4252 * RowDefinitionCollection
4254 RowDefinitionCollection *
4255 row_definition_collection_new (void)
4257 return new RowDefinitionCollection ();
4262 * Run
4264 Run *
4265 run_new (void)
4267 return new Run ();
4272 * ScaleTransform
4274 ScaleTransform *
4275 scale_transform_new (void)
4277 return new ScaleTransform ();
4282 * Setter
4284 Setter *
4285 setter_new (void)
4287 return new Setter ();
4292 * SetterBase
4294 SetterBase *
4295 setter_base_new (void)
4297 return new SetterBase ();
4302 * SetterBaseCollection
4304 SetterBaseCollection *
4305 setter_base_collection_new (void)
4307 return new SetterBaseCollection ();
4312 * ShaderEffect
4314 ShaderEffect *
4315 shader_effect_new (void)
4317 return new ShaderEffect ();
4322 * Shape
4324 Transform *
4325 shape_get_geometry_transform (Shape *instance)
4327 if (instance == NULL)
4328 return NULL;
4330 return instance->GetGeometryTransform ();
4334 Shape *
4335 shape_new (void)
4337 return new Shape ();
4342 * SineEase
4344 double
4345 sine_ease_ease_in_core (SineEase *instance, double normalizedTime)
4347 if (instance == NULL)
4348 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4349 return (double) 0;
4351 return instance->EaseInCore (normalizedTime);
4355 SineEase *
4356 sine_ease_new (void)
4358 return new SineEase ();
4363 * SizeChangedEventArgs
4365 SizeChangedEventArgs *
4366 size_changed_event_args_new (void)
4368 return new SizeChangedEventArgs ();
4373 * SkewTransform
4375 SkewTransform *
4376 skew_transform_new (void)
4378 return new SkewTransform ();
4383 * SolidColorBrush
4385 SolidColorBrush *
4386 solid_color_brush_new (void)
4388 return new SolidColorBrush ();
4393 * SplineColorKeyFrame
4395 SplineColorKeyFrame *
4396 spline_color_key_frame_new (void)
4398 return new SplineColorKeyFrame ();
4403 * SplineDoubleKeyFrame
4405 SplineDoubleKeyFrame *
4406 spline_double_key_frame_new (void)
4408 return new SplineDoubleKeyFrame ();
4413 * SplinePointKeyFrame
4415 SplinePointKeyFrame *
4416 spline_point_key_frame_new (void)
4418 return new SplinePointKeyFrame ();
4423 * Storyboard
4425 bool
4426 storyboard_begin_with_error (Storyboard *instance, MoonError *error)
4428 if (instance == NULL)
4429 return false;
4431 if (error == NULL)
4432 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4433 return instance->BeginWithError (error);
4438 storyboard_get_current_state (Storyboard *instance)
4440 if (instance == NULL)
4441 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4442 return (int) 0;
4444 return instance->GetCurrentState ();
4448 TimeSpan
4449 storyboard_get_current_time (Storyboard *instance)
4451 if (instance == NULL)
4452 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4453 return (TimeSpan) 0;
4455 return instance->GetCurrentTime ();
4459 DependencyProperty *
4460 storyboard_get_target_dependency_property (Storyboard *instance)
4462 if (instance == NULL)
4463 return NULL;
4465 return instance->GetTargetDependencyProperty ();
4469 void
4470 storyboard_pause_with_error (Storyboard *instance, MoonError *error)
4472 if (instance == NULL)
4473 return;
4475 if (error == NULL)
4476 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4477 instance->PauseWithError (error);
4481 void
4482 storyboard_resume_with_error (Storyboard *instance, MoonError *error)
4484 if (instance == NULL)
4485 return;
4487 if (error == NULL)
4488 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4489 instance->ResumeWithError (error);
4493 void
4494 storyboard_seek_aligned_to_last_tick_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error)
4496 if (instance == NULL)
4497 return;
4499 if (error == NULL)
4500 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4501 instance->SeekAlignedToLastTickWithError (timespan, error);
4505 void
4506 storyboard_seek_with_error (Storyboard *instance, TimeSpan timespan, MoonError *error)
4508 if (instance == NULL)
4509 return;
4511 if (error == NULL)
4512 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4513 instance->SeekWithError (timespan, error);
4517 void
4518 storyboard_skip_to_fill_with_error (Storyboard *instance, MoonError *error)
4520 if (instance == NULL)
4521 return;
4523 if (error == NULL)
4524 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4525 instance->SkipToFillWithError (error);
4529 void
4530 storyboard_stop_with_error (Storyboard *instance, MoonError *error)
4532 if (instance == NULL)
4533 return;
4535 if (error == NULL)
4536 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4537 instance->StopWithError (error);
4541 Storyboard *
4542 storyboard_new (void)
4544 return new Storyboard ();
4549 * Stroke
4551 bool
4552 stroke_hit_test (Stroke *instance, StylusPointCollection *stylusPoints)
4554 if (instance == NULL)
4555 return false;
4557 return instance->HitTest (stylusPoints);
4561 Stroke *
4562 stroke_new (void)
4564 return new Stroke ();
4569 * StrokeCollection
4571 StrokeCollection *
4572 stroke_collection_hit_test (StrokeCollection *instance, StylusPointCollection *stylusPoints)
4574 if (instance == NULL)
4575 return NULL;
4577 return instance->HitTest (stylusPoints);
4581 StrokeCollection *
4582 stroke_collection_new (void)
4584 return new StrokeCollection ();
4589 * Style
4591 void
4592 style_seal (Style *instance)
4594 if (instance == NULL)
4595 return;
4597 instance->Seal ();
4601 Style *
4602 style_new (void)
4604 return new Style ();
4609 * StylusInfo
4611 StylusInfo *
4612 stylus_info_new (void)
4614 return new StylusInfo ();
4619 * StylusPoint
4621 double
4622 stylus_point_get_pressure_factor (StylusPoint *instance)
4624 if (instance == NULL)
4625 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4626 return (double) 0;
4628 return instance->GetPressureFactor ();
4632 double
4633 stylus_point_get_x (StylusPoint *instance)
4635 if (instance == NULL)
4636 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4637 return (double) 0;
4639 return instance->GetX ();
4643 double
4644 stylus_point_get_y (StylusPoint *instance)
4646 if (instance == NULL)
4647 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4648 return (double) 0;
4650 return instance->GetY ();
4654 void
4655 stylus_point_set_pressure_factor (StylusPoint *instance, double factor)
4657 if (instance == NULL)
4658 return;
4660 instance->SetPressureFactor (factor);
4664 void
4665 stylus_point_set_x (StylusPoint *instance, double x)
4667 if (instance == NULL)
4668 return;
4670 instance->SetX (x);
4674 void
4675 stylus_point_set_y (StylusPoint *instance, double y)
4677 if (instance == NULL)
4678 return;
4680 instance->SetY (y);
4684 StylusPoint *
4685 stylus_point_new (void)
4687 return new StylusPoint ();
4692 * StylusPointCollection
4694 double
4695 stylus_point_collection_add_stylus_points (StylusPointCollection *instance, StylusPointCollection *stylusPointCollection)
4697 if (instance == NULL)
4698 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4699 return (double) 0;
4701 return instance->AddStylusPoints (stylusPointCollection);
4705 StylusPointCollection *
4706 stylus_point_collection_new (void)
4708 return new StylusPointCollection ();
4713 * Surface
4715 void
4716 surface_attach (Surface *instance, UIElement *toplevel)
4718 if (instance == NULL)
4719 return;
4721 instance->Attach (toplevel);
4725 Downloader *
4726 surface_create_downloader (Surface *instance)
4728 if (instance == NULL)
4729 return NULL;
4731 return instance->CreateDownloader ();
4735 void
4736 surface_emit_error (Surface *instance, int number, int code, const char *message)
4738 if (instance == NULL)
4739 return;
4741 instance->EmitError (number, code, message);
4745 Color *
4746 surface_get_background_color (Surface *instance)
4748 if (instance == NULL)
4749 return NULL;
4751 return instance->GetBackgroundColor ();
4755 UIElement *
4756 surface_get_focused_element (Surface *instance)
4758 if (instance == NULL)
4759 return NULL;
4761 return instance->GetFocusedElement ();
4765 bool
4766 surface_get_full_screen (Surface *instance)
4768 if (instance == NULL)
4769 return false;
4771 return instance->GetFullScreen ();
4775 TimeManager *
4776 surface_get_time_manager (Surface *instance)
4778 if (instance == NULL)
4779 return NULL;
4781 return instance->GetTimeManager ();
4785 UIElement *
4786 surface_get_toplevel (Surface *instance)
4788 if (instance == NULL)
4789 return NULL;
4791 return instance->GetToplevel ();
4795 MoonWindow *
4796 surface_get_window (Surface *instance)
4798 if (instance == NULL)
4799 return NULL;
4801 return instance->GetWindow ();
4805 double
4806 surface_get_zoom_factor (Surface *instance)
4808 if (instance == NULL)
4809 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4810 return (double) 0;
4812 return instance->GetZoomFactor ();
4816 bool
4817 surface_in_main_thread (void)
4819 return Surface::InMainThread ();
4823 bool
4824 surface_is_loaded (Surface *instance)
4826 if (instance == NULL)
4827 return false;
4829 return instance->IsLoaded ();
4833 bool
4834 surface_is_user_initiated_event (Surface *instance)
4836 if (instance == NULL)
4837 return false;
4839 return instance->IsUserInitiatedEvent ();
4843 bool
4844 surface_is_version_supported (const char *version)
4846 return Surface::IsVersionSupported (version);
4850 void
4851 surface_paint (Surface *instance, cairo_t *ctx, int x, int y, int width, int height)
4853 if (instance == NULL)
4854 return;
4856 instance->Paint (ctx, x, y, width, height);
4860 void
4861 surface_resize (Surface *instance, int width, int height)
4863 if (instance == NULL)
4864 return;
4866 instance->Resize (width, height);
4870 void
4871 surface_set_full_screen (Surface *instance, bool value)
4873 if (instance == NULL)
4874 return;
4876 instance->SetFullScreen (value);
4880 Surface *
4881 surface_new (MoonWindow *window)
4883 return new Surface (window);
4888 * TabNavigationWalker
4890 bool
4891 tab_navigation_walker_focus (UIElement *element, bool forwards)
4893 return TabNavigationWalker::Focus (element, forwards);
4898 * TextBlock
4900 TextBlock *
4901 text_block_new (void)
4903 return new TextBlock ();
4908 * TextBox
4910 TextBox *
4911 text_box_new (void)
4913 return new TextBox ();
4918 * TextBoxBase
4920 void
4921 text_box_base_on_got_focus (TextBoxBase *instance, RoutedEventArgs *args)
4923 if (instance == NULL)
4924 return;
4926 instance->OnGotFocus (args);
4930 void
4931 text_box_base_on_key_down (TextBoxBase *instance, KeyEventArgs *args)
4933 if (instance == NULL)
4934 return;
4936 instance->OnKeyDown (args);
4940 void
4941 text_box_base_on_key_up (TextBoxBase *instance, KeyEventArgs *args)
4943 if (instance == NULL)
4944 return;
4946 instance->OnKeyUp (args);
4950 void
4951 text_box_base_on_lost_focus (TextBoxBase *instance, RoutedEventArgs *args)
4953 if (instance == NULL)
4954 return;
4956 instance->OnLostFocus (args);
4960 void
4961 text_box_base_on_mouse_left_button_down (TextBoxBase *instance, MouseButtonEventArgs *args)
4963 if (instance == NULL)
4964 return;
4966 instance->OnMouseLeftButtonDown (args);
4970 void
4971 text_box_base_on_mouse_left_button_up (TextBoxBase *instance, MouseButtonEventArgs *args)
4973 if (instance == NULL)
4974 return;
4976 instance->OnMouseLeftButtonUp (args);
4980 void
4981 text_box_base_on_mouse_move (TextBoxBase *instance, MouseEventArgs *args)
4983 if (instance == NULL)
4984 return;
4986 instance->OnMouseMove (args);
4990 void
4991 text_box_base_post_on_key_down (TextBoxBase *instance, KeyEventArgs *args)
4993 if (instance == NULL)
4994 return;
4996 instance->PostOnKeyDown (args);
5000 void
5001 text_box_base_select_all (TextBoxBase *instance)
5003 if (instance == NULL)
5004 return;
5006 instance->SelectAll ();
5010 bool
5011 text_box_base_select_with_error (TextBoxBase *instance, int start, int length, MoonError *error)
5013 if (instance == NULL)
5014 return false;
5016 if (error == NULL)
5017 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
5018 return instance->SelectWithError (start, length, error);
5023 * TextBoxView
5025 TextBoxView *
5026 text_box_view_new (void)
5028 return new TextBoxView ();
5033 * TextChangedEventArgs
5035 TextChangedEventArgs *
5036 text_changed_event_args_new (void)
5038 return new TextChangedEventArgs ();
5043 * TileBrush
5045 TileBrush *
5046 tile_brush_new (void)
5048 return new TileBrush ();
5053 * Timeline
5055 DependencyObject *
5056 timeline_get_manual_target (Timeline *instance)
5058 if (instance == NULL)
5059 return NULL;
5061 return instance->GetManualTarget ();
5065 void
5066 timeline_set_manual_target (Timeline *instance, DependencyObject *o)
5068 if (instance == NULL)
5069 return;
5071 instance->SetManualTarget (o);
5075 Timeline *
5076 timeline_new (void)
5078 return new Timeline ();
5083 * TimelineCollection
5085 TimelineCollection *
5086 timeline_collection_new (void)
5088 return new TimelineCollection ();
5093 * TimelineGroup
5095 TimelineGroup *
5096 timeline_group_new (void)
5098 return new TimelineGroup ();
5103 * TimelineMarker
5105 TimelineMarker *
5106 timeline_marker_new (void)
5108 return new TimelineMarker ();
5113 * TimelineMarkerCollection
5115 TimelineMarkerCollection *
5116 timeline_marker_collection_new (void)
5118 return new TimelineMarkerCollection ();
5123 * TimelineMarkerRoutedEventArgs
5125 TimelineMarker *
5126 timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs *instance)
5128 if (instance == NULL)
5129 return NULL;
5131 return instance->GetMarker ();
5135 TimelineMarkerRoutedEventArgs *
5136 timeline_marker_routed_event_args_new (TimelineMarker *marker)
5138 return new TimelineMarkerRoutedEventArgs (marker);
5143 * TimeManager
5145 void
5146 time_manager_add_dispatcher_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5148 if (instance == NULL)
5149 return;
5151 instance->AddDispatcherCall (handler, tick_data);
5155 void
5156 time_manager_add_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5158 if (instance == NULL)
5159 return;
5161 instance->AddTickCall (handler, tick_data);
5165 guint
5166 time_manager_add_timeout (TimeManager *instance, gint priority, guint ms_interval, GSourceFunc func, gpointer timeout_data)
5168 if (instance == NULL)
5169 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5170 return (guint) 0;
5172 return instance->AddTimeout (priority, ms_interval, func, timeout_data);
5177 time_manager_get_maximum_refresh_rate (TimeManager *instance)
5179 if (instance == NULL)
5180 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5181 return (int) 0;
5183 return instance->GetMaximumRefreshRate ();
5187 void
5188 time_manager_remove_tick_call (TimeManager *instance, TickCallHandler handler, EventObject *tick_data)
5190 if (instance == NULL)
5191 return;
5193 instance->RemoveTickCall (handler, tick_data);
5197 void
5198 time_manager_remove_timeout (TimeManager *instance, guint timeout_id)
5200 if (instance == NULL)
5201 return;
5203 instance->RemoveTimeout (timeout_id);
5207 void
5208 time_manager_set_maximum_refresh_rate (TimeManager *instance, int hz)
5210 if (instance == NULL)
5211 return;
5213 instance->SetMaximumRefreshRate (hz);
5218 * TouchDevice
5220 UIElement *
5221 touch_device_get_directly_over (TouchDevice *instance)
5223 if (instance == NULL)
5224 return NULL;
5226 return instance->GetDirectlyOver ();
5231 touch_device_get_id (TouchDevice *instance)
5233 if (instance == NULL)
5234 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5235 return (int) 0;
5237 return instance->GetId ();
5241 void
5242 touch_device_set_directly_over (TouchDevice *instance, UIElement *element)
5244 if (instance == NULL)
5245 return;
5247 instance->SetDirectlyOver (element);
5251 void
5252 touch_device_set_id (TouchDevice *instance, int id)
5254 if (instance == NULL)
5255 return;
5257 instance->SetId (id);
5261 TouchDevice *
5262 touch_device_new (void)
5264 return new TouchDevice ();
5269 * TouchPoint
5272 touch_point_get_action (TouchPoint *instance)
5274 if (instance == NULL)
5275 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5276 return (TouchAction) 0;
5278 return instance->GetAction ();
5282 Point *
5283 touch_point_get_position (TouchPoint *instance)
5285 if (instance == NULL)
5286 return NULL;
5288 return instance->GetPosition ();
5292 Size *
5293 touch_point_get_size (TouchPoint *instance)
5295 if (instance == NULL)
5296 return NULL;
5298 return instance->GetSize ();
5302 TouchDevice *
5303 touch_point_get_touch_device (TouchPoint *instance)
5305 if (instance == NULL)
5306 return NULL;
5308 return instance->GetTouchDevice ();
5312 void
5313 touch_point_set_action (TouchPoint *instance, int action)
5315 if (instance == NULL)
5316 return;
5318 instance->SetAction ((TouchAction) action);
5322 void
5323 touch_point_set_position (TouchPoint *instance, Point *position)
5325 if (instance == NULL)
5326 return;
5328 instance->SetPosition (position);
5332 void
5333 touch_point_set_size (TouchPoint *instance, Size *size)
5335 if (instance == NULL)
5336 return;
5338 instance->SetSize (size);
5342 void
5343 touch_point_set_touch_device (TouchPoint *instance, TouchDevice *device)
5345 if (instance == NULL)
5346 return;
5348 instance->SetTouchDevice (device);
5352 TouchPoint *
5353 touch_point_new (void)
5355 return new TouchPoint ();
5360 * TouchPointCollection
5362 TouchPointCollection *
5363 touch_point_collection_new (void)
5365 return new TouchPointCollection ();
5370 * Transform
5372 Transform *
5373 transform_new (void)
5375 return new Transform ();
5380 * TransformCollection
5382 TransformCollection *
5383 transform_collection_new (void)
5385 return new TransformCollection ();
5390 * TransformGroup
5392 TransformGroup *
5393 transform_group_new (void)
5395 return new TransformGroup ();
5400 * TranslateTransform
5402 TranslateTransform *
5403 translate_transform_new (void)
5405 return new TranslateTransform ();
5410 * TriggerAction
5412 void
5413 trigger_action_fire (TriggerAction *instance)
5415 if (instance == NULL)
5416 return;
5418 instance->Fire ();
5422 TriggerAction *
5423 trigger_action_new (void)
5425 return new TriggerAction ();
5430 * TriggerActionCollection
5432 TriggerActionCollection *
5433 trigger_action_collection_new (void)
5435 return new TriggerActionCollection ();
5440 * TriggerBase
5442 TriggerBase *
5443 trigger_base_new (void)
5445 return new TriggerBase ();
5450 * TriggerCollection
5452 TriggerCollection *
5453 trigger_collection_new (void)
5455 return new TriggerCollection ();
5460 * Types
5462 Type *
5463 types_find (Types *instance, int type)
5465 if (instance == NULL)
5466 return NULL;
5468 return instance->Find ((Type::Kind) type);
5473 types_register_type (Types *instance, const char *name, void *gc_handle, int parent, bool is_interface, bool ctor_visible, int *interfaces, int interface_count)
5475 if (instance == NULL)
5476 return Type::INVALID;
5478 return instance->RegisterType (name, gc_handle, (Type::Kind) parent, is_interface, ctor_visible, (Type::Kind*) interfaces, interface_count);
5482 Types *
5483 types_new (void)
5485 return new Types ();
5490 * UIElement
5492 void
5493 uielement_arrange (UIElement *instance, Rect finalRect)
5495 if (instance == NULL)
5496 return;
5498 instance->Arrange (finalRect);
5502 bool
5503 uielement_capture_mouse (UIElement *instance)
5505 if (instance == NULL)
5506 return false;
5508 return instance->CaptureMouse ();
5512 void
5513 uielement_element_added (UIElement *instance, UIElement *obj)
5515 if (instance == NULL)
5516 return;
5518 instance->ElementAdded (obj);
5522 void
5523 uielement_element_removed (UIElement *instance, UIElement *obj)
5525 if (instance == NULL)
5526 return;
5528 instance->ElementRemoved (obj);
5532 void
5533 uielement_find_elements_in_host_coordinates_p (UIElement *instance, Point p, HitTestCollection *uielement_list)
5535 if (instance == NULL)
5536 return;
5538 instance->FindElementsInHostCoordinates_p (p, uielement_list);
5542 void
5543 uielement_find_elements_in_host_coordinates_r (UIElement *instance, Rect p, HitTestCollection *uielement_list)
5545 if (instance == NULL)
5546 return;
5548 instance->FindElementsInHostCoordinates_r (p, uielement_list);
5552 bool
5553 uielement_focus (UIElement *instance, bool recurse)
5555 if (instance == NULL)
5556 return false;
5558 return instance->Focus (recurse);
5562 Size
5563 uielement_get_desired_size (UIElement *instance)
5565 if (instance == NULL)
5566 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5567 return (Size) 0;
5569 return instance->GetDesiredSize ();
5573 Size
5574 uielement_get_render_size (UIElement *instance)
5576 if (instance == NULL)
5577 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5578 return (Size) 0;
5580 return instance->GetRenderSize ();
5584 DependencyObject *
5585 uielement_get_subtree_object (UIElement *instance)
5587 if (instance == NULL)
5588 return NULL;
5590 return instance->GetSubtreeObject ();
5594 GeneralTransform *
5595 uielement_get_transform_to_uielement_with_error (UIElement *instance, UIElement *to_element, MoonError *error)
5597 if (instance == NULL)
5598 return NULL;
5600 if (error == NULL)
5601 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5602 return instance->GetTransformToUIElementWithError (to_element, error);
5606 UIElement *
5607 uielement_get_visual_parent (UIElement *instance)
5609 if (instance == NULL)
5610 return NULL;
5612 return instance->GetVisualParent ();
5616 void
5617 uielement_invalidate (UIElement *instance)
5619 if (instance == NULL)
5620 return;
5622 instance->Invalidate ();
5626 void
5627 uielement_invalidate_arrange (UIElement *instance)
5629 if (instance == NULL)
5630 return;
5632 instance->InvalidateArrange ();
5636 void
5637 uielement_invalidate_measure (UIElement *instance)
5639 if (instance == NULL)
5640 return;
5642 instance->InvalidateMeasure ();
5646 void
5647 uielement_measure (UIElement *instance, Size availableSize)
5649 if (instance == NULL)
5650 return;
5652 instance->Measure (availableSize);
5656 void
5657 uielement_release_mouse_capture (UIElement *instance)
5659 if (instance == NULL)
5660 return;
5662 instance->ReleaseMouseCapture ();
5666 void
5667 uielement_set_subtree_object (UIElement *instance, DependencyObject *value)
5669 if (instance == NULL)
5670 return;
5672 instance->SetSubtreeObject (value);
5676 void
5677 uielement_update_layout (UIElement *instance)
5679 if (instance == NULL)
5680 return;
5682 instance->UpdateLayout ();
5687 * UIElementCollection
5689 UIElementCollection *
5690 uielement_collection_new (void)
5692 return new UIElementCollection ();
5697 * UnmanagedMatrix
5699 UnmanagedMatrix *
5700 unmanaged_matrix_new (void)
5702 return new UnmanagedMatrix ();
5707 * UnmanagedMatrix3D
5709 UnmanagedMatrix3D *
5710 unmanaged_matrix3_d_new (void)
5712 return new UnmanagedMatrix3D ();
5717 * Uri
5719 bool
5720 uri_equals (const Uri *left, const Uri *right)
5722 return Uri::Equals (left, right);
5726 void
5727 uri_free (Uri *instance)
5729 if (instance == NULL)
5730 return;
5732 instance->Free ();
5736 guint
5737 uri_get_hash_code (Uri *instance)
5739 if (instance == NULL)
5740 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5741 return (guint) 0;
5743 return instance->GetHashCode ();
5747 bool
5748 uri_parse (Uri *instance, const char *uri, bool allow_trailing_sep)
5750 if (instance == NULL)
5751 return false;
5753 return instance->Parse (uri, allow_trailing_sep);
5758 * UserControl
5760 UserControl *
5761 user_control_new (void)
5763 return new UserControl ();
5768 * VideoBrush
5770 void
5771 video_brush_set_source (VideoBrush *instance, MediaElement *source)
5773 if (instance == NULL)
5774 return;
5776 instance->SetSource (source);
5780 VideoBrush *
5781 video_brush_new (void)
5783 return new VideoBrush ();
5788 * VideoStream
5790 guint32
5791 video_stream_get_height (VideoStream *instance)
5793 if (instance == NULL)
5794 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5795 return (guint32) 0;
5797 return instance->GetHeight ();
5801 guint32
5802 video_stream_get_width (VideoStream *instance)
5804 if (instance == NULL)
5805 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5806 return (guint32) 0;
5808 return instance->GetWidth ();
5812 VideoStream *
5813 video_stream_new (Media *media, int codec_id, guint32 width, guint32 height, guint64 duration, gpointer extra_data, guint32 extra_data_size)
5815 return new VideoStream (media, codec_id, width, height, duration, extra_data, extra_data_size);
5820 * VisualBrush
5822 VisualBrush *
5823 visual_brush_new (void)
5825 return new VisualBrush ();
5830 * WindowSettings
5832 WindowSettings *
5833 window_settings_new (void)
5835 return new WindowSettings ();
5840 * WriteableBitmap
5842 gpointer
5843 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap *instance, BitmapSource *source)
5845 if (instance == NULL)
5846 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5847 return (gpointer) 0;
5849 return instance->InitializeFromBitmapSource (source);
5853 void
5854 writeable_bitmap_lock (WriteableBitmap *instance)
5856 if (instance == NULL)
5857 return;
5859 instance->Lock ();
5863 void
5864 writeable_bitmap_render (WriteableBitmap *instance, UIElement *element, Transform *transform)
5866 if (instance == NULL)
5867 return;
5869 instance->Render (element, transform);
5873 void
5874 writeable_bitmap_unlock (WriteableBitmap *instance)
5876 if (instance == NULL)
5877 return;
5879 instance->Unlock ();
5883 WriteableBitmap *
5884 writeable_bitmap_new (void)
5886 return new WriteableBitmap ();
5891 * XamlContext
5893 DependencyObject *
5894 xaml_context_get_template_binding_source (XamlContext *instance)
5896 if (instance == NULL)
5897 return NULL;
5899 return instance->GetTemplateBindingSource ();
5904 * XamlLoader
5906 Value *
5907 xaml_loader_create_from_file_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, int *element_type, MoonError *error)
5909 if (instance == NULL)
5910 return NULL;
5912 if (error == NULL)
5913 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5914 return instance->CreateFromFileWithError (xaml, create_namescope, (Type::Kind*) element_type, error);
5918 Value *
5919 xaml_loader_create_from_string_with_error (XamlLoader *instance, const char *xaml, bool create_namescope, int *element_type, int flags, MoonError *error)
5921 if (instance == NULL)
5922 return NULL;
5924 if (error == NULL)
5925 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5926 return instance->CreateFromStringWithError (xaml, create_namescope, (Type::Kind*) element_type, flags, error);
5930 XamlContext *
5931 xaml_loader_get_context (XamlLoader *instance)
5933 if (instance == NULL)
5934 return NULL;
5936 return instance->GetContext ();
5940 Value *
5941 xaml_loader_hydrate_from_string_with_error (XamlLoader *instance, const char *xaml, Value *obj, bool create_namescope, int *element_type, int flags, MoonError *error)
5943 if (instance == NULL)
5944 return NULL;
5946 if (error == NULL)
5947 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5948 return instance->HydrateFromStringWithError (xaml, obj, create_namescope, (Type::Kind*) element_type, flags, error);
5953 * Xap
5955 char *
5956 xap_unpack (const char *fname)
5958 return Xap::Unpack (fname);