2 * Automatically generated, do not edit this file directly
12 #include "animation.h"
13 #include "application.h"
14 #include "bitmapimage.h"
15 #include "bitmapsource.h"
19 #include "collection.h"
20 #include "contentcontrol.h"
22 #include "deepzoomimagetilesource.h"
23 #include "dependencyobject.h"
24 #include "dependencyproperty.h"
25 #include "deployment.h"
26 #include "downloader.h"
28 #include "eventargs.h"
29 #include "frameworkelement.h"
33 #include "imagesource.h"
36 #include "mediaelement.h"
37 #include "multiscaleimage.h"
38 #include "multiscalesubimage.h"
39 #include "namescope.h"
43 #include "resources.h"
49 #include "tabnavigationwalker.h"
51 #include "textblock.h"
53 #include "tilesource.h"
55 #include "timemanager.h"
56 #include "transform.h"
59 #include "uielement.h"
61 #include "usercontrol.h"
63 #include "window-gtk.h"
64 #include "writeablebitmap.h"
71 application_new (void)
73 return new Application ();
78 application_get_current (void)
80 return Application::GetCurrent ();
85 application_register_callbacks (Application
*instance
, ApplyDefaultStyleCallback apply_default_style_cb
, ApplyStyleCallback apply_style_cb
, GetResourceCallback get_resource_cb
, ConvertKeyframeValueCallback convert_keyframe_callback
, GetDefaultTemplateRootCallback get_default_template_root_cb
)
90 instance
->RegisterCallbacks (apply_default_style_cb
, apply_style_cb
, get_resource_cb
, convert_keyframe_callback
, get_default_template_root_cb
);
95 application_set_current (Application
*current
)
97 Application::SetCurrent (current
);
105 arc_segment_new (void)
107 return new ArcSegment ();
115 assembly_part_new (void)
117 return new AssemblyPart ();
122 * AssemblyPartCollection
124 AssemblyPartCollection
*
125 assembly_part_collection_new (void)
127 return new AssemblyPartCollection ();
135 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
)
137 return new AudioStream (media
, codec_id
, bits_per_sample
, block_align
, sample_rate
, channels
, bit_rate
, extra_data
, extra_data_size
);
142 audio_stream_get_bit_rate (AudioStream
*instance
)
144 if (instance
== NULL
)
145 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
148 return instance
->GetBitRate ();
153 audio_stream_get_bits_per_sample (AudioStream
*instance
)
155 if (instance
== NULL
)
156 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
159 return instance
->GetBitsPerSample ();
164 audio_stream_get_block_align (AudioStream
*instance
)
166 if (instance
== NULL
)
167 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
170 return instance
->GetBlockAlign ();
175 audio_stream_get_channels (AudioStream
*instance
)
177 if (instance
== NULL
)
178 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
181 return instance
->GetChannels ();
186 audio_stream_get_input_bit_rate (AudioStream
*instance
)
188 if (instance
== NULL
)
189 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
192 return instance
->GetInputBitRate ();
197 audio_stream_get_input_bits_per_sample (AudioStream
*instance
)
199 if (instance
== NULL
)
200 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
203 return instance
->GetInputBitsPerSample ();
208 audio_stream_get_input_block_align (AudioStream
*instance
)
210 if (instance
== NULL
)
211 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
214 return instance
->GetInputBlockAlign ();
219 audio_stream_get_input_channels (AudioStream
*instance
)
221 if (instance
== NULL
)
222 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
225 return instance
->GetInputChannels ();
230 audio_stream_get_input_sample_rate (AudioStream
*instance
)
232 if (instance
== NULL
)
233 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
236 return instance
->GetInputSampleRate ();
241 audio_stream_get_output_bit_rate (AudioStream
*instance
)
243 if (instance
== NULL
)
244 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
247 return instance
->GetOutputBitRate ();
252 audio_stream_get_output_bits_per_sample (AudioStream
*instance
)
254 if (instance
== NULL
)
255 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
258 return instance
->GetOutputBitsPerSample ();
263 audio_stream_get_output_block_align (AudioStream
*instance
)
265 if (instance
== NULL
)
266 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
269 return instance
->GetOutputBlockAlign ();
274 audio_stream_get_output_channels (AudioStream
*instance
)
276 if (instance
== NULL
)
277 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
280 return instance
->GetOutputChannels ();
285 audio_stream_get_output_sample_rate (AudioStream
*instance
)
287 if (instance
== NULL
)
288 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
291 return instance
->GetOutputSampleRate ();
296 audio_stream_get_sample_rate (AudioStream
*instance
)
298 if (instance
== NULL
)
299 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
302 return instance
->GetSampleRate ();
307 audio_stream_set_bit_rate (AudioStream
*instance
, int value
)
309 if (instance
== NULL
)
312 instance
->SetBitRate (value
);
317 audio_stream_set_bits_per_sample (AudioStream
*instance
, int value
)
319 if (instance
== NULL
)
322 instance
->SetBitsPerSample (value
);
327 audio_stream_set_block_align (AudioStream
*instance
, int value
)
329 if (instance
== NULL
)
332 instance
->SetBlockAlign (value
);
337 audio_stream_set_channels (AudioStream
*instance
, int value
)
339 if (instance
== NULL
)
342 instance
->SetChannels (value
);
347 audio_stream_set_input_bit_rate (AudioStream
*instance
, int value
)
349 if (instance
== NULL
)
352 instance
->SetInputBitRate (value
);
357 audio_stream_set_input_bits_per_sample (AudioStream
*instance
, int value
)
359 if (instance
== NULL
)
362 instance
->SetInputBitsPerSample (value
);
367 audio_stream_set_input_block_align (AudioStream
*instance
, int value
)
369 if (instance
== NULL
)
372 instance
->SetInputBlockAlign (value
);
377 audio_stream_set_input_channels (AudioStream
*instance
, int value
)
379 if (instance
== NULL
)
382 instance
->SetInputChannels (value
);
387 audio_stream_set_input_sample_rate (AudioStream
*instance
, int value
)
389 if (instance
== NULL
)
392 instance
->SetInputSampleRate (value
);
397 audio_stream_set_output_bit_rate (AudioStream
*instance
, int value
)
399 if (instance
== NULL
)
402 instance
->SetOutputBitRate (value
);
407 audio_stream_set_output_bits_per_sample (AudioStream
*instance
, int value
)
409 if (instance
== NULL
)
412 instance
->SetOutputBitsPerSample (value
);
417 audio_stream_set_output_block_align (AudioStream
*instance
, int value
)
419 if (instance
== NULL
)
422 instance
->SetOutputBlockAlign (value
);
427 audio_stream_set_output_channels (AudioStream
*instance
, int value
)
429 if (instance
== NULL
)
432 instance
->SetOutputChannels (value
);
437 audio_stream_set_output_sample_rate (AudioStream
*instance
, int value
)
439 if (instance
== NULL
)
442 instance
->SetOutputSampleRate (value
);
447 audio_stream_set_sample_rate (AudioStream
*instance
, int value
)
449 if (instance
== NULL
)
452 instance
->SetSampleRate (value
);
462 return new BackEase ();
467 back_ease_ease_in_core (BackEase
*instance
, double normalizedTime
)
469 if (instance
== NULL
)
470 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
473 return instance
->EaseInCore (normalizedTime
);
481 begin_storyboard_new (void)
483 return new BeginStoryboard ();
491 bezier_segment_new (void)
493 return new BezierSegment ();
501 bitmap_image_new (void)
503 return new BitmapImage ();
508 bitmap_image_pixbuf_write (BitmapImage
*instance
, gpointer buffer
, gint32 offset
, gint32 n
)
510 if (instance
== NULL
)
513 instance
->PixbufWrite (buffer
, offset
, n
);
518 bitmap_image_pixmap_complete (BitmapImage
*instance
)
520 if (instance
== NULL
)
523 instance
->PixmapComplete ();
531 bitmap_source_new (void)
533 return new BitmapSource ();
538 bitmap_source_get_bitmap_data (BitmapSource
*instance
)
540 if (instance
== NULL
)
541 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
544 return instance
->GetBitmapData ();
549 bitmap_source_invalidate (BitmapSource
*instance
)
551 if (instance
== NULL
)
554 instance
->Invalidate ();
559 bitmap_source_set_bitmap_data (BitmapSource
*instance
, gpointer data
, bool own
)
561 if (instance
== NULL
)
564 instance
->SetBitmapData (data
, own
);
574 return new Border ();
582 bounce_ease_new (void)
584 return new BounceEase ();
589 bounce_ease_ease_in_core (BounceEase
*instance
, double normalizedTime
)
591 if (instance
== NULL
)
592 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
595 return instance
->EaseInCore (normalizedTime
);
615 return new Canvas ();
623 circle_ease_new (void)
625 return new CircleEase ();
630 circle_ease_ease_in_core (CircleEase
*instance
, double normalizedTime
)
632 if (instance
== NULL
)
633 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
636 return instance
->EaseInCore (normalizedTime
);
644 collection_add_with_error (Collection
*instance
, Value
*value
, MoonError
*error
)
646 if (instance
== NULL
)
647 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
651 g_warning ("Moonlight: Called collection_add_with_error () with error == NULL.");
652 return instance
->AddWithError (value
, error
);
657 collection_clear (Collection
*instance
)
659 if (instance
== NULL
)
662 return instance
->Clear ();
667 collection_contains (Collection
*instance
, Value
*value
)
669 if (instance
== NULL
)
672 return instance
->Contains (value
);
677 collection_get_count (Collection
*instance
)
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.
683 return instance
->GetCount ();
688 collection_get_element_type (Collection
*instance
)
690 if (instance
== NULL
)
691 return Type::INVALID
;
693 return instance
->GetElementType ();
698 collection_get_iterator (Collection
*instance
)
700 if (instance
== NULL
)
703 return instance
->GetIterator ();
708 collection_get_value_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
710 if (instance
== NULL
)
714 g_warning ("Moonlight: Called collection_get_value_at_with_error () with error == NULL.");
715 return instance
->GetValueAtWithError (index
, error
);
720 collection_index_of (Collection
*instance
, Value
*value
)
722 if (instance
== NULL
)
723 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
726 return instance
->IndexOf (value
);
731 collection_insert_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
733 if (instance
== NULL
)
737 g_warning ("Moonlight: Called collection_insert_with_error () with error == NULL.");
738 return instance
->InsertWithError (index
, value
, error
);
743 collection_remove (Collection
*instance
, Value
*value
)
745 if (instance
== NULL
)
748 return instance
->Remove (value
);
753 collection_remove_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
755 if (instance
== NULL
)
759 g_warning ("Moonlight: Called collection_remove_at_with_error () with error == NULL.");
760 return instance
->RemoveAtWithError (index
, error
);
765 collection_set_value_at_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
767 if (instance
== NULL
)
771 g_warning ("Moonlight: Called collection_set_value_at_with_error () with error == NULL.");
772 return instance
->SetValueAtWithError (index
, value
, error
);
777 * CollectionChangedEventArgs
779 CollectionChangedEventArgs
*
780 collection_changed_event_args_new (void)
782 return new CollectionChangedEventArgs ();
787 collection_changed_event_args_get_changed_action (CollectionChangedEventArgs
*instance
)
789 if (instance
== NULL
)
790 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
791 return (CollectionChangedAction
) 0;
793 return instance
->GetChangedAction ();
798 collection_changed_event_args_get_index (CollectionChangedEventArgs
*instance
)
800 if (instance
== NULL
)
801 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
804 return instance
->GetIndex ();
809 collection_changed_event_args_get_new_item (CollectionChangedEventArgs
*instance
)
811 if (instance
== NULL
)
814 return instance
->GetNewItem ();
819 collection_changed_event_args_get_old_item (CollectionChangedEventArgs
*instance
)
821 if (instance
== NULL
)
824 return instance
->GetOldItem ();
829 collection_changed_event_args_set_changed_action (CollectionChangedEventArgs
*instance
, int action
)
831 if (instance
== NULL
)
834 instance
->SetChangedAction ((CollectionChangedAction
) action
);
839 collection_changed_event_args_set_index (CollectionChangedEventArgs
*instance
, int index
)
841 if (instance
== NULL
)
844 instance
->SetIndex (index
);
849 collection_changed_event_args_set_new_item (CollectionChangedEventArgs
*instance
, Value
*item
)
851 if (instance
== NULL
)
854 instance
->SetNewItem (item
);
859 collection_changed_event_args_set_old_item (CollectionChangedEventArgs
*instance
, Value
*item
)
861 if (instance
== NULL
)
864 instance
->SetOldItem (item
);
872 collection_iterator_destroy (CollectionIterator
*iterator
)
874 CollectionIterator::Destroy (iterator
);
879 collection_iterator_get_current (CollectionIterator
*instance
, int *error
)
881 if (instance
== NULL
)
884 return instance
->GetCurrent (error
);
889 collection_iterator_next (CollectionIterator
*instance
)
891 if (instance
== NULL
)
892 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
895 return instance
->Next ();
900 collection_iterator_reset (CollectionIterator
*instance
)
902 if (instance
== NULL
)
905 return instance
->Reset ();
913 color_animation_new (void)
915 return new ColorAnimation ();
920 * ColorAnimationUsingKeyFrames
922 ColorAnimationUsingKeyFrames
*
923 color_animation_using_key_frames_new (void)
925 return new ColorAnimationUsingKeyFrames ();
933 color_key_frame_new (void)
935 return new ColorKeyFrame ();
940 * ColorKeyFrameCollection
942 ColorKeyFrameCollection
*
943 color_key_frame_collection_new (void)
945 return new ColorKeyFrameCollection ();
953 column_definition_new (void)
955 return new ColumnDefinition ();
960 * ColumnDefinitionCollection
962 ColumnDefinitionCollection
*
963 column_definition_collection_new (void)
965 return new ColumnDefinitionCollection ();
970 * ContentChangedEventArgs
973 content_changed_event_args_get_new_content (ContentChangedEventArgs
*instance
)
975 if (instance
== NULL
)
978 return instance
->GetNewContent ();
983 content_changed_event_args_get_old_content (ContentChangedEventArgs
*instance
)
985 if (instance
== NULL
)
988 return instance
->GetOldContent ();
996 content_control_new (void)
998 return new ContentControl ();
1003 content_control_get_content_sets_parent (ContentControl
*instance
)
1005 if (instance
== NULL
)
1008 return instance
->GetContentSetsParent ();
1013 content_control_set_content_sets_parent (ContentControl
*instance
, bool value
)
1015 if (instance
== NULL
)
1018 instance
->SetContentSetsParent (value
);
1026 control_apply_template (Control
*instance
)
1028 if (instance
== NULL
)
1031 return instance
->ApplyTemplate ();
1038 return new Control ();
1043 control_get_template_child (Control
*instance
, const char *name
)
1045 if (instance
== NULL
)
1048 return instance
->GetTemplateChild (name
);
1056 control_template_new (void)
1058 return new ControlTemplate ();
1066 cubic_ease_new (void)
1068 return new CubicEase ();
1073 cubic_ease_ease_in_core (CubicEase
*instance
, double normalizedTime
)
1075 if (instance
== NULL
)
1076 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1079 return instance
->EaseInCore (normalizedTime
);
1084 * CursorPositionChangedEventArgs
1086 CursorPositionChangedEventArgs
*
1087 cursor_position_changed_event_args_new (void)
1089 return new CursorPositionChangedEventArgs ();
1094 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs
*instance
)
1096 if (instance
== NULL
)
1097 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1100 return instance
->GetCursorHeight ();
1105 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs
*instance
)
1107 if (instance
== NULL
)
1108 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1111 return instance
->GetCursorX ();
1116 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs
*instance
)
1118 if (instance
== NULL
)
1119 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1122 return instance
->GetCursorY ();
1130 data_template_new (void)
1132 return new DataTemplate ();
1137 * DeepZoomImageTileSource
1139 DeepZoomImageTileSource
*
1140 deep_zoom_image_tile_source_new (void)
1142 return new DeepZoomImageTileSource ();
1147 deep_zoom_image_tile_source_strip_and_set_uri (DeepZoomImageTileSource
*instance
, Uri
*uri
)
1149 if (instance
== NULL
)
1152 instance
->strip_and_set_uri (uri
);
1160 dependency_object_add_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
, gpointer closure
)
1162 if (instance
== NULL
)
1165 instance
->AddPropertyChangeHandler (property
, cb
, closure
);
1170 dependency_object_clear_value (DependencyObject
*instance
, DependencyProperty
*property
, bool notify_listeners
, MoonError
*error
)
1172 if (instance
== NULL
)
1176 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1177 instance
->ClearValue (property
, notify_listeners
, error
);
1182 dependency_object_new (void)
1184 return new DependencyObject ();
1189 dependency_object_find_name (DependencyObject
*instance
, const char *name
, int *element_kind
)
1191 if (instance
== NULL
)
1194 return instance
->FindName (name
, (Type::Kind
*) element_kind
);
1199 dependency_object_get_name (DependencyObject
*instance
)
1201 if (instance
== NULL
)
1204 return instance
->GetName ();
1209 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1211 if (instance
== NULL
)
1215 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1216 return instance
->GetValueNoDefaultWithError (property
, error
);
1221 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1223 if (instance
== NULL
)
1227 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1228 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1233 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1235 if (instance
== NULL
)
1239 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1240 return instance
->ReadLocalValueWithError (property
, error
);
1245 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1247 if (instance
== NULL
)
1250 instance
->RemovePropertyChangeHandler (property
, cb
);
1255 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1257 if (instance
== NULL
)
1260 instance
->SetName (name
);
1265 dependency_object_set_parent (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1267 if (instance
== NULL
)
1271 g_warning ("Moonlight: Called dependency_object_set_parent () with error == NULL.");
1272 instance
->SetParent (parent
, error
);
1277 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1279 if (instance
== NULL
)
1283 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1284 return instance
->SetValueWithError (property
, value
, error
);
1289 * DependencyObjectCollection
1291 DependencyObjectCollection
*
1292 dependency_object_collection_new (void)
1294 return new DependencyObjectCollection ();
1299 * DependencyProperty
1302 dependency_property_get_default_value (DependencyProperty
*instance
)
1304 if (instance
== NULL
)
1307 return instance
->GetDefaultValue ();
1311 DependencyProperty
*
1312 dependency_property_get_dependency_property (int type
, const char *name
)
1314 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1318 DependencyProperty
*
1319 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1321 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1326 dependency_property_get_name (DependencyProperty
*instance
)
1328 if (instance
== NULL
)
1331 return instance
->GetName ();
1336 dependency_property_get_property_type (DependencyProperty
*instance
)
1338 if (instance
== NULL
)
1339 return Type::INVALID
;
1341 return instance
->GetPropertyType ();
1346 dependency_property_is_attached (DependencyProperty
*instance
)
1348 if (instance
== NULL
)
1351 return instance
->IsAttached ();
1356 dependency_property_is_nullable (DependencyProperty
*instance
)
1358 if (instance
== NULL
)
1361 return instance
->IsNullable ();
1366 dependency_property_is_read_only (DependencyProperty
*instance
)
1368 if (instance
== NULL
)
1371 return instance
->IsReadOnly ();
1375 DependencyProperty
*
1376 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1378 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1382 DependencyProperty
*
1383 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1385 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1390 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1392 if (instance
== NULL
)
1395 instance
->SetIsNullable (value
);
1400 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1402 if (instance
== NULL
)
1405 instance
->SetPropertyChangedCallback (changed_callback
);
1413 deployment_new (void)
1415 return new Deployment ();
1420 deployment_get_current (void)
1422 return Deployment::GetCurrent ();
1427 deployment_get_types (Deployment
*instance
)
1429 if (instance
== NULL
)
1432 return instance
->GetTypes ();
1437 deployment_set_current (Deployment
*value
)
1439 Deployment::SetCurrent (value
);
1444 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1446 if (instance
== NULL
)
1449 instance
->SetCurrentApplication (value
);
1454 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1456 if (instance
== NULL
)
1459 instance
->SetIsLoadedFromXap (flag
);
1464 * DiscreteColorKeyFrame
1466 DiscreteColorKeyFrame
*
1467 discrete_color_key_frame_new (void)
1469 return new DiscreteColorKeyFrame ();
1474 * DiscreteDoubleKeyFrame
1476 DiscreteDoubleKeyFrame
*
1477 discrete_double_key_frame_new (void)
1479 return new DiscreteDoubleKeyFrame ();
1484 * DiscreteObjectKeyFrame
1486 DiscreteObjectKeyFrame
*
1487 discrete_object_key_frame_new (void)
1489 return new DiscreteObjectKeyFrame ();
1494 * DiscretePointKeyFrame
1496 DiscretePointKeyFrame
*
1497 discrete_point_key_frame_new (void)
1499 return new DiscretePointKeyFrame ();
1507 dispatcher_timer_new (void)
1509 return new DispatcherTimer ();
1514 dispatcher_timer_start (DispatcherTimer
*instance
)
1516 if (instance
== NULL
)
1524 dispatcher_timer_stop (DispatcherTimer
*instance
)
1526 if (instance
== NULL
)
1537 double_animation_new (void)
1539 return new DoubleAnimation ();
1544 * DoubleAnimationUsingKeyFrames
1546 DoubleAnimationUsingKeyFrames
*
1547 double_animation_using_key_frames_new (void)
1549 return new DoubleAnimationUsingKeyFrames ();
1557 double_collection_new (void)
1559 return new DoubleCollection ();
1567 double_key_frame_new (void)
1569 return new DoubleKeyFrame ();
1574 * DoubleKeyFrameCollection
1576 DoubleKeyFrameCollection
*
1577 double_key_frame_collection_new (void)
1579 return new DoubleKeyFrameCollection ();
1587 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1589 if (instance
== NULL
)
1592 return instance
->CreateWebRequest (method
, uri
);
1597 downloader_new (void)
1599 return new Downloader ();
1604 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1606 if (instance
== NULL
)
1609 instance
->NotifyFailed (msg
);
1614 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1616 if (instance
== NULL
)
1619 instance
->NotifyFinished (final_uri
);
1624 downloader_notify_size (Downloader
*instance
, gint64 size
)
1626 if (instance
== NULL
)
1629 instance
->NotifySize (size
);
1634 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
)
1636 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1641 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1643 if (instance
== NULL
)
1646 instance
->Write (buf
, offset
, n
);
1654 downloader_request_free (DownloaderRequest
*instance
)
1661 downloader_request_abort (DownloaderRequest
*instance
)
1663 if (instance
== NULL
)
1670 DownloaderResponse
*
1671 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1673 if (instance
== NULL
)
1676 return instance
->GetDownloaderResponse ();
1681 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1683 if (instance
== NULL
)
1686 return instance
->GetResponse (started
, available
, finished
, context
);
1691 downloader_request_is_aborted (DownloaderRequest
*instance
)
1693 if (instance
== NULL
)
1696 return instance
->IsAborted ();
1701 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1703 if (instance
== NULL
)
1706 instance
->SetBody (body
, size
);
1711 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1713 if (instance
== NULL
)
1716 instance
->SetHttpHeader (name
, value
);
1721 * DownloaderResponse
1724 downloader_response_free (DownloaderResponse
*instance
)
1731 downloader_response_abort (DownloaderResponse
*instance
)
1733 if (instance
== NULL
)
1741 downloader_response_get_response_status (DownloaderResponse
*instance
)
1743 if (instance
== NULL
)
1744 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1747 return instance
->GetResponseStatus ();
1752 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1754 if (instance
== NULL
)
1757 return instance
->GetResponseStatusText ();
1762 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1764 if (instance
== NULL
)
1767 instance
->SetHeaderVisitor (visitor
, context
);
1772 * DownloadProgressEventArgs
1775 download_progress_event_args_get_progress (DownloadProgressEventArgs
*instance
)
1777 if (instance
== NULL
)
1778 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1781 return instance
->GetProgress ();
1789 drawing_attributes_new (void)
1791 return new DrawingAttributes ();
1796 * EasingColorKeyFrame
1798 EasingColorKeyFrame
*
1799 easing_color_key_frame_new (void)
1801 return new EasingColorKeyFrame ();
1806 * EasingDoubleKeyFrame
1808 EasingDoubleKeyFrame
*
1809 easing_double_key_frame_new (void)
1811 return new EasingDoubleKeyFrame ();
1816 * EasingFunctionBase
1818 EasingFunctionBase
*
1819 easing_function_base_new (void)
1821 return new EasingFunctionBase ();
1826 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1828 if (instance
== NULL
)
1831 instance
->SetEasingFunction (value
);
1836 * EasingPointKeyFrame
1838 EasingPointKeyFrame
*
1839 easing_point_key_frame_new (void)
1841 return new EasingPointKeyFrame ();
1849 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
1851 if (instance
== NULL
)
1852 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1855 return instance
->EaseInCore (normalizedTime
);
1860 elastic_ease_new (void)
1862 return new ElasticEase ();
1872 return new Ellipse ();
1880 ellipse_geometry_new (void)
1882 return new EllipseGeometry ();
1890 error_event_args_get_error_code (ErrorEventArgs
*instance
)
1892 if (instance
== NULL
)
1893 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1896 return instance
->GetErrorCode ();
1901 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1903 if (instance
== NULL
)
1906 return instance
->GetErrorMessage ();
1911 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1913 if (instance
== NULL
)
1914 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1917 return instance
->GetErrorType ();
1922 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1924 if (instance
== NULL
)
1925 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1926 return (gpointer
) 0;
1928 return instance
->GetMoonError ();
1936 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1938 if (instance
== NULL
)
1939 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1942 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
1947 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1949 if (instance
== NULL
)
1952 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
1957 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
1959 if (instance
== NULL
)
1962 instance
->AddToggleRefNotifier (tr
);
1967 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1969 if (instance
== NULL
)
1970 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1973 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
1978 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
1980 if (instance
== NULL
)
1983 instance
->DoEmitCurrentContext (event_id
, calldata
);
1988 event_object_get_object_type (EventObject
*instance
)
1990 if (instance
== NULL
)
1991 return Type::INVALID
;
1993 return instance
->GetObjectType ();
1998 event_object_get_surface (EventObject
*instance
)
2000 if (instance
== NULL
)
2003 return instance
->GetSurface ();
2008 event_object_get_type_name (EventObject
*instance
)
2010 if (instance
== NULL
)
2013 return instance
->GetTypeName ();
2018 event_object_ref (EventObject
*instance
)
2020 if (instance
== NULL
)
2028 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2030 if (instance
== NULL
)
2033 instance
->RemoveHandler (event_id
, handler
, data
);
2038 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2040 if (instance
== NULL
)
2043 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2048 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2050 if (instance
== NULL
)
2053 instance
->RemoveToggleRefNotifier ();
2058 event_object_set_object_type (EventObject
*instance
, int value
)
2060 if (instance
== NULL
)
2063 instance
->SetObjectType ((Type::Kind
) value
);
2068 event_object_unref (EventObject
*instance
)
2070 if (instance
== NULL
)
2081 event_trigger_new (void)
2083 return new EventTrigger ();
2091 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2093 if (instance
== NULL
)
2094 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2097 return instance
->EaseInCore (normalizedTime
);
2102 exponential_ease_new (void)
2104 return new ExponentialEase ();
2112 extension_part_new (void)
2114 return new ExtensionPart ();
2122 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
)
2124 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2129 * ExternalDecoderInfo
2131 ExternalDecoderInfo
*
2132 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2134 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2142 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2144 if (instance
== NULL
)
2145 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2148 return instance
->AddStream (stream
);
2153 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2155 if (instance
== NULL
)
2158 instance
->ClearCallbacks ();
2163 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2165 if (instance
== NULL
)
2168 instance
->SetCanSeek (value
);
2176 external_part_new (void)
2178 return new ExternalPart ();
2183 * ExternalPartCollection
2185 ExternalPartCollection
*
2186 external_part_collection_new (void)
2188 return new ExternalPartCollection ();
2196 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2198 if (instance
== NULL
)
2199 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2202 return instance
->ArrangeOverride (finalSize
);
2207 framework_element_new (void)
2209 return new FrameworkElement ();
2214 framework_element_get_logical_parent (FrameworkElement
*instance
)
2216 if (instance
== NULL
)
2219 return instance
->GetLogicalParent ();
2224 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2226 if (instance
== NULL
)
2227 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2230 return instance
->MeasureOverride (availableSize
);
2235 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
)
2237 if (instance
== NULL
)
2240 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
);
2245 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2247 if (instance
== NULL
)
2250 instance
->SetDefaultStyle (value
);
2255 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2257 if (instance
== NULL
)
2261 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2262 instance
->SetLogicalParent (logical_parent
, error
);
2270 framework_template_new (void)
2272 return new FrameworkTemplate ();
2277 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2279 if (instance
== NULL
)
2282 return instance
->GetVisualTree (templateBindingSource
);
2290 general_transform_new (void)
2292 return new GeneralTransform ();
2297 general_transform_get_matrix (GeneralTransform
*instance
)
2299 if (instance
== NULL
)
2302 return instance
->GetMatrix ();
2312 return new Geometry ();
2317 geometry_get_bounds (Geometry
*instance
)
2319 if (instance
== NULL
)
2320 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2323 return instance
->GetBounds ();
2328 * GeometryCollection
2330 GeometryCollection
*
2331 geometry_collection_new (void)
2333 return new GeometryCollection ();
2341 geometry_group_new (void)
2343 return new GeometryGroup ();
2353 return new Glyphs ();
2361 gradient_brush_new (void)
2363 return new GradientBrush ();
2371 gradient_stop_new (void)
2373 return new GradientStop ();
2378 * GradientStopCollection
2380 GradientStopCollection
*
2381 gradient_stop_collection_new (void)
2383 return new GradientStopCollection ();
2401 hit_test_collection_new (void)
2403 return new HitTestCollection ();
2413 return new Image ();
2418 image_set_source (Image
*instance
, ImageSource
*source
)
2420 if (instance
== NULL
)
2423 instance
->SetSource (source
);
2431 image_brush_new (void)
2433 return new ImageBrush ();
2441 image_source_new (void)
2443 return new ImageSource ();
2451 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2453 if (instance
== NULL
)
2456 instance
->ReportDecodeFrameCompleted (frame
);
2461 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2463 if (instance
== NULL
)
2466 instance
->ReportOpenDecoderCompleted ();
2471 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2473 if (instance
== NULL
)
2476 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2484 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2486 if (instance
== NULL
)
2489 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2494 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2496 if (instance
== NULL
)
2499 instance
->ReportGetFrameCompleted (frame
);
2504 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2506 if (instance
== NULL
)
2509 instance
->ReportGetFrameProgress (bufferingProgress
);
2514 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2516 if (instance
== NULL
)
2519 instance
->ReportOpenDemuxerCompleted ();
2524 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2526 if (instance
== NULL
)
2529 instance
->ReportSeekCompleted (pts
);
2534 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2536 if (instance
== NULL
)
2539 instance
->ReportSwitchMediaStreamCompleted (stream
);
2547 imedia_object_get_media_reffed (IMediaObject
*instance
)
2549 if (instance
== NULL
)
2552 return instance
->GetMediaReffed ();
2557 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2559 if (instance
== NULL
)
2562 instance
->ReportErrorOccurred (message
);
2570 imedia_stream_get_codec (IMediaStream
*instance
)
2572 if (instance
== NULL
)
2575 return instance
->GetCodec ();
2580 imedia_stream_get_codec_id (IMediaStream
*instance
)
2582 if (instance
== NULL
)
2583 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2586 return instance
->GetCodecId ();
2591 imedia_stream_get_duration (IMediaStream
*instance
)
2593 if (instance
== NULL
)
2594 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2597 return instance
->GetDuration ();
2602 imedia_stream_get_extra_data (IMediaStream
*instance
)
2604 if (instance
== NULL
)
2607 return instance
->GetExtraData ();
2612 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2614 if (instance
== NULL
)
2615 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2618 return instance
->GetExtraDataSize ();
2623 imedia_stream_get_stream_type (IMediaStream
*instance
)
2625 if (instance
== NULL
)
2626 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2627 return (MediaStreamType
) 0;
2629 return instance
->GetStreamType ();
2634 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2636 if (instance
== NULL
)
2639 instance
->SetCodecId (value
);
2644 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2646 if (instance
== NULL
)
2649 instance
->SetDuration (value
);
2654 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2656 if (instance
== NULL
)
2659 instance
->SetExtraData (value
);
2664 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2666 if (instance
== NULL
)
2669 instance
->SetExtraDataSize (value
);
2677 ink_presenter_new (void)
2679 return new InkPresenter ();
2689 return new Inline ();
2697 inline_collection_new (void)
2699 return new InlineCollection ();
2707 input_method_new (void)
2709 return new InputMethod ();
2717 item_collection_new (void)
2719 return new ItemCollection ();
2727 keyboard_get_modifiers (void)
2729 return Keyboard::GetModifiers ();
2737 key_event_args_get_key (KeyEventArgs
*instance
)
2739 if (instance
== NULL
)
2740 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2743 return instance
->GetKey ();
2748 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2750 if (instance
== NULL
)
2751 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2754 return instance
->GetPlatformKeyCode ();
2759 key_event_args_new (void)
2761 return new KeyEventArgs ();
2766 * KeyFrameCollection
2768 KeyFrameCollection
*
2769 key_frame_collection_new (void)
2771 return new KeyFrameCollection ();
2779 key_spline_new (void)
2781 return new KeySpline ();
2796 * LinearColorKeyFrame
2798 LinearColorKeyFrame
*
2799 linear_color_key_frame_new (void)
2801 return new LinearColorKeyFrame ();
2806 * LinearDoubleKeyFrame
2808 LinearDoubleKeyFrame
*
2809 linear_double_key_frame_new (void)
2811 return new LinearDoubleKeyFrame ();
2816 * LinearGradientBrush
2818 LinearGradientBrush
*
2819 linear_gradient_brush_new (void)
2821 return new LinearGradientBrush ();
2826 * LinearPointKeyFrame
2828 LinearPointKeyFrame
*
2829 linear_point_key_frame_new (void)
2831 return new LinearPointKeyFrame ();
2839 line_break_new (void)
2841 return new LineBreak ();
2849 line_geometry_new (void)
2851 return new LineGeometry ();
2859 line_segment_new (void)
2861 return new LineSegment ();
2866 * MarkerReachedEventArgs
2869 marker_reached_event_args_get_marker (MarkerReachedEventArgs
*instance
)
2871 if (instance
== NULL
)
2874 return instance
->GetMarker ();
2882 matrix_get_matrix_values (Matrix
*instance
)
2884 if (instance
== NULL
)
2887 return instance
->GetMatrixValues ();
2894 return new Matrix ();
2902 matrix_transform_new (void)
2904 return new MatrixTransform ();
2912 media_register_decoder (DecoderInfo
*info
)
2914 Media::RegisterDecoder (info
);
2922 media_attribute_new (void)
2924 return new MediaAttribute ();
2929 * MediaAttributeCollection
2932 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
2934 if (instance
== NULL
)
2937 return instance
->GetItemByName (name
);
2941 MediaAttributeCollection
*
2942 media_attribute_collection_new (void)
2944 return new MediaAttributeCollection ();
2952 media_base_new (void)
2954 return new MediaBase ();
2959 media_base_set_source (MediaBase
*instance
, const char *uri
)
2961 if (instance
== NULL
)
2964 instance
->SetSource (uri
);
2972 media_element_new (void)
2974 return new MediaElement ();
2979 media_element_pause (MediaElement
*instance
)
2981 if (instance
== NULL
)
2989 media_element_play (MediaElement
*instance
)
2991 if (instance
== NULL
)
2999 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
3001 if (instance
== NULL
)
3004 instance
->ReportErrorOccurred (args
);
3009 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
)
3011 if (instance
== NULL
)
3014 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3019 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3021 if (instance
== NULL
)
3024 instance
->SetStreamSource (stream
);
3029 media_element_stop (MediaElement
*instance
)
3031 if (instance
== NULL
)
3042 media_frame_add_state (MediaFrame
*instance
, int state
)
3044 if (instance
== NULL
)
3047 instance
->AddState ((MediaFrameState
) state
);
3052 media_frame_get_buffer (MediaFrame
*instance
)
3054 if (instance
== NULL
)
3057 return instance
->GetBuffer ();
3062 media_frame_get_buf_len (MediaFrame
*instance
)
3064 if (instance
== NULL
)
3065 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3068 return instance
->GetBufLen ();
3073 media_frame_get_height (MediaFrame
*instance
)
3075 if (instance
== NULL
)
3076 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3079 return instance
->GetHeight ();
3084 media_frame_get_pts (MediaFrame
*instance
)
3086 if (instance
== NULL
)
3087 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3090 return instance
->GetPts ();
3095 media_frame_get_width (MediaFrame
*instance
)
3097 if (instance
== NULL
)
3098 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3101 return instance
->GetWidth ();
3106 media_frame_is_key_frame (MediaFrame
*instance
)
3108 if (instance
== NULL
)
3111 return instance
->IsKeyFrame ();
3116 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3118 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3123 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3125 if (instance
== NULL
)
3128 instance
->SetBuffer (value
);
3133 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3135 if (instance
== NULL
)
3138 instance
->SetBufLen (value
);
3143 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3145 if (instance
== NULL
)
3148 instance
->SetDataStride (a
, b
, c
, d
);
3153 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3155 if (instance
== NULL
)
3158 instance
->SetDecoderSpecificData (value
);
3163 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3165 if (instance
== NULL
)
3168 instance
->SetHeight (value
);
3173 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3175 if (instance
== NULL
)
3178 instance
->SetPts (value
);
3183 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3185 if (instance
== NULL
)
3188 instance
->SetSrcSlideH (value
);
3193 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3195 if (instance
== NULL
)
3198 instance
->SetSrcSlideY (value
);
3203 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3205 if (instance
== NULL
)
3208 instance
->SetSrcStride (a
, b
, c
, d
);
3213 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3215 if (instance
== NULL
)
3218 instance
->SetWidth (value
);
3226 moon_window_get_transparent (MoonWindow
*instance
)
3228 if (instance
== NULL
)
3231 return instance
->GetTransparent ();
3236 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3238 if (instance
== NULL
)
3241 instance
->SetTransparent (flag
);
3249 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3251 if (instance
== NULL
)
3254 return instance
->GetNativeWidget ();
3259 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
)
3261 return new MoonWindowGtk (fullscreen
, w
, h
, parent
);
3266 * MouseButtonEventArgs
3268 MouseButtonEventArgs
*
3269 mouse_button_event_args_new (void)
3271 return new MouseButtonEventArgs ();
3279 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3281 if (instance
== NULL
)
3284 instance
->GetPosition (relative_to
, x
, y
);
3289 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3291 if (instance
== NULL
)
3294 return instance
->GetStylusInfo ();
3298 StylusPointCollection
*
3299 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3301 if (instance
== NULL
)
3304 return instance
->GetStylusPoints (ink_presenter
);
3309 mouse_event_args_new (void)
3311 return new MouseEventArgs ();
3316 * MouseWheelEventArgs
3319 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3321 if (instance
== NULL
)
3322 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3325 return instance
->GetWheelDelta ();
3329 MouseWheelEventArgs
*
3330 mouse_wheel_event_args_new (void)
3332 return new MouseWheelEventArgs ();
3340 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3342 if (instance
== NULL
)
3343 return Point (0, 0);
3345 return instance
->ElementToLogicalPoint (elementPoint
);
3350 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3352 if (instance
== NULL
)
3355 instance
->EmitImageFailed ();
3360 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3362 if (instance
== NULL
)
3365 instance
->EmitImageOpenFailed ();
3370 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3372 if (instance
== NULL
)
3375 instance
->EmitMotionFinished ();
3380 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3382 if (instance
== NULL
)
3385 instance
->HandleDzParsed ();
3390 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3392 if (instance
== NULL
)
3395 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3400 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3402 if (instance
== NULL
)
3403 return Point (0, 0);
3405 return instance
->LogicalToElementPoint (logicalPoint
);
3410 multi_scale_image_new (void)
3412 return new MultiScaleImage ();
3417 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3419 if (instance
== NULL
)
3422 instance
->OnSourcePropertyChanged ();
3427 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3429 if (instance
== NULL
)
3432 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3437 * MultiScaleSubImage
3440 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3442 if (instance
== NULL
)
3443 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3446 return instance
->GetZIndex ();
3450 MultiScaleSubImage
*
3451 multi_scale_sub_image_new (void)
3453 return new MultiScaleSubImage ();
3458 * MultiScaleSubImageCollection
3460 MultiScaleSubImageCollection
*
3461 multi_scale_sub_image_collection_new (void)
3463 return new MultiScaleSubImageCollection ();
3468 * MultiScaleTileSource
3471 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3473 if (instance
== NULL
)
3476 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3480 MultiScaleTileSource
*
3481 multi_scale_tile_source_new (void)
3483 return new MultiScaleTileSource ();
3488 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3490 if (instance
== NULL
)
3493 instance
->set_image_uri_func (func
);
3501 name_scope_new (void)
3503 return new NameScope ();
3508 * ObjectAnimationUsingKeyFrames
3510 ObjectAnimationUsingKeyFrames
*
3511 object_animation_using_key_frames_new (void)
3513 return new ObjectAnimationUsingKeyFrames ();
3521 object_key_frame_new (void)
3523 return new ObjectKeyFrame ();
3528 * ObjectKeyFrameCollection
3530 ObjectKeyFrameCollection
*
3531 object_key_frame_collection_new (void)
3533 return new ObjectKeyFrameCollection ();
3538 * OutOfBrowserSettings
3540 OutOfBrowserSettings
*
3541 out_of_browser_settings_new (void)
3543 return new OutOfBrowserSettings ();
3553 return new Panel ();
3561 parallel_timeline_new (void)
3563 return new ParallelTimeline ();
3571 password_box_new (void)
3573 return new PasswordBox ();
3591 path_figure_new (void)
3593 return new PathFigure ();
3598 * PathFigureCollection
3600 PathFigureCollection
*
3601 path_figure_collection_new (void)
3603 return new PathFigureCollection ();
3611 path_geometry_new (void)
3613 return new PathGeometry ();
3621 path_segment_new (void)
3623 return new PathSegment ();
3628 * PathSegmentCollection
3630 PathSegmentCollection
*
3631 path_segment_collection_new (void)
3633 return new PathSegmentCollection ();
3641 point_animation_new (void)
3643 return new PointAnimation ();
3648 * PointAnimationUsingKeyFrames
3650 PointAnimationUsingKeyFrames
*
3651 point_animation_using_key_frames_new (void)
3653 return new PointAnimationUsingKeyFrames ();
3661 point_collection_new (void)
3663 return new PointCollection ();
3671 point_key_frame_new (void)
3673 return new PointKeyFrame ();
3678 * PointKeyFrameCollection
3680 PointKeyFrameCollection
*
3681 point_key_frame_collection_new (void)
3683 return new PointKeyFrameCollection ();
3691 poly_bezier_segment_new (void)
3693 return new PolyBezierSegment ();
3698 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3700 if (instance
== NULL
)
3703 instance
->SetPoints (points
);
3713 return new Polygon ();
3723 return new Polyline ();
3731 poly_line_segment_new (void)
3733 return new PolyLineSegment ();
3738 * PolyQuadraticBezierSegment
3740 PolyQuadraticBezierSegment
*
3741 poly_quadratic_bezier_segment_new (void)
3743 return new PolyQuadraticBezierSegment ();
3753 return new Popup ();
3761 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3763 if (instance
== NULL
)
3764 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3767 return instance
->EaseInCore (normalizedTime
);
3772 power_ease_new (void)
3774 return new PowerEase ();
3779 * PropertyChangedEventArgs
3782 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3784 if (instance
== NULL
)
3785 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3788 return instance
->GetId ();
3793 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3795 if (instance
== NULL
)
3798 return instance
->GetNewValue ();
3803 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3805 if (instance
== NULL
)
3808 return instance
->GetOldValue ();
3812 DependencyProperty
*
3813 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3815 if (instance
== NULL
)
3818 return instance
->GetProperty ();
3823 * QuadraticBezierSegment
3825 QuadraticBezierSegment
*
3826 quadratic_bezier_segment_new (void)
3828 return new QuadraticBezierSegment ();
3836 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3838 if (instance
== NULL
)
3839 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3842 return instance
->EaseInCore (normalizedTime
);
3847 quadratic_ease_new (void)
3849 return new QuadraticEase ();
3857 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
3859 if (instance
== NULL
)
3860 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3863 return instance
->EaseInCore (normalizedTime
);
3868 quartic_ease_new (void)
3870 return new QuarticEase ();
3878 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
3880 if (instance
== NULL
)
3881 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3884 return instance
->EaseInCore (normalizedTime
);
3889 quintic_ease_new (void)
3891 return new QuinticEase ();
3896 * RadialGradientBrush
3898 RadialGradientBrush
*
3899 radial_gradient_brush_new (void)
3901 return new RadialGradientBrush ();
3909 rectangle_new (void)
3911 return new Rectangle ();
3919 rectangle_geometry_new (void)
3921 return new RectangleGeometry ();
3926 * RenderingEventArgs
3929 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
3931 if (instance
== NULL
)
3932 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3933 return (TimeSpan
) 0;
3935 return instance
->GetRenderingTime ();
3940 * ResourceDictionary
3943 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
3945 if (instance
== NULL
)
3949 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
3950 return instance
->AddWithError (key
, value
, error
);
3955 resource_dictionary_clear (ResourceDictionary
*instance
)
3957 if (instance
== NULL
)
3960 return instance
->Clear ();
3965 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
3967 if (instance
== NULL
)
3970 return instance
->ContainsKey (key
);
3975 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
3977 if (instance
== NULL
)
3980 return instance
->Get (key
, exists
);
3985 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
3987 if (instance
== NULL
)
3990 return instance
->Remove (key
);
3994 ResourceDictionary
*
3995 resource_dictionary_new (void)
3997 return new ResourceDictionary ();
4002 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
4004 if (instance
== NULL
)
4007 return instance
->Set (key
, value
);
4012 * ResourceDictionaryCollection
4014 ResourceDictionaryCollection
*
4015 resource_dictionary_collection_new (void)
4017 return new ResourceDictionaryCollection ();
4025 rotate_transform_new (void)
4027 return new RotateTransform ();
4035 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4037 if (instance
== NULL
)
4040 return instance
->GetHandled ();
4045 routed_event_args_get_source (RoutedEventArgs
*instance
)
4047 if (instance
== NULL
)
4050 return instance
->GetSource ();
4055 routed_event_args_new (void)
4057 return new RoutedEventArgs ();
4062 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4064 if (instance
== NULL
)
4067 instance
->SetHandled (handled
);
4072 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4074 if (instance
== NULL
)
4077 instance
->SetSource (el
);
4085 row_definition_new (void)
4087 return new RowDefinition ();
4092 * RowDefinitionCollection
4094 RowDefinitionCollection
*
4095 row_definition_collection_new (void)
4097 return new RowDefinitionCollection ();
4115 scale_transform_new (void)
4117 return new ScaleTransform ();
4127 return new Setter ();
4135 setter_base_new (void)
4137 return new SetterBase ();
4142 * SetterBaseCollection
4144 SetterBaseCollection
*
4145 setter_base_collection_new (void)
4147 return new SetterBaseCollection ();
4155 shape_get_geometry_transform (Shape
*instance
)
4157 if (instance
== NULL
)
4160 return instance
->GetGeometryTransform ();
4167 return new Shape ();
4175 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4177 if (instance
== NULL
)
4178 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4181 return instance
->EaseInCore (normalizedTime
);
4186 sine_ease_new (void)
4188 return new SineEase ();
4193 * SizeChangedEventArgs
4195 SizeChangedEventArgs
*
4196 size_changed_event_args_new (void)
4198 return new SizeChangedEventArgs ();
4206 skew_transform_new (void)
4208 return new SkewTransform ();
4216 solid_color_brush_new (void)
4218 return new SolidColorBrush ();
4223 * SplineColorKeyFrame
4225 SplineColorKeyFrame
*
4226 spline_color_key_frame_new (void)
4228 return new SplineColorKeyFrame ();
4233 * SplineDoubleKeyFrame
4235 SplineDoubleKeyFrame
*
4236 spline_double_key_frame_new (void)
4238 return new SplineDoubleKeyFrame ();
4243 * SplinePointKeyFrame
4245 SplinePointKeyFrame
*
4246 spline_point_key_frame_new (void)
4248 return new SplinePointKeyFrame ();
4256 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4258 if (instance
== NULL
)
4262 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4263 return instance
->BeginWithError (error
);
4268 storyboard_get_current_state (Storyboard
*instance
)
4270 if (instance
== NULL
)
4271 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4274 return instance
->GetCurrentState ();
4279 storyboard_get_current_time (Storyboard
*instance
)
4281 if (instance
== NULL
)
4282 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4283 return (TimeSpan
) 0;
4285 return instance
->GetCurrentTime ();
4289 DependencyProperty
*
4290 storyboard_get_target_dependency_property (Storyboard
*instance
)
4292 if (instance
== NULL
)
4295 return instance
->GetTargetDependencyProperty ();
4300 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4302 if (instance
== NULL
)
4306 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4307 instance
->PauseWithError (error
);
4312 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4314 if (instance
== NULL
)
4318 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4319 instance
->ResumeWithError (error
);
4324 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4326 if (instance
== NULL
)
4330 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4331 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4336 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4338 if (instance
== NULL
)
4342 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4343 instance
->SeekWithError (timespan
, error
);
4348 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4350 if (instance
== NULL
)
4354 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4355 instance
->SkipToFillWithError (error
);
4360 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4362 if (instance
== NULL
)
4366 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4367 instance
->StopWithError (error
);
4372 storyboard_new (void)
4374 return new Storyboard ();
4382 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4384 if (instance
== NULL
)
4387 return instance
->HitTest (stylusPoints
);
4394 return new Stroke ();
4402 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4404 if (instance
== NULL
)
4407 return instance
->HitTest (stylusPoints
);
4412 stroke_collection_new (void)
4414 return new StrokeCollection ();
4422 style_seal (Style
*instance
)
4424 if (instance
== NULL
)
4434 return new Style ();
4442 stylus_info_new (void)
4444 return new StylusInfo ();
4452 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4454 if (instance
== NULL
)
4455 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4458 return instance
->GetPressureFactor ();
4463 stylus_point_get_x (StylusPoint
*instance
)
4465 if (instance
== NULL
)
4466 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4469 return instance
->GetX ();
4474 stylus_point_get_y (StylusPoint
*instance
)
4476 if (instance
== NULL
)
4477 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4480 return instance
->GetY ();
4485 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4487 if (instance
== NULL
)
4490 instance
->SetPressureFactor (factor
);
4495 stylus_point_set_x (StylusPoint
*instance
, double x
)
4497 if (instance
== NULL
)
4505 stylus_point_set_y (StylusPoint
*instance
, double y
)
4507 if (instance
== NULL
)
4515 stylus_point_new (void)
4517 return new StylusPoint ();
4522 * StylusPointCollection
4525 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
4527 if (instance
== NULL
)
4528 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4531 return instance
->AddStylusPoints (stylusPointCollection
);
4535 StylusPointCollection
*
4536 stylus_point_collection_new (void)
4538 return new StylusPointCollection ();
4546 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4548 if (instance
== NULL
)
4551 instance
->Attach (toplevel
);
4556 surface_create_downloader (Surface
*instance
)
4558 if (instance
== NULL
)
4561 return instance
->CreateDownloader ();
4566 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4568 if (instance
== NULL
)
4571 instance
->EmitError (number
, code
, message
);
4576 surface_get_background_color (Surface
*instance
)
4578 if (instance
== NULL
)
4581 return instance
->GetBackgroundColor ();
4586 surface_get_focused_element (Surface
*instance
)
4588 if (instance
== NULL
)
4591 return instance
->GetFocusedElement ();
4596 surface_get_full_screen (Surface
*instance
)
4598 if (instance
== NULL
)
4601 return instance
->GetFullScreen ();
4606 surface_get_time_manager (Surface
*instance
)
4608 if (instance
== NULL
)
4611 return instance
->GetTimeManager ();
4616 surface_get_toplevel (Surface
*instance
)
4618 if (instance
== NULL
)
4621 return instance
->GetToplevel ();
4626 surface_get_window (Surface
*instance
)
4628 if (instance
== NULL
)
4631 return instance
->GetWindow ();
4636 surface_in_main_thread (void)
4638 return Surface::InMainThread ();
4643 surface_is_loaded (Surface
*instance
)
4645 if (instance
== NULL
)
4648 return instance
->IsLoaded ();
4653 surface_is_user_initiated_event (Surface
*instance
)
4655 if (instance
== NULL
)
4658 return instance
->IsUserInitiatedEvent ();
4663 surface_is_version_supported (const char *version
)
4665 return Surface::IsVersionSupported (version
);
4670 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4672 if (instance
== NULL
)
4675 instance
->Paint (ctx
, x
, y
, width
, height
);
4680 surface_resize (Surface
*instance
, int width
, int height
)
4682 if (instance
== NULL
)
4685 instance
->Resize (width
, height
);
4690 surface_set_full_screen (Surface
*instance
, bool value
)
4692 if (instance
== NULL
)
4695 instance
->SetFullScreen (value
);
4700 surface_new (MoonWindow
*window
)
4702 return new Surface (window
);
4707 * TabNavigationWalker
4710 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4712 return TabNavigationWalker::Focus (element
, forwards
);
4720 text_block_new (void)
4722 return new TextBlock ();
4732 return new TextBox ();
4740 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4742 if (instance
== NULL
)
4745 instance
->OnGotFocus (args
);
4750 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4752 if (instance
== NULL
)
4755 instance
->OnKeyDown (args
);
4760 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4762 if (instance
== NULL
)
4765 instance
->OnKeyUp (args
);
4770 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4772 if (instance
== NULL
)
4775 instance
->OnLostFocus (args
);
4780 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4782 if (instance
== NULL
)
4785 instance
->OnMouseLeftButtonDown (args
);
4790 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4792 if (instance
== NULL
)
4795 instance
->OnMouseLeftButtonUp (args
);
4800 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4802 if (instance
== NULL
)
4805 instance
->OnMouseMove (args
);
4810 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4812 if (instance
== NULL
)
4815 instance
->PostOnKeyDown (args
);
4820 text_box_base_select_all (TextBoxBase
*instance
)
4822 if (instance
== NULL
)
4825 instance
->SelectAll ();
4830 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
4832 if (instance
== NULL
)
4836 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
4837 return instance
->SelectWithError (start
, length
, error
);
4845 text_box_view_new (void)
4847 return new TextBoxView ();
4852 * TextChangedEventArgs
4854 TextChangedEventArgs
*
4855 text_changed_event_args_new (void)
4857 return new TextChangedEventArgs ();
4865 tile_brush_new (void)
4867 return new TileBrush ();
4875 timeline_get_manual_target (Timeline
*instance
)
4877 if (instance
== NULL
)
4880 return instance
->GetManualTarget ();
4885 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
4887 if (instance
== NULL
)
4890 instance
->SetManualTarget (o
);
4897 return new Timeline ();
4902 * TimelineCollection
4904 TimelineCollection
*
4905 timeline_collection_new (void)
4907 return new TimelineCollection ();
4915 timeline_group_new (void)
4917 return new TimelineGroup ();
4925 timeline_marker_new (void)
4927 return new TimelineMarker ();
4932 * TimelineMarkerCollection
4934 TimelineMarkerCollection
*
4935 timeline_marker_collection_new (void)
4937 return new TimelineMarkerCollection ();
4945 time_manager_add_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
4947 if (instance
== NULL
)
4950 instance
->AddTickCall (handler
, tick_data
);
4955 time_manager_add_timeout (TimeManager
*instance
, gint priority
, guint ms_interval
, GSourceFunc func
, gpointer timeout_data
)
4957 if (instance
== NULL
)
4958 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4961 return instance
->AddTimeout (priority
, ms_interval
, func
, timeout_data
);
4966 time_manager_get_maximum_refresh_rate (TimeManager
*instance
)
4968 if (instance
== NULL
)
4969 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4972 return instance
->GetMaximumRefreshRate ();
4977 time_manager_remove_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
4979 if (instance
== NULL
)
4982 instance
->RemoveTickCall (handler
, tick_data
);
4987 time_manager_remove_timeout (TimeManager
*instance
, guint timeout_id
)
4989 if (instance
== NULL
)
4992 instance
->RemoveTimeout (timeout_id
);
4997 time_manager_set_maximum_refresh_rate (TimeManager
*instance
, int hz
)
4999 if (instance
== NULL
)
5002 instance
->SetMaximumRefreshRate (hz
);
5010 transform_new (void)
5012 return new Transform ();
5017 * TransformCollection
5019 TransformCollection
*
5020 transform_collection_new (void)
5022 return new TransformCollection ();
5030 transform_group_new (void)
5032 return new TransformGroup ();
5037 * TranslateTransform
5039 TranslateTransform
*
5040 translate_transform_new (void)
5042 return new TranslateTransform ();
5050 trigger_action_fire (TriggerAction
*instance
)
5052 if (instance
== NULL
)
5060 trigger_action_new (void)
5062 return new TriggerAction ();
5067 * TriggerActionCollection
5069 TriggerActionCollection
*
5070 trigger_action_collection_new (void)
5072 return new TriggerActionCollection ();
5080 trigger_base_new (void)
5082 return new TriggerBase ();
5090 trigger_collection_new (void)
5092 return new TriggerCollection ();
5100 types_free (Types
*instance
)
5107 types_find (Types
*instance
, int type
)
5109 if (instance
== NULL
)
5112 return instance
->Find ((Type::Kind
) type
);
5117 types_register_type (Types
*instance
, const char *name
, void *gc_handle
, int parent
, bool is_interface
, bool ctor_visible
, int *interfaces
, int interface_count
)
5119 if (instance
== NULL
)
5120 return Type::INVALID
;
5122 return instance
->RegisterType (name
, gc_handle
, (Type::Kind
) parent
, is_interface
, ctor_visible
, (Type::Kind
*) interfaces
, interface_count
);
5129 return new Types ();
5137 uielement_arrange (UIElement
*instance
, Rect finalRect
)
5139 if (instance
== NULL
)
5142 instance
->Arrange (finalRect
);
5147 uielement_capture_mouse (UIElement
*instance
)
5149 if (instance
== NULL
)
5152 return instance
->CaptureMouse ();
5157 uielement_element_added (UIElement
*instance
, UIElement
*obj
)
5159 if (instance
== NULL
)
5162 instance
->ElementAdded (obj
);
5167 uielement_element_removed (UIElement
*instance
, UIElement
*obj
)
5169 if (instance
== NULL
)
5172 instance
->ElementRemoved (obj
);
5177 uielement_find_elements_in_host_coordinates_p (UIElement
*instance
, Point p
, HitTestCollection
*uielement_list
)
5179 if (instance
== NULL
)
5182 instance
->FindElementsInHostCoordinates_p (p
, uielement_list
);
5187 uielement_find_elements_in_host_coordinates_r (UIElement
*instance
, Rect p
, HitTestCollection
*uielement_list
)
5189 if (instance
== NULL
)
5192 instance
->FindElementsInHostCoordinates_r (p
, uielement_list
);
5197 uielement_focus (UIElement
*instance
, bool recurse
)
5199 if (instance
== NULL
)
5202 return instance
->Focus (recurse
);
5207 uielement_get_desired_size (UIElement
*instance
)
5209 if (instance
== NULL
)
5210 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5213 return instance
->GetDesiredSize ();
5218 uielement_get_render_size (UIElement
*instance
)
5220 if (instance
== NULL
)
5221 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5224 return instance
->GetRenderSize ();
5229 uielement_get_subtree_object (UIElement
*instance
)
5231 if (instance
== NULL
)
5234 return instance
->GetSubtreeObject ();
5239 uielement_get_transform_to_uielement_with_error (UIElement
*instance
, UIElement
*to_element
, MoonError
*error
)
5241 if (instance
== NULL
)
5245 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5246 return instance
->GetTransformToUIElementWithError (to_element
, error
);
5251 uielement_get_visual_parent (UIElement
*instance
)
5253 if (instance
== NULL
)
5256 return instance
->GetVisualParent ();
5261 uielement_invalidate (UIElement
*instance
)
5263 if (instance
== NULL
)
5266 instance
->Invalidate ();
5271 uielement_invalidate_arrange (UIElement
*instance
)
5273 if (instance
== NULL
)
5276 instance
->InvalidateArrange ();
5281 uielement_invalidate_measure (UIElement
*instance
)
5283 if (instance
== NULL
)
5286 instance
->InvalidateMeasure ();
5291 uielement_measure (UIElement
*instance
, Size availableSize
)
5293 if (instance
== NULL
)
5296 instance
->Measure (availableSize
);
5301 uielement_release_mouse_capture (UIElement
*instance
)
5303 if (instance
== NULL
)
5306 instance
->ReleaseMouseCapture ();
5311 uielement_set_subtree_object (UIElement
*instance
, DependencyObject
*value
)
5313 if (instance
== NULL
)
5316 instance
->SetSubtreeObject (value
);
5321 uielement_update_layout (UIElement
*instance
)
5323 if (instance
== NULL
)
5326 instance
->UpdateLayout ();
5331 * UIElementCollection
5333 UIElementCollection
*
5334 uielement_collection_new (void)
5336 return new UIElementCollection ();
5344 unmanaged_matrix_new (void)
5346 return new UnmanagedMatrix ();
5354 uri_equals (const Uri
*left
, const Uri
*right
)
5356 return Uri::Equals (left
, right
);
5361 uri_free (Uri
*instance
)
5363 if (instance
== NULL
)
5371 uri_get_hash_code (Uri
*instance
)
5373 if (instance
== NULL
)
5374 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5377 return instance
->GetHashCode ();
5382 uri_parse (Uri
*instance
, const char *uri
, bool allow_trailing_sep
)
5384 if (instance
== NULL
)
5387 return instance
->Parse (uri
, allow_trailing_sep
);
5395 user_control_new (void)
5397 return new UserControl ();
5405 video_brush_set_source (VideoBrush
*instance
, MediaElement
*source
)
5407 if (instance
== NULL
)
5410 instance
->SetSource (source
);
5415 video_brush_new (void)
5417 return new VideoBrush ();
5425 video_stream_get_height (VideoStream
*instance
)
5427 if (instance
== NULL
)
5428 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5431 return instance
->GetHeight ();
5436 video_stream_get_width (VideoStream
*instance
)
5438 if (instance
== NULL
)
5439 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5442 return instance
->GetWidth ();
5447 video_stream_new (Media
*media
, int codec_id
, guint32 width
, guint32 height
, guint64 duration
, gpointer extra_data
, guint32 extra_data_size
)
5449 return new VideoStream (media
, codec_id
, width
, height
, duration
, extra_data
, extra_data_size
);
5457 visual_brush_new (void)
5459 return new VisualBrush ();
5467 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap
*instance
, BitmapSource
*source
)
5469 if (instance
== NULL
)
5470 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5471 return (gpointer
) 0;
5473 return instance
->InitializeFromBitmapSource (source
);
5478 writeable_bitmap_lock (WriteableBitmap
*instance
)
5480 if (instance
== NULL
)
5488 writeable_bitmap_render (WriteableBitmap
*instance
, UIElement
*element
, Transform
*transform
)
5490 if (instance
== NULL
)
5493 instance
->Render (element
, transform
);
5498 writeable_bitmap_unlock (WriteableBitmap
*instance
)
5500 if (instance
== NULL
)
5503 instance
->Unlock ();
5508 writeable_bitmap_new (void)
5510 return new WriteableBitmap ();
5518 xaml_context_get_template_binding_source (XamlContext
*instance
)
5520 if (instance
== NULL
)
5523 return instance
->GetTemplateBindingSource ();
5531 xaml_loader_create_from_file_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, MoonError
*error
)
5533 if (instance
== NULL
)
5537 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5538 return instance
->CreateFromFileWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, error
);
5543 xaml_loader_create_from_string_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5545 if (instance
== NULL
)
5549 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5550 return instance
->CreateFromStringWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5555 xaml_loader_get_context (XamlLoader
*instance
)
5557 if (instance
== NULL
)
5560 return instance
->GetContext ();
5565 xaml_loader_hydrate_from_string_with_error (XamlLoader
*instance
, const char *xaml
, Value
*obj
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5567 if (instance
== NULL
)
5571 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5572 return instance
->HydrateFromStringWithError (xaml
, obj
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5580 xap_unpack (const char *fname
)
5582 return Xap::Unpack (fname
);