2 * Automatically generated, do not edit this file directly
12 #include "animation.h"
13 #include "application.h"
14 #include "bitmapcache.h"
15 #include "bitmapimage.h"
16 #include "bitmapsource.h"
20 #include "collection.h"
21 #include "contentcontrol.h"
23 #include "deepzoomimagetilesource.h"
24 #include "dependencyobject.h"
25 #include "dependencyproperty.h"
26 #include "deployment.h"
27 #include "downloader.h"
30 #include "eventargs.h"
31 #include "frameworkelement.h"
35 #include "imagesource.h"
38 #include "mediaelement.h"
39 #include "multiscaleimage.h"
40 #include "multiscalesubimage.h"
41 #include "namescope.h"
45 #include "resources.h"
51 #include "tabnavigationwalker.h"
53 #include "textblock.h"
55 #include "tilesource.h"
57 #include "timemanager.h"
58 #include "transform.h"
61 #include "uielement.h"
63 #include "usercontrol.h"
65 #include "window-gtk.h"
66 #include "writeablebitmap.h"
73 application_new (void)
75 return new Application ();
80 application_get_current (void)
82 return Application::GetCurrent ();
87 application_register_callbacks (Application
*instance
, ApplyDefaultStyleCallback apply_default_style_cb
, ApplyStyleCallback apply_style_cb
, GetResourceCallback get_resource_cb
, ConvertKeyframeValueCallback convert_keyframe_callback
)
92 instance
->RegisterCallbacks (apply_default_style_cb
, apply_style_cb
, get_resource_cb
, convert_keyframe_callback
);
97 application_set_current (Application
*current
)
99 Application::SetCurrent (current
);
107 arc_segment_new (void)
109 return new ArcSegment ();
117 assembly_part_new (void)
119 return new AssemblyPart ();
124 * AssemblyPartCollection
126 AssemblyPartCollection
*
127 assembly_part_collection_new (void)
129 return new AssemblyPartCollection ();
137 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
)
139 return new AudioStream (media
, codec_id
, bits_per_sample
, block_align
, sample_rate
, channels
, bit_rate
, extra_data
, extra_data_size
);
144 audio_stream_get_bit_rate (AudioStream
*instance
)
146 if (instance
== NULL
)
147 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
150 return instance
->GetBitRate ();
155 audio_stream_get_bits_per_sample (AudioStream
*instance
)
157 if (instance
== NULL
)
158 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
161 return instance
->GetBitsPerSample ();
166 audio_stream_get_block_align (AudioStream
*instance
)
168 if (instance
== NULL
)
169 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
172 return instance
->GetBlockAlign ();
177 audio_stream_get_channels (AudioStream
*instance
)
179 if (instance
== NULL
)
180 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
183 return instance
->GetChannels ();
188 audio_stream_get_input_bit_rate (AudioStream
*instance
)
190 if (instance
== NULL
)
191 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
194 return instance
->GetInputBitRate ();
199 audio_stream_get_input_bits_per_sample (AudioStream
*instance
)
201 if (instance
== NULL
)
202 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
205 return instance
->GetInputBitsPerSample ();
210 audio_stream_get_input_block_align (AudioStream
*instance
)
212 if (instance
== NULL
)
213 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
216 return instance
->GetInputBlockAlign ();
221 audio_stream_get_input_channels (AudioStream
*instance
)
223 if (instance
== NULL
)
224 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
227 return instance
->GetInputChannels ();
232 audio_stream_get_input_sample_rate (AudioStream
*instance
)
234 if (instance
== NULL
)
235 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
238 return instance
->GetInputSampleRate ();
243 audio_stream_get_output_bit_rate (AudioStream
*instance
)
245 if (instance
== NULL
)
246 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
249 return instance
->GetOutputBitRate ();
254 audio_stream_get_output_bits_per_sample (AudioStream
*instance
)
256 if (instance
== NULL
)
257 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
260 return instance
->GetOutputBitsPerSample ();
265 audio_stream_get_output_block_align (AudioStream
*instance
)
267 if (instance
== NULL
)
268 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
271 return instance
->GetOutputBlockAlign ();
276 audio_stream_get_output_channels (AudioStream
*instance
)
278 if (instance
== NULL
)
279 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
282 return instance
->GetOutputChannels ();
287 audio_stream_get_output_sample_rate (AudioStream
*instance
)
289 if (instance
== NULL
)
290 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
293 return instance
->GetOutputSampleRate ();
298 audio_stream_get_sample_rate (AudioStream
*instance
)
300 if (instance
== NULL
)
301 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
304 return instance
->GetSampleRate ();
309 audio_stream_set_bit_rate (AudioStream
*instance
, int value
)
311 if (instance
== NULL
)
314 instance
->SetBitRate (value
);
319 audio_stream_set_bits_per_sample (AudioStream
*instance
, int value
)
321 if (instance
== NULL
)
324 instance
->SetBitsPerSample (value
);
329 audio_stream_set_block_align (AudioStream
*instance
, int value
)
331 if (instance
== NULL
)
334 instance
->SetBlockAlign (value
);
339 audio_stream_set_channels (AudioStream
*instance
, int value
)
341 if (instance
== NULL
)
344 instance
->SetChannels (value
);
349 audio_stream_set_input_bit_rate (AudioStream
*instance
, int value
)
351 if (instance
== NULL
)
354 instance
->SetInputBitRate (value
);
359 audio_stream_set_input_bits_per_sample (AudioStream
*instance
, int value
)
361 if (instance
== NULL
)
364 instance
->SetInputBitsPerSample (value
);
369 audio_stream_set_input_block_align (AudioStream
*instance
, int value
)
371 if (instance
== NULL
)
374 instance
->SetInputBlockAlign (value
);
379 audio_stream_set_input_channels (AudioStream
*instance
, int value
)
381 if (instance
== NULL
)
384 instance
->SetInputChannels (value
);
389 audio_stream_set_input_sample_rate (AudioStream
*instance
, int value
)
391 if (instance
== NULL
)
394 instance
->SetInputSampleRate (value
);
399 audio_stream_set_output_bit_rate (AudioStream
*instance
, int value
)
401 if (instance
== NULL
)
404 instance
->SetOutputBitRate (value
);
409 audio_stream_set_output_bits_per_sample (AudioStream
*instance
, int value
)
411 if (instance
== NULL
)
414 instance
->SetOutputBitsPerSample (value
);
419 audio_stream_set_output_block_align (AudioStream
*instance
, int value
)
421 if (instance
== NULL
)
424 instance
->SetOutputBlockAlign (value
);
429 audio_stream_set_output_channels (AudioStream
*instance
, int value
)
431 if (instance
== NULL
)
434 instance
->SetOutputChannels (value
);
439 audio_stream_set_output_sample_rate (AudioStream
*instance
, int value
)
441 if (instance
== NULL
)
444 instance
->SetOutputSampleRate (value
);
449 audio_stream_set_sample_rate (AudioStream
*instance
, int value
)
451 if (instance
== NULL
)
454 instance
->SetSampleRate (value
);
464 return new BackEase ();
469 back_ease_ease_in_core (BackEase
*instance
, double normalizedTime
)
471 if (instance
== NULL
)
472 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
475 return instance
->EaseInCore (normalizedTime
);
483 begin_storyboard_new (void)
485 return new BeginStoryboard ();
493 bezier_segment_new (void)
495 return new BezierSegment ();
503 bitmap_cache_new (void)
505 return new BitmapCache ();
513 bitmap_image_new (void)
515 return new BitmapImage ();
520 bitmap_image_pixbuf_write (BitmapImage
*instance
, gpointer buffer
, gint32 offset
, gint32 n
)
522 if (instance
== NULL
)
525 instance
->PixbufWrite (buffer
, offset
, n
);
530 bitmap_image_pixmap_complete (BitmapImage
*instance
)
532 if (instance
== NULL
)
535 instance
->PixmapComplete ();
543 bitmap_source_new (void)
545 return new BitmapSource ();
550 bitmap_source_get_bitmap_data (BitmapSource
*instance
)
552 if (instance
== NULL
)
553 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
556 return instance
->GetBitmapData ();
561 bitmap_source_invalidate (BitmapSource
*instance
)
563 if (instance
== NULL
)
566 instance
->Invalidate ();
571 bitmap_source_set_bitmap_data (BitmapSource
*instance
, gpointer data
, bool own
)
573 if (instance
== NULL
)
576 instance
->SetBitmapData (data
, own
);
584 blur_effect_new (void)
586 return new BlurEffect ();
596 return new Border ();
604 bounce_ease_new (void)
606 return new BounceEase ();
611 bounce_ease_ease_in_core (BounceEase
*instance
, double normalizedTime
)
613 if (instance
== NULL
)
614 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
617 return instance
->EaseInCore (normalizedTime
);
635 cache_mode_new (void)
637 return new CacheMode ();
647 return new Canvas ();
655 circle_ease_new (void)
657 return new CircleEase ();
662 circle_ease_ease_in_core (CircleEase
*instance
, double normalizedTime
)
664 if (instance
== NULL
)
665 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
668 return instance
->EaseInCore (normalizedTime
);
676 collection_add_with_error (Collection
*instance
, Value
*value
, MoonError
*error
)
678 if (instance
== NULL
)
679 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
683 g_warning ("Moonlight: Called collection_add_with_error () with error == NULL.");
684 return instance
->AddWithError (value
, error
);
689 collection_clear (Collection
*instance
)
691 if (instance
== NULL
)
694 return instance
->Clear ();
699 collection_contains (Collection
*instance
, Value
*value
)
701 if (instance
== NULL
)
704 return instance
->Contains (value
);
709 collection_get_count (Collection
*instance
)
711 if (instance
== NULL
)
712 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
715 return instance
->GetCount ();
720 collection_get_element_type (Collection
*instance
)
722 if (instance
== NULL
)
723 return Type::INVALID
;
725 return instance
->GetElementType ();
730 collection_get_iterator (Collection
*instance
)
732 if (instance
== NULL
)
735 return instance
->GetIterator ();
740 collection_get_value_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
742 if (instance
== NULL
)
746 g_warning ("Moonlight: Called collection_get_value_at_with_error () with error == NULL.");
747 return instance
->GetValueAtWithError (index
, error
);
752 collection_index_of (Collection
*instance
, Value
*value
)
754 if (instance
== NULL
)
755 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
758 return instance
->IndexOf (value
);
763 collection_insert_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
765 if (instance
== NULL
)
769 g_warning ("Moonlight: Called collection_insert_with_error () with error == NULL.");
770 return instance
->InsertWithError (index
, value
, error
);
775 collection_remove (Collection
*instance
, Value
*value
)
777 if (instance
== NULL
)
780 return instance
->Remove (value
);
785 collection_remove_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
787 if (instance
== NULL
)
791 g_warning ("Moonlight: Called collection_remove_at_with_error () with error == NULL.");
792 return instance
->RemoveAtWithError (index
, error
);
797 collection_set_value_at_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
799 if (instance
== NULL
)
803 g_warning ("Moonlight: Called collection_set_value_at_with_error () with error == NULL.");
804 return instance
->SetValueAtWithError (index
, value
, error
);
809 * CollectionChangedEventArgs
811 CollectionChangedEventArgs
*
812 collection_changed_event_args_new (void)
814 return new CollectionChangedEventArgs ();
819 collection_changed_event_args_get_changed_action (CollectionChangedEventArgs
*instance
)
821 if (instance
== NULL
)
822 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
823 return (CollectionChangedAction
) 0;
825 return instance
->GetChangedAction ();
830 collection_changed_event_args_get_index (CollectionChangedEventArgs
*instance
)
832 if (instance
== NULL
)
833 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
836 return instance
->GetIndex ();
841 collection_changed_event_args_get_new_item (CollectionChangedEventArgs
*instance
)
843 if (instance
== NULL
)
846 return instance
->GetNewItem ();
851 collection_changed_event_args_get_old_item (CollectionChangedEventArgs
*instance
)
853 if (instance
== NULL
)
856 return instance
->GetOldItem ();
861 collection_changed_event_args_set_changed_action (CollectionChangedEventArgs
*instance
, int action
)
863 if (instance
== NULL
)
866 instance
->SetChangedAction ((CollectionChangedAction
) action
);
871 collection_changed_event_args_set_index (CollectionChangedEventArgs
*instance
, int index
)
873 if (instance
== NULL
)
876 instance
->SetIndex (index
);
881 collection_changed_event_args_set_new_item (CollectionChangedEventArgs
*instance
, Value
*item
)
883 if (instance
== NULL
)
886 instance
->SetNewItem (item
);
891 collection_changed_event_args_set_old_item (CollectionChangedEventArgs
*instance
, Value
*item
)
893 if (instance
== NULL
)
896 instance
->SetOldItem (item
);
904 collection_iterator_destroy (CollectionIterator
*iterator
)
906 CollectionIterator::Destroy (iterator
);
911 collection_iterator_get_current (CollectionIterator
*instance
, int *error
)
913 if (instance
== NULL
)
916 return instance
->GetCurrent (error
);
921 collection_iterator_next (CollectionIterator
*instance
)
923 if (instance
== NULL
)
924 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
927 return instance
->Next ();
932 collection_iterator_reset (CollectionIterator
*instance
)
934 if (instance
== NULL
)
937 return instance
->Reset ();
945 color_animation_new (void)
947 return new ColorAnimation ();
952 * ColorAnimationUsingKeyFrames
954 ColorAnimationUsingKeyFrames
*
955 color_animation_using_key_frames_new (void)
957 return new ColorAnimationUsingKeyFrames ();
965 color_key_frame_new (void)
967 return new ColorKeyFrame ();
972 * ColorKeyFrameCollection
974 ColorKeyFrameCollection
*
975 color_key_frame_collection_new (void)
977 return new ColorKeyFrameCollection ();
985 column_definition_new (void)
987 return new ColumnDefinition ();
992 * ColumnDefinitionCollection
994 ColumnDefinitionCollection
*
995 column_definition_collection_new (void)
997 return new ColumnDefinitionCollection ();
1002 * ContentChangedEventArgs
1005 content_changed_event_args_get_new_content (ContentChangedEventArgs
*instance
)
1007 if (instance
== NULL
)
1010 return instance
->GetNewContent ();
1015 content_changed_event_args_get_old_content (ContentChangedEventArgs
*instance
)
1017 if (instance
== NULL
)
1020 return instance
->GetOldContent ();
1028 content_control_new (void)
1030 return new ContentControl ();
1035 content_control_get_content_sets_parent (ContentControl
*instance
)
1037 if (instance
== NULL
)
1040 return instance
->GetContentSetsParent ();
1045 content_control_set_content_sets_parent (ContentControl
*instance
, bool value
)
1047 if (instance
== NULL
)
1050 instance
->SetContentSetsParent (value
);
1060 return new Control ();
1065 control_get_template_child (Control
*instance
, const char *name
)
1067 if (instance
== NULL
)
1070 return instance
->GetTemplateChild (name
);
1078 control_template_new (void)
1080 return new ControlTemplate ();
1088 cubic_ease_new (void)
1090 return new CubicEase ();
1095 cubic_ease_ease_in_core (CubicEase
*instance
, double normalizedTime
)
1097 if (instance
== NULL
)
1098 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1101 return instance
->EaseInCore (normalizedTime
);
1106 * CursorPositionChangedEventArgs
1108 CursorPositionChangedEventArgs
*
1109 cursor_position_changed_event_args_new (void)
1111 return new CursorPositionChangedEventArgs ();
1116 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs
*instance
)
1118 if (instance
== NULL
)
1119 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1122 return instance
->GetCursorHeight ();
1127 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs
*instance
)
1129 if (instance
== NULL
)
1130 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1133 return instance
->GetCursorX ();
1138 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs
*instance
)
1140 if (instance
== NULL
)
1141 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1144 return instance
->GetCursorY ();
1152 data_template_new (void)
1154 return new DataTemplate ();
1159 * DeepZoomImageTileSource
1161 DeepZoomImageTileSource
*
1162 deep_zoom_image_tile_source_new (void)
1164 return new DeepZoomImageTileSource ();
1172 dependency_object_add_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
, gpointer closure
)
1174 if (instance
== NULL
)
1177 instance
->AddPropertyChangeHandler (property
, cb
, closure
);
1182 dependency_object_clear_value (DependencyObject
*instance
, DependencyProperty
*property
, bool notify_listeners
, MoonError
*error
)
1184 if (instance
== NULL
)
1188 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1189 instance
->ClearValue (property
, notify_listeners
, error
);
1194 dependency_object_new (void)
1196 return new DependencyObject ();
1201 dependency_object_find_name (DependencyObject
*instance
, const char *name
, int *element_kind
)
1203 if (instance
== NULL
)
1206 return instance
->FindName (name
, (Type::Kind
*) element_kind
);
1211 dependency_object_get_name (DependencyObject
*instance
)
1213 if (instance
== NULL
)
1216 return instance
->GetName ();
1221 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1223 if (instance
== NULL
)
1227 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1228 return instance
->GetValueNoDefaultWithError (property
, error
);
1233 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1235 if (instance
== NULL
)
1239 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1240 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1245 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1247 if (instance
== NULL
)
1251 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1252 return instance
->ReadLocalValueWithError (property
, error
);
1257 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1259 if (instance
== NULL
)
1262 instance
->RemovePropertyChangeHandler (property
, cb
);
1267 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1269 if (instance
== NULL
)
1272 instance
->SetName (name
);
1277 dependency_object_set_parent (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1279 if (instance
== NULL
)
1283 g_warning ("Moonlight: Called dependency_object_set_parent () with error == NULL.");
1284 instance
->SetParent (parent
, error
);
1289 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1291 if (instance
== NULL
)
1295 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1296 return instance
->SetValueWithError (property
, value
, error
);
1301 * DependencyObjectCollection
1303 DependencyObjectCollection
*
1304 dependency_object_collection_new (void)
1306 return new DependencyObjectCollection ();
1311 * DependencyProperty
1314 dependency_property_get_default_value (DependencyProperty
*instance
)
1316 if (instance
== NULL
)
1319 return instance
->GetDefaultValue ();
1323 DependencyProperty
*
1324 dependency_property_get_dependency_property (int type
, const char *name
)
1326 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1330 DependencyProperty
*
1331 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1333 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1338 dependency_property_get_name (DependencyProperty
*instance
)
1340 if (instance
== NULL
)
1343 return instance
->GetName ();
1348 dependency_property_get_property_type (DependencyProperty
*instance
)
1350 if (instance
== NULL
)
1351 return Type::INVALID
;
1353 return instance
->GetPropertyType ();
1358 dependency_property_is_attached (DependencyProperty
*instance
)
1360 if (instance
== NULL
)
1363 return instance
->IsAttached ();
1368 dependency_property_is_nullable (DependencyProperty
*instance
)
1370 if (instance
== NULL
)
1373 return instance
->IsNullable ();
1378 dependency_property_is_read_only (DependencyProperty
*instance
)
1380 if (instance
== NULL
)
1383 return instance
->IsReadOnly ();
1387 DependencyProperty
*
1388 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1390 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1394 DependencyProperty
*
1395 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1397 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1402 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1404 if (instance
== NULL
)
1407 instance
->SetIsNullable (value
);
1412 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1414 if (instance
== NULL
)
1417 instance
->SetPropertyChangedCallback (changed_callback
);
1425 deployment_new (void)
1427 return new Deployment ();
1432 deployment_get_current (void)
1434 return Deployment::GetCurrent ();
1439 deployment_get_types (Deployment
*instance
)
1441 if (instance
== NULL
)
1444 return instance
->GetTypes ();
1449 deployment_set_current (Deployment
*value
)
1451 Deployment::SetCurrent (value
);
1456 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1458 if (instance
== NULL
)
1461 instance
->SetCurrentApplication (value
);
1466 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1468 if (instance
== NULL
)
1471 instance
->SetIsLoadedFromXap (flag
);
1476 * DiscreteColorKeyFrame
1478 DiscreteColorKeyFrame
*
1479 discrete_color_key_frame_new (void)
1481 return new DiscreteColorKeyFrame ();
1486 * DiscreteDoubleKeyFrame
1488 DiscreteDoubleKeyFrame
*
1489 discrete_double_key_frame_new (void)
1491 return new DiscreteDoubleKeyFrame ();
1496 * DiscreteObjectKeyFrame
1498 DiscreteObjectKeyFrame
*
1499 discrete_object_key_frame_new (void)
1501 return new DiscreteObjectKeyFrame ();
1506 * DiscretePointKeyFrame
1508 DiscretePointKeyFrame
*
1509 discrete_point_key_frame_new (void)
1511 return new DiscretePointKeyFrame ();
1519 dispatcher_timer_new (void)
1521 return new DispatcherTimer ();
1526 dispatcher_timer_start (DispatcherTimer
*instance
)
1528 if (instance
== NULL
)
1536 dispatcher_timer_stop (DispatcherTimer
*instance
)
1538 if (instance
== NULL
)
1549 double_animation_new (void)
1551 return new DoubleAnimation ();
1556 * DoubleAnimationUsingKeyFrames
1558 DoubleAnimationUsingKeyFrames
*
1559 double_animation_using_key_frames_new (void)
1561 return new DoubleAnimationUsingKeyFrames ();
1569 double_collection_new (void)
1571 return new DoubleCollection ();
1579 double_key_frame_new (void)
1581 return new DoubleKeyFrame ();
1586 * DoubleKeyFrameCollection
1588 DoubleKeyFrameCollection
*
1589 double_key_frame_collection_new (void)
1591 return new DoubleKeyFrameCollection ();
1599 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1601 if (instance
== NULL
)
1604 return instance
->CreateWebRequest (method
, uri
);
1609 downloader_new (void)
1611 return new Downloader ();
1616 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1618 if (instance
== NULL
)
1621 instance
->NotifyFailed (msg
);
1626 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1628 if (instance
== NULL
)
1631 instance
->NotifyFinished (final_uri
);
1636 downloader_notify_size (Downloader
*instance
, gint64 size
)
1638 if (instance
== NULL
)
1641 instance
->NotifySize (size
);
1646 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
)
1648 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1653 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1655 if (instance
== NULL
)
1658 instance
->Write (buf
, offset
, n
);
1666 downloader_request_free (DownloaderRequest
*instance
)
1673 downloader_request_abort (DownloaderRequest
*instance
)
1675 if (instance
== NULL
)
1682 DownloaderResponse
*
1683 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1685 if (instance
== NULL
)
1688 return instance
->GetDownloaderResponse ();
1693 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1695 if (instance
== NULL
)
1698 return instance
->GetResponse (started
, available
, finished
, context
);
1703 downloader_request_is_aborted (DownloaderRequest
*instance
)
1705 if (instance
== NULL
)
1708 return instance
->IsAborted ();
1713 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1715 if (instance
== NULL
)
1718 instance
->SetBody (body
, size
);
1723 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1725 if (instance
== NULL
)
1728 instance
->SetHttpHeader (name
, value
);
1733 * DownloaderResponse
1736 downloader_response_free (DownloaderResponse
*instance
)
1743 downloader_response_abort (DownloaderResponse
*instance
)
1745 if (instance
== NULL
)
1753 downloader_response_get_response_status (DownloaderResponse
*instance
)
1755 if (instance
== NULL
)
1756 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1759 return instance
->GetResponseStatus ();
1764 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1766 if (instance
== NULL
)
1769 return instance
->GetResponseStatusText ();
1774 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1776 if (instance
== NULL
)
1779 instance
->SetHeaderVisitor (visitor
, context
);
1784 * DownloadProgressEventArgs
1787 download_progress_event_args_get_progress (DownloadProgressEventArgs
*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.
1793 return instance
->GetProgress ();
1801 drawing_attributes_new (void)
1803 return new DrawingAttributes ();
1811 drop_shadow_effect_new (void)
1813 return new DropShadowEffect ();
1818 * EasingColorKeyFrame
1820 EasingColorKeyFrame
*
1821 easing_color_key_frame_new (void)
1823 return new EasingColorKeyFrame ();
1828 * EasingDoubleKeyFrame
1830 EasingDoubleKeyFrame
*
1831 easing_double_key_frame_new (void)
1833 return new EasingDoubleKeyFrame ();
1838 * EasingFunctionBase
1840 EasingFunctionBase
*
1841 easing_function_base_new (void)
1843 return new EasingFunctionBase ();
1848 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1850 if (instance
== NULL
)
1853 instance
->SetEasingFunction (value
);
1858 * EasingPointKeyFrame
1860 EasingPointKeyFrame
*
1861 easing_point_key_frame_new (void)
1863 return new EasingPointKeyFrame ();
1873 return new Effect ();
1881 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
1883 if (instance
== NULL
)
1884 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1887 return instance
->EaseInCore (normalizedTime
);
1892 elastic_ease_new (void)
1894 return new ElasticEase ();
1904 return new Ellipse ();
1912 ellipse_geometry_new (void)
1914 return new EllipseGeometry ();
1922 error_event_args_get_error_code (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.
1928 return instance
->GetErrorCode ();
1933 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1935 if (instance
== NULL
)
1938 return instance
->GetErrorMessage ();
1943 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1945 if (instance
== NULL
)
1946 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1949 return instance
->GetErrorType ();
1954 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1956 if (instance
== NULL
)
1957 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1958 return (gpointer
) 0;
1960 return instance
->GetMoonError ();
1968 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1970 if (instance
== NULL
)
1971 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1974 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
1979 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1981 if (instance
== NULL
)
1984 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
1989 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
1991 if (instance
== NULL
)
1994 instance
->AddToggleRefNotifier (tr
);
1999 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2001 if (instance
== NULL
)
2002 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2005 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
2010 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
2012 if (instance
== NULL
)
2015 instance
->DoEmitCurrentContext (event_id
, calldata
);
2020 event_object_get_object_type (EventObject
*instance
)
2022 if (instance
== NULL
)
2023 return Type::INVALID
;
2025 return instance
->GetObjectType ();
2030 event_object_get_surface (EventObject
*instance
)
2032 if (instance
== NULL
)
2035 return instance
->GetSurface ();
2040 event_object_get_type_name (EventObject
*instance
)
2042 if (instance
== NULL
)
2045 return instance
->GetTypeName ();
2050 event_object_ref (EventObject
*instance
)
2052 if (instance
== NULL
)
2060 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2062 if (instance
== NULL
)
2063 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2066 return instance
->RemoveHandler (event_id
, handler
, data
);
2071 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2073 if (instance
== NULL
)
2076 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2081 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2083 if (instance
== NULL
)
2086 instance
->RemoveToggleRefNotifier ();
2091 event_object_set_object_type (EventObject
*instance
, int value
)
2093 if (instance
== NULL
)
2096 instance
->SetObjectType ((Type::Kind
) value
);
2101 event_object_unref (EventObject
*instance
)
2103 if (instance
== NULL
)
2114 event_trigger_new (void)
2116 return new EventTrigger ();
2124 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2126 if (instance
== NULL
)
2127 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2130 return instance
->EaseInCore (normalizedTime
);
2135 exponential_ease_new (void)
2137 return new ExponentialEase ();
2145 extension_part_new (void)
2147 return new ExtensionPart ();
2155 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
)
2157 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2162 * ExternalDecoderInfo
2164 ExternalDecoderInfo
*
2165 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2167 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2175 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2177 if (instance
== NULL
)
2178 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2181 return instance
->AddStream (stream
);
2186 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2188 if (instance
== NULL
)
2191 instance
->ClearCallbacks ();
2196 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2198 if (instance
== NULL
)
2201 instance
->SetCanSeek (value
);
2209 external_part_new (void)
2211 return new ExternalPart ();
2216 * ExternalPartCollection
2218 ExternalPartCollection
*
2219 external_part_collection_new (void)
2221 return new ExternalPartCollection ();
2229 framework_element_apply_template (FrameworkElement
*instance
)
2231 if (instance
== NULL
)
2234 return instance
->ApplyTemplate ();
2239 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2241 if (instance
== NULL
)
2242 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2245 return instance
->ArrangeOverride (finalSize
);
2250 framework_element_new (void)
2252 return new FrameworkElement ();
2257 framework_element_get_logical_parent (FrameworkElement
*instance
)
2259 if (instance
== NULL
)
2262 return instance
->GetLogicalParent ();
2267 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2269 if (instance
== NULL
)
2270 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2273 return instance
->MeasureOverride (availableSize
);
2278 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
, GetDefaultTemplateCallback get_default_template_cb
, LoadedCallback loaded_cb
)
2280 if (instance
== NULL
)
2283 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
, get_default_template_cb
, loaded_cb
);
2288 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2290 if (instance
== NULL
)
2293 instance
->SetDefaultStyle (value
);
2298 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2300 if (instance
== NULL
)
2304 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2305 instance
->SetLogicalParent (logical_parent
, error
);
2313 framework_template_new (void)
2315 return new FrameworkTemplate ();
2320 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2322 if (instance
== NULL
)
2325 return instance
->GetVisualTree (templateBindingSource
);
2333 general_transform_new (void)
2335 return new GeneralTransform ();
2340 general_transform_get_matrix (GeneralTransform
*instance
)
2342 if (instance
== NULL
)
2345 return instance
->GetMatrix ();
2355 return new Geometry ();
2360 geometry_get_bounds (Geometry
*instance
)
2362 if (instance
== NULL
)
2363 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2366 return instance
->GetBounds ();
2371 * GeometryCollection
2373 GeometryCollection
*
2374 geometry_collection_new (void)
2376 return new GeometryCollection ();
2384 geometry_group_new (void)
2386 return new GeometryGroup ();
2396 return new Glyphs ();
2404 gradient_brush_new (void)
2406 return new GradientBrush ();
2414 gradient_stop_new (void)
2416 return new GradientStop ();
2421 * GradientStopCollection
2423 GradientStopCollection
*
2424 gradient_stop_collection_new (void)
2426 return new GradientStopCollection ();
2444 hit_test_collection_new (void)
2446 return new HitTestCollection ();
2464 icon_collection_new (void)
2466 return new IconCollection ();
2476 return new Image ();
2481 image_set_source (Image
*instance
, ImageSource
*source
)
2483 if (instance
== NULL
)
2486 instance
->SetSource (source
);
2494 image_brush_new (void)
2496 return new ImageBrush ();
2504 image_source_new (void)
2506 return new ImageSource ();
2514 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2516 if (instance
== NULL
)
2519 instance
->ReportDecodeFrameCompleted (frame
);
2524 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2526 if (instance
== NULL
)
2529 instance
->ReportOpenDecoderCompleted ();
2534 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2536 if (instance
== NULL
)
2539 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2547 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2549 if (instance
== NULL
)
2552 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2557 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2559 if (instance
== NULL
)
2562 instance
->ReportGetFrameCompleted (frame
);
2567 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2569 if (instance
== NULL
)
2572 instance
->ReportGetFrameProgress (bufferingProgress
);
2577 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2579 if (instance
== NULL
)
2582 instance
->ReportOpenDemuxerCompleted ();
2587 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2589 if (instance
== NULL
)
2592 instance
->ReportSeekCompleted (pts
);
2597 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2599 if (instance
== NULL
)
2602 instance
->ReportSwitchMediaStreamCompleted (stream
);
2610 imedia_object_get_media_reffed (IMediaObject
*instance
)
2612 if (instance
== NULL
)
2615 return instance
->GetMediaReffed ();
2620 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2622 if (instance
== NULL
)
2625 instance
->ReportErrorOccurred (message
);
2633 imedia_stream_get_codec (IMediaStream
*instance
)
2635 if (instance
== NULL
)
2638 return instance
->GetCodec ();
2643 imedia_stream_get_codec_id (IMediaStream
*instance
)
2645 if (instance
== NULL
)
2646 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2649 return instance
->GetCodecId ();
2654 imedia_stream_get_duration (IMediaStream
*instance
)
2656 if (instance
== NULL
)
2657 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2660 return instance
->GetDuration ();
2665 imedia_stream_get_extra_data (IMediaStream
*instance
)
2667 if (instance
== NULL
)
2670 return instance
->GetExtraData ();
2675 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2677 if (instance
== NULL
)
2678 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2681 return instance
->GetExtraDataSize ();
2686 imedia_stream_get_stream_type (IMediaStream
*instance
)
2688 if (instance
== NULL
)
2689 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2690 return (MediaStreamType
) 0;
2692 return instance
->GetStreamType ();
2697 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2699 if (instance
== NULL
)
2702 instance
->SetCodecId (value
);
2707 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2709 if (instance
== NULL
)
2712 instance
->SetDuration (value
);
2717 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2719 if (instance
== NULL
)
2722 instance
->SetExtraData (value
);
2727 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2729 if (instance
== NULL
)
2732 instance
->SetExtraDataSize (value
);
2740 ink_presenter_new (void)
2742 return new InkPresenter ();
2752 return new Inline ();
2760 inline_collection_new (void)
2762 return new InlineCollection ();
2770 input_method_new (void)
2772 return new InputMethod ();
2780 item_collection_new (void)
2782 return new ItemCollection ();
2790 keyboard_get_modifiers (void)
2792 return Keyboard::GetModifiers ();
2800 key_event_args_get_key (KeyEventArgs
*instance
)
2802 if (instance
== NULL
)
2803 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2806 return instance
->GetKey ();
2811 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2813 if (instance
== NULL
)
2814 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2817 return instance
->GetPlatformKeyCode ();
2822 key_event_args_new (void)
2824 return new KeyEventArgs ();
2829 * KeyFrameCollection
2831 KeyFrameCollection
*
2832 key_frame_collection_new (void)
2834 return new KeyFrameCollection ();
2842 key_spline_new (void)
2844 return new KeySpline ();
2859 * LinearColorKeyFrame
2861 LinearColorKeyFrame
*
2862 linear_color_key_frame_new (void)
2864 return new LinearColorKeyFrame ();
2869 * LinearDoubleKeyFrame
2871 LinearDoubleKeyFrame
*
2872 linear_double_key_frame_new (void)
2874 return new LinearDoubleKeyFrame ();
2879 * LinearGradientBrush
2881 LinearGradientBrush
*
2882 linear_gradient_brush_new (void)
2884 return new LinearGradientBrush ();
2889 * LinearPointKeyFrame
2891 LinearPointKeyFrame
*
2892 linear_point_key_frame_new (void)
2894 return new LinearPointKeyFrame ();
2902 line_break_new (void)
2904 return new LineBreak ();
2912 line_geometry_new (void)
2914 return new LineGeometry ();
2922 line_segment_new (void)
2924 return new LineSegment ();
2929 * MarkerReachedEventArgs
2932 marker_reached_event_args_get_marker (MarkerReachedEventArgs
*instance
)
2934 if (instance
== NULL
)
2937 return instance
->GetMarker ();
2945 matrix_get_matrix_values (Matrix
*instance
)
2947 if (instance
== NULL
)
2950 return instance
->GetMatrixValues ();
2957 return new Matrix ();
2965 matrix_transform_new (void)
2967 return new MatrixTransform ();
2975 media_register_decoder (DecoderInfo
*info
)
2977 Media::RegisterDecoder (info
);
2985 media_attribute_new (void)
2987 return new MediaAttribute ();
2992 * MediaAttributeCollection
2995 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
2997 if (instance
== NULL
)
3000 return instance
->GetItemByName (name
);
3004 MediaAttributeCollection
*
3005 media_attribute_collection_new (void)
3007 return new MediaAttributeCollection ();
3015 media_base_new (void)
3017 return new MediaBase ();
3022 media_base_set_source (MediaBase
*instance
, const char *uri
)
3024 if (instance
== NULL
)
3027 instance
->SetSource (uri
);
3035 media_element_new (void)
3037 return new MediaElement ();
3042 media_element_pause (MediaElement
*instance
)
3044 if (instance
== NULL
)
3052 media_element_play (MediaElement
*instance
)
3054 if (instance
== NULL
)
3062 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
3064 if (instance
== NULL
)
3067 instance
->ReportErrorOccurred (args
);
3072 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
)
3074 if (instance
== NULL
)
3077 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3082 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3084 if (instance
== NULL
)
3087 instance
->SetStreamSource (stream
);
3092 media_element_stop (MediaElement
*instance
)
3094 if (instance
== NULL
)
3105 media_frame_add_state (MediaFrame
*instance
, int state
)
3107 if (instance
== NULL
)
3110 instance
->AddState ((MediaFrameState
) state
);
3115 media_frame_get_buffer (MediaFrame
*instance
)
3117 if (instance
== NULL
)
3120 return instance
->GetBuffer ();
3125 media_frame_get_buf_len (MediaFrame
*instance
)
3127 if (instance
== NULL
)
3128 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3131 return instance
->GetBufLen ();
3136 media_frame_get_height (MediaFrame
*instance
)
3138 if (instance
== NULL
)
3139 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3142 return instance
->GetHeight ();
3147 media_frame_get_pts (MediaFrame
*instance
)
3149 if (instance
== NULL
)
3150 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3153 return instance
->GetPts ();
3158 media_frame_get_width (MediaFrame
*instance
)
3160 if (instance
== NULL
)
3161 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3164 return instance
->GetWidth ();
3169 media_frame_is_key_frame (MediaFrame
*instance
)
3171 if (instance
== NULL
)
3174 return instance
->IsKeyFrame ();
3179 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3181 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3186 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3188 if (instance
== NULL
)
3191 instance
->SetBuffer (value
);
3196 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3198 if (instance
== NULL
)
3201 instance
->SetBufLen (value
);
3206 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3208 if (instance
== NULL
)
3211 instance
->SetDataStride (a
, b
, c
, d
);
3216 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3218 if (instance
== NULL
)
3221 instance
->SetDecoderSpecificData (value
);
3226 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3228 if (instance
== NULL
)
3231 instance
->SetHeight (value
);
3236 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3238 if (instance
== NULL
)
3241 instance
->SetPts (value
);
3246 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3248 if (instance
== NULL
)
3251 instance
->SetSrcSlideH (value
);
3256 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3258 if (instance
== NULL
)
3261 instance
->SetSrcSlideY (value
);
3266 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3268 if (instance
== NULL
)
3271 instance
->SetSrcStride (a
, b
, c
, d
);
3276 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3278 if (instance
== NULL
)
3281 instance
->SetWidth (value
);
3289 moon_window_get_transparent (MoonWindow
*instance
)
3291 if (instance
== NULL
)
3294 return instance
->GetTransparent ();
3299 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3301 if (instance
== NULL
)
3304 instance
->SetTransparent (flag
);
3312 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3314 if (instance
== NULL
)
3317 return instance
->GetNativeWidget ();
3322 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
, Surface
*surface
)
3324 return new MoonWindowGtk (fullscreen
, w
, h
, parent
, surface
);
3329 * MouseButtonEventArgs
3331 MouseButtonEventArgs
*
3332 mouse_button_event_args_new (void)
3334 return new MouseButtonEventArgs ();
3342 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3344 if (instance
== NULL
)
3347 instance
->GetPosition (relative_to
, x
, y
);
3352 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3354 if (instance
== NULL
)
3357 return instance
->GetStylusInfo ();
3361 StylusPointCollection
*
3362 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3364 if (instance
== NULL
)
3367 return instance
->GetStylusPoints (ink_presenter
);
3372 mouse_event_args_new (void)
3374 return new MouseEventArgs ();
3379 * MouseWheelEventArgs
3382 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3384 if (instance
== NULL
)
3385 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3388 return instance
->GetWheelDelta ();
3392 MouseWheelEventArgs
*
3393 mouse_wheel_event_args_new (void)
3395 return new MouseWheelEventArgs ();
3403 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3405 if (instance
== NULL
)
3406 return Point (0, 0);
3408 return instance
->ElementToLogicalPoint (elementPoint
);
3413 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3415 if (instance
== NULL
)
3418 instance
->EmitImageFailed ();
3423 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3425 if (instance
== NULL
)
3428 instance
->EmitImageOpenFailed ();
3433 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3435 if (instance
== NULL
)
3438 instance
->EmitMotionFinished ();
3443 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3445 if (instance
== NULL
)
3448 instance
->HandleDzParsed ();
3453 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3455 if (instance
== NULL
)
3458 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3463 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3465 if (instance
== NULL
)
3466 return Point (0, 0);
3468 return instance
->LogicalToElementPoint (logicalPoint
);
3473 multi_scale_image_new (void)
3475 return new MultiScaleImage ();
3480 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3482 if (instance
== NULL
)
3485 instance
->OnSourcePropertyChanged ();
3490 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3492 if (instance
== NULL
)
3495 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3500 * MultiScaleSubImage
3503 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3505 if (instance
== NULL
)
3506 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3509 return instance
->GetZIndex ();
3513 MultiScaleSubImage
*
3514 multi_scale_sub_image_new (void)
3516 return new MultiScaleSubImage ();
3521 * MultiScaleSubImageCollection
3523 MultiScaleSubImageCollection
*
3524 multi_scale_sub_image_collection_new (void)
3526 return new MultiScaleSubImageCollection ();
3531 * MultiScaleTileSource
3534 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3536 if (instance
== NULL
)
3539 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3543 MultiScaleTileSource
*
3544 multi_scale_tile_source_new (void)
3546 return new MultiScaleTileSource ();
3551 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3553 if (instance
== NULL
)
3556 instance
->set_image_uri_func (func
);
3564 name_scope_new (void)
3566 return new NameScope ();
3571 * ObjectAnimationUsingKeyFrames
3573 ObjectAnimationUsingKeyFrames
*
3574 object_animation_using_key_frames_new (void)
3576 return new ObjectAnimationUsingKeyFrames ();
3584 object_key_frame_new (void)
3586 return new ObjectKeyFrame ();
3591 * ObjectKeyFrameCollection
3593 ObjectKeyFrameCollection
*
3594 object_key_frame_collection_new (void)
3596 return new ObjectKeyFrameCollection ();
3601 * OutOfBrowserSettings
3603 OutOfBrowserSettings
*
3604 out_of_browser_settings_new (void)
3606 return new OutOfBrowserSettings ();
3616 return new Panel ();
3624 parallel_timeline_new (void)
3626 return new ParallelTimeline ();
3634 password_box_new (void)
3636 return new PasswordBox ();
3654 path_figure_new (void)
3656 return new PathFigure ();
3661 * PathFigureCollection
3663 PathFigureCollection
*
3664 path_figure_collection_new (void)
3666 return new PathFigureCollection ();
3674 path_geometry_new (void)
3676 return new PathGeometry ();
3684 path_segment_new (void)
3686 return new PathSegment ();
3691 * PathSegmentCollection
3693 PathSegmentCollection
*
3694 path_segment_collection_new (void)
3696 return new PathSegmentCollection ();
3704 point_animation_new (void)
3706 return new PointAnimation ();
3711 * PointAnimationUsingKeyFrames
3713 PointAnimationUsingKeyFrames
*
3714 point_animation_using_key_frames_new (void)
3716 return new PointAnimationUsingKeyFrames ();
3724 point_collection_new (void)
3726 return new PointCollection ();
3734 point_key_frame_new (void)
3736 return new PointKeyFrame ();
3741 * PointKeyFrameCollection
3743 PointKeyFrameCollection
*
3744 point_key_frame_collection_new (void)
3746 return new PointKeyFrameCollection ();
3754 poly_bezier_segment_new (void)
3756 return new PolyBezierSegment ();
3761 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3763 if (instance
== NULL
)
3766 instance
->SetPoints (points
);
3776 return new Polygon ();
3786 return new Polyline ();
3794 poly_line_segment_new (void)
3796 return new PolyLineSegment ();
3801 * PolyQuadraticBezierSegment
3803 PolyQuadraticBezierSegment
*
3804 poly_quadratic_bezier_segment_new (void)
3806 return new PolyQuadraticBezierSegment ();
3816 return new Popup ();
3824 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3826 if (instance
== NULL
)
3827 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3830 return instance
->EaseInCore (normalizedTime
);
3835 power_ease_new (void)
3837 return new PowerEase ();
3842 * PropertyChangedEventArgs
3845 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3847 if (instance
== NULL
)
3848 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3851 return instance
->GetId ();
3856 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3858 if (instance
== NULL
)
3861 return instance
->GetNewValue ();
3866 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3868 if (instance
== NULL
)
3871 return instance
->GetOldValue ();
3875 DependencyProperty
*
3876 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3878 if (instance
== NULL
)
3881 return instance
->GetProperty ();
3886 * QuadraticBezierSegment
3888 QuadraticBezierSegment
*
3889 quadratic_bezier_segment_new (void)
3891 return new QuadraticBezierSegment ();
3899 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3901 if (instance
== NULL
)
3902 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3905 return instance
->EaseInCore (normalizedTime
);
3910 quadratic_ease_new (void)
3912 return new QuadraticEase ();
3920 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
3922 if (instance
== NULL
)
3923 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3926 return instance
->EaseInCore (normalizedTime
);
3931 quartic_ease_new (void)
3933 return new QuarticEase ();
3941 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
3943 if (instance
== NULL
)
3944 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3947 return instance
->EaseInCore (normalizedTime
);
3952 quintic_ease_new (void)
3954 return new QuinticEase ();
3959 * RadialGradientBrush
3961 RadialGradientBrush
*
3962 radial_gradient_brush_new (void)
3964 return new RadialGradientBrush ();
3972 rectangle_new (void)
3974 return new Rectangle ();
3982 rectangle_geometry_new (void)
3984 return new RectangleGeometry ();
3989 * RenderingEventArgs
3992 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
3994 if (instance
== NULL
)
3995 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3996 return (TimeSpan
) 0;
3998 return instance
->GetRenderingTime ();
4003 * ResourceDictionary
4006 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
4008 if (instance
== NULL
)
4012 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4013 return instance
->AddWithError (key
, value
, error
);
4018 resource_dictionary_clear (ResourceDictionary
*instance
)
4020 if (instance
== NULL
)
4023 return instance
->Clear ();
4028 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
4030 if (instance
== NULL
)
4033 return instance
->ContainsKey (key
);
4038 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
4040 if (instance
== NULL
)
4043 return instance
->Get (key
, exists
);
4048 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
4050 if (instance
== NULL
)
4053 return instance
->Remove (key
);
4057 ResourceDictionary
*
4058 resource_dictionary_new (void)
4060 return new ResourceDictionary ();
4065 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
4067 if (instance
== NULL
)
4070 return instance
->Set (key
, value
);
4075 * ResourceDictionaryCollection
4077 ResourceDictionaryCollection
*
4078 resource_dictionary_collection_new (void)
4080 return new ResourceDictionaryCollection ();
4088 rotate_transform_new (void)
4090 return new RotateTransform ();
4098 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4100 if (instance
== NULL
)
4103 return instance
->GetHandled ();
4108 routed_event_args_get_source (RoutedEventArgs
*instance
)
4110 if (instance
== NULL
)
4113 return instance
->GetSource ();
4118 routed_event_args_new (void)
4120 return new RoutedEventArgs ();
4125 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4127 if (instance
== NULL
)
4130 instance
->SetHandled (handled
);
4135 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4137 if (instance
== NULL
)
4140 instance
->SetSource (el
);
4148 row_definition_new (void)
4150 return new RowDefinition ();
4155 * RowDefinitionCollection
4157 RowDefinitionCollection
*
4158 row_definition_collection_new (void)
4160 return new RowDefinitionCollection ();
4178 scale_transform_new (void)
4180 return new ScaleTransform ();
4190 return new Setter ();
4198 setter_base_new (void)
4200 return new SetterBase ();
4205 * SetterBaseCollection
4207 SetterBaseCollection
*
4208 setter_base_collection_new (void)
4210 return new SetterBaseCollection ();
4218 shape_get_geometry_transform (Shape
*instance
)
4220 if (instance
== NULL
)
4223 return instance
->GetGeometryTransform ();
4230 return new Shape ();
4238 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4240 if (instance
== NULL
)
4241 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4244 return instance
->EaseInCore (normalizedTime
);
4249 sine_ease_new (void)
4251 return new SineEase ();
4256 * SizeChangedEventArgs
4258 SizeChangedEventArgs
*
4259 size_changed_event_args_new (void)
4261 return new SizeChangedEventArgs ();
4269 skew_transform_new (void)
4271 return new SkewTransform ();
4279 solid_color_brush_new (void)
4281 return new SolidColorBrush ();
4286 * SplineColorKeyFrame
4288 SplineColorKeyFrame
*
4289 spline_color_key_frame_new (void)
4291 return new SplineColorKeyFrame ();
4296 * SplineDoubleKeyFrame
4298 SplineDoubleKeyFrame
*
4299 spline_double_key_frame_new (void)
4301 return new SplineDoubleKeyFrame ();
4306 * SplinePointKeyFrame
4308 SplinePointKeyFrame
*
4309 spline_point_key_frame_new (void)
4311 return new SplinePointKeyFrame ();
4319 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4321 if (instance
== NULL
)
4325 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4326 return instance
->BeginWithError (error
);
4331 storyboard_get_current_state (Storyboard
*instance
)
4333 if (instance
== NULL
)
4334 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4337 return instance
->GetCurrentState ();
4342 storyboard_get_current_time (Storyboard
*instance
)
4344 if (instance
== NULL
)
4345 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4346 return (TimeSpan
) 0;
4348 return instance
->GetCurrentTime ();
4352 DependencyProperty
*
4353 storyboard_get_target_dependency_property (Storyboard
*instance
)
4355 if (instance
== NULL
)
4358 return instance
->GetTargetDependencyProperty ();
4363 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4365 if (instance
== NULL
)
4369 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4370 instance
->PauseWithError (error
);
4375 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4377 if (instance
== NULL
)
4381 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4382 instance
->ResumeWithError (error
);
4387 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4389 if (instance
== NULL
)
4393 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4394 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4399 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4401 if (instance
== NULL
)
4405 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4406 instance
->SeekWithError (timespan
, error
);
4411 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4413 if (instance
== NULL
)
4417 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4418 instance
->SkipToFillWithError (error
);
4423 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4425 if (instance
== NULL
)
4429 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4430 instance
->StopWithError (error
);
4435 storyboard_new (void)
4437 return new Storyboard ();
4445 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4447 if (instance
== NULL
)
4450 return instance
->HitTest (stylusPoints
);
4457 return new Stroke ();
4465 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4467 if (instance
== NULL
)
4470 return instance
->HitTest (stylusPoints
);
4475 stroke_collection_new (void)
4477 return new StrokeCollection ();
4485 style_seal (Style
*instance
)
4487 if (instance
== NULL
)
4497 return new Style ();
4505 stylus_info_new (void)
4507 return new StylusInfo ();
4515 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4517 if (instance
== NULL
)
4518 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4521 return instance
->GetPressureFactor ();
4526 stylus_point_get_x (StylusPoint
*instance
)
4528 if (instance
== NULL
)
4529 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4532 return instance
->GetX ();
4537 stylus_point_get_y (StylusPoint
*instance
)
4539 if (instance
== NULL
)
4540 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4543 return instance
->GetY ();
4548 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4550 if (instance
== NULL
)
4553 instance
->SetPressureFactor (factor
);
4558 stylus_point_set_x (StylusPoint
*instance
, double x
)
4560 if (instance
== NULL
)
4568 stylus_point_set_y (StylusPoint
*instance
, double y
)
4570 if (instance
== NULL
)
4578 stylus_point_new (void)
4580 return new StylusPoint ();
4585 * StylusPointCollection
4588 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
4590 if (instance
== NULL
)
4591 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4594 return instance
->AddStylusPoints (stylusPointCollection
);
4598 StylusPointCollection
*
4599 stylus_point_collection_new (void)
4601 return new StylusPointCollection ();
4609 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4611 if (instance
== NULL
)
4614 instance
->Attach (toplevel
);
4619 surface_create_downloader (Surface
*instance
)
4621 if (instance
== NULL
)
4624 return instance
->CreateDownloader ();
4629 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4631 if (instance
== NULL
)
4634 instance
->EmitError (number
, code
, message
);
4639 surface_get_background_color (Surface
*instance
)
4641 if (instance
== NULL
)
4644 return instance
->GetBackgroundColor ();
4649 surface_get_focused_element (Surface
*instance
)
4651 if (instance
== NULL
)
4654 return instance
->GetFocusedElement ();
4659 surface_get_full_screen (Surface
*instance
)
4661 if (instance
== NULL
)
4664 return instance
->GetFullScreen ();
4669 surface_get_time_manager (Surface
*instance
)
4671 if (instance
== NULL
)
4674 return instance
->GetTimeManager ();
4679 surface_get_toplevel (Surface
*instance
)
4681 if (instance
== NULL
)
4684 return instance
->GetToplevel ();
4689 surface_get_window (Surface
*instance
)
4691 if (instance
== NULL
)
4694 return instance
->GetWindow ();
4699 surface_in_main_thread (void)
4701 return Surface::InMainThread ();
4706 surface_is_loaded (Surface
*instance
)
4708 if (instance
== NULL
)
4711 return instance
->IsLoaded ();
4716 surface_is_user_initiated_event (Surface
*instance
)
4718 if (instance
== NULL
)
4721 return instance
->IsUserInitiatedEvent ();
4726 surface_is_version_supported (const char *version
)
4728 return Surface::IsVersionSupported (version
);
4733 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4735 if (instance
== NULL
)
4738 instance
->Paint (ctx
, x
, y
, width
, height
);
4743 surface_resize (Surface
*instance
, int width
, int height
)
4745 if (instance
== NULL
)
4748 instance
->Resize (width
, height
);
4753 surface_set_full_screen (Surface
*instance
, bool value
)
4755 if (instance
== NULL
)
4758 instance
->SetFullScreen (value
);
4763 surface_new (MoonWindow
*window
)
4765 return new Surface (window
);
4770 * TabNavigationWalker
4773 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4775 return TabNavigationWalker::Focus (element
, forwards
);
4783 text_block_new (void)
4785 return new TextBlock ();
4795 return new TextBox ();
4803 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4805 if (instance
== NULL
)
4808 instance
->OnGotFocus (args
);
4813 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4815 if (instance
== NULL
)
4818 instance
->OnKeyDown (args
);
4823 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4825 if (instance
== NULL
)
4828 instance
->OnKeyUp (args
);
4833 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4835 if (instance
== NULL
)
4838 instance
->OnLostFocus (args
);
4843 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4845 if (instance
== NULL
)
4848 instance
->OnMouseLeftButtonDown (args
);
4853 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4855 if (instance
== NULL
)
4858 instance
->OnMouseLeftButtonUp (args
);
4863 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4865 if (instance
== NULL
)
4868 instance
->OnMouseMove (args
);
4873 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4875 if (instance
== NULL
)
4878 instance
->PostOnKeyDown (args
);
4883 text_box_base_select_all (TextBoxBase
*instance
)
4885 if (instance
== NULL
)
4888 instance
->SelectAll ();
4893 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
4895 if (instance
== NULL
)
4899 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
4900 return instance
->SelectWithError (start
, length
, error
);
4908 text_box_view_new (void)
4910 return new TextBoxView ();
4915 * TextChangedEventArgs
4917 TextChangedEventArgs
*
4918 text_changed_event_args_new (void)
4920 return new TextChangedEventArgs ();
4928 tile_brush_new (void)
4930 return new TileBrush ();
4938 timeline_get_manual_target (Timeline
*instance
)
4940 if (instance
== NULL
)
4943 return instance
->GetManualTarget ();
4948 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
4950 if (instance
== NULL
)
4953 instance
->SetManualTarget (o
);
4960 return new Timeline ();
4965 * TimelineCollection
4967 TimelineCollection
*
4968 timeline_collection_new (void)
4970 return new TimelineCollection ();
4978 timeline_group_new (void)
4980 return new TimelineGroup ();
4988 timeline_marker_new (void)
4990 return new TimelineMarker ();
4995 * TimelineMarkerCollection
4997 TimelineMarkerCollection
*
4998 timeline_marker_collection_new (void)
5000 return new TimelineMarkerCollection ();
5008 time_manager_add_dispatcher_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5010 if (instance
== NULL
)
5013 instance
->AddDispatcherCall (handler
, tick_data
);
5018 time_manager_add_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5020 if (instance
== NULL
)
5023 instance
->AddTickCall (handler
, tick_data
);
5028 time_manager_add_timeout (TimeManager
*instance
, gint priority
, guint ms_interval
, GSourceFunc func
, gpointer timeout_data
)
5030 if (instance
== NULL
)
5031 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5034 return instance
->AddTimeout (priority
, ms_interval
, func
, timeout_data
);
5039 time_manager_get_maximum_refresh_rate (TimeManager
*instance
)
5041 if (instance
== NULL
)
5042 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5045 return instance
->GetMaximumRefreshRate ();
5050 time_manager_remove_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5052 if (instance
== NULL
)
5055 instance
->RemoveTickCall (handler
, tick_data
);
5060 time_manager_remove_timeout (TimeManager
*instance
, guint timeout_id
)
5062 if (instance
== NULL
)
5065 instance
->RemoveTimeout (timeout_id
);
5070 time_manager_set_maximum_refresh_rate (TimeManager
*instance
, int hz
)
5072 if (instance
== NULL
)
5075 instance
->SetMaximumRefreshRate (hz
);
5083 transform_new (void)
5085 return new Transform ();
5090 * TransformCollection
5092 TransformCollection
*
5093 transform_collection_new (void)
5095 return new TransformCollection ();
5103 transform_group_new (void)
5105 return new TransformGroup ();
5110 * TranslateTransform
5112 TranslateTransform
*
5113 translate_transform_new (void)
5115 return new TranslateTransform ();
5123 trigger_action_fire (TriggerAction
*instance
)
5125 if (instance
== NULL
)
5133 trigger_action_new (void)
5135 return new TriggerAction ();
5140 * TriggerActionCollection
5142 TriggerActionCollection
*
5143 trigger_action_collection_new (void)
5145 return new TriggerActionCollection ();
5153 trigger_base_new (void)
5155 return new TriggerBase ();
5163 trigger_collection_new (void)
5165 return new TriggerCollection ();
5173 types_free (Types
*instance
)
5180 types_find (Types
*instance
, int type
)
5182 if (instance
== NULL
)
5185 return instance
->Find ((Type::Kind
) type
);
5190 types_register_type (Types
*instance
, const char *name
, void *gc_handle
, int parent
, bool is_interface
, bool ctor_visible
, int *interfaces
, int interface_count
)
5192 if (instance
== NULL
)
5193 return Type::INVALID
;
5195 return instance
->RegisterType (name
, gc_handle
, (Type::Kind
) parent
, is_interface
, ctor_visible
, (Type::Kind
*) interfaces
, interface_count
);
5202 return new Types ();
5210 uielement_arrange (UIElement
*instance
, Rect finalRect
)
5212 if (instance
== NULL
)
5215 instance
->Arrange (finalRect
);
5220 uielement_capture_mouse (UIElement
*instance
)
5222 if (instance
== NULL
)
5225 return instance
->CaptureMouse ();
5230 uielement_element_added (UIElement
*instance
, UIElement
*obj
)
5232 if (instance
== NULL
)
5235 instance
->ElementAdded (obj
);
5240 uielement_element_removed (UIElement
*instance
, UIElement
*obj
)
5242 if (instance
== NULL
)
5245 instance
->ElementRemoved (obj
);
5250 uielement_find_elements_in_host_coordinates_p (UIElement
*instance
, Point p
, HitTestCollection
*uielement_list
)
5252 if (instance
== NULL
)
5255 instance
->FindElementsInHostCoordinates_p (p
, uielement_list
);
5260 uielement_find_elements_in_host_coordinates_r (UIElement
*instance
, Rect p
, HitTestCollection
*uielement_list
)
5262 if (instance
== NULL
)
5265 instance
->FindElementsInHostCoordinates_r (p
, uielement_list
);
5270 uielement_focus (UIElement
*instance
, bool recurse
)
5272 if (instance
== NULL
)
5275 return instance
->Focus (recurse
);
5280 uielement_get_desired_size (UIElement
*instance
)
5282 if (instance
== NULL
)
5283 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5286 return instance
->GetDesiredSize ();
5291 uielement_get_render_size (UIElement
*instance
)
5293 if (instance
== NULL
)
5294 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5297 return instance
->GetRenderSize ();
5302 uielement_get_subtree_object (UIElement
*instance
)
5304 if (instance
== NULL
)
5307 return instance
->GetSubtreeObject ();
5312 uielement_get_transform_to_uielement_with_error (UIElement
*instance
, UIElement
*to_element
, MoonError
*error
)
5314 if (instance
== NULL
)
5318 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5319 return instance
->GetTransformToUIElementWithError (to_element
, error
);
5324 uielement_get_visual_parent (UIElement
*instance
)
5326 if (instance
== NULL
)
5329 return instance
->GetVisualParent ();
5334 uielement_invalidate (UIElement
*instance
)
5336 if (instance
== NULL
)
5339 instance
->Invalidate ();
5344 uielement_invalidate_arrange (UIElement
*instance
)
5346 if (instance
== NULL
)
5349 instance
->InvalidateArrange ();
5354 uielement_invalidate_measure (UIElement
*instance
)
5356 if (instance
== NULL
)
5359 instance
->InvalidateMeasure ();
5364 uielement_measure (UIElement
*instance
, Size availableSize
)
5366 if (instance
== NULL
)
5369 instance
->Measure (availableSize
);
5374 uielement_release_mouse_capture (UIElement
*instance
)
5376 if (instance
== NULL
)
5379 instance
->ReleaseMouseCapture ();
5384 uielement_set_subtree_object (UIElement
*instance
, DependencyObject
*value
)
5386 if (instance
== NULL
)
5389 instance
->SetSubtreeObject (value
);
5394 uielement_update_layout (UIElement
*instance
)
5396 if (instance
== NULL
)
5399 instance
->UpdateLayout ();
5404 * UIElementCollection
5406 UIElementCollection
*
5407 uielement_collection_new (void)
5409 return new UIElementCollection ();
5417 unmanaged_matrix_new (void)
5419 return new UnmanagedMatrix ();
5427 uri_equals (const Uri
*left
, const Uri
*right
)
5429 return Uri::Equals (left
, right
);
5434 uri_free (Uri
*instance
)
5436 if (instance
== NULL
)
5444 uri_get_hash_code (Uri
*instance
)
5446 if (instance
== NULL
)
5447 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5450 return instance
->GetHashCode ();
5455 uri_parse (Uri
*instance
, const char *uri
, bool allow_trailing_sep
)
5457 if (instance
== NULL
)
5460 return instance
->Parse (uri
, allow_trailing_sep
);
5468 user_control_new (void)
5470 return new UserControl ();
5478 video_brush_set_source (VideoBrush
*instance
, MediaElement
*source
)
5480 if (instance
== NULL
)
5483 instance
->SetSource (source
);
5488 video_brush_new (void)
5490 return new VideoBrush ();
5498 video_stream_get_height (VideoStream
*instance
)
5500 if (instance
== NULL
)
5501 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5504 return instance
->GetHeight ();
5509 video_stream_get_width (VideoStream
*instance
)
5511 if (instance
== NULL
)
5512 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5515 return instance
->GetWidth ();
5520 video_stream_new (Media
*media
, int codec_id
, guint32 width
, guint32 height
, guint64 duration
, gpointer extra_data
, guint32 extra_data_size
)
5522 return new VideoStream (media
, codec_id
, width
, height
, duration
, extra_data
, extra_data_size
);
5530 visual_brush_new (void)
5532 return new VisualBrush ();
5540 window_settings_new (void)
5542 return new WindowSettings ();
5550 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap
*instance
, BitmapSource
*source
)
5552 if (instance
== NULL
)
5553 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5554 return (gpointer
) 0;
5556 return instance
->InitializeFromBitmapSource (source
);
5561 writeable_bitmap_lock (WriteableBitmap
*instance
)
5563 if (instance
== NULL
)
5571 writeable_bitmap_render (WriteableBitmap
*instance
, UIElement
*element
, Transform
*transform
)
5573 if (instance
== NULL
)
5576 instance
->Render (element
, transform
);
5581 writeable_bitmap_unlock (WriteableBitmap
*instance
)
5583 if (instance
== NULL
)
5586 instance
->Unlock ();
5591 writeable_bitmap_new (void)
5593 return new WriteableBitmap ();
5601 xaml_context_get_template_binding_source (XamlContext
*instance
)
5603 if (instance
== NULL
)
5606 return instance
->GetTemplateBindingSource ();
5614 xaml_loader_create_from_file_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, MoonError
*error
)
5616 if (instance
== NULL
)
5620 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5621 return instance
->CreateFromFileWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, error
);
5626 xaml_loader_create_from_string_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5628 if (instance
== NULL
)
5632 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5633 return instance
->CreateFromStringWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5638 xaml_loader_get_context (XamlLoader
*instance
)
5640 if (instance
== NULL
)
5643 return instance
->GetContext ();
5648 xaml_loader_hydrate_from_string_with_error (XamlLoader
*instance
, const char *xaml
, Value
*obj
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5650 if (instance
== NULL
)
5654 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5655 return instance
->HydrateFromStringWithError (xaml
, obj
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5663 xap_unpack (const char *fname
)
5665 return Xap::Unpack (fname
);