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 ();
1150 dependency_object_add_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
, gpointer closure
)
1152 if (instance
== NULL
)
1155 instance
->AddPropertyChangeHandler (property
, cb
, closure
);
1160 dependency_object_clear_value (DependencyObject
*instance
, DependencyProperty
*property
, bool notify_listeners
, MoonError
*error
)
1162 if (instance
== NULL
)
1166 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1167 instance
->ClearValue (property
, notify_listeners
, error
);
1172 dependency_object_new (void)
1174 return new DependencyObject ();
1179 dependency_object_find_name (DependencyObject
*instance
, const char *name
, int *element_kind
)
1181 if (instance
== NULL
)
1184 return instance
->FindName (name
, (Type::Kind
*) element_kind
);
1189 dependency_object_get_name (DependencyObject
*instance
)
1191 if (instance
== NULL
)
1194 return instance
->GetName ();
1199 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1201 if (instance
== NULL
)
1205 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1206 return instance
->GetValueNoDefaultWithError (property
, error
);
1211 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1213 if (instance
== NULL
)
1217 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1218 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1223 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1225 if (instance
== NULL
)
1229 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1230 return instance
->ReadLocalValueWithError (property
, error
);
1235 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1237 if (instance
== NULL
)
1240 instance
->RemovePropertyChangeHandler (property
, cb
);
1245 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1247 if (instance
== NULL
)
1250 instance
->SetName (name
);
1255 dependency_object_set_parent (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1257 if (instance
== NULL
)
1261 g_warning ("Moonlight: Called dependency_object_set_parent () with error == NULL.");
1262 instance
->SetParent (parent
, error
);
1267 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1269 if (instance
== NULL
)
1273 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1274 return instance
->SetValueWithError (property
, value
, error
);
1279 * DependencyObjectCollection
1281 DependencyObjectCollection
*
1282 dependency_object_collection_new (void)
1284 return new DependencyObjectCollection ();
1289 * DependencyProperty
1292 dependency_property_get_default_value (DependencyProperty
*instance
)
1294 if (instance
== NULL
)
1297 return instance
->GetDefaultValue ();
1301 DependencyProperty
*
1302 dependency_property_get_dependency_property (int type
, const char *name
)
1304 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1308 DependencyProperty
*
1309 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1311 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1316 dependency_property_get_name (DependencyProperty
*instance
)
1318 if (instance
== NULL
)
1321 return instance
->GetName ();
1326 dependency_property_get_property_type (DependencyProperty
*instance
)
1328 if (instance
== NULL
)
1329 return Type::INVALID
;
1331 return instance
->GetPropertyType ();
1336 dependency_property_is_attached (DependencyProperty
*instance
)
1338 if (instance
== NULL
)
1341 return instance
->IsAttached ();
1346 dependency_property_is_nullable (DependencyProperty
*instance
)
1348 if (instance
== NULL
)
1351 return instance
->IsNullable ();
1356 dependency_property_is_read_only (DependencyProperty
*instance
)
1358 if (instance
== NULL
)
1361 return instance
->IsReadOnly ();
1365 DependencyProperty
*
1366 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1368 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1372 DependencyProperty
*
1373 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1375 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1380 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1382 if (instance
== NULL
)
1385 instance
->SetIsNullable (value
);
1390 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1392 if (instance
== NULL
)
1395 instance
->SetPropertyChangedCallback (changed_callback
);
1403 deployment_new (void)
1405 return new Deployment ();
1410 deployment_get_current (void)
1412 return Deployment::GetCurrent ();
1417 deployment_get_types (Deployment
*instance
)
1419 if (instance
== NULL
)
1422 return instance
->GetTypes ();
1427 deployment_set_current (Deployment
*value
)
1429 Deployment::SetCurrent (value
);
1434 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1436 if (instance
== NULL
)
1439 instance
->SetCurrentApplication (value
);
1444 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1446 if (instance
== NULL
)
1449 instance
->SetIsLoadedFromXap (flag
);
1454 * DiscreteColorKeyFrame
1456 DiscreteColorKeyFrame
*
1457 discrete_color_key_frame_new (void)
1459 return new DiscreteColorKeyFrame ();
1464 * DiscreteDoubleKeyFrame
1466 DiscreteDoubleKeyFrame
*
1467 discrete_double_key_frame_new (void)
1469 return new DiscreteDoubleKeyFrame ();
1474 * DiscreteObjectKeyFrame
1476 DiscreteObjectKeyFrame
*
1477 discrete_object_key_frame_new (void)
1479 return new DiscreteObjectKeyFrame ();
1484 * DiscretePointKeyFrame
1486 DiscretePointKeyFrame
*
1487 discrete_point_key_frame_new (void)
1489 return new DiscretePointKeyFrame ();
1497 dispatcher_timer_new (void)
1499 return new DispatcherTimer ();
1504 dispatcher_timer_start (DispatcherTimer
*instance
)
1506 if (instance
== NULL
)
1514 dispatcher_timer_stop (DispatcherTimer
*instance
)
1516 if (instance
== NULL
)
1527 double_animation_new (void)
1529 return new DoubleAnimation ();
1534 * DoubleAnimationUsingKeyFrames
1536 DoubleAnimationUsingKeyFrames
*
1537 double_animation_using_key_frames_new (void)
1539 return new DoubleAnimationUsingKeyFrames ();
1547 double_collection_new (void)
1549 return new DoubleCollection ();
1557 double_key_frame_new (void)
1559 return new DoubleKeyFrame ();
1564 * DoubleKeyFrameCollection
1566 DoubleKeyFrameCollection
*
1567 double_key_frame_collection_new (void)
1569 return new DoubleKeyFrameCollection ();
1577 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1579 if (instance
== NULL
)
1582 return instance
->CreateWebRequest (method
, uri
);
1587 downloader_new (void)
1589 return new Downloader ();
1594 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1596 if (instance
== NULL
)
1599 instance
->NotifyFailed (msg
);
1604 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1606 if (instance
== NULL
)
1609 instance
->NotifyFinished (final_uri
);
1614 downloader_notify_size (Downloader
*instance
, gint64 size
)
1616 if (instance
== NULL
)
1619 instance
->NotifySize (size
);
1624 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
)
1626 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1631 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1633 if (instance
== NULL
)
1636 instance
->Write (buf
, offset
, n
);
1644 downloader_request_free (DownloaderRequest
*instance
)
1651 downloader_request_abort (DownloaderRequest
*instance
)
1653 if (instance
== NULL
)
1660 DownloaderResponse
*
1661 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1663 if (instance
== NULL
)
1666 return instance
->GetDownloaderResponse ();
1671 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1673 if (instance
== NULL
)
1676 return instance
->GetResponse (started
, available
, finished
, context
);
1681 downloader_request_is_aborted (DownloaderRequest
*instance
)
1683 if (instance
== NULL
)
1686 return instance
->IsAborted ();
1691 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1693 if (instance
== NULL
)
1696 instance
->SetBody (body
, size
);
1701 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1703 if (instance
== NULL
)
1706 instance
->SetHttpHeader (name
, value
);
1711 * DownloaderResponse
1714 downloader_response_free (DownloaderResponse
*instance
)
1721 downloader_response_abort (DownloaderResponse
*instance
)
1723 if (instance
== NULL
)
1731 downloader_response_get_response_status (DownloaderResponse
*instance
)
1733 if (instance
== NULL
)
1734 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1737 return instance
->GetResponseStatus ();
1742 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1744 if (instance
== NULL
)
1747 return instance
->GetResponseStatusText ();
1752 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1754 if (instance
== NULL
)
1757 instance
->SetHeaderVisitor (visitor
, context
);
1762 * DownloadProgressEventArgs
1765 download_progress_event_args_get_progress (DownloadProgressEventArgs
*instance
)
1767 if (instance
== NULL
)
1768 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1771 return instance
->GetProgress ();
1779 drawing_attributes_new (void)
1781 return new DrawingAttributes ();
1786 * EasingColorKeyFrame
1788 EasingColorKeyFrame
*
1789 easing_color_key_frame_new (void)
1791 return new EasingColorKeyFrame ();
1796 * EasingDoubleKeyFrame
1798 EasingDoubleKeyFrame
*
1799 easing_double_key_frame_new (void)
1801 return new EasingDoubleKeyFrame ();
1806 * EasingFunctionBase
1808 EasingFunctionBase
*
1809 easing_function_base_new (void)
1811 return new EasingFunctionBase ();
1816 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1818 if (instance
== NULL
)
1821 instance
->SetEasingFunction (value
);
1826 * EasingPointKeyFrame
1828 EasingPointKeyFrame
*
1829 easing_point_key_frame_new (void)
1831 return new EasingPointKeyFrame ();
1839 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
1841 if (instance
== NULL
)
1842 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1845 return instance
->EaseInCore (normalizedTime
);
1850 elastic_ease_new (void)
1852 return new ElasticEase ();
1862 return new Ellipse ();
1870 ellipse_geometry_new (void)
1872 return new EllipseGeometry ();
1880 error_event_args_get_error_code (ErrorEventArgs
*instance
)
1882 if (instance
== NULL
)
1883 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1886 return instance
->GetErrorCode ();
1891 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1893 if (instance
== NULL
)
1896 return instance
->GetErrorMessage ();
1901 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1903 if (instance
== NULL
)
1904 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1907 return instance
->GetErrorType ();
1912 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1914 if (instance
== NULL
)
1915 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1916 return (gpointer
) 0;
1918 return instance
->GetMoonError ();
1926 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1928 if (instance
== NULL
)
1929 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1932 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
1937 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1939 if (instance
== NULL
)
1942 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
1947 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
1949 if (instance
== NULL
)
1952 instance
->AddToggleRefNotifier (tr
);
1957 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
1959 if (instance
== NULL
)
1960 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1963 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
1968 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
1970 if (instance
== NULL
)
1973 instance
->DoEmitCurrentContext (event_id
, calldata
);
1978 event_object_get_object_type (EventObject
*instance
)
1980 if (instance
== NULL
)
1981 return Type::INVALID
;
1983 return instance
->GetObjectType ();
1988 event_object_get_surface (EventObject
*instance
)
1990 if (instance
== NULL
)
1993 return instance
->GetSurface ();
1998 event_object_get_type_name (EventObject
*instance
)
2000 if (instance
== NULL
)
2003 return instance
->GetTypeName ();
2008 event_object_ref (EventObject
*instance
)
2010 if (instance
== NULL
)
2018 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2020 if (instance
== NULL
)
2023 instance
->RemoveHandler (event_id
, handler
, data
);
2028 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2030 if (instance
== NULL
)
2033 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2038 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2040 if (instance
== NULL
)
2043 instance
->RemoveToggleRefNotifier ();
2048 event_object_set_object_type (EventObject
*instance
, int value
)
2050 if (instance
== NULL
)
2053 instance
->SetObjectType ((Type::Kind
) value
);
2058 event_object_unref (EventObject
*instance
)
2060 if (instance
== NULL
)
2071 event_trigger_new (void)
2073 return new EventTrigger ();
2081 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2083 if (instance
== NULL
)
2084 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2087 return instance
->EaseInCore (normalizedTime
);
2092 exponential_ease_new (void)
2094 return new ExponentialEase ();
2102 extension_part_new (void)
2104 return new ExtensionPart ();
2112 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
)
2114 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2119 * ExternalDecoderInfo
2121 ExternalDecoderInfo
*
2122 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2124 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2132 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2134 if (instance
== NULL
)
2135 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2138 return instance
->AddStream (stream
);
2143 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2145 if (instance
== NULL
)
2148 instance
->ClearCallbacks ();
2153 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2155 if (instance
== NULL
)
2158 instance
->SetCanSeek (value
);
2166 external_part_new (void)
2168 return new ExternalPart ();
2173 * ExternalPartCollection
2175 ExternalPartCollection
*
2176 external_part_collection_new (void)
2178 return new ExternalPartCollection ();
2186 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2188 if (instance
== NULL
)
2189 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2192 return instance
->ArrangeOverride (finalSize
);
2197 framework_element_new (void)
2199 return new FrameworkElement ();
2204 framework_element_get_logical_parent (FrameworkElement
*instance
)
2206 if (instance
== NULL
)
2209 return instance
->GetLogicalParent ();
2214 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2216 if (instance
== NULL
)
2217 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2220 return instance
->MeasureOverride (availableSize
);
2225 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
)
2227 if (instance
== NULL
)
2230 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
);
2235 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2237 if (instance
== NULL
)
2240 instance
->SetDefaultStyle (value
);
2245 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2247 if (instance
== NULL
)
2251 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2252 instance
->SetLogicalParent (logical_parent
, error
);
2260 framework_template_new (void)
2262 return new FrameworkTemplate ();
2267 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2269 if (instance
== NULL
)
2272 return instance
->GetVisualTree (templateBindingSource
);
2280 general_transform_new (void)
2282 return new GeneralTransform ();
2287 general_transform_get_matrix (GeneralTransform
*instance
)
2289 if (instance
== NULL
)
2292 return instance
->GetMatrix ();
2302 return new Geometry ();
2307 geometry_get_bounds (Geometry
*instance
)
2309 if (instance
== NULL
)
2310 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2313 return instance
->GetBounds ();
2318 * GeometryCollection
2320 GeometryCollection
*
2321 geometry_collection_new (void)
2323 return new GeometryCollection ();
2331 geometry_group_new (void)
2333 return new GeometryGroup ();
2343 return new Glyphs ();
2351 gradient_brush_new (void)
2353 return new GradientBrush ();
2361 gradient_stop_new (void)
2363 return new GradientStop ();
2368 * GradientStopCollection
2370 GradientStopCollection
*
2371 gradient_stop_collection_new (void)
2373 return new GradientStopCollection ();
2391 hit_test_collection_new (void)
2393 return new HitTestCollection ();
2403 return new Image ();
2408 image_set_source (Image
*instance
, ImageSource
*source
)
2410 if (instance
== NULL
)
2413 instance
->SetSource (source
);
2421 image_brush_new (void)
2423 return new ImageBrush ();
2431 image_source_new (void)
2433 return new ImageSource ();
2441 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2443 if (instance
== NULL
)
2446 instance
->ReportDecodeFrameCompleted (frame
);
2451 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2453 if (instance
== NULL
)
2456 instance
->ReportOpenDecoderCompleted ();
2461 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2463 if (instance
== NULL
)
2466 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2474 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2476 if (instance
== NULL
)
2479 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2484 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2486 if (instance
== NULL
)
2489 instance
->ReportGetFrameCompleted (frame
);
2494 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2496 if (instance
== NULL
)
2499 instance
->ReportGetFrameProgress (bufferingProgress
);
2504 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2506 if (instance
== NULL
)
2509 instance
->ReportOpenDemuxerCompleted ();
2514 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2516 if (instance
== NULL
)
2519 instance
->ReportSeekCompleted (pts
);
2524 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2526 if (instance
== NULL
)
2529 instance
->ReportSwitchMediaStreamCompleted (stream
);
2537 imedia_object_get_media_reffed (IMediaObject
*instance
)
2539 if (instance
== NULL
)
2542 return instance
->GetMediaReffed ();
2547 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2549 if (instance
== NULL
)
2552 instance
->ReportErrorOccurred (message
);
2560 imedia_stream_get_codec (IMediaStream
*instance
)
2562 if (instance
== NULL
)
2565 return instance
->GetCodec ();
2570 imedia_stream_get_codec_id (IMediaStream
*instance
)
2572 if (instance
== NULL
)
2573 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2576 return instance
->GetCodecId ();
2581 imedia_stream_get_duration (IMediaStream
*instance
)
2583 if (instance
== NULL
)
2584 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2587 return instance
->GetDuration ();
2592 imedia_stream_get_extra_data (IMediaStream
*instance
)
2594 if (instance
== NULL
)
2597 return instance
->GetExtraData ();
2602 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2604 if (instance
== NULL
)
2605 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2608 return instance
->GetExtraDataSize ();
2613 imedia_stream_get_stream_type (IMediaStream
*instance
)
2615 if (instance
== NULL
)
2616 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2617 return (MediaStreamType
) 0;
2619 return instance
->GetStreamType ();
2624 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2626 if (instance
== NULL
)
2629 instance
->SetCodecId (value
);
2634 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2636 if (instance
== NULL
)
2639 instance
->SetDuration (value
);
2644 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2646 if (instance
== NULL
)
2649 instance
->SetExtraData (value
);
2654 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2656 if (instance
== NULL
)
2659 instance
->SetExtraDataSize (value
);
2667 ink_presenter_new (void)
2669 return new InkPresenter ();
2679 return new Inline ();
2687 inline_collection_new (void)
2689 return new InlineCollection ();
2697 input_method_new (void)
2699 return new InputMethod ();
2707 item_collection_new (void)
2709 return new ItemCollection ();
2717 keyboard_get_modifiers (void)
2719 return Keyboard::GetModifiers ();
2727 key_event_args_get_key (KeyEventArgs
*instance
)
2729 if (instance
== NULL
)
2730 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2733 return instance
->GetKey ();
2738 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2740 if (instance
== NULL
)
2741 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2744 return instance
->GetPlatformKeyCode ();
2749 key_event_args_new (void)
2751 return new KeyEventArgs ();
2756 * KeyFrameCollection
2758 KeyFrameCollection
*
2759 key_frame_collection_new (void)
2761 return new KeyFrameCollection ();
2769 key_spline_new (void)
2771 return new KeySpline ();
2786 * LinearColorKeyFrame
2788 LinearColorKeyFrame
*
2789 linear_color_key_frame_new (void)
2791 return new LinearColorKeyFrame ();
2796 * LinearDoubleKeyFrame
2798 LinearDoubleKeyFrame
*
2799 linear_double_key_frame_new (void)
2801 return new LinearDoubleKeyFrame ();
2806 * LinearGradientBrush
2808 LinearGradientBrush
*
2809 linear_gradient_brush_new (void)
2811 return new LinearGradientBrush ();
2816 * LinearPointKeyFrame
2818 LinearPointKeyFrame
*
2819 linear_point_key_frame_new (void)
2821 return new LinearPointKeyFrame ();
2829 line_break_new (void)
2831 return new LineBreak ();
2839 line_geometry_new (void)
2841 return new LineGeometry ();
2849 line_segment_new (void)
2851 return new LineSegment ();
2856 * MarkerReachedEventArgs
2859 marker_reached_event_args_get_marker (MarkerReachedEventArgs
*instance
)
2861 if (instance
== NULL
)
2864 return instance
->GetMarker ();
2872 matrix_get_matrix_values (Matrix
*instance
)
2874 if (instance
== NULL
)
2877 return instance
->GetMatrixValues ();
2884 return new Matrix ();
2892 matrix_transform_new (void)
2894 return new MatrixTransform ();
2902 media_register_decoder (DecoderInfo
*info
)
2904 Media::RegisterDecoder (info
);
2912 media_attribute_new (void)
2914 return new MediaAttribute ();
2919 * MediaAttributeCollection
2922 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
2924 if (instance
== NULL
)
2927 return instance
->GetItemByName (name
);
2931 MediaAttributeCollection
*
2932 media_attribute_collection_new (void)
2934 return new MediaAttributeCollection ();
2942 media_base_new (void)
2944 return new MediaBase ();
2949 media_base_set_source (MediaBase
*instance
, const char *uri
)
2951 if (instance
== NULL
)
2954 instance
->SetSource (uri
);
2962 media_element_new (void)
2964 return new MediaElement ();
2969 media_element_pause (MediaElement
*instance
)
2971 if (instance
== NULL
)
2979 media_element_play (MediaElement
*instance
)
2981 if (instance
== NULL
)
2989 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
2991 if (instance
== NULL
)
2994 instance
->ReportErrorOccurred (args
);
2999 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
)
3001 if (instance
== NULL
)
3004 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3009 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3011 if (instance
== NULL
)
3014 instance
->SetStreamSource (stream
);
3019 media_element_stop (MediaElement
*instance
)
3021 if (instance
== NULL
)
3032 media_frame_add_state (MediaFrame
*instance
, int state
)
3034 if (instance
== NULL
)
3037 instance
->AddState ((MediaFrameState
) state
);
3042 media_frame_get_buffer (MediaFrame
*instance
)
3044 if (instance
== NULL
)
3047 return instance
->GetBuffer ();
3052 media_frame_get_buf_len (MediaFrame
*instance
)
3054 if (instance
== NULL
)
3055 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3058 return instance
->GetBufLen ();
3063 media_frame_get_height (MediaFrame
*instance
)
3065 if (instance
== NULL
)
3066 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3069 return instance
->GetHeight ();
3074 media_frame_get_pts (MediaFrame
*instance
)
3076 if (instance
== NULL
)
3077 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3080 return instance
->GetPts ();
3085 media_frame_get_width (MediaFrame
*instance
)
3087 if (instance
== NULL
)
3088 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3091 return instance
->GetWidth ();
3096 media_frame_is_key_frame (MediaFrame
*instance
)
3098 if (instance
== NULL
)
3101 return instance
->IsKeyFrame ();
3106 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3108 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3113 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3115 if (instance
== NULL
)
3118 instance
->SetBuffer (value
);
3123 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3125 if (instance
== NULL
)
3128 instance
->SetBufLen (value
);
3133 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3135 if (instance
== NULL
)
3138 instance
->SetDataStride (a
, b
, c
, d
);
3143 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3145 if (instance
== NULL
)
3148 instance
->SetDecoderSpecificData (value
);
3153 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3155 if (instance
== NULL
)
3158 instance
->SetHeight (value
);
3163 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3165 if (instance
== NULL
)
3168 instance
->SetPts (value
);
3173 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3175 if (instance
== NULL
)
3178 instance
->SetSrcSlideH (value
);
3183 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3185 if (instance
== NULL
)
3188 instance
->SetSrcSlideY (value
);
3193 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3195 if (instance
== NULL
)
3198 instance
->SetSrcStride (a
, b
, c
, d
);
3203 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3205 if (instance
== NULL
)
3208 instance
->SetWidth (value
);
3216 moon_window_get_transparent (MoonWindow
*instance
)
3218 if (instance
== NULL
)
3221 return instance
->GetTransparent ();
3226 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3228 if (instance
== NULL
)
3231 instance
->SetTransparent (flag
);
3239 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3241 if (instance
== NULL
)
3244 return instance
->GetNativeWidget ();
3249 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
)
3251 return new MoonWindowGtk (fullscreen
, w
, h
, parent
);
3256 * MouseButtonEventArgs
3258 MouseButtonEventArgs
*
3259 mouse_button_event_args_new (void)
3261 return new MouseButtonEventArgs ();
3269 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3271 if (instance
== NULL
)
3274 instance
->GetPosition (relative_to
, x
, y
);
3279 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3281 if (instance
== NULL
)
3284 return instance
->GetStylusInfo ();
3288 StylusPointCollection
*
3289 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3291 if (instance
== NULL
)
3294 return instance
->GetStylusPoints (ink_presenter
);
3299 mouse_event_args_new (void)
3301 return new MouseEventArgs ();
3306 * MouseWheelEventArgs
3309 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3311 if (instance
== NULL
)
3312 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3315 return instance
->GetWheelDelta ();
3319 MouseWheelEventArgs
*
3320 mouse_wheel_event_args_new (void)
3322 return new MouseWheelEventArgs ();
3330 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3332 if (instance
== NULL
)
3333 return Point (0, 0);
3335 return instance
->ElementToLogicalPoint (elementPoint
);
3340 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3342 if (instance
== NULL
)
3345 instance
->EmitImageFailed ();
3350 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3352 if (instance
== NULL
)
3355 instance
->EmitImageOpenFailed ();
3360 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3362 if (instance
== NULL
)
3365 instance
->EmitMotionFinished ();
3370 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3372 if (instance
== NULL
)
3375 instance
->HandleDzParsed ();
3380 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3382 if (instance
== NULL
)
3385 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3390 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3392 if (instance
== NULL
)
3393 return Point (0, 0);
3395 return instance
->LogicalToElementPoint (logicalPoint
);
3400 multi_scale_image_new (void)
3402 return new MultiScaleImage ();
3407 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3409 if (instance
== NULL
)
3412 instance
->OnSourcePropertyChanged ();
3417 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3419 if (instance
== NULL
)
3422 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3427 * MultiScaleSubImage
3430 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3432 if (instance
== NULL
)
3433 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3436 return instance
->GetZIndex ();
3440 MultiScaleSubImage
*
3441 multi_scale_sub_image_new (void)
3443 return new MultiScaleSubImage ();
3448 * MultiScaleSubImageCollection
3450 MultiScaleSubImageCollection
*
3451 multi_scale_sub_image_collection_new (void)
3453 return new MultiScaleSubImageCollection ();
3458 * MultiScaleTileSource
3461 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3463 if (instance
== NULL
)
3466 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3470 MultiScaleTileSource
*
3471 multi_scale_tile_source_new (void)
3473 return new MultiScaleTileSource ();
3478 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3480 if (instance
== NULL
)
3483 instance
->set_image_uri_func (func
);
3491 name_scope_new (void)
3493 return new NameScope ();
3498 * ObjectAnimationUsingKeyFrames
3500 ObjectAnimationUsingKeyFrames
*
3501 object_animation_using_key_frames_new (void)
3503 return new ObjectAnimationUsingKeyFrames ();
3511 object_key_frame_new (void)
3513 return new ObjectKeyFrame ();
3518 * ObjectKeyFrameCollection
3520 ObjectKeyFrameCollection
*
3521 object_key_frame_collection_new (void)
3523 return new ObjectKeyFrameCollection ();
3528 * OutOfBrowserSettings
3530 OutOfBrowserSettings
*
3531 out_of_browser_settings_new (void)
3533 return new OutOfBrowserSettings ();
3543 return new Panel ();
3551 parallel_timeline_new (void)
3553 return new ParallelTimeline ();
3561 password_box_new (void)
3563 return new PasswordBox ();
3581 path_figure_new (void)
3583 return new PathFigure ();
3588 * PathFigureCollection
3590 PathFigureCollection
*
3591 path_figure_collection_new (void)
3593 return new PathFigureCollection ();
3601 path_geometry_new (void)
3603 return new PathGeometry ();
3611 path_segment_new (void)
3613 return new PathSegment ();
3618 * PathSegmentCollection
3620 PathSegmentCollection
*
3621 path_segment_collection_new (void)
3623 return new PathSegmentCollection ();
3631 point_animation_new (void)
3633 return new PointAnimation ();
3638 * PointAnimationUsingKeyFrames
3640 PointAnimationUsingKeyFrames
*
3641 point_animation_using_key_frames_new (void)
3643 return new PointAnimationUsingKeyFrames ();
3651 point_collection_new (void)
3653 return new PointCollection ();
3661 point_key_frame_new (void)
3663 return new PointKeyFrame ();
3668 * PointKeyFrameCollection
3670 PointKeyFrameCollection
*
3671 point_key_frame_collection_new (void)
3673 return new PointKeyFrameCollection ();
3681 poly_bezier_segment_new (void)
3683 return new PolyBezierSegment ();
3688 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3690 if (instance
== NULL
)
3693 instance
->SetPoints (points
);
3703 return new Polygon ();
3713 return new Polyline ();
3721 poly_line_segment_new (void)
3723 return new PolyLineSegment ();
3728 * PolyQuadraticBezierSegment
3730 PolyQuadraticBezierSegment
*
3731 poly_quadratic_bezier_segment_new (void)
3733 return new PolyQuadraticBezierSegment ();
3743 return new Popup ();
3751 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3753 if (instance
== NULL
)
3754 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3757 return instance
->EaseInCore (normalizedTime
);
3762 power_ease_new (void)
3764 return new PowerEase ();
3769 * PropertyChangedEventArgs
3772 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3774 if (instance
== NULL
)
3775 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3778 return instance
->GetId ();
3783 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3785 if (instance
== NULL
)
3788 return instance
->GetNewValue ();
3793 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3795 if (instance
== NULL
)
3798 return instance
->GetOldValue ();
3802 DependencyProperty
*
3803 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3805 if (instance
== NULL
)
3808 return instance
->GetProperty ();
3813 * QuadraticBezierSegment
3815 QuadraticBezierSegment
*
3816 quadratic_bezier_segment_new (void)
3818 return new QuadraticBezierSegment ();
3826 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3828 if (instance
== NULL
)
3829 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3832 return instance
->EaseInCore (normalizedTime
);
3837 quadratic_ease_new (void)
3839 return new QuadraticEase ();
3847 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
3849 if (instance
== NULL
)
3850 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3853 return instance
->EaseInCore (normalizedTime
);
3858 quartic_ease_new (void)
3860 return new QuarticEase ();
3868 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
3870 if (instance
== NULL
)
3871 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3874 return instance
->EaseInCore (normalizedTime
);
3879 quintic_ease_new (void)
3881 return new QuinticEase ();
3886 * RadialGradientBrush
3888 RadialGradientBrush
*
3889 radial_gradient_brush_new (void)
3891 return new RadialGradientBrush ();
3899 rectangle_new (void)
3901 return new Rectangle ();
3909 rectangle_geometry_new (void)
3911 return new RectangleGeometry ();
3916 * RenderingEventArgs
3919 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
3921 if (instance
== NULL
)
3922 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3923 return (TimeSpan
) 0;
3925 return instance
->GetRenderingTime ();
3930 * ResourceDictionary
3933 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
3935 if (instance
== NULL
)
3939 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
3940 return instance
->AddWithError (key
, value
, error
);
3945 resource_dictionary_clear (ResourceDictionary
*instance
)
3947 if (instance
== NULL
)
3950 return instance
->Clear ();
3955 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
3957 if (instance
== NULL
)
3960 return instance
->ContainsKey (key
);
3965 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
3967 if (instance
== NULL
)
3970 return instance
->Get (key
, exists
);
3975 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
3977 if (instance
== NULL
)
3980 return instance
->Remove (key
);
3984 ResourceDictionary
*
3985 resource_dictionary_new (void)
3987 return new ResourceDictionary ();
3992 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
3994 if (instance
== NULL
)
3997 return instance
->Set (key
, value
);
4002 * ResourceDictionaryCollection
4004 ResourceDictionaryCollection
*
4005 resource_dictionary_collection_new (void)
4007 return new ResourceDictionaryCollection ();
4015 rotate_transform_new (void)
4017 return new RotateTransform ();
4025 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4027 if (instance
== NULL
)
4030 return instance
->GetHandled ();
4035 routed_event_args_get_source (RoutedEventArgs
*instance
)
4037 if (instance
== NULL
)
4040 return instance
->GetSource ();
4045 routed_event_args_new (void)
4047 return new RoutedEventArgs ();
4052 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4054 if (instance
== NULL
)
4057 instance
->SetHandled (handled
);
4062 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4064 if (instance
== NULL
)
4067 instance
->SetSource (el
);
4075 row_definition_new (void)
4077 return new RowDefinition ();
4082 * RowDefinitionCollection
4084 RowDefinitionCollection
*
4085 row_definition_collection_new (void)
4087 return new RowDefinitionCollection ();
4105 scale_transform_new (void)
4107 return new ScaleTransform ();
4117 return new Setter ();
4125 setter_base_new (void)
4127 return new SetterBase ();
4132 * SetterBaseCollection
4134 SetterBaseCollection
*
4135 setter_base_collection_new (void)
4137 return new SetterBaseCollection ();
4145 shape_get_geometry_transform (Shape
*instance
)
4147 if (instance
== NULL
)
4150 return instance
->GetGeometryTransform ();
4157 return new Shape ();
4165 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4167 if (instance
== NULL
)
4168 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4171 return instance
->EaseInCore (normalizedTime
);
4176 sine_ease_new (void)
4178 return new SineEase ();
4183 * SizeChangedEventArgs
4185 SizeChangedEventArgs
*
4186 size_changed_event_args_new (void)
4188 return new SizeChangedEventArgs ();
4196 skew_transform_new (void)
4198 return new SkewTransform ();
4206 solid_color_brush_new (void)
4208 return new SolidColorBrush ();
4213 * SplineColorKeyFrame
4215 SplineColorKeyFrame
*
4216 spline_color_key_frame_new (void)
4218 return new SplineColorKeyFrame ();
4223 * SplineDoubleKeyFrame
4225 SplineDoubleKeyFrame
*
4226 spline_double_key_frame_new (void)
4228 return new SplineDoubleKeyFrame ();
4233 * SplinePointKeyFrame
4235 SplinePointKeyFrame
*
4236 spline_point_key_frame_new (void)
4238 return new SplinePointKeyFrame ();
4246 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4248 if (instance
== NULL
)
4252 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4253 return instance
->BeginWithError (error
);
4258 storyboard_get_current_state (Storyboard
*instance
)
4260 if (instance
== NULL
)
4261 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4264 return instance
->GetCurrentState ();
4269 storyboard_get_current_time (Storyboard
*instance
)
4271 if (instance
== NULL
)
4272 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4273 return (TimeSpan
) 0;
4275 return instance
->GetCurrentTime ();
4279 DependencyProperty
*
4280 storyboard_get_target_dependency_property (Storyboard
*instance
)
4282 if (instance
== NULL
)
4285 return instance
->GetTargetDependencyProperty ();
4290 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4292 if (instance
== NULL
)
4296 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4297 instance
->PauseWithError (error
);
4302 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4304 if (instance
== NULL
)
4308 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4309 instance
->ResumeWithError (error
);
4314 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4316 if (instance
== NULL
)
4320 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4321 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4326 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4328 if (instance
== NULL
)
4332 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4333 instance
->SeekWithError (timespan
, error
);
4338 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4340 if (instance
== NULL
)
4344 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4345 instance
->SkipToFillWithError (error
);
4350 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4352 if (instance
== NULL
)
4356 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4357 instance
->StopWithError (error
);
4362 storyboard_new (void)
4364 return new Storyboard ();
4372 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4374 if (instance
== NULL
)
4377 return instance
->HitTest (stylusPoints
);
4384 return new Stroke ();
4392 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4394 if (instance
== NULL
)
4397 return instance
->HitTest (stylusPoints
);
4402 stroke_collection_new (void)
4404 return new StrokeCollection ();
4412 style_seal (Style
*instance
)
4414 if (instance
== NULL
)
4424 return new Style ();
4432 stylus_info_new (void)
4434 return new StylusInfo ();
4442 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4444 if (instance
== NULL
)
4445 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4448 return instance
->GetPressureFactor ();
4453 stylus_point_get_x (StylusPoint
*instance
)
4455 if (instance
== NULL
)
4456 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4459 return instance
->GetX ();
4464 stylus_point_get_y (StylusPoint
*instance
)
4466 if (instance
== NULL
)
4467 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4470 return instance
->GetY ();
4475 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4477 if (instance
== NULL
)
4480 instance
->SetPressureFactor (factor
);
4485 stylus_point_set_x (StylusPoint
*instance
, double x
)
4487 if (instance
== NULL
)
4495 stylus_point_set_y (StylusPoint
*instance
, double y
)
4497 if (instance
== NULL
)
4505 stylus_point_new (void)
4507 return new StylusPoint ();
4512 * StylusPointCollection
4515 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
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
->AddStylusPoints (stylusPointCollection
);
4525 StylusPointCollection
*
4526 stylus_point_collection_new (void)
4528 return new StylusPointCollection ();
4536 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4538 if (instance
== NULL
)
4541 instance
->Attach (toplevel
);
4546 surface_create_downloader (Surface
*instance
)
4548 if (instance
== NULL
)
4551 return instance
->CreateDownloader ();
4556 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4558 if (instance
== NULL
)
4561 instance
->EmitError (number
, code
, message
);
4566 surface_get_background_color (Surface
*instance
)
4568 if (instance
== NULL
)
4571 return instance
->GetBackgroundColor ();
4576 surface_get_focused_element (Surface
*instance
)
4578 if (instance
== NULL
)
4581 return instance
->GetFocusedElement ();
4586 surface_get_full_screen (Surface
*instance
)
4588 if (instance
== NULL
)
4591 return instance
->GetFullScreen ();
4596 surface_get_time_manager (Surface
*instance
)
4598 if (instance
== NULL
)
4601 return instance
->GetTimeManager ();
4606 surface_get_toplevel (Surface
*instance
)
4608 if (instance
== NULL
)
4611 return instance
->GetToplevel ();
4616 surface_get_window (Surface
*instance
)
4618 if (instance
== NULL
)
4621 return instance
->GetWindow ();
4626 surface_in_main_thread (void)
4628 return Surface::InMainThread ();
4633 surface_is_loaded (Surface
*instance
)
4635 if (instance
== NULL
)
4638 return instance
->IsLoaded ();
4643 surface_is_user_initiated_event (Surface
*instance
)
4645 if (instance
== NULL
)
4648 return instance
->IsUserInitiatedEvent ();
4653 surface_is_version_supported (const char *version
)
4655 return Surface::IsVersionSupported (version
);
4660 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4662 if (instance
== NULL
)
4665 instance
->Paint (ctx
, x
, y
, width
, height
);
4670 surface_resize (Surface
*instance
, int width
, int height
)
4672 if (instance
== NULL
)
4675 instance
->Resize (width
, height
);
4680 surface_set_full_screen (Surface
*instance
, bool value
)
4682 if (instance
== NULL
)
4685 instance
->SetFullScreen (value
);
4690 surface_new (MoonWindow
*window
)
4692 return new Surface (window
);
4697 * TabNavigationWalker
4700 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4702 return TabNavigationWalker::Focus (element
, forwards
);
4710 text_block_new (void)
4712 return new TextBlock ();
4722 return new TextBox ();
4730 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4732 if (instance
== NULL
)
4735 instance
->OnGotFocus (args
);
4740 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4742 if (instance
== NULL
)
4745 instance
->OnKeyDown (args
);
4750 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4752 if (instance
== NULL
)
4755 instance
->OnKeyUp (args
);
4760 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4762 if (instance
== NULL
)
4765 instance
->OnLostFocus (args
);
4770 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4772 if (instance
== NULL
)
4775 instance
->OnMouseLeftButtonDown (args
);
4780 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4782 if (instance
== NULL
)
4785 instance
->OnMouseLeftButtonUp (args
);
4790 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4792 if (instance
== NULL
)
4795 instance
->OnMouseMove (args
);
4800 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4802 if (instance
== NULL
)
4805 instance
->PostOnKeyDown (args
);
4810 text_box_base_select_all (TextBoxBase
*instance
)
4812 if (instance
== NULL
)
4815 instance
->SelectAll ();
4820 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
4822 if (instance
== NULL
)
4826 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
4827 return instance
->SelectWithError (start
, length
, error
);
4835 text_box_view_new (void)
4837 return new TextBoxView ();
4842 * TextChangedEventArgs
4844 TextChangedEventArgs
*
4845 text_changed_event_args_new (void)
4847 return new TextChangedEventArgs ();
4855 tile_brush_new (void)
4857 return new TileBrush ();
4865 timeline_get_manual_target (Timeline
*instance
)
4867 if (instance
== NULL
)
4870 return instance
->GetManualTarget ();
4875 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
4877 if (instance
== NULL
)
4880 instance
->SetManualTarget (o
);
4887 return new Timeline ();
4892 * TimelineCollection
4894 TimelineCollection
*
4895 timeline_collection_new (void)
4897 return new TimelineCollection ();
4905 timeline_group_new (void)
4907 return new TimelineGroup ();
4915 timeline_marker_new (void)
4917 return new TimelineMarker ();
4922 * TimelineMarkerCollection
4924 TimelineMarkerCollection
*
4925 timeline_marker_collection_new (void)
4927 return new TimelineMarkerCollection ();
4935 time_manager_add_dispatcher_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
4937 if (instance
== NULL
)
4940 instance
->AddDispatcherCall (handler
, tick_data
);
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
);