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 "projection.h"
46 #include "resources.h"
52 #include "tabnavigationwalker.h"
54 #include "textblock.h"
56 #include "tilesource.h"
58 #include "timemanager.h"
59 #include "transform.h"
62 #include "uielement.h"
64 #include "usercontrol.h"
66 #include "window-gtk.h"
67 #include "writeablebitmap.h"
74 application_new (void)
76 return new Application ();
81 application_get_current (void)
83 return Application::GetCurrent ();
88 application_register_callbacks (Application
*instance
, ApplyDefaultStyleCallback apply_default_style_cb
, ApplyStyleCallback apply_style_cb
, GetResourceCallback get_resource_cb
, ConvertKeyframeValueCallback convert_keyframe_callback
)
93 instance
->RegisterCallbacks (apply_default_style_cb
, apply_style_cb
, get_resource_cb
, convert_keyframe_callback
);
98 application_set_current (Application
*current
)
100 Application::SetCurrent (current
);
108 arc_segment_new (void)
110 return new ArcSegment ();
118 assembly_part_new (void)
120 return new AssemblyPart ();
125 * AssemblyPartCollection
127 AssemblyPartCollection
*
128 assembly_part_collection_new (void)
130 return new AssemblyPartCollection ();
138 audio_stream_new (Media
*media
, int codec_id
, int bits_per_sample
, int block_align
, int sample_rate
, int channels
, int bit_rate
, gpointer extra_data
, guint32 extra_data_size
)
140 return new AudioStream (media
, codec_id
, bits_per_sample
, block_align
, sample_rate
, channels
, bit_rate
, extra_data
, extra_data_size
);
145 audio_stream_get_bit_rate (AudioStream
*instance
)
147 if (instance
== NULL
)
148 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
151 return instance
->GetBitRate ();
156 audio_stream_get_bits_per_sample (AudioStream
*instance
)
158 if (instance
== NULL
)
159 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
162 return instance
->GetBitsPerSample ();
167 audio_stream_get_block_align (AudioStream
*instance
)
169 if (instance
== NULL
)
170 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
173 return instance
->GetBlockAlign ();
178 audio_stream_get_channels (AudioStream
*instance
)
180 if (instance
== NULL
)
181 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
184 return instance
->GetChannels ();
189 audio_stream_get_input_bit_rate (AudioStream
*instance
)
191 if (instance
== NULL
)
192 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
195 return instance
->GetInputBitRate ();
200 audio_stream_get_input_bits_per_sample (AudioStream
*instance
)
202 if (instance
== NULL
)
203 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
206 return instance
->GetInputBitsPerSample ();
211 audio_stream_get_input_block_align (AudioStream
*instance
)
213 if (instance
== NULL
)
214 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
217 return instance
->GetInputBlockAlign ();
222 audio_stream_get_input_channels (AudioStream
*instance
)
224 if (instance
== NULL
)
225 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
228 return instance
->GetInputChannels ();
233 audio_stream_get_input_sample_rate (AudioStream
*instance
)
235 if (instance
== NULL
)
236 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
239 return instance
->GetInputSampleRate ();
244 audio_stream_get_output_bit_rate (AudioStream
*instance
)
246 if (instance
== NULL
)
247 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
250 return instance
->GetOutputBitRate ();
255 audio_stream_get_output_bits_per_sample (AudioStream
*instance
)
257 if (instance
== NULL
)
258 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
261 return instance
->GetOutputBitsPerSample ();
266 audio_stream_get_output_block_align (AudioStream
*instance
)
268 if (instance
== NULL
)
269 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
272 return instance
->GetOutputBlockAlign ();
277 audio_stream_get_output_channels (AudioStream
*instance
)
279 if (instance
== NULL
)
280 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
283 return instance
->GetOutputChannels ();
288 audio_stream_get_output_sample_rate (AudioStream
*instance
)
290 if (instance
== NULL
)
291 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
294 return instance
->GetOutputSampleRate ();
299 audio_stream_get_sample_rate (AudioStream
*instance
)
301 if (instance
== NULL
)
302 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
305 return instance
->GetSampleRate ();
310 audio_stream_set_bit_rate (AudioStream
*instance
, int value
)
312 if (instance
== NULL
)
315 instance
->SetBitRate (value
);
320 audio_stream_set_bits_per_sample (AudioStream
*instance
, int value
)
322 if (instance
== NULL
)
325 instance
->SetBitsPerSample (value
);
330 audio_stream_set_block_align (AudioStream
*instance
, int value
)
332 if (instance
== NULL
)
335 instance
->SetBlockAlign (value
);
340 audio_stream_set_channels (AudioStream
*instance
, int value
)
342 if (instance
== NULL
)
345 instance
->SetChannels (value
);
350 audio_stream_set_input_bit_rate (AudioStream
*instance
, int value
)
352 if (instance
== NULL
)
355 instance
->SetInputBitRate (value
);
360 audio_stream_set_input_bits_per_sample (AudioStream
*instance
, int value
)
362 if (instance
== NULL
)
365 instance
->SetInputBitsPerSample (value
);
370 audio_stream_set_input_block_align (AudioStream
*instance
, int value
)
372 if (instance
== NULL
)
375 instance
->SetInputBlockAlign (value
);
380 audio_stream_set_input_channels (AudioStream
*instance
, int value
)
382 if (instance
== NULL
)
385 instance
->SetInputChannels (value
);
390 audio_stream_set_input_sample_rate (AudioStream
*instance
, int value
)
392 if (instance
== NULL
)
395 instance
->SetInputSampleRate (value
);
400 audio_stream_set_output_bit_rate (AudioStream
*instance
, int value
)
402 if (instance
== NULL
)
405 instance
->SetOutputBitRate (value
);
410 audio_stream_set_output_bits_per_sample (AudioStream
*instance
, int value
)
412 if (instance
== NULL
)
415 instance
->SetOutputBitsPerSample (value
);
420 audio_stream_set_output_block_align (AudioStream
*instance
, int value
)
422 if (instance
== NULL
)
425 instance
->SetOutputBlockAlign (value
);
430 audio_stream_set_output_channels (AudioStream
*instance
, int value
)
432 if (instance
== NULL
)
435 instance
->SetOutputChannels (value
);
440 audio_stream_set_output_sample_rate (AudioStream
*instance
, int value
)
442 if (instance
== NULL
)
445 instance
->SetOutputSampleRate (value
);
450 audio_stream_set_sample_rate (AudioStream
*instance
, int value
)
452 if (instance
== NULL
)
455 instance
->SetSampleRate (value
);
465 return new BackEase ();
470 back_ease_ease_in_core (BackEase
*instance
, double normalizedTime
)
472 if (instance
== NULL
)
473 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
476 return instance
->EaseInCore (normalizedTime
);
484 begin_storyboard_new (void)
486 return new BeginStoryboard ();
494 bezier_segment_new (void)
496 return new BezierSegment ();
504 bitmap_cache_new (void)
506 return new BitmapCache ();
514 bitmap_image_new (void)
516 return new BitmapImage ();
521 bitmap_image_pixbuf_write (BitmapImage
*instance
, gpointer buffer
, gint32 offset
, gint32 n
)
523 if (instance
== NULL
)
526 instance
->PixbufWrite (buffer
, offset
, n
);
531 bitmap_image_pixmap_complete (BitmapImage
*instance
)
533 if (instance
== NULL
)
536 instance
->PixmapComplete ();
544 bitmap_source_new (void)
546 return new BitmapSource ();
551 bitmap_source_get_bitmap_data (BitmapSource
*instance
)
553 if (instance
== NULL
)
554 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
557 return instance
->GetBitmapData ();
562 bitmap_source_invalidate (BitmapSource
*instance
)
564 if (instance
== NULL
)
567 instance
->Invalidate ();
572 bitmap_source_set_bitmap_data (BitmapSource
*instance
, gpointer data
, bool own
)
574 if (instance
== NULL
)
577 instance
->SetBitmapData (data
, own
);
585 blur_effect_new (void)
587 return new BlurEffect ();
597 return new Border ();
605 bounce_ease_new (void)
607 return new BounceEase ();
612 bounce_ease_ease_in_core (BounceEase
*instance
, double normalizedTime
)
614 if (instance
== NULL
)
615 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
618 return instance
->EaseInCore (normalizedTime
);
636 cache_mode_new (void)
638 return new CacheMode ();
648 return new Canvas ();
656 circle_ease_new (void)
658 return new CircleEase ();
663 circle_ease_ease_in_core (CircleEase
*instance
, double normalizedTime
)
665 if (instance
== NULL
)
666 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
669 return instance
->EaseInCore (normalizedTime
);
677 collection_add_with_error (Collection
*instance
, Value
*value
, MoonError
*error
)
679 if (instance
== NULL
)
680 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
684 g_warning ("Moonlight: Called collection_add_with_error () with error == NULL.");
685 return instance
->AddWithError (value
, error
);
690 collection_clear (Collection
*instance
)
692 if (instance
== NULL
)
695 return instance
->Clear ();
700 collection_contains (Collection
*instance
, Value
*value
)
702 if (instance
== NULL
)
705 return instance
->Contains (value
);
710 collection_get_count (Collection
*instance
)
712 if (instance
== NULL
)
713 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
716 return instance
->GetCount ();
721 collection_get_element_type (Collection
*instance
)
723 if (instance
== NULL
)
724 return Type::INVALID
;
726 return instance
->GetElementType ();
731 collection_get_iterator (Collection
*instance
)
733 if (instance
== NULL
)
736 return instance
->GetIterator ();
741 collection_get_value_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
743 if (instance
== NULL
)
747 g_warning ("Moonlight: Called collection_get_value_at_with_error () with error == NULL.");
748 return instance
->GetValueAtWithError (index
, error
);
753 collection_index_of (Collection
*instance
, Value
*value
)
755 if (instance
== NULL
)
756 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
759 return instance
->IndexOf (value
);
764 collection_insert_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
766 if (instance
== NULL
)
770 g_warning ("Moonlight: Called collection_insert_with_error () with error == NULL.");
771 return instance
->InsertWithError (index
, value
, error
);
776 collection_remove (Collection
*instance
, Value
*value
)
778 if (instance
== NULL
)
781 return instance
->Remove (value
);
786 collection_remove_at_with_error (Collection
*instance
, int index
, MoonError
*error
)
788 if (instance
== NULL
)
792 g_warning ("Moonlight: Called collection_remove_at_with_error () with error == NULL.");
793 return instance
->RemoveAtWithError (index
, error
);
798 collection_set_value_at_with_error (Collection
*instance
, int index
, Value
*value
, MoonError
*error
)
800 if (instance
== NULL
)
804 g_warning ("Moonlight: Called collection_set_value_at_with_error () with error == NULL.");
805 return instance
->SetValueAtWithError (index
, value
, error
);
810 * CollectionChangedEventArgs
812 CollectionChangedEventArgs
*
813 collection_changed_event_args_new (void)
815 return new CollectionChangedEventArgs ();
820 collection_changed_event_args_get_changed_action (CollectionChangedEventArgs
*instance
)
822 if (instance
== NULL
)
823 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
824 return (CollectionChangedAction
) 0;
826 return instance
->GetChangedAction ();
831 collection_changed_event_args_get_index (CollectionChangedEventArgs
*instance
)
833 if (instance
== NULL
)
834 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
837 return instance
->GetIndex ();
842 collection_changed_event_args_get_new_item (CollectionChangedEventArgs
*instance
)
844 if (instance
== NULL
)
847 return instance
->GetNewItem ();
852 collection_changed_event_args_get_old_item (CollectionChangedEventArgs
*instance
)
854 if (instance
== NULL
)
857 return instance
->GetOldItem ();
862 collection_changed_event_args_set_changed_action (CollectionChangedEventArgs
*instance
, int action
)
864 if (instance
== NULL
)
867 instance
->SetChangedAction ((CollectionChangedAction
) action
);
872 collection_changed_event_args_set_index (CollectionChangedEventArgs
*instance
, int index
)
874 if (instance
== NULL
)
877 instance
->SetIndex (index
);
882 collection_changed_event_args_set_new_item (CollectionChangedEventArgs
*instance
, Value
*item
)
884 if (instance
== NULL
)
887 instance
->SetNewItem (item
);
892 collection_changed_event_args_set_old_item (CollectionChangedEventArgs
*instance
, Value
*item
)
894 if (instance
== NULL
)
897 instance
->SetOldItem (item
);
905 collection_iterator_destroy (CollectionIterator
*iterator
)
907 CollectionIterator::Destroy (iterator
);
912 collection_iterator_get_current (CollectionIterator
*instance
, int *err
)
914 if (instance
== NULL
)
917 return instance
->GetCurrent ((CollectionIteratorError
*) err
);
922 collection_iterator_next (CollectionIterator
*instance
, int *err
)
924 if (instance
== NULL
)
927 return instance
->Next ((CollectionIteratorError
*) err
);
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_template_owner (DependencyObject
*instance
)
1223 if (instance
== NULL
)
1226 return instance
->GetTemplateOwner ();
1231 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1233 if (instance
== NULL
)
1237 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1238 return instance
->GetValueNoDefaultWithError (property
, error
);
1243 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1245 if (instance
== NULL
)
1249 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1250 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1255 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1257 if (instance
== NULL
)
1261 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1262 return instance
->ReadLocalValueWithError (property
, error
);
1267 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1269 if (instance
== NULL
)
1272 instance
->RemovePropertyChangeHandler (property
, cb
);
1277 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1279 if (instance
== NULL
)
1282 instance
->SetName (name
);
1287 dependency_object_set_parent_safe (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1289 if (instance
== NULL
)
1293 g_warning ("Moonlight: Called dependency_object_set_parent_safe () with error == NULL.");
1294 instance
->SetParentSafe (parent
, error
);
1299 dependency_object_set_template_owner (DependencyObject
*instance
, DependencyObject
*value
)
1301 if (instance
== NULL
)
1304 instance
->SetTemplateOwner (value
);
1309 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1311 if (instance
== NULL
)
1315 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1316 return instance
->SetValueWithError (property
, value
, error
);
1321 * DependencyObjectCollection
1323 DependencyObjectCollection
*
1324 dependency_object_collection_new (void)
1326 return new DependencyObjectCollection ();
1331 * DependencyProperty
1334 dependency_property_get_default_value (DependencyProperty
*instance
)
1336 if (instance
== NULL
)
1339 return instance
->GetDefaultValue ();
1343 DependencyProperty
*
1344 dependency_property_get_dependency_property (int type
, const char *name
)
1346 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1350 DependencyProperty
*
1351 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1353 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1358 dependency_property_get_name (DependencyProperty
*instance
)
1360 if (instance
== NULL
)
1363 return instance
->GetName ();
1368 dependency_property_get_property_type (DependencyProperty
*instance
)
1370 if (instance
== NULL
)
1371 return Type::INVALID
;
1373 return instance
->GetPropertyType ();
1378 dependency_property_is_attached (DependencyProperty
*instance
)
1380 if (instance
== NULL
)
1383 return instance
->IsAttached ();
1388 dependency_property_is_nullable (DependencyProperty
*instance
)
1390 if (instance
== NULL
)
1393 return instance
->IsNullable ();
1398 dependency_property_is_read_only (DependencyProperty
*instance
)
1400 if (instance
== NULL
)
1403 return instance
->IsReadOnly ();
1407 DependencyProperty
*
1408 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1410 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1414 DependencyProperty
*
1415 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1417 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1422 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1424 if (instance
== NULL
)
1427 instance
->SetIsNullable (value
);
1432 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1434 if (instance
== NULL
)
1437 instance
->SetPropertyChangedCallback (changed_callback
);
1445 deployment_new (void)
1447 return new Deployment ();
1452 deployment_get_current (void)
1454 return Deployment::GetCurrent ();
1459 deployment_get_surface_reffed (Deployment
*instance
)
1461 if (instance
== NULL
)
1464 return instance
->GetSurfaceReffed ();
1469 deployment_get_types (Deployment
*instance
)
1471 if (instance
== NULL
)
1474 return instance
->GetTypes ();
1479 deployment_set_current (Deployment
*value
)
1481 Deployment::SetCurrent (value
);
1486 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1488 if (instance
== NULL
)
1491 instance
->SetCurrentApplication (value
);
1496 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1498 if (instance
== NULL
)
1501 instance
->SetIsLoadedFromXap (flag
);
1506 * DiscreteColorKeyFrame
1508 DiscreteColorKeyFrame
*
1509 discrete_color_key_frame_new (void)
1511 return new DiscreteColorKeyFrame ();
1516 * DiscreteDoubleKeyFrame
1518 DiscreteDoubleKeyFrame
*
1519 discrete_double_key_frame_new (void)
1521 return new DiscreteDoubleKeyFrame ();
1526 * DiscreteObjectKeyFrame
1528 DiscreteObjectKeyFrame
*
1529 discrete_object_key_frame_new (void)
1531 return new DiscreteObjectKeyFrame ();
1536 * DiscretePointKeyFrame
1538 DiscretePointKeyFrame
*
1539 discrete_point_key_frame_new (void)
1541 return new DiscretePointKeyFrame ();
1549 dispatcher_timer_new (void)
1551 return new DispatcherTimer ();
1556 dispatcher_timer_start (DispatcherTimer
*instance
)
1558 if (instance
== NULL
)
1566 dispatcher_timer_stop (DispatcherTimer
*instance
)
1568 if (instance
== NULL
)
1579 double_animation_new (void)
1581 return new DoubleAnimation ();
1586 * DoubleAnimationUsingKeyFrames
1588 DoubleAnimationUsingKeyFrames
*
1589 double_animation_using_key_frames_new (void)
1591 return new DoubleAnimationUsingKeyFrames ();
1599 double_collection_new (void)
1601 return new DoubleCollection ();
1609 double_key_frame_new (void)
1611 return new DoubleKeyFrame ();
1616 * DoubleKeyFrameCollection
1618 DoubleKeyFrameCollection
*
1619 double_key_frame_collection_new (void)
1621 return new DoubleKeyFrameCollection ();
1629 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1631 if (instance
== NULL
)
1634 return instance
->CreateWebRequest (method
, uri
);
1639 downloader_new (void)
1641 return new Downloader ();
1646 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1648 if (instance
== NULL
)
1651 instance
->NotifyFailed (msg
);
1656 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1658 if (instance
== NULL
)
1661 instance
->NotifyFinished (final_uri
);
1666 downloader_notify_size (Downloader
*instance
, gint64 size
)
1668 if (instance
== NULL
)
1671 instance
->NotifySize (size
);
1676 downloader_set_functions (DownloaderCreateStateFunc create_state
, DownloaderDestroyStateFunc destroy_state
, DownloaderOpenFunc open
, DownloaderSendFunc send
, DownloaderAbortFunc abort
, DownloaderHeaderFunc header
, DownloaderBodyFunc body
, DownloaderCreateWebRequestFunc request
, DownloaderSetResponseHeaderCallbackFunc response_header_callback
, DownloaderGetResponseFunc get_response
)
1678 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1683 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1685 if (instance
== NULL
)
1688 instance
->Write (buf
, offset
, n
);
1696 downloader_request_free (DownloaderRequest
*instance
)
1703 downloader_request_abort (DownloaderRequest
*instance
)
1705 if (instance
== NULL
)
1712 DownloaderResponse
*
1713 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1715 if (instance
== NULL
)
1718 return instance
->GetDownloaderResponse ();
1723 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1725 if (instance
== NULL
)
1728 return instance
->GetResponse (started
, available
, finished
, context
);
1733 downloader_request_is_aborted (DownloaderRequest
*instance
)
1735 if (instance
== NULL
)
1738 return instance
->IsAborted ();
1743 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1745 if (instance
== NULL
)
1748 instance
->SetBody (body
, size
);
1753 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1755 if (instance
== NULL
)
1758 instance
->SetHttpHeader (name
, value
);
1763 * DownloaderResponse
1766 downloader_response_free (DownloaderResponse
*instance
)
1773 downloader_response_abort (DownloaderResponse
*instance
)
1775 if (instance
== NULL
)
1783 downloader_response_get_response_status (DownloaderResponse
*instance
)
1785 if (instance
== NULL
)
1786 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1789 return instance
->GetResponseStatus ();
1794 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1796 if (instance
== NULL
)
1799 return instance
->GetResponseStatusText ();
1804 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1806 if (instance
== NULL
)
1809 instance
->SetHeaderVisitor (visitor
, context
);
1814 * DownloadProgressEventArgs
1817 download_progress_event_args_get_progress (DownloadProgressEventArgs
*instance
)
1819 if (instance
== NULL
)
1820 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1823 return instance
->GetProgress ();
1831 drawing_attributes_new (void)
1833 return new DrawingAttributes ();
1841 drop_shadow_effect_new (void)
1843 return new DropShadowEffect ();
1848 * EasingColorKeyFrame
1850 EasingColorKeyFrame
*
1851 easing_color_key_frame_new (void)
1853 return new EasingColorKeyFrame ();
1858 * EasingDoubleKeyFrame
1860 EasingDoubleKeyFrame
*
1861 easing_double_key_frame_new (void)
1863 return new EasingDoubleKeyFrame ();
1868 * EasingFunctionBase
1870 EasingFunctionBase
*
1871 easing_function_base_new (void)
1873 return new EasingFunctionBase ();
1878 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1880 if (instance
== NULL
)
1883 instance
->SetEasingFunction (value
);
1888 * EasingPointKeyFrame
1890 EasingPointKeyFrame
*
1891 easing_point_key_frame_new (void)
1893 return new EasingPointKeyFrame ();
1903 return new Effect ();
1911 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
1913 if (instance
== NULL
)
1914 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1917 return instance
->EaseInCore (normalizedTime
);
1922 elastic_ease_new (void)
1924 return new ElasticEase ();
1934 return new Ellipse ();
1942 ellipse_geometry_new (void)
1944 return new EllipseGeometry ();
1952 error_event_args_get_error_code (ErrorEventArgs
*instance
)
1954 if (instance
== NULL
)
1955 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1958 return instance
->GetErrorCode ();
1963 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1965 if (instance
== NULL
)
1968 return instance
->GetErrorMessage ();
1973 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1975 if (instance
== NULL
)
1976 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1979 return instance
->GetErrorType ();
1984 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1986 if (instance
== NULL
)
1987 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1988 return (gpointer
) 0;
1990 return instance
->GetMoonError ();
1998 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2000 if (instance
== NULL
)
2001 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2004 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
2009 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2011 if (instance
== NULL
)
2014 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
2019 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
2021 if (instance
== NULL
)
2024 instance
->AddToggleRefNotifier (tr
);
2029 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2031 if (instance
== NULL
)
2032 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2035 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
2040 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
2042 if (instance
== NULL
)
2045 instance
->DoEmitCurrentContext (event_id
, calldata
);
2050 event_object_get_object_type (EventObject
*instance
)
2052 if (instance
== NULL
)
2053 return Type::INVALID
;
2055 return instance
->GetObjectType ();
2060 event_object_get_type_name (EventObject
*instance
)
2062 if (instance
== NULL
)
2065 return instance
->GetTypeName ();
2070 event_object_ref (EventObject
*instance
)
2072 if (instance
== NULL
)
2080 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2082 if (instance
== NULL
)
2083 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2086 return instance
->RemoveHandler (event_id
, handler
, data
);
2091 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2093 if (instance
== NULL
)
2096 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2101 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2103 if (instance
== NULL
)
2106 instance
->RemoveToggleRefNotifier ();
2111 event_object_set_object_type (EventObject
*instance
, int value
)
2113 if (instance
== NULL
)
2116 instance
->SetObjectType ((Type::Kind
) value
);
2121 event_object_unref (EventObject
*instance
)
2123 if (instance
== NULL
)
2134 event_trigger_new (void)
2136 return new EventTrigger ();
2144 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2146 if (instance
== NULL
)
2147 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2150 return instance
->EaseInCore (normalizedTime
);
2155 exponential_ease_new (void)
2157 return new ExponentialEase ();
2165 extension_part_new (void)
2167 return new ExtensionPart ();
2175 external_decoder_new (Media
*media
, IMediaStream
*stream
, void *instance
, const char *name
, ExternalDecoder_DecodeFrameAsyncCallback decode_frame_async
, ExternalDecoder_OpenDecoderAsyncCallback open_decoder_async
, ExternalDecoder_CleanupCallback cleanup
, ExternalDecoder_CleanStateCallback clean_state
, ExternalDecoder_HasDelayedFrameCallback has_delayed_frame
, ExternalDecoder_DisposeCallback dispose
, ExternalDecoder_DtorCallback dtor
)
2177 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2182 * ExternalDecoderInfo
2184 ExternalDecoderInfo
*
2185 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2187 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2195 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2197 if (instance
== NULL
)
2198 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2201 return instance
->AddStream (stream
);
2206 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2208 if (instance
== NULL
)
2211 instance
->ClearCallbacks ();
2216 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2218 if (instance
== NULL
)
2221 instance
->SetCanSeek (value
);
2229 external_part_new (void)
2231 return new ExternalPart ();
2236 * ExternalPartCollection
2238 ExternalPartCollection
*
2239 external_part_collection_new (void)
2241 return new ExternalPartCollection ();
2249 framework_element_apply_template (FrameworkElement
*instance
)
2251 if (instance
== NULL
)
2254 return instance
->ApplyTemplate ();
2259 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2261 if (instance
== NULL
)
2262 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2265 return instance
->ArrangeOverride (finalSize
);
2270 framework_element_new (void)
2272 return new FrameworkElement ();
2277 framework_element_get_logical_parent (FrameworkElement
*instance
)
2279 if (instance
== NULL
)
2282 return instance
->GetLogicalParent ();
2287 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2289 if (instance
== NULL
)
2290 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2293 return instance
->MeasureOverride (availableSize
);
2298 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
, GetDefaultTemplateCallback get_default_template_cb
, LoadedCallback loaded_cb
)
2300 if (instance
== NULL
)
2303 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
, get_default_template_cb
, loaded_cb
);
2308 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2310 if (instance
== NULL
)
2313 instance
->SetDefaultStyle (value
);
2318 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2320 if (instance
== NULL
)
2324 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2325 instance
->SetLogicalParent (logical_parent
, error
);
2333 framework_template_new (void)
2335 return new FrameworkTemplate ();
2340 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2342 if (instance
== NULL
)
2345 return instance
->GetVisualTree (templateBindingSource
);
2353 general_transform_new (void)
2355 return new GeneralTransform ();
2360 general_transform_get_matrix (GeneralTransform
*instance
)
2362 if (instance
== NULL
)
2365 return instance
->GetMatrix ();
2375 return new Geometry ();
2380 geometry_get_bounds (Geometry
*instance
)
2382 if (instance
== NULL
)
2383 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2386 return instance
->GetBounds ();
2391 * GeometryCollection
2393 GeometryCollection
*
2394 geometry_collection_new (void)
2396 return new GeometryCollection ();
2404 geometry_group_new (void)
2406 return new GeometryGroup ();
2416 return new Glyphs ();
2424 gradient_brush_new (void)
2426 return new GradientBrush ();
2434 gradient_stop_new (void)
2436 return new GradientStop ();
2441 * GradientStopCollection
2443 GradientStopCollection
*
2444 gradient_stop_collection_new (void)
2446 return new GradientStopCollection ();
2464 hit_test_collection_new (void)
2466 return new HitTestCollection ();
2484 icon_collection_new (void)
2486 return new IconCollection ();
2496 return new Image ();
2501 image_set_source (Image
*instance
, ImageSource
*source
)
2503 if (instance
== NULL
)
2506 instance
->SetSource (source
);
2514 image_brush_new (void)
2516 return new ImageBrush ();
2524 image_source_new (void)
2526 return new ImageSource ();
2534 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2536 if (instance
== NULL
)
2539 instance
->ReportDecodeFrameCompleted (frame
);
2544 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2546 if (instance
== NULL
)
2549 instance
->ReportOpenDecoderCompleted ();
2554 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2556 if (instance
== NULL
)
2559 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2567 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2569 if (instance
== NULL
)
2572 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2577 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2579 if (instance
== NULL
)
2582 instance
->ReportGetFrameCompleted (frame
);
2587 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2589 if (instance
== NULL
)
2592 instance
->ReportGetFrameProgress (bufferingProgress
);
2597 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2599 if (instance
== NULL
)
2602 instance
->ReportOpenDemuxerCompleted ();
2607 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2609 if (instance
== NULL
)
2612 instance
->ReportSeekCompleted (pts
);
2617 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2619 if (instance
== NULL
)
2622 instance
->ReportSwitchMediaStreamCompleted (stream
);
2630 imedia_object_get_media_reffed (IMediaObject
*instance
)
2632 if (instance
== NULL
)
2635 return instance
->GetMediaReffed ();
2640 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2642 if (instance
== NULL
)
2645 instance
->ReportErrorOccurred (message
);
2653 imedia_stream_get_codec (IMediaStream
*instance
)
2655 if (instance
== NULL
)
2658 return instance
->GetCodec ();
2663 imedia_stream_get_codec_id (IMediaStream
*instance
)
2665 if (instance
== NULL
)
2666 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2669 return instance
->GetCodecId ();
2674 imedia_stream_get_duration (IMediaStream
*instance
)
2676 if (instance
== NULL
)
2677 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2680 return instance
->GetDuration ();
2685 imedia_stream_get_extra_data (IMediaStream
*instance
)
2687 if (instance
== NULL
)
2690 return instance
->GetExtraData ();
2695 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2697 if (instance
== NULL
)
2698 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2701 return instance
->GetExtraDataSize ();
2706 imedia_stream_get_stream_type (IMediaStream
*instance
)
2708 if (instance
== NULL
)
2709 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2710 return (MediaStreamType
) 0;
2712 return instance
->GetStreamType ();
2717 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2719 if (instance
== NULL
)
2722 instance
->SetCodecId (value
);
2727 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2729 if (instance
== NULL
)
2732 instance
->SetDuration (value
);
2737 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2739 if (instance
== NULL
)
2742 instance
->SetExtraData (value
);
2747 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2749 if (instance
== NULL
)
2752 instance
->SetExtraDataSize (value
);
2760 ink_presenter_new (void)
2762 return new InkPresenter ();
2772 return new Inline ();
2780 inline_collection_new (void)
2782 return new InlineCollection ();
2790 input_method_new (void)
2792 return new InputMethod ();
2800 item_collection_new (void)
2802 return new ItemCollection ();
2810 keyboard_get_modifiers (void)
2812 return Keyboard::GetModifiers ();
2820 key_event_args_get_key (KeyEventArgs
*instance
)
2822 if (instance
== NULL
)
2823 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2826 return instance
->GetKey ();
2831 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2833 if (instance
== NULL
)
2834 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2837 return instance
->GetPlatformKeyCode ();
2842 key_event_args_new (void)
2844 return new KeyEventArgs ();
2849 * KeyFrameCollection
2851 KeyFrameCollection
*
2852 key_frame_collection_new (void)
2854 return new KeyFrameCollection ();
2862 key_spline_new (void)
2864 return new KeySpline ();
2879 * LinearColorKeyFrame
2881 LinearColorKeyFrame
*
2882 linear_color_key_frame_new (void)
2884 return new LinearColorKeyFrame ();
2889 * LinearDoubleKeyFrame
2891 LinearDoubleKeyFrame
*
2892 linear_double_key_frame_new (void)
2894 return new LinearDoubleKeyFrame ();
2899 * LinearGradientBrush
2901 LinearGradientBrush
*
2902 linear_gradient_brush_new (void)
2904 return new LinearGradientBrush ();
2909 * LinearPointKeyFrame
2911 LinearPointKeyFrame
*
2912 linear_point_key_frame_new (void)
2914 return new LinearPointKeyFrame ();
2922 line_break_new (void)
2924 return new LineBreak ();
2932 line_geometry_new (void)
2934 return new LineGeometry ();
2942 line_segment_new (void)
2944 return new LineSegment ();
2949 * LogReadyRoutedEventArgs
2951 LogReadyRoutedEventArgs
*
2952 log_ready_routed_event_args_new (void)
2954 return new LogReadyRoutedEventArgs ();
2962 matrix_get_matrix_values (Matrix
*instance
)
2964 if (instance
== NULL
)
2967 return instance
->GetMatrixValues ();
2974 return new Matrix ();
2982 matrix3_d_get_matrix_values (Matrix3D
*instance
)
2984 if (instance
== NULL
)
2985 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2986 return (gpointer
) 0;
2988 return instance
->GetMatrixValues ();
2993 matrix3_d_new (void)
2995 return new Matrix3D ();
3000 * Matrix3DProjection
3002 Matrix3DProjection
*
3003 matrix3_dprojection_new (void)
3005 return new Matrix3DProjection ();
3013 matrix_transform_new (void)
3015 return new MatrixTransform ();
3023 media_register_decoder (DecoderInfo
*info
)
3025 Media::RegisterDecoder (info
);
3033 media_attribute_new (void)
3035 return new MediaAttribute ();
3040 * MediaAttributeCollection
3043 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
3045 if (instance
== NULL
)
3048 return instance
->GetItemByName (name
);
3052 MediaAttributeCollection
*
3053 media_attribute_collection_new (void)
3055 return new MediaAttributeCollection ();
3063 media_base_new (void)
3065 return new MediaBase ();
3070 media_base_set_source (MediaBase
*instance
, const char *uri
)
3072 if (instance
== NULL
)
3075 instance
->SetSource (uri
);
3083 media_element_new (void)
3085 return new MediaElement ();
3090 media_element_pause (MediaElement
*instance
)
3092 if (instance
== NULL
)
3100 media_element_play (MediaElement
*instance
)
3102 if (instance
== NULL
)
3110 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
3112 if (instance
== NULL
)
3115 instance
->ReportErrorOccurred (args
);
3120 media_element_set_demuxer_source (MediaElement
*instance
, void *context
, CloseDemuxerCallback close_demuxer
, GetDiagnosticAsyncCallback get_diagnostic
, GetFrameAsyncCallback get_sample
, OpenDemuxerAsyncCallback open_demuxer
, SeekAsyncCallback seek
, SwitchMediaStreamAsyncCallback switch_media_stream
)
3122 if (instance
== NULL
)
3125 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3130 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3132 if (instance
== NULL
)
3135 instance
->SetStreamSource (stream
);
3140 media_element_stop (MediaElement
*instance
)
3142 if (instance
== NULL
)
3153 media_frame_add_state (MediaFrame
*instance
, int state
)
3155 if (instance
== NULL
)
3158 instance
->AddState ((MediaFrameState
) state
);
3163 media_frame_get_buffer (MediaFrame
*instance
)
3165 if (instance
== NULL
)
3168 return instance
->GetBuffer ();
3173 media_frame_get_buf_len (MediaFrame
*instance
)
3175 if (instance
== NULL
)
3176 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3179 return instance
->GetBufLen ();
3184 media_frame_get_height (MediaFrame
*instance
)
3186 if (instance
== NULL
)
3187 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3190 return instance
->GetHeight ();
3195 media_frame_get_pts (MediaFrame
*instance
)
3197 if (instance
== NULL
)
3198 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3201 return instance
->GetPts ();
3206 media_frame_get_width (MediaFrame
*instance
)
3208 if (instance
== NULL
)
3209 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3212 return instance
->GetWidth ();
3217 media_frame_is_key_frame (MediaFrame
*instance
)
3219 if (instance
== NULL
)
3222 return instance
->IsKeyFrame ();
3227 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3229 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3234 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3236 if (instance
== NULL
)
3239 instance
->SetBuffer (value
);
3244 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3246 if (instance
== NULL
)
3249 instance
->SetBufLen (value
);
3254 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3256 if (instance
== NULL
)
3259 instance
->SetDataStride (a
, b
, c
, d
);
3264 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3266 if (instance
== NULL
)
3269 instance
->SetDecoderSpecificData (value
);
3274 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3276 if (instance
== NULL
)
3279 instance
->SetHeight (value
);
3284 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3286 if (instance
== NULL
)
3289 instance
->SetPts (value
);
3294 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3296 if (instance
== NULL
)
3299 instance
->SetSrcSlideH (value
);
3304 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3306 if (instance
== NULL
)
3309 instance
->SetSrcSlideY (value
);
3314 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3316 if (instance
== NULL
)
3319 instance
->SetSrcStride (a
, b
, c
, d
);
3324 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3326 if (instance
== NULL
)
3329 instance
->SetWidth (value
);
3337 moon_window_get_transparent (MoonWindow
*instance
)
3339 if (instance
== NULL
)
3342 return instance
->GetTransparent ();
3347 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3349 if (instance
== NULL
)
3352 instance
->SetTransparent (flag
);
3360 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3362 if (instance
== NULL
)
3365 return instance
->GetNativeWidget ();
3370 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
, Surface
*surface
)
3372 return new MoonWindowGtk (fullscreen
, w
, h
, parent
, surface
);
3377 * MouseButtonEventArgs
3379 MouseButtonEventArgs
*
3380 mouse_button_event_args_new (void)
3382 return new MouseButtonEventArgs ();
3390 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3392 if (instance
== NULL
)
3395 instance
->GetPosition (relative_to
, x
, y
);
3400 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3402 if (instance
== NULL
)
3405 return instance
->GetStylusInfo ();
3409 StylusPointCollection
*
3410 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3412 if (instance
== NULL
)
3415 return instance
->GetStylusPoints (ink_presenter
);
3420 mouse_event_args_new (void)
3422 return new MouseEventArgs ();
3427 * MouseWheelEventArgs
3430 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3432 if (instance
== NULL
)
3433 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3436 return instance
->GetWheelDelta ();
3440 MouseWheelEventArgs
*
3441 mouse_wheel_event_args_new (void)
3443 return new MouseWheelEventArgs ();
3451 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3453 if (instance
== NULL
)
3454 return Point (0, 0);
3456 return instance
->ElementToLogicalPoint (elementPoint
);
3461 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3463 if (instance
== NULL
)
3466 instance
->EmitImageFailed ();
3471 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3473 if (instance
== NULL
)
3476 instance
->EmitImageOpenFailed ();
3481 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3483 if (instance
== NULL
)
3486 instance
->EmitMotionFinished ();
3491 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3493 if (instance
== NULL
)
3496 instance
->HandleDzParsed ();
3501 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3503 if (instance
== NULL
)
3506 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3511 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3513 if (instance
== NULL
)
3514 return Point (0, 0);
3516 return instance
->LogicalToElementPoint (logicalPoint
);
3521 multi_scale_image_new (void)
3523 return new MultiScaleImage ();
3528 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3530 if (instance
== NULL
)
3533 instance
->OnSourcePropertyChanged ();
3538 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3540 if (instance
== NULL
)
3543 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3548 * MultiScaleSubImage
3551 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3553 if (instance
== NULL
)
3554 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3557 return instance
->GetZIndex ();
3561 MultiScaleSubImage
*
3562 multi_scale_sub_image_new (void)
3564 return new MultiScaleSubImage ();
3569 * MultiScaleSubImageCollection
3571 MultiScaleSubImageCollection
*
3572 multi_scale_sub_image_collection_new (void)
3574 return new MultiScaleSubImageCollection ();
3579 * MultiScaleTileSource
3582 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3584 if (instance
== NULL
)
3587 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3591 MultiScaleTileSource
*
3592 multi_scale_tile_source_new (void)
3594 return new MultiScaleTileSource ();
3599 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3601 if (instance
== NULL
)
3604 instance
->set_image_uri_func (func
);
3612 name_scope_new (void)
3614 return new NameScope ();
3619 * ObjectAnimationUsingKeyFrames
3621 ObjectAnimationUsingKeyFrames
*
3622 object_animation_using_key_frames_new (void)
3624 return new ObjectAnimationUsingKeyFrames ();
3632 object_key_frame_new (void)
3634 return new ObjectKeyFrame ();
3639 * ObjectKeyFrameCollection
3641 ObjectKeyFrameCollection
*
3642 object_key_frame_collection_new (void)
3644 return new ObjectKeyFrameCollection ();
3649 * OutOfBrowserSettings
3651 OutOfBrowserSettings
*
3652 out_of_browser_settings_new (void)
3654 return new OutOfBrowserSettings ();
3664 return new Panel ();
3672 parallel_timeline_new (void)
3674 return new ParallelTimeline ();
3682 password_box_new (void)
3684 return new PasswordBox ();
3702 path_figure_new (void)
3704 return new PathFigure ();
3709 * PathFigureCollection
3711 PathFigureCollection
*
3712 path_figure_collection_new (void)
3714 return new PathFigureCollection ();
3722 path_geometry_new (void)
3724 return new PathGeometry ();
3732 path_segment_new (void)
3734 return new PathSegment ();
3739 * PathSegmentCollection
3741 PathSegmentCollection
*
3742 path_segment_collection_new (void)
3744 return new PathSegmentCollection ();
3752 pixel_shader_new (void)
3754 return new PixelShader ();
3762 plane_projection_new (void)
3764 return new PlaneProjection ();
3772 point_animation_new (void)
3774 return new PointAnimation ();
3779 * PointAnimationUsingKeyFrames
3781 PointAnimationUsingKeyFrames
*
3782 point_animation_using_key_frames_new (void)
3784 return new PointAnimationUsingKeyFrames ();
3792 point_collection_new (void)
3794 return new PointCollection ();
3802 point_key_frame_new (void)
3804 return new PointKeyFrame ();
3809 * PointKeyFrameCollection
3811 PointKeyFrameCollection
*
3812 point_key_frame_collection_new (void)
3814 return new PointKeyFrameCollection ();
3822 poly_bezier_segment_new (void)
3824 return new PolyBezierSegment ();
3829 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3831 if (instance
== NULL
)
3834 instance
->SetPoints (points
);
3844 return new Polygon ();
3854 return new Polyline ();
3862 poly_line_segment_new (void)
3864 return new PolyLineSegment ();
3869 * PolyQuadraticBezierSegment
3871 PolyQuadraticBezierSegment
*
3872 poly_quadratic_bezier_segment_new (void)
3874 return new PolyQuadraticBezierSegment ();
3884 return new Popup ();
3892 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3894 if (instance
== NULL
)
3895 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3898 return instance
->EaseInCore (normalizedTime
);
3903 power_ease_new (void)
3905 return new PowerEase ();
3913 projection_new (void)
3915 return new Projection ();
3920 * PropertyChangedEventArgs
3923 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3925 if (instance
== NULL
)
3926 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3929 return instance
->GetId ();
3934 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3936 if (instance
== NULL
)
3939 return instance
->GetNewValue ();
3944 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3946 if (instance
== NULL
)
3949 return instance
->GetOldValue ();
3953 DependencyProperty
*
3954 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3956 if (instance
== NULL
)
3959 return instance
->GetProperty ();
3964 * QuadraticBezierSegment
3966 QuadraticBezierSegment
*
3967 quadratic_bezier_segment_new (void)
3969 return new QuadraticBezierSegment ();
3977 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3979 if (instance
== NULL
)
3980 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3983 return instance
->EaseInCore (normalizedTime
);
3988 quadratic_ease_new (void)
3990 return new QuadraticEase ();
3998 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
4000 if (instance
== NULL
)
4001 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4004 return instance
->EaseInCore (normalizedTime
);
4009 quartic_ease_new (void)
4011 return new QuarticEase ();
4019 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
4021 if (instance
== NULL
)
4022 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4025 return instance
->EaseInCore (normalizedTime
);
4030 quintic_ease_new (void)
4032 return new QuinticEase ();
4037 * RadialGradientBrush
4039 RadialGradientBrush
*
4040 radial_gradient_brush_new (void)
4042 return new RadialGradientBrush ();
4050 rectangle_new (void)
4052 return new Rectangle ();
4060 rectangle_geometry_new (void)
4062 return new RectangleGeometry ();
4067 * RenderingEventArgs
4070 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
4072 if (instance
== NULL
)
4073 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4074 return (TimeSpan
) 0;
4076 return instance
->GetRenderingTime ();
4081 * ResourceDictionary
4084 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
4086 if (instance
== NULL
)
4090 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4091 return instance
->AddWithError (key
, value
, error
);
4096 resource_dictionary_clear (ResourceDictionary
*instance
)
4098 if (instance
== NULL
)
4101 return instance
->Clear ();
4106 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
4108 if (instance
== NULL
)
4111 return instance
->ContainsKey (key
);
4116 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
4118 if (instance
== NULL
)
4121 return instance
->Get (key
, exists
);
4126 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
4128 if (instance
== NULL
)
4131 return instance
->Remove (key
);
4135 ResourceDictionary
*
4136 resource_dictionary_new (void)
4138 return new ResourceDictionary ();
4143 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
4145 if (instance
== NULL
)
4148 return instance
->Set (key
, value
);
4153 * ResourceDictionaryCollection
4155 ResourceDictionaryCollection
*
4156 resource_dictionary_collection_new (void)
4158 return new ResourceDictionaryCollection ();
4163 * ResourceDictionaryIterator
4166 resource_dictionary_iterator_get_current_key (ResourceDictionaryIterator
*instance
, int *err
)
4168 if (instance
== NULL
)
4171 return instance
->GetCurrentKey ((CollectionIteratorError
*) err
);
4179 rotate_transform_new (void)
4181 return new RotateTransform ();
4189 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4191 if (instance
== NULL
)
4194 return instance
->GetHandled ();
4199 routed_event_args_get_source (RoutedEventArgs
*instance
)
4201 if (instance
== NULL
)
4204 return instance
->GetSource ();
4209 routed_event_args_new (void)
4211 return new RoutedEventArgs ();
4216 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4218 if (instance
== NULL
)
4221 instance
->SetHandled (handled
);
4226 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4228 if (instance
== NULL
)
4231 instance
->SetSource (el
);
4239 row_definition_new (void)
4241 return new RowDefinition ();
4246 * RowDefinitionCollection
4248 RowDefinitionCollection
*
4249 row_definition_collection_new (void)
4251 return new RowDefinitionCollection ();
4269 scale_transform_new (void)
4271 return new ScaleTransform ();
4281 return new Setter ();
4289 setter_base_new (void)
4291 return new SetterBase ();
4296 * SetterBaseCollection
4298 SetterBaseCollection
*
4299 setter_base_collection_new (void)
4301 return new SetterBaseCollection ();
4309 shader_effect_new (void)
4311 return new ShaderEffect ();
4319 shape_get_geometry_transform (Shape
*instance
)
4321 if (instance
== NULL
)
4324 return instance
->GetGeometryTransform ();
4331 return new Shape ();
4339 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4341 if (instance
== NULL
)
4342 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4345 return instance
->EaseInCore (normalizedTime
);
4350 sine_ease_new (void)
4352 return new SineEase ();
4357 * SizeChangedEventArgs
4359 SizeChangedEventArgs
*
4360 size_changed_event_args_new (void)
4362 return new SizeChangedEventArgs ();
4370 skew_transform_new (void)
4372 return new SkewTransform ();
4380 solid_color_brush_new (void)
4382 return new SolidColorBrush ();
4387 * SplineColorKeyFrame
4389 SplineColorKeyFrame
*
4390 spline_color_key_frame_new (void)
4392 return new SplineColorKeyFrame ();
4397 * SplineDoubleKeyFrame
4399 SplineDoubleKeyFrame
*
4400 spline_double_key_frame_new (void)
4402 return new SplineDoubleKeyFrame ();
4407 * SplinePointKeyFrame
4409 SplinePointKeyFrame
*
4410 spline_point_key_frame_new (void)
4412 return new SplinePointKeyFrame ();
4420 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4422 if (instance
== NULL
)
4426 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4427 return instance
->BeginWithError (error
);
4432 storyboard_get_current_state (Storyboard
*instance
)
4434 if (instance
== NULL
)
4435 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4438 return instance
->GetCurrentState ();
4443 storyboard_get_current_time (Storyboard
*instance
)
4445 if (instance
== NULL
)
4446 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4447 return (TimeSpan
) 0;
4449 return instance
->GetCurrentTime ();
4453 DependencyProperty
*
4454 storyboard_get_target_dependency_property (Storyboard
*instance
)
4456 if (instance
== NULL
)
4459 return instance
->GetTargetDependencyProperty ();
4464 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4466 if (instance
== NULL
)
4470 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4471 instance
->PauseWithError (error
);
4476 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4478 if (instance
== NULL
)
4482 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4483 instance
->ResumeWithError (error
);
4488 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4490 if (instance
== NULL
)
4494 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4495 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4500 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4502 if (instance
== NULL
)
4506 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4507 instance
->SeekWithError (timespan
, error
);
4512 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4514 if (instance
== NULL
)
4518 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4519 instance
->SkipToFillWithError (error
);
4524 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4526 if (instance
== NULL
)
4530 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4531 instance
->StopWithError (error
);
4536 storyboard_new (void)
4538 return new Storyboard ();
4546 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4548 if (instance
== NULL
)
4551 return instance
->HitTest (stylusPoints
);
4558 return new Stroke ();
4566 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4568 if (instance
== NULL
)
4571 return instance
->HitTest (stylusPoints
);
4576 stroke_collection_new (void)
4578 return new StrokeCollection ();
4586 style_seal (Style
*instance
)
4588 if (instance
== NULL
)
4598 return new Style ();
4606 stylus_info_new (void)
4608 return new StylusInfo ();
4616 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4618 if (instance
== NULL
)
4619 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4622 return instance
->GetPressureFactor ();
4627 stylus_point_get_x (StylusPoint
*instance
)
4629 if (instance
== NULL
)
4630 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4633 return instance
->GetX ();
4638 stylus_point_get_y (StylusPoint
*instance
)
4640 if (instance
== NULL
)
4641 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4644 return instance
->GetY ();
4649 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4651 if (instance
== NULL
)
4654 instance
->SetPressureFactor (factor
);
4659 stylus_point_set_x (StylusPoint
*instance
, double x
)
4661 if (instance
== NULL
)
4669 stylus_point_set_y (StylusPoint
*instance
, double y
)
4671 if (instance
== NULL
)
4679 stylus_point_new (void)
4681 return new StylusPoint ();
4686 * StylusPointCollection
4689 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
4691 if (instance
== NULL
)
4692 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4695 return instance
->AddStylusPoints (stylusPointCollection
);
4699 StylusPointCollection
*
4700 stylus_point_collection_new (void)
4702 return new StylusPointCollection ();
4710 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4712 if (instance
== NULL
)
4715 instance
->Attach (toplevel
);
4720 surface_create_downloader (Surface
*instance
)
4722 if (instance
== NULL
)
4725 return instance
->CreateDownloader ();
4730 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4732 if (instance
== NULL
)
4735 instance
->EmitError (number
, code
, message
);
4740 surface_get_background_color (Surface
*instance
)
4742 if (instance
== NULL
)
4745 return instance
->GetBackgroundColor ();
4750 surface_get_focused_element (Surface
*instance
)
4752 if (instance
== NULL
)
4755 return instance
->GetFocusedElement ();
4760 surface_get_full_screen (Surface
*instance
)
4762 if (instance
== NULL
)
4765 return instance
->GetFullScreen ();
4770 surface_get_time_manager (Surface
*instance
)
4772 if (instance
== NULL
)
4775 return instance
->GetTimeManager ();
4780 surface_get_toplevel (Surface
*instance
)
4782 if (instance
== NULL
)
4785 return instance
->GetToplevel ();
4790 surface_get_window (Surface
*instance
)
4792 if (instance
== NULL
)
4795 return instance
->GetWindow ();
4800 surface_in_main_thread (void)
4802 return Surface::InMainThread ();
4807 surface_is_loaded (Surface
*instance
)
4809 if (instance
== NULL
)
4812 return instance
->IsLoaded ();
4817 surface_is_user_initiated_event (Surface
*instance
)
4819 if (instance
== NULL
)
4822 return instance
->IsUserInitiatedEvent ();
4827 surface_is_version_supported (const char *version
)
4829 return Surface::IsVersionSupported (version
);
4834 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4836 if (instance
== NULL
)
4839 instance
->Paint (ctx
, x
, y
, width
, height
);
4844 surface_resize (Surface
*instance
, int width
, int height
)
4846 if (instance
== NULL
)
4849 instance
->Resize (width
, height
);
4854 surface_set_full_screen (Surface
*instance
, bool value
)
4856 if (instance
== NULL
)
4859 instance
->SetFullScreen (value
);
4864 surface_new (MoonWindow
*window
)
4866 return new Surface (window
);
4871 * TabNavigationWalker
4874 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4876 return TabNavigationWalker::Focus (element
, forwards
);
4884 text_block_new (void)
4886 return new TextBlock ();
4896 return new TextBox ();
4904 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4906 if (instance
== NULL
)
4909 instance
->OnGotFocus (args
);
4914 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4916 if (instance
== NULL
)
4919 instance
->OnKeyDown (args
);
4924 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4926 if (instance
== NULL
)
4929 instance
->OnKeyUp (args
);
4934 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4936 if (instance
== NULL
)
4939 instance
->OnLostFocus (args
);
4944 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4946 if (instance
== NULL
)
4949 instance
->OnMouseLeftButtonDown (args
);
4954 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4956 if (instance
== NULL
)
4959 instance
->OnMouseLeftButtonUp (args
);
4964 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4966 if (instance
== NULL
)
4969 instance
->OnMouseMove (args
);
4974 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4976 if (instance
== NULL
)
4979 instance
->PostOnKeyDown (args
);
4984 text_box_base_select_all (TextBoxBase
*instance
)
4986 if (instance
== NULL
)
4989 instance
->SelectAll ();
4994 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
4996 if (instance
== NULL
)
5000 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
5001 return instance
->SelectWithError (start
, length
, error
);
5009 text_box_view_new (void)
5011 return new TextBoxView ();
5016 * TextChangedEventArgs
5018 TextChangedEventArgs
*
5019 text_changed_event_args_new (void)
5021 return new TextChangedEventArgs ();
5029 tile_brush_new (void)
5031 return new TileBrush ();
5039 timeline_get_manual_target (Timeline
*instance
)
5041 if (instance
== NULL
)
5044 return instance
->GetManualTarget ();
5049 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
5051 if (instance
== NULL
)
5054 instance
->SetManualTarget (o
);
5061 return new Timeline ();
5066 * TimelineCollection
5068 TimelineCollection
*
5069 timeline_collection_new (void)
5071 return new TimelineCollection ();
5079 timeline_group_new (void)
5081 return new TimelineGroup ();
5089 timeline_marker_new (void)
5091 return new TimelineMarker ();
5096 * TimelineMarkerCollection
5098 TimelineMarkerCollection
*
5099 timeline_marker_collection_new (void)
5101 return new TimelineMarkerCollection ();
5106 * TimelineMarkerRoutedEventArgs
5109 timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs
*instance
)
5111 if (instance
== NULL
)
5114 return instance
->GetMarker ();
5118 TimelineMarkerRoutedEventArgs
*
5119 timeline_marker_routed_event_args_new (TimelineMarker
*marker
)
5121 return new TimelineMarkerRoutedEventArgs (marker
);
5129 time_manager_add_dispatcher_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5131 if (instance
== NULL
)
5134 instance
->AddDispatcherCall (handler
, tick_data
);
5139 time_manager_add_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5141 if (instance
== NULL
)
5144 instance
->AddTickCall (handler
, tick_data
);
5149 time_manager_add_timeout (TimeManager
*instance
, gint priority
, guint ms_interval
, GSourceFunc func
, gpointer timeout_data
)
5151 if (instance
== NULL
)
5152 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5155 return instance
->AddTimeout (priority
, ms_interval
, func
, timeout_data
);
5160 time_manager_get_maximum_refresh_rate (TimeManager
*instance
)
5162 if (instance
== NULL
)
5163 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5166 return instance
->GetMaximumRefreshRate ();
5171 time_manager_remove_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5173 if (instance
== NULL
)
5176 instance
->RemoveTickCall (handler
, tick_data
);
5181 time_manager_remove_timeout (TimeManager
*instance
, guint timeout_id
)
5183 if (instance
== NULL
)
5186 instance
->RemoveTimeout (timeout_id
);
5191 time_manager_set_maximum_refresh_rate (TimeManager
*instance
, int hz
)
5193 if (instance
== NULL
)
5196 instance
->SetMaximumRefreshRate (hz
);
5204 transform_new (void)
5206 return new Transform ();
5211 * TransformCollection
5213 TransformCollection
*
5214 transform_collection_new (void)
5216 return new TransformCollection ();
5224 transform_group_new (void)
5226 return new TransformGroup ();
5231 * TranslateTransform
5233 TranslateTransform
*
5234 translate_transform_new (void)
5236 return new TranslateTransform ();
5244 trigger_action_fire (TriggerAction
*instance
)
5246 if (instance
== NULL
)
5254 trigger_action_new (void)
5256 return new TriggerAction ();
5261 * TriggerActionCollection
5263 TriggerActionCollection
*
5264 trigger_action_collection_new (void)
5266 return new TriggerActionCollection ();
5274 trigger_base_new (void)
5276 return new TriggerBase ();
5284 trigger_collection_new (void)
5286 return new TriggerCollection ();
5294 types_find (Types
*instance
, int type
)
5296 if (instance
== NULL
)
5299 return instance
->Find ((Type::Kind
) type
);
5304 types_register_type (Types
*instance
, const char *name
, void *gc_handle
, int parent
, bool is_interface
, bool ctor_visible
, int *interfaces
, int interface_count
)
5306 if (instance
== NULL
)
5307 return Type::INVALID
;
5309 return instance
->RegisterType (name
, gc_handle
, (Type::Kind
) parent
, is_interface
, ctor_visible
, (Type::Kind
*) interfaces
, interface_count
);
5316 return new Types ();
5324 uielement_arrange (UIElement
*instance
, Rect finalRect
)
5326 if (instance
== NULL
)
5329 instance
->Arrange (finalRect
);
5334 uielement_capture_mouse (UIElement
*instance
)
5336 if (instance
== NULL
)
5339 return instance
->CaptureMouse ();
5344 uielement_element_added (UIElement
*instance
, UIElement
*obj
)
5346 if (instance
== NULL
)
5349 instance
->ElementAdded (obj
);
5354 uielement_element_removed (UIElement
*instance
, UIElement
*obj
)
5356 if (instance
== NULL
)
5359 instance
->ElementRemoved (obj
);
5364 uielement_find_elements_in_host_coordinates_p (UIElement
*instance
, Point p
, HitTestCollection
*uielement_list
)
5366 if (instance
== NULL
)
5369 instance
->FindElementsInHostCoordinates_p (p
, uielement_list
);
5374 uielement_find_elements_in_host_coordinates_r (UIElement
*instance
, Rect p
, HitTestCollection
*uielement_list
)
5376 if (instance
== NULL
)
5379 instance
->FindElementsInHostCoordinates_r (p
, uielement_list
);
5384 uielement_focus (UIElement
*instance
, bool recurse
)
5386 if (instance
== NULL
)
5389 return instance
->Focus (recurse
);
5394 uielement_get_desired_size (UIElement
*instance
)
5396 if (instance
== NULL
)
5397 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5400 return instance
->GetDesiredSize ();
5405 uielement_get_render_size (UIElement
*instance
)
5407 if (instance
== NULL
)
5408 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5411 return instance
->GetRenderSize ();
5416 uielement_get_subtree_object (UIElement
*instance
)
5418 if (instance
== NULL
)
5421 return instance
->GetSubtreeObject ();
5426 uielement_get_transform_to_uielement_with_error (UIElement
*instance
, UIElement
*to_element
, MoonError
*error
)
5428 if (instance
== NULL
)
5432 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5433 return instance
->GetTransformToUIElementWithError (to_element
, error
);
5438 uielement_get_visual_parent (UIElement
*instance
)
5440 if (instance
== NULL
)
5443 return instance
->GetVisualParent ();
5448 uielement_invalidate (UIElement
*instance
)
5450 if (instance
== NULL
)
5453 instance
->Invalidate ();
5458 uielement_invalidate_arrange (UIElement
*instance
)
5460 if (instance
== NULL
)
5463 instance
->InvalidateArrange ();
5468 uielement_invalidate_measure (UIElement
*instance
)
5470 if (instance
== NULL
)
5473 instance
->InvalidateMeasure ();
5478 uielement_measure (UIElement
*instance
, Size availableSize
)
5480 if (instance
== NULL
)
5483 instance
->Measure (availableSize
);
5488 uielement_release_mouse_capture (UIElement
*instance
)
5490 if (instance
== NULL
)
5493 instance
->ReleaseMouseCapture ();
5498 uielement_set_subtree_object (UIElement
*instance
, DependencyObject
*value
)
5500 if (instance
== NULL
)
5503 instance
->SetSubtreeObject (value
);
5508 uielement_update_layout (UIElement
*instance
)
5510 if (instance
== NULL
)
5513 instance
->UpdateLayout ();
5518 * UIElementCollection
5520 UIElementCollection
*
5521 uielement_collection_new (void)
5523 return new UIElementCollection ();
5531 unmanaged_matrix_new (void)
5533 return new UnmanagedMatrix ();
5541 unmanaged_matrix3_d_new (void)
5543 return new UnmanagedMatrix3D ();
5551 uri_equals (const Uri
*left
, const Uri
*right
)
5553 return Uri::Equals (left
, right
);
5558 uri_free (Uri
*instance
)
5560 if (instance
== NULL
)
5568 uri_get_hash_code (Uri
*instance
)
5570 if (instance
== NULL
)
5571 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5574 return instance
->GetHashCode ();
5579 uri_parse (Uri
*instance
, const char *uri
, bool allow_trailing_sep
)
5581 if (instance
== NULL
)
5584 return instance
->Parse (uri
, allow_trailing_sep
);
5592 user_control_new (void)
5594 return new UserControl ();
5602 video_brush_set_source (VideoBrush
*instance
, MediaElement
*source
)
5604 if (instance
== NULL
)
5607 instance
->SetSource (source
);
5612 video_brush_new (void)
5614 return new VideoBrush ();
5622 video_stream_get_height (VideoStream
*instance
)
5624 if (instance
== NULL
)
5625 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5628 return instance
->GetHeight ();
5633 video_stream_get_width (VideoStream
*instance
)
5635 if (instance
== NULL
)
5636 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5639 return instance
->GetWidth ();
5644 video_stream_new (Media
*media
, int codec_id
, guint32 width
, guint32 height
, guint64 duration
, gpointer extra_data
, guint32 extra_data_size
)
5646 return new VideoStream (media
, codec_id
, width
, height
, duration
, extra_data
, extra_data_size
);
5654 visual_brush_new (void)
5656 return new VisualBrush ();
5664 window_settings_new (void)
5666 return new WindowSettings ();
5674 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap
*instance
, BitmapSource
*source
)
5676 if (instance
== NULL
)
5677 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5678 return (gpointer
) 0;
5680 return instance
->InitializeFromBitmapSource (source
);
5685 writeable_bitmap_lock (WriteableBitmap
*instance
)
5687 if (instance
== NULL
)
5695 writeable_bitmap_render (WriteableBitmap
*instance
, UIElement
*element
, Transform
*transform
)
5697 if (instance
== NULL
)
5700 instance
->Render (element
, transform
);
5705 writeable_bitmap_unlock (WriteableBitmap
*instance
)
5707 if (instance
== NULL
)
5710 instance
->Unlock ();
5715 writeable_bitmap_new (void)
5717 return new WriteableBitmap ();
5725 xaml_context_get_template_binding_source (XamlContext
*instance
)
5727 if (instance
== NULL
)
5730 return instance
->GetTemplateBindingSource ();
5738 xaml_loader_create_from_file_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, MoonError
*error
)
5740 if (instance
== NULL
)
5744 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5745 return instance
->CreateFromFileWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, error
);
5750 xaml_loader_create_from_string_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5752 if (instance
== NULL
)
5756 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5757 return instance
->CreateFromStringWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5762 xaml_loader_get_context (XamlLoader
*instance
)
5764 if (instance
== NULL
)
5767 return instance
->GetContext ();
5772 xaml_loader_hydrate_from_string_with_error (XamlLoader
*instance
, const char *xaml
, Value
*obj
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5774 if (instance
== NULL
)
5778 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5779 return instance
->HydrateFromStringWithError (xaml
, obj
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5787 xap_unpack (const char *fname
)
5789 return Xap::Unpack (fname
);