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 *error
)
914 if (instance
== NULL
)
917 return instance
->GetCurrent (error
);
922 collection_iterator_next (CollectionIterator
*instance
)
924 if (instance
== NULL
)
925 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
928 return instance
->Next ();
933 collection_iterator_reset (CollectionIterator
*instance
)
935 if (instance
== NULL
)
938 return instance
->Reset ();
946 color_animation_new (void)
948 return new ColorAnimation ();
953 * ColorAnimationUsingKeyFrames
955 ColorAnimationUsingKeyFrames
*
956 color_animation_using_key_frames_new (void)
958 return new ColorAnimationUsingKeyFrames ();
966 color_key_frame_new (void)
968 return new ColorKeyFrame ();
973 * ColorKeyFrameCollection
975 ColorKeyFrameCollection
*
976 color_key_frame_collection_new (void)
978 return new ColorKeyFrameCollection ();
986 column_definition_new (void)
988 return new ColumnDefinition ();
993 * ColumnDefinitionCollection
995 ColumnDefinitionCollection
*
996 column_definition_collection_new (void)
998 return new ColumnDefinitionCollection ();
1003 * ContentChangedEventArgs
1006 content_changed_event_args_get_new_content (ContentChangedEventArgs
*instance
)
1008 if (instance
== NULL
)
1011 return instance
->GetNewContent ();
1016 content_changed_event_args_get_old_content (ContentChangedEventArgs
*instance
)
1018 if (instance
== NULL
)
1021 return instance
->GetOldContent ();
1029 content_control_new (void)
1031 return new ContentControl ();
1036 content_control_get_content_sets_parent (ContentControl
*instance
)
1038 if (instance
== NULL
)
1041 return instance
->GetContentSetsParent ();
1046 content_control_set_content_sets_parent (ContentControl
*instance
, bool value
)
1048 if (instance
== NULL
)
1051 instance
->SetContentSetsParent (value
);
1061 return new Control ();
1066 control_get_template_child (Control
*instance
, const char *name
)
1068 if (instance
== NULL
)
1071 return instance
->GetTemplateChild (name
);
1079 control_template_new (void)
1081 return new ControlTemplate ();
1089 cubic_ease_new (void)
1091 return new CubicEase ();
1096 cubic_ease_ease_in_core (CubicEase
*instance
, double normalizedTime
)
1098 if (instance
== NULL
)
1099 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1102 return instance
->EaseInCore (normalizedTime
);
1107 * CursorPositionChangedEventArgs
1109 CursorPositionChangedEventArgs
*
1110 cursor_position_changed_event_args_new (void)
1112 return new CursorPositionChangedEventArgs ();
1117 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs
*instance
)
1119 if (instance
== NULL
)
1120 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1123 return instance
->GetCursorHeight ();
1128 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs
*instance
)
1130 if (instance
== NULL
)
1131 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1134 return instance
->GetCursorX ();
1139 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs
*instance
)
1141 if (instance
== NULL
)
1142 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1145 return instance
->GetCursorY ();
1153 data_template_new (void)
1155 return new DataTemplate ();
1160 * DeepZoomImageTileSource
1162 DeepZoomImageTileSource
*
1163 deep_zoom_image_tile_source_new (void)
1165 return new DeepZoomImageTileSource ();
1173 dependency_object_add_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
, gpointer closure
)
1175 if (instance
== NULL
)
1178 instance
->AddPropertyChangeHandler (property
, cb
, closure
);
1183 dependency_object_clear_value (DependencyObject
*instance
, DependencyProperty
*property
, bool notify_listeners
, MoonError
*error
)
1185 if (instance
== NULL
)
1189 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1190 instance
->ClearValue (property
, notify_listeners
, error
);
1195 dependency_object_new (void)
1197 return new DependencyObject ();
1202 dependency_object_find_name (DependencyObject
*instance
, const char *name
, int *element_kind
)
1204 if (instance
== NULL
)
1207 return instance
->FindName (name
, (Type::Kind
*) element_kind
);
1212 dependency_object_get_name (DependencyObject
*instance
)
1214 if (instance
== NULL
)
1217 return instance
->GetName ();
1222 dependency_object_get_template_owner (DependencyObject
*instance
)
1224 if (instance
== NULL
)
1227 return instance
->GetTemplateOwner ();
1232 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1234 if (instance
== NULL
)
1238 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1239 return instance
->GetValueNoDefaultWithError (property
, error
);
1244 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1246 if (instance
== NULL
)
1250 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1251 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1256 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1258 if (instance
== NULL
)
1262 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1263 return instance
->ReadLocalValueWithError (property
, error
);
1268 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1270 if (instance
== NULL
)
1273 instance
->RemovePropertyChangeHandler (property
, cb
);
1278 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1280 if (instance
== NULL
)
1283 instance
->SetName (name
);
1288 dependency_object_set_parent_safe (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1290 if (instance
== NULL
)
1294 g_warning ("Moonlight: Called dependency_object_set_parent_safe () with error == NULL.");
1295 instance
->SetParentSafe (parent
, error
);
1300 dependency_object_set_template_owner (DependencyObject
*instance
, DependencyObject
*value
)
1302 if (instance
== NULL
)
1305 instance
->SetTemplateOwner (value
);
1310 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1312 if (instance
== NULL
)
1316 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1317 return instance
->SetValueWithError (property
, value
, error
);
1322 * DependencyObjectCollection
1324 DependencyObjectCollection
*
1325 dependency_object_collection_new (void)
1327 return new DependencyObjectCollection ();
1332 * DependencyProperty
1335 dependency_property_get_default_value (DependencyProperty
*instance
)
1337 if (instance
== NULL
)
1340 return instance
->GetDefaultValue ();
1344 DependencyProperty
*
1345 dependency_property_get_dependency_property (int type
, const char *name
)
1347 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1351 DependencyProperty
*
1352 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1354 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1359 dependency_property_get_name (DependencyProperty
*instance
)
1361 if (instance
== NULL
)
1364 return instance
->GetName ();
1369 dependency_property_get_property_type (DependencyProperty
*instance
)
1371 if (instance
== NULL
)
1372 return Type::INVALID
;
1374 return instance
->GetPropertyType ();
1379 dependency_property_is_attached (DependencyProperty
*instance
)
1381 if (instance
== NULL
)
1384 return instance
->IsAttached ();
1389 dependency_property_is_nullable (DependencyProperty
*instance
)
1391 if (instance
== NULL
)
1394 return instance
->IsNullable ();
1399 dependency_property_is_read_only (DependencyProperty
*instance
)
1401 if (instance
== NULL
)
1404 return instance
->IsReadOnly ();
1408 DependencyProperty
*
1409 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1411 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1415 DependencyProperty
*
1416 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1418 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1423 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1425 if (instance
== NULL
)
1428 instance
->SetIsNullable (value
);
1433 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1435 if (instance
== NULL
)
1438 instance
->SetPropertyChangedCallback (changed_callback
);
1446 deployment_new (void)
1448 return new Deployment ();
1453 deployment_get_current (void)
1455 return Deployment::GetCurrent ();
1460 deployment_get_surface_reffed (Deployment
*instance
)
1462 if (instance
== NULL
)
1465 return instance
->GetSurfaceReffed ();
1470 deployment_get_types (Deployment
*instance
)
1472 if (instance
== NULL
)
1475 return instance
->GetTypes ();
1480 deployment_set_current (Deployment
*value
)
1482 Deployment::SetCurrent (value
);
1487 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1489 if (instance
== NULL
)
1492 instance
->SetCurrentApplication (value
);
1497 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1499 if (instance
== NULL
)
1502 instance
->SetIsLoadedFromXap (flag
);
1507 * DiscreteColorKeyFrame
1509 DiscreteColorKeyFrame
*
1510 discrete_color_key_frame_new (void)
1512 return new DiscreteColorKeyFrame ();
1517 * DiscreteDoubleKeyFrame
1519 DiscreteDoubleKeyFrame
*
1520 discrete_double_key_frame_new (void)
1522 return new DiscreteDoubleKeyFrame ();
1527 * DiscreteObjectKeyFrame
1529 DiscreteObjectKeyFrame
*
1530 discrete_object_key_frame_new (void)
1532 return new DiscreteObjectKeyFrame ();
1537 * DiscretePointKeyFrame
1539 DiscretePointKeyFrame
*
1540 discrete_point_key_frame_new (void)
1542 return new DiscretePointKeyFrame ();
1550 dispatcher_timer_new (void)
1552 return new DispatcherTimer ();
1557 dispatcher_timer_start (DispatcherTimer
*instance
)
1559 if (instance
== NULL
)
1567 dispatcher_timer_stop (DispatcherTimer
*instance
)
1569 if (instance
== NULL
)
1580 double_animation_new (void)
1582 return new DoubleAnimation ();
1587 * DoubleAnimationUsingKeyFrames
1589 DoubleAnimationUsingKeyFrames
*
1590 double_animation_using_key_frames_new (void)
1592 return new DoubleAnimationUsingKeyFrames ();
1600 double_collection_new (void)
1602 return new DoubleCollection ();
1610 double_key_frame_new (void)
1612 return new DoubleKeyFrame ();
1617 * DoubleKeyFrameCollection
1619 DoubleKeyFrameCollection
*
1620 double_key_frame_collection_new (void)
1622 return new DoubleKeyFrameCollection ();
1630 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1632 if (instance
== NULL
)
1635 return instance
->CreateWebRequest (method
, uri
);
1640 downloader_new (void)
1642 return new Downloader ();
1647 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1649 if (instance
== NULL
)
1652 instance
->NotifyFailed (msg
);
1657 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1659 if (instance
== NULL
)
1662 instance
->NotifyFinished (final_uri
);
1667 downloader_notify_size (Downloader
*instance
, gint64 size
)
1669 if (instance
== NULL
)
1672 instance
->NotifySize (size
);
1677 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
)
1679 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1684 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1686 if (instance
== NULL
)
1689 instance
->Write (buf
, offset
, n
);
1697 downloader_request_free (DownloaderRequest
*instance
)
1704 downloader_request_abort (DownloaderRequest
*instance
)
1706 if (instance
== NULL
)
1713 DownloaderResponse
*
1714 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1716 if (instance
== NULL
)
1719 return instance
->GetDownloaderResponse ();
1724 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1726 if (instance
== NULL
)
1729 return instance
->GetResponse (started
, available
, finished
, context
);
1734 downloader_request_is_aborted (DownloaderRequest
*instance
)
1736 if (instance
== NULL
)
1739 return instance
->IsAborted ();
1744 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1746 if (instance
== NULL
)
1749 instance
->SetBody (body
, size
);
1754 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1756 if (instance
== NULL
)
1759 instance
->SetHttpHeader (name
, value
);
1764 * DownloaderResponse
1767 downloader_response_free (DownloaderResponse
*instance
)
1774 downloader_response_abort (DownloaderResponse
*instance
)
1776 if (instance
== NULL
)
1784 downloader_response_get_response_status (DownloaderResponse
*instance
)
1786 if (instance
== NULL
)
1787 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1790 return instance
->GetResponseStatus ();
1795 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1797 if (instance
== NULL
)
1800 return instance
->GetResponseStatusText ();
1805 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1807 if (instance
== NULL
)
1810 instance
->SetHeaderVisitor (visitor
, context
);
1815 * DownloadProgressEventArgs
1818 download_progress_event_args_get_progress (DownloadProgressEventArgs
*instance
)
1820 if (instance
== NULL
)
1821 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1824 return instance
->GetProgress ();
1832 drawing_attributes_new (void)
1834 return new DrawingAttributes ();
1842 drop_shadow_effect_new (void)
1844 return new DropShadowEffect ();
1849 * EasingColorKeyFrame
1851 EasingColorKeyFrame
*
1852 easing_color_key_frame_new (void)
1854 return new EasingColorKeyFrame ();
1859 * EasingDoubleKeyFrame
1861 EasingDoubleKeyFrame
*
1862 easing_double_key_frame_new (void)
1864 return new EasingDoubleKeyFrame ();
1869 * EasingFunctionBase
1871 EasingFunctionBase
*
1872 easing_function_base_new (void)
1874 return new EasingFunctionBase ();
1879 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1881 if (instance
== NULL
)
1884 instance
->SetEasingFunction (value
);
1889 * EasingPointKeyFrame
1891 EasingPointKeyFrame
*
1892 easing_point_key_frame_new (void)
1894 return new EasingPointKeyFrame ();
1904 return new Effect ();
1912 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
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.
1918 return instance
->EaseInCore (normalizedTime
);
1923 elastic_ease_new (void)
1925 return new ElasticEase ();
1935 return new Ellipse ();
1943 ellipse_geometry_new (void)
1945 return new EllipseGeometry ();
1953 error_event_args_get_error_code (ErrorEventArgs
*instance
)
1955 if (instance
== NULL
)
1956 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1959 return instance
->GetErrorCode ();
1964 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1966 if (instance
== NULL
)
1969 return instance
->GetErrorMessage ();
1974 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1976 if (instance
== NULL
)
1977 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1980 return instance
->GetErrorType ();
1985 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1987 if (instance
== NULL
)
1988 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1989 return (gpointer
) 0;
1991 return instance
->GetMoonError ();
1999 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2001 if (instance
== NULL
)
2002 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2005 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
2010 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2012 if (instance
== NULL
)
2015 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
2020 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
2022 if (instance
== NULL
)
2025 instance
->AddToggleRefNotifier (tr
);
2030 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2032 if (instance
== NULL
)
2033 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2036 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
2041 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
2043 if (instance
== NULL
)
2046 instance
->DoEmitCurrentContext (event_id
, calldata
);
2051 event_object_get_object_type (EventObject
*instance
)
2053 if (instance
== NULL
)
2054 return Type::INVALID
;
2056 return instance
->GetObjectType ();
2061 event_object_get_type_name (EventObject
*instance
)
2063 if (instance
== NULL
)
2066 return instance
->GetTypeName ();
2071 event_object_ref (EventObject
*instance
)
2073 if (instance
== NULL
)
2081 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
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
->RemoveHandler (event_id
, handler
, data
);
2092 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2094 if (instance
== NULL
)
2097 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2102 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2104 if (instance
== NULL
)
2107 instance
->RemoveToggleRefNotifier ();
2112 event_object_set_object_type (EventObject
*instance
, int value
)
2114 if (instance
== NULL
)
2117 instance
->SetObjectType ((Type::Kind
) value
);
2122 event_object_unref (EventObject
*instance
)
2124 if (instance
== NULL
)
2135 event_trigger_new (void)
2137 return new EventTrigger ();
2145 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2147 if (instance
== NULL
)
2148 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2151 return instance
->EaseInCore (normalizedTime
);
2156 exponential_ease_new (void)
2158 return new ExponentialEase ();
2166 extension_part_new (void)
2168 return new ExtensionPart ();
2176 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
)
2178 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2183 * ExternalDecoderInfo
2185 ExternalDecoderInfo
*
2186 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2188 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2196 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2198 if (instance
== NULL
)
2199 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2202 return instance
->AddStream (stream
);
2207 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2209 if (instance
== NULL
)
2212 instance
->ClearCallbacks ();
2217 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2219 if (instance
== NULL
)
2222 instance
->SetCanSeek (value
);
2230 external_part_new (void)
2232 return new ExternalPart ();
2237 * ExternalPartCollection
2239 ExternalPartCollection
*
2240 external_part_collection_new (void)
2242 return new ExternalPartCollection ();
2250 framework_element_apply_template (FrameworkElement
*instance
)
2252 if (instance
== NULL
)
2255 return instance
->ApplyTemplate ();
2260 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2262 if (instance
== NULL
)
2263 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2266 return instance
->ArrangeOverride (finalSize
);
2271 framework_element_new (void)
2273 return new FrameworkElement ();
2278 framework_element_get_logical_parent (FrameworkElement
*instance
)
2280 if (instance
== NULL
)
2283 return instance
->GetLogicalParent ();
2288 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2290 if (instance
== NULL
)
2291 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2294 return instance
->MeasureOverride (availableSize
);
2299 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
, GetDefaultTemplateCallback get_default_template_cb
, LoadedCallback loaded_cb
)
2301 if (instance
== NULL
)
2304 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
, get_default_template_cb
, loaded_cb
);
2309 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2311 if (instance
== NULL
)
2314 instance
->SetDefaultStyle (value
);
2319 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2321 if (instance
== NULL
)
2325 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2326 instance
->SetLogicalParent (logical_parent
, error
);
2334 framework_template_new (void)
2336 return new FrameworkTemplate ();
2341 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2343 if (instance
== NULL
)
2346 return instance
->GetVisualTree (templateBindingSource
);
2354 general_transform_new (void)
2356 return new GeneralTransform ();
2361 general_transform_get_matrix (GeneralTransform
*instance
)
2363 if (instance
== NULL
)
2366 return instance
->GetMatrix ();
2376 return new Geometry ();
2381 geometry_get_bounds (Geometry
*instance
)
2383 if (instance
== NULL
)
2384 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2387 return instance
->GetBounds ();
2392 * GeometryCollection
2394 GeometryCollection
*
2395 geometry_collection_new (void)
2397 return new GeometryCollection ();
2405 geometry_group_new (void)
2407 return new GeometryGroup ();
2417 return new Glyphs ();
2425 gradient_brush_new (void)
2427 return new GradientBrush ();
2435 gradient_stop_new (void)
2437 return new GradientStop ();
2442 * GradientStopCollection
2444 GradientStopCollection
*
2445 gradient_stop_collection_new (void)
2447 return new GradientStopCollection ();
2465 hit_test_collection_new (void)
2467 return new HitTestCollection ();
2485 icon_collection_new (void)
2487 return new IconCollection ();
2497 return new Image ();
2502 image_set_source (Image
*instance
, ImageSource
*source
)
2504 if (instance
== NULL
)
2507 instance
->SetSource (source
);
2515 image_brush_new (void)
2517 return new ImageBrush ();
2525 image_source_new (void)
2527 return new ImageSource ();
2535 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2537 if (instance
== NULL
)
2540 instance
->ReportDecodeFrameCompleted (frame
);
2545 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2547 if (instance
== NULL
)
2550 instance
->ReportOpenDecoderCompleted ();
2555 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2557 if (instance
== NULL
)
2560 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2568 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2570 if (instance
== NULL
)
2573 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2578 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2580 if (instance
== NULL
)
2583 instance
->ReportGetFrameCompleted (frame
);
2588 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2590 if (instance
== NULL
)
2593 instance
->ReportGetFrameProgress (bufferingProgress
);
2598 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2600 if (instance
== NULL
)
2603 instance
->ReportOpenDemuxerCompleted ();
2608 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2610 if (instance
== NULL
)
2613 instance
->ReportSeekCompleted (pts
);
2618 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2620 if (instance
== NULL
)
2623 instance
->ReportSwitchMediaStreamCompleted (stream
);
2631 imedia_object_get_media_reffed (IMediaObject
*instance
)
2633 if (instance
== NULL
)
2636 return instance
->GetMediaReffed ();
2641 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2643 if (instance
== NULL
)
2646 instance
->ReportErrorOccurred (message
);
2654 imedia_stream_get_codec (IMediaStream
*instance
)
2656 if (instance
== NULL
)
2659 return instance
->GetCodec ();
2664 imedia_stream_get_codec_id (IMediaStream
*instance
)
2666 if (instance
== NULL
)
2667 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2670 return instance
->GetCodecId ();
2675 imedia_stream_get_duration (IMediaStream
*instance
)
2677 if (instance
== NULL
)
2678 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2681 return instance
->GetDuration ();
2686 imedia_stream_get_extra_data (IMediaStream
*instance
)
2688 if (instance
== NULL
)
2691 return instance
->GetExtraData ();
2696 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2698 if (instance
== NULL
)
2699 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2702 return instance
->GetExtraDataSize ();
2707 imedia_stream_get_stream_type (IMediaStream
*instance
)
2709 if (instance
== NULL
)
2710 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2711 return (MediaStreamType
) 0;
2713 return instance
->GetStreamType ();
2718 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2720 if (instance
== NULL
)
2723 instance
->SetCodecId (value
);
2728 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2730 if (instance
== NULL
)
2733 instance
->SetDuration (value
);
2738 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2740 if (instance
== NULL
)
2743 instance
->SetExtraData (value
);
2748 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2750 if (instance
== NULL
)
2753 instance
->SetExtraDataSize (value
);
2761 ink_presenter_new (void)
2763 return new InkPresenter ();
2773 return new Inline ();
2781 inline_collection_new (void)
2783 return new InlineCollection ();
2791 input_method_new (void)
2793 return new InputMethod ();
2801 item_collection_new (void)
2803 return new ItemCollection ();
2811 keyboard_get_modifiers (void)
2813 return Keyboard::GetModifiers ();
2821 key_event_args_get_key (KeyEventArgs
*instance
)
2823 if (instance
== NULL
)
2824 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2827 return instance
->GetKey ();
2832 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2834 if (instance
== NULL
)
2835 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2838 return instance
->GetPlatformKeyCode ();
2843 key_event_args_new (void)
2845 return new KeyEventArgs ();
2850 * KeyFrameCollection
2852 KeyFrameCollection
*
2853 key_frame_collection_new (void)
2855 return new KeyFrameCollection ();
2863 key_spline_new (void)
2865 return new KeySpline ();
2880 * LinearColorKeyFrame
2882 LinearColorKeyFrame
*
2883 linear_color_key_frame_new (void)
2885 return new LinearColorKeyFrame ();
2890 * LinearDoubleKeyFrame
2892 LinearDoubleKeyFrame
*
2893 linear_double_key_frame_new (void)
2895 return new LinearDoubleKeyFrame ();
2900 * LinearGradientBrush
2902 LinearGradientBrush
*
2903 linear_gradient_brush_new (void)
2905 return new LinearGradientBrush ();
2910 * LinearPointKeyFrame
2912 LinearPointKeyFrame
*
2913 linear_point_key_frame_new (void)
2915 return new LinearPointKeyFrame ();
2923 line_break_new (void)
2925 return new LineBreak ();
2933 line_geometry_new (void)
2935 return new LineGeometry ();
2943 line_segment_new (void)
2945 return new LineSegment ();
2950 * LogReadyRoutedEventArgs
2952 LogReadyRoutedEventArgs
*
2953 log_ready_routed_event_args_new (void)
2955 return new LogReadyRoutedEventArgs ();
2963 matrix_get_matrix_values (Matrix
*instance
)
2965 if (instance
== NULL
)
2968 return instance
->GetMatrixValues ();
2975 return new Matrix ();
2983 matrix3_d_get_matrix_values (Matrix3D
*instance
)
2985 if (instance
== NULL
)
2986 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2987 return (gpointer
) 0;
2989 return instance
->GetMatrixValues ();
2994 matrix3_d_new (void)
2996 return new Matrix3D ();
3001 * Matrix3DProjection
3003 Matrix3DProjection
*
3004 matrix3_dprojection_new (void)
3006 return new Matrix3DProjection ();
3014 matrix_transform_new (void)
3016 return new MatrixTransform ();
3024 media_register_decoder (DecoderInfo
*info
)
3026 Media::RegisterDecoder (info
);
3034 media_attribute_new (void)
3036 return new MediaAttribute ();
3041 * MediaAttributeCollection
3044 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
3046 if (instance
== NULL
)
3049 return instance
->GetItemByName (name
);
3053 MediaAttributeCollection
*
3054 media_attribute_collection_new (void)
3056 return new MediaAttributeCollection ();
3064 media_base_new (void)
3066 return new MediaBase ();
3071 media_base_set_source (MediaBase
*instance
, const char *uri
)
3073 if (instance
== NULL
)
3076 instance
->SetSource (uri
);
3084 media_element_new (void)
3086 return new MediaElement ();
3091 media_element_pause (MediaElement
*instance
)
3093 if (instance
== NULL
)
3101 media_element_play (MediaElement
*instance
)
3103 if (instance
== NULL
)
3111 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
3113 if (instance
== NULL
)
3116 instance
->ReportErrorOccurred (args
);
3121 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
)
3123 if (instance
== NULL
)
3126 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3131 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3133 if (instance
== NULL
)
3136 instance
->SetStreamSource (stream
);
3141 media_element_stop (MediaElement
*instance
)
3143 if (instance
== NULL
)
3154 media_frame_add_state (MediaFrame
*instance
, int state
)
3156 if (instance
== NULL
)
3159 instance
->AddState ((MediaFrameState
) state
);
3164 media_frame_get_buffer (MediaFrame
*instance
)
3166 if (instance
== NULL
)
3169 return instance
->GetBuffer ();
3174 media_frame_get_buf_len (MediaFrame
*instance
)
3176 if (instance
== NULL
)
3177 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3180 return instance
->GetBufLen ();
3185 media_frame_get_height (MediaFrame
*instance
)
3187 if (instance
== NULL
)
3188 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3191 return instance
->GetHeight ();
3196 media_frame_get_pts (MediaFrame
*instance
)
3198 if (instance
== NULL
)
3199 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3202 return instance
->GetPts ();
3207 media_frame_get_width (MediaFrame
*instance
)
3209 if (instance
== NULL
)
3210 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3213 return instance
->GetWidth ();
3218 media_frame_is_key_frame (MediaFrame
*instance
)
3220 if (instance
== NULL
)
3223 return instance
->IsKeyFrame ();
3228 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3230 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3235 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3237 if (instance
== NULL
)
3240 instance
->SetBuffer (value
);
3245 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3247 if (instance
== NULL
)
3250 instance
->SetBufLen (value
);
3255 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3257 if (instance
== NULL
)
3260 instance
->SetDataStride (a
, b
, c
, d
);
3265 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3267 if (instance
== NULL
)
3270 instance
->SetDecoderSpecificData (value
);
3275 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3277 if (instance
== NULL
)
3280 instance
->SetHeight (value
);
3285 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3287 if (instance
== NULL
)
3290 instance
->SetPts (value
);
3295 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3297 if (instance
== NULL
)
3300 instance
->SetSrcSlideH (value
);
3305 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3307 if (instance
== NULL
)
3310 instance
->SetSrcSlideY (value
);
3315 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3317 if (instance
== NULL
)
3320 instance
->SetSrcStride (a
, b
, c
, d
);
3325 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3327 if (instance
== NULL
)
3330 instance
->SetWidth (value
);
3338 moon_window_get_transparent (MoonWindow
*instance
)
3340 if (instance
== NULL
)
3343 return instance
->GetTransparent ();
3348 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3350 if (instance
== NULL
)
3353 instance
->SetTransparent (flag
);
3361 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3363 if (instance
== NULL
)
3366 return instance
->GetNativeWidget ();
3371 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
, Surface
*surface
)
3373 return new MoonWindowGtk (fullscreen
, w
, h
, parent
, surface
);
3378 * MouseButtonEventArgs
3380 MouseButtonEventArgs
*
3381 mouse_button_event_args_new (void)
3383 return new MouseButtonEventArgs ();
3391 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3393 if (instance
== NULL
)
3396 instance
->GetPosition (relative_to
, x
, y
);
3401 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3403 if (instance
== NULL
)
3406 return instance
->GetStylusInfo ();
3410 StylusPointCollection
*
3411 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3413 if (instance
== NULL
)
3416 return instance
->GetStylusPoints (ink_presenter
);
3421 mouse_event_args_new (void)
3423 return new MouseEventArgs ();
3428 * MouseWheelEventArgs
3431 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3433 if (instance
== NULL
)
3434 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3437 return instance
->GetWheelDelta ();
3441 MouseWheelEventArgs
*
3442 mouse_wheel_event_args_new (void)
3444 return new MouseWheelEventArgs ();
3452 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3454 if (instance
== NULL
)
3455 return Point (0, 0);
3457 return instance
->ElementToLogicalPoint (elementPoint
);
3462 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3464 if (instance
== NULL
)
3467 instance
->EmitImageFailed ();
3472 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3474 if (instance
== NULL
)
3477 instance
->EmitImageOpenFailed ();
3482 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3484 if (instance
== NULL
)
3487 instance
->EmitMotionFinished ();
3492 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3494 if (instance
== NULL
)
3497 instance
->HandleDzParsed ();
3502 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3504 if (instance
== NULL
)
3507 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3512 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3514 if (instance
== NULL
)
3515 return Point (0, 0);
3517 return instance
->LogicalToElementPoint (logicalPoint
);
3522 multi_scale_image_new (void)
3524 return new MultiScaleImage ();
3529 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3531 if (instance
== NULL
)
3534 instance
->OnSourcePropertyChanged ();
3539 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3541 if (instance
== NULL
)
3544 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3549 * MultiScaleSubImage
3552 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3554 if (instance
== NULL
)
3555 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3558 return instance
->GetZIndex ();
3562 MultiScaleSubImage
*
3563 multi_scale_sub_image_new (void)
3565 return new MultiScaleSubImage ();
3570 * MultiScaleSubImageCollection
3572 MultiScaleSubImageCollection
*
3573 multi_scale_sub_image_collection_new (void)
3575 return new MultiScaleSubImageCollection ();
3580 * MultiScaleTileSource
3583 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3585 if (instance
== NULL
)
3588 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3592 MultiScaleTileSource
*
3593 multi_scale_tile_source_new (void)
3595 return new MultiScaleTileSource ();
3600 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3602 if (instance
== NULL
)
3605 instance
->set_image_uri_func (func
);
3613 name_scope_new (void)
3615 return new NameScope ();
3620 * ObjectAnimationUsingKeyFrames
3622 ObjectAnimationUsingKeyFrames
*
3623 object_animation_using_key_frames_new (void)
3625 return new ObjectAnimationUsingKeyFrames ();
3633 object_key_frame_new (void)
3635 return new ObjectKeyFrame ();
3640 * ObjectKeyFrameCollection
3642 ObjectKeyFrameCollection
*
3643 object_key_frame_collection_new (void)
3645 return new ObjectKeyFrameCollection ();
3650 * OutOfBrowserSettings
3652 OutOfBrowserSettings
*
3653 out_of_browser_settings_new (void)
3655 return new OutOfBrowserSettings ();
3665 return new Panel ();
3673 parallel_timeline_new (void)
3675 return new ParallelTimeline ();
3683 password_box_new (void)
3685 return new PasswordBox ();
3703 path_figure_new (void)
3705 return new PathFigure ();
3710 * PathFigureCollection
3712 PathFigureCollection
*
3713 path_figure_collection_new (void)
3715 return new PathFigureCollection ();
3723 path_geometry_new (void)
3725 return new PathGeometry ();
3733 path_segment_new (void)
3735 return new PathSegment ();
3740 * PathSegmentCollection
3742 PathSegmentCollection
*
3743 path_segment_collection_new (void)
3745 return new PathSegmentCollection ();
3753 pixel_shader_new (void)
3755 return new PixelShader ();
3763 plane_projection_new (void)
3765 return new PlaneProjection ();
3773 point_animation_new (void)
3775 return new PointAnimation ();
3780 * PointAnimationUsingKeyFrames
3782 PointAnimationUsingKeyFrames
*
3783 point_animation_using_key_frames_new (void)
3785 return new PointAnimationUsingKeyFrames ();
3793 point_collection_new (void)
3795 return new PointCollection ();
3803 point_key_frame_new (void)
3805 return new PointKeyFrame ();
3810 * PointKeyFrameCollection
3812 PointKeyFrameCollection
*
3813 point_key_frame_collection_new (void)
3815 return new PointKeyFrameCollection ();
3823 poly_bezier_segment_new (void)
3825 return new PolyBezierSegment ();
3830 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3832 if (instance
== NULL
)
3835 instance
->SetPoints (points
);
3845 return new Polygon ();
3855 return new Polyline ();
3863 poly_line_segment_new (void)
3865 return new PolyLineSegment ();
3870 * PolyQuadraticBezierSegment
3872 PolyQuadraticBezierSegment
*
3873 poly_quadratic_bezier_segment_new (void)
3875 return new PolyQuadraticBezierSegment ();
3885 return new Popup ();
3893 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3895 if (instance
== NULL
)
3896 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3899 return instance
->EaseInCore (normalizedTime
);
3904 power_ease_new (void)
3906 return new PowerEase ();
3914 projection_new (void)
3916 return new Projection ();
3921 * PropertyChangedEventArgs
3924 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3926 if (instance
== NULL
)
3927 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3930 return instance
->GetId ();
3935 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3937 if (instance
== NULL
)
3940 return instance
->GetNewValue ();
3945 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3947 if (instance
== NULL
)
3950 return instance
->GetOldValue ();
3954 DependencyProperty
*
3955 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3957 if (instance
== NULL
)
3960 return instance
->GetProperty ();
3965 * QuadraticBezierSegment
3967 QuadraticBezierSegment
*
3968 quadratic_bezier_segment_new (void)
3970 return new QuadraticBezierSegment ();
3978 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3980 if (instance
== NULL
)
3981 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3984 return instance
->EaseInCore (normalizedTime
);
3989 quadratic_ease_new (void)
3991 return new QuadraticEase ();
3999 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
4001 if (instance
== NULL
)
4002 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4005 return instance
->EaseInCore (normalizedTime
);
4010 quartic_ease_new (void)
4012 return new QuarticEase ();
4020 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
4022 if (instance
== NULL
)
4023 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4026 return instance
->EaseInCore (normalizedTime
);
4031 quintic_ease_new (void)
4033 return new QuinticEase ();
4038 * RadialGradientBrush
4040 RadialGradientBrush
*
4041 radial_gradient_brush_new (void)
4043 return new RadialGradientBrush ();
4051 rectangle_new (void)
4053 return new Rectangle ();
4061 rectangle_geometry_new (void)
4063 return new RectangleGeometry ();
4068 * RenderingEventArgs
4071 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
4073 if (instance
== NULL
)
4074 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4075 return (TimeSpan
) 0;
4077 return instance
->GetRenderingTime ();
4082 * ResourceDictionary
4085 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
4087 if (instance
== NULL
)
4091 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4092 return instance
->AddWithError (key
, value
, error
);
4097 resource_dictionary_clear (ResourceDictionary
*instance
)
4099 if (instance
== NULL
)
4102 return instance
->Clear ();
4107 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
4109 if (instance
== NULL
)
4112 return instance
->ContainsKey (key
);
4117 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
4119 if (instance
== NULL
)
4122 return instance
->Get (key
, exists
);
4127 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
4129 if (instance
== NULL
)
4132 return instance
->Remove (key
);
4136 ResourceDictionary
*
4137 resource_dictionary_new (void)
4139 return new ResourceDictionary ();
4144 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
4146 if (instance
== NULL
)
4149 return instance
->Set (key
, value
);
4154 * ResourceDictionaryCollection
4156 ResourceDictionaryCollection
*
4157 resource_dictionary_collection_new (void)
4159 return new ResourceDictionaryCollection ();
4167 rotate_transform_new (void)
4169 return new RotateTransform ();
4177 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4179 if (instance
== NULL
)
4182 return instance
->GetHandled ();
4187 routed_event_args_get_source (RoutedEventArgs
*instance
)
4189 if (instance
== NULL
)
4192 return instance
->GetSource ();
4197 routed_event_args_new (void)
4199 return new RoutedEventArgs ();
4204 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4206 if (instance
== NULL
)
4209 instance
->SetHandled (handled
);
4214 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4216 if (instance
== NULL
)
4219 instance
->SetSource (el
);
4227 row_definition_new (void)
4229 return new RowDefinition ();
4234 * RowDefinitionCollection
4236 RowDefinitionCollection
*
4237 row_definition_collection_new (void)
4239 return new RowDefinitionCollection ();
4257 scale_transform_new (void)
4259 return new ScaleTransform ();
4269 return new Setter ();
4277 setter_base_new (void)
4279 return new SetterBase ();
4284 * SetterBaseCollection
4286 SetterBaseCollection
*
4287 setter_base_collection_new (void)
4289 return new SetterBaseCollection ();
4297 shader_effect_new (void)
4299 return new ShaderEffect ();
4307 shape_get_geometry_transform (Shape
*instance
)
4309 if (instance
== NULL
)
4312 return instance
->GetGeometryTransform ();
4319 return new Shape ();
4327 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4329 if (instance
== NULL
)
4330 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4333 return instance
->EaseInCore (normalizedTime
);
4338 sine_ease_new (void)
4340 return new SineEase ();
4345 * SizeChangedEventArgs
4347 SizeChangedEventArgs
*
4348 size_changed_event_args_new (void)
4350 return new SizeChangedEventArgs ();
4358 skew_transform_new (void)
4360 return new SkewTransform ();
4368 solid_color_brush_new (void)
4370 return new SolidColorBrush ();
4375 * SplineColorKeyFrame
4377 SplineColorKeyFrame
*
4378 spline_color_key_frame_new (void)
4380 return new SplineColorKeyFrame ();
4385 * SplineDoubleKeyFrame
4387 SplineDoubleKeyFrame
*
4388 spline_double_key_frame_new (void)
4390 return new SplineDoubleKeyFrame ();
4395 * SplinePointKeyFrame
4397 SplinePointKeyFrame
*
4398 spline_point_key_frame_new (void)
4400 return new SplinePointKeyFrame ();
4408 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4410 if (instance
== NULL
)
4414 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4415 return instance
->BeginWithError (error
);
4420 storyboard_get_current_state (Storyboard
*instance
)
4422 if (instance
== NULL
)
4423 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4426 return instance
->GetCurrentState ();
4431 storyboard_get_current_time (Storyboard
*instance
)
4433 if (instance
== NULL
)
4434 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4435 return (TimeSpan
) 0;
4437 return instance
->GetCurrentTime ();
4441 DependencyProperty
*
4442 storyboard_get_target_dependency_property (Storyboard
*instance
)
4444 if (instance
== NULL
)
4447 return instance
->GetTargetDependencyProperty ();
4452 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4454 if (instance
== NULL
)
4458 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4459 instance
->PauseWithError (error
);
4464 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4466 if (instance
== NULL
)
4470 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4471 instance
->ResumeWithError (error
);
4476 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4478 if (instance
== NULL
)
4482 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4483 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4488 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4490 if (instance
== NULL
)
4494 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4495 instance
->SeekWithError (timespan
, error
);
4500 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4502 if (instance
== NULL
)
4506 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4507 instance
->SkipToFillWithError (error
);
4512 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4514 if (instance
== NULL
)
4518 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4519 instance
->StopWithError (error
);
4524 storyboard_new (void)
4526 return new Storyboard ();
4534 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4536 if (instance
== NULL
)
4539 return instance
->HitTest (stylusPoints
);
4546 return new Stroke ();
4554 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4556 if (instance
== NULL
)
4559 return instance
->HitTest (stylusPoints
);
4564 stroke_collection_new (void)
4566 return new StrokeCollection ();
4574 style_seal (Style
*instance
)
4576 if (instance
== NULL
)
4586 return new Style ();
4594 stylus_info_new (void)
4596 return new StylusInfo ();
4604 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4606 if (instance
== NULL
)
4607 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4610 return instance
->GetPressureFactor ();
4615 stylus_point_get_x (StylusPoint
*instance
)
4617 if (instance
== NULL
)
4618 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4621 return instance
->GetX ();
4626 stylus_point_get_y (StylusPoint
*instance
)
4628 if (instance
== NULL
)
4629 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4632 return instance
->GetY ();
4637 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4639 if (instance
== NULL
)
4642 instance
->SetPressureFactor (factor
);
4647 stylus_point_set_x (StylusPoint
*instance
, double x
)
4649 if (instance
== NULL
)
4657 stylus_point_set_y (StylusPoint
*instance
, double y
)
4659 if (instance
== NULL
)
4667 stylus_point_new (void)
4669 return new StylusPoint ();
4674 * StylusPointCollection
4677 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
4679 if (instance
== NULL
)
4680 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4683 return instance
->AddStylusPoints (stylusPointCollection
);
4687 StylusPointCollection
*
4688 stylus_point_collection_new (void)
4690 return new StylusPointCollection ();
4698 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4700 if (instance
== NULL
)
4703 instance
->Attach (toplevel
);
4708 surface_create_downloader (Surface
*instance
)
4710 if (instance
== NULL
)
4713 return instance
->CreateDownloader ();
4718 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4720 if (instance
== NULL
)
4723 instance
->EmitError (number
, code
, message
);
4728 surface_get_background_color (Surface
*instance
)
4730 if (instance
== NULL
)
4733 return instance
->GetBackgroundColor ();
4738 surface_get_focused_element (Surface
*instance
)
4740 if (instance
== NULL
)
4743 return instance
->GetFocusedElement ();
4748 surface_get_full_screen (Surface
*instance
)
4750 if (instance
== NULL
)
4753 return instance
->GetFullScreen ();
4758 surface_get_time_manager (Surface
*instance
)
4760 if (instance
== NULL
)
4763 return instance
->GetTimeManager ();
4768 surface_get_toplevel (Surface
*instance
)
4770 if (instance
== NULL
)
4773 return instance
->GetToplevel ();
4778 surface_get_window (Surface
*instance
)
4780 if (instance
== NULL
)
4783 return instance
->GetWindow ();
4788 surface_in_main_thread (void)
4790 return Surface::InMainThread ();
4795 surface_is_loaded (Surface
*instance
)
4797 if (instance
== NULL
)
4800 return instance
->IsLoaded ();
4805 surface_is_user_initiated_event (Surface
*instance
)
4807 if (instance
== NULL
)
4810 return instance
->IsUserInitiatedEvent ();
4815 surface_is_version_supported (const char *version
)
4817 return Surface::IsVersionSupported (version
);
4822 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4824 if (instance
== NULL
)
4827 instance
->Paint (ctx
, x
, y
, width
, height
);
4832 surface_resize (Surface
*instance
, int width
, int height
)
4834 if (instance
== NULL
)
4837 instance
->Resize (width
, height
);
4842 surface_set_full_screen (Surface
*instance
, bool value
)
4844 if (instance
== NULL
)
4847 instance
->SetFullScreen (value
);
4852 surface_new (MoonWindow
*window
)
4854 return new Surface (window
);
4859 * TabNavigationWalker
4862 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4864 return TabNavigationWalker::Focus (element
, forwards
);
4872 text_block_new (void)
4874 return new TextBlock ();
4884 return new TextBox ();
4892 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4894 if (instance
== NULL
)
4897 instance
->OnGotFocus (args
);
4902 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4904 if (instance
== NULL
)
4907 instance
->OnKeyDown (args
);
4912 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4914 if (instance
== NULL
)
4917 instance
->OnKeyUp (args
);
4922 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4924 if (instance
== NULL
)
4927 instance
->OnLostFocus (args
);
4932 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4934 if (instance
== NULL
)
4937 instance
->OnMouseLeftButtonDown (args
);
4942 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4944 if (instance
== NULL
)
4947 instance
->OnMouseLeftButtonUp (args
);
4952 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4954 if (instance
== NULL
)
4957 instance
->OnMouseMove (args
);
4962 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4964 if (instance
== NULL
)
4967 instance
->PostOnKeyDown (args
);
4972 text_box_base_select_all (TextBoxBase
*instance
)
4974 if (instance
== NULL
)
4977 instance
->SelectAll ();
4982 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
4984 if (instance
== NULL
)
4988 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
4989 return instance
->SelectWithError (start
, length
, error
);
4997 text_box_view_new (void)
4999 return new TextBoxView ();
5004 * TextChangedEventArgs
5006 TextChangedEventArgs
*
5007 text_changed_event_args_new (void)
5009 return new TextChangedEventArgs ();
5017 tile_brush_new (void)
5019 return new TileBrush ();
5027 timeline_get_manual_target (Timeline
*instance
)
5029 if (instance
== NULL
)
5032 return instance
->GetManualTarget ();
5037 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
5039 if (instance
== NULL
)
5042 instance
->SetManualTarget (o
);
5049 return new Timeline ();
5054 * TimelineCollection
5056 TimelineCollection
*
5057 timeline_collection_new (void)
5059 return new TimelineCollection ();
5067 timeline_group_new (void)
5069 return new TimelineGroup ();
5077 timeline_marker_new (void)
5079 return new TimelineMarker ();
5084 * TimelineMarkerCollection
5086 TimelineMarkerCollection
*
5087 timeline_marker_collection_new (void)
5089 return new TimelineMarkerCollection ();
5094 * TimelineMarkerRoutedEventArgs
5097 timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs
*instance
)
5099 if (instance
== NULL
)
5102 return instance
->GetMarker ();
5106 TimelineMarkerRoutedEventArgs
*
5107 timeline_marker_routed_event_args_new (TimelineMarker
*marker
)
5109 return new TimelineMarkerRoutedEventArgs (marker
);
5117 time_manager_add_dispatcher_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5119 if (instance
== NULL
)
5122 instance
->AddDispatcherCall (handler
, tick_data
);
5127 time_manager_add_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5129 if (instance
== NULL
)
5132 instance
->AddTickCall (handler
, tick_data
);
5137 time_manager_add_timeout (TimeManager
*instance
, gint priority
, guint ms_interval
, GSourceFunc func
, gpointer timeout_data
)
5139 if (instance
== NULL
)
5140 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5143 return instance
->AddTimeout (priority
, ms_interval
, func
, timeout_data
);
5148 time_manager_get_maximum_refresh_rate (TimeManager
*instance
)
5150 if (instance
== NULL
)
5151 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5154 return instance
->GetMaximumRefreshRate ();
5159 time_manager_remove_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5161 if (instance
== NULL
)
5164 instance
->RemoveTickCall (handler
, tick_data
);
5169 time_manager_remove_timeout (TimeManager
*instance
, guint timeout_id
)
5171 if (instance
== NULL
)
5174 instance
->RemoveTimeout (timeout_id
);
5179 time_manager_set_maximum_refresh_rate (TimeManager
*instance
, int hz
)
5181 if (instance
== NULL
)
5184 instance
->SetMaximumRefreshRate (hz
);
5192 transform_new (void)
5194 return new Transform ();
5199 * TransformCollection
5201 TransformCollection
*
5202 transform_collection_new (void)
5204 return new TransformCollection ();
5212 transform_group_new (void)
5214 return new TransformGroup ();
5219 * TranslateTransform
5221 TranslateTransform
*
5222 translate_transform_new (void)
5224 return new TranslateTransform ();
5232 trigger_action_fire (TriggerAction
*instance
)
5234 if (instance
== NULL
)
5242 trigger_action_new (void)
5244 return new TriggerAction ();
5249 * TriggerActionCollection
5251 TriggerActionCollection
*
5252 trigger_action_collection_new (void)
5254 return new TriggerActionCollection ();
5262 trigger_base_new (void)
5264 return new TriggerBase ();
5272 trigger_collection_new (void)
5274 return new TriggerCollection ();
5282 types_find (Types
*instance
, int type
)
5284 if (instance
== NULL
)
5287 return instance
->Find ((Type::Kind
) type
);
5292 types_register_type (Types
*instance
, const char *name
, void *gc_handle
, int parent
, bool is_interface
, bool ctor_visible
, int *interfaces
, int interface_count
)
5294 if (instance
== NULL
)
5295 return Type::INVALID
;
5297 return instance
->RegisterType (name
, gc_handle
, (Type::Kind
) parent
, is_interface
, ctor_visible
, (Type::Kind
*) interfaces
, interface_count
);
5304 return new Types ();
5312 uielement_arrange (UIElement
*instance
, Rect finalRect
)
5314 if (instance
== NULL
)
5317 instance
->Arrange (finalRect
);
5322 uielement_capture_mouse (UIElement
*instance
)
5324 if (instance
== NULL
)
5327 return instance
->CaptureMouse ();
5332 uielement_element_added (UIElement
*instance
, UIElement
*obj
)
5334 if (instance
== NULL
)
5337 instance
->ElementAdded (obj
);
5342 uielement_element_removed (UIElement
*instance
, UIElement
*obj
)
5344 if (instance
== NULL
)
5347 instance
->ElementRemoved (obj
);
5352 uielement_find_elements_in_host_coordinates_p (UIElement
*instance
, Point p
, HitTestCollection
*uielement_list
)
5354 if (instance
== NULL
)
5357 instance
->FindElementsInHostCoordinates_p (p
, uielement_list
);
5362 uielement_find_elements_in_host_coordinates_r (UIElement
*instance
, Rect p
, HitTestCollection
*uielement_list
)
5364 if (instance
== NULL
)
5367 instance
->FindElementsInHostCoordinates_r (p
, uielement_list
);
5372 uielement_focus (UIElement
*instance
, bool recurse
)
5374 if (instance
== NULL
)
5377 return instance
->Focus (recurse
);
5382 uielement_get_desired_size (UIElement
*instance
)
5384 if (instance
== NULL
)
5385 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5388 return instance
->GetDesiredSize ();
5393 uielement_get_render_size (UIElement
*instance
)
5395 if (instance
== NULL
)
5396 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5399 return instance
->GetRenderSize ();
5404 uielement_get_subtree_object (UIElement
*instance
)
5406 if (instance
== NULL
)
5409 return instance
->GetSubtreeObject ();
5414 uielement_get_transform_to_uielement_with_error (UIElement
*instance
, UIElement
*to_element
, MoonError
*error
)
5416 if (instance
== NULL
)
5420 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5421 return instance
->GetTransformToUIElementWithError (to_element
, error
);
5426 uielement_get_visual_parent (UIElement
*instance
)
5428 if (instance
== NULL
)
5431 return instance
->GetVisualParent ();
5436 uielement_invalidate (UIElement
*instance
)
5438 if (instance
== NULL
)
5441 instance
->Invalidate ();
5446 uielement_invalidate_arrange (UIElement
*instance
)
5448 if (instance
== NULL
)
5451 instance
->InvalidateArrange ();
5456 uielement_invalidate_measure (UIElement
*instance
)
5458 if (instance
== NULL
)
5461 instance
->InvalidateMeasure ();
5466 uielement_measure (UIElement
*instance
, Size availableSize
)
5468 if (instance
== NULL
)
5471 instance
->Measure (availableSize
);
5476 uielement_release_mouse_capture (UIElement
*instance
)
5478 if (instance
== NULL
)
5481 instance
->ReleaseMouseCapture ();
5486 uielement_set_subtree_object (UIElement
*instance
, DependencyObject
*value
)
5488 if (instance
== NULL
)
5491 instance
->SetSubtreeObject (value
);
5496 uielement_update_layout (UIElement
*instance
)
5498 if (instance
== NULL
)
5501 instance
->UpdateLayout ();
5506 * UIElementCollection
5508 UIElementCollection
*
5509 uielement_collection_new (void)
5511 return new UIElementCollection ();
5519 unmanaged_matrix_new (void)
5521 return new UnmanagedMatrix ();
5529 unmanaged_matrix3_d_new (void)
5531 return new UnmanagedMatrix3D ();
5539 uri_equals (const Uri
*left
, const Uri
*right
)
5541 return Uri::Equals (left
, right
);
5546 uri_free (Uri
*instance
)
5548 if (instance
== NULL
)
5556 uri_get_hash_code (Uri
*instance
)
5558 if (instance
== NULL
)
5559 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5562 return instance
->GetHashCode ();
5567 uri_parse (Uri
*instance
, const char *uri
, bool allow_trailing_sep
)
5569 if (instance
== NULL
)
5572 return instance
->Parse (uri
, allow_trailing_sep
);
5580 user_control_new (void)
5582 return new UserControl ();
5590 video_brush_set_source (VideoBrush
*instance
, MediaElement
*source
)
5592 if (instance
== NULL
)
5595 instance
->SetSource (source
);
5600 video_brush_new (void)
5602 return new VideoBrush ();
5610 video_stream_get_height (VideoStream
*instance
)
5612 if (instance
== NULL
)
5613 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5616 return instance
->GetHeight ();
5621 video_stream_get_width (VideoStream
*instance
)
5623 if (instance
== NULL
)
5624 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5627 return instance
->GetWidth ();
5632 video_stream_new (Media
*media
, int codec_id
, guint32 width
, guint32 height
, guint64 duration
, gpointer extra_data
, guint32 extra_data_size
)
5634 return new VideoStream (media
, codec_id
, width
, height
, duration
, extra_data
, extra_data_size
);
5642 visual_brush_new (void)
5644 return new VisualBrush ();
5652 window_settings_new (void)
5654 return new WindowSettings ();
5662 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap
*instance
, BitmapSource
*source
)
5664 if (instance
== NULL
)
5665 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5666 return (gpointer
) 0;
5668 return instance
->InitializeFromBitmapSource (source
);
5673 writeable_bitmap_lock (WriteableBitmap
*instance
)
5675 if (instance
== NULL
)
5683 writeable_bitmap_render (WriteableBitmap
*instance
, UIElement
*element
, Transform
*transform
)
5685 if (instance
== NULL
)
5688 instance
->Render (element
, transform
);
5693 writeable_bitmap_unlock (WriteableBitmap
*instance
)
5695 if (instance
== NULL
)
5698 instance
->Unlock ();
5703 writeable_bitmap_new (void)
5705 return new WriteableBitmap ();
5713 xaml_context_get_template_binding_source (XamlContext
*instance
)
5715 if (instance
== NULL
)
5718 return instance
->GetTemplateBindingSource ();
5726 xaml_loader_create_from_file_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, MoonError
*error
)
5728 if (instance
== NULL
)
5732 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5733 return instance
->CreateFromFileWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, error
);
5738 xaml_loader_create_from_string_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5740 if (instance
== NULL
)
5744 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5745 return instance
->CreateFromStringWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5750 xaml_loader_get_context (XamlLoader
*instance
)
5752 if (instance
== NULL
)
5755 return instance
->GetContext ();
5760 xaml_loader_hydrate_from_string_with_error (XamlLoader
*instance
, const char *xaml
, Value
*obj
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5762 if (instance
== NULL
)
5766 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5767 return instance
->HydrateFromStringWithError (xaml
, obj
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5775 xap_unpack (const char *fname
)
5777 return Xap::Unpack (fname
);