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
, MoonError
*error
)
914 if (instance
== NULL
)
918 g_warning ("Moonlight: Called collection_iterator_get_current () with error == NULL.");
919 return instance
->GetCurrent (error
);
924 collection_iterator_next (CollectionIterator
*instance
, MoonError
*error
)
926 if (instance
== NULL
)
930 g_warning ("Moonlight: Called collection_iterator_next () with error == NULL.");
931 return instance
->Next (error
);
936 collection_iterator_reset (CollectionIterator
*instance
)
938 if (instance
== NULL
)
941 return instance
->Reset ();
949 color_animation_new (void)
951 return new ColorAnimation ();
956 * ColorAnimationUsingKeyFrames
958 ColorAnimationUsingKeyFrames
*
959 color_animation_using_key_frames_new (void)
961 return new ColorAnimationUsingKeyFrames ();
969 color_key_frame_new (void)
971 return new ColorKeyFrame ();
976 * ColorKeyFrameCollection
978 ColorKeyFrameCollection
*
979 color_key_frame_collection_new (void)
981 return new ColorKeyFrameCollection ();
989 column_definition_new (void)
991 return new ColumnDefinition ();
996 * ColumnDefinitionCollection
998 ColumnDefinitionCollection
*
999 column_definition_collection_new (void)
1001 return new ColumnDefinitionCollection ();
1006 * ContentChangedEventArgs
1009 content_changed_event_args_get_new_content (ContentChangedEventArgs
*instance
)
1011 if (instance
== NULL
)
1014 return instance
->GetNewContent ();
1019 content_changed_event_args_get_old_content (ContentChangedEventArgs
*instance
)
1021 if (instance
== NULL
)
1024 return instance
->GetOldContent ();
1032 content_control_new (void)
1034 return new ContentControl ();
1039 content_control_get_content_sets_parent (ContentControl
*instance
)
1041 if (instance
== NULL
)
1044 return instance
->GetContentSetsParent ();
1049 content_control_set_content_sets_parent (ContentControl
*instance
, bool value
)
1051 if (instance
== NULL
)
1054 instance
->SetContentSetsParent (value
);
1064 return new Control ();
1069 control_get_template_child (Control
*instance
, const char *name
)
1071 if (instance
== NULL
)
1074 return instance
->GetTemplateChild (name
);
1082 control_template_new (void)
1084 return new ControlTemplate ();
1092 cubic_ease_new (void)
1094 return new CubicEase ();
1099 cubic_ease_ease_in_core (CubicEase
*instance
, double normalizedTime
)
1101 if (instance
== NULL
)
1102 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1105 return instance
->EaseInCore (normalizedTime
);
1110 * CursorPositionChangedEventArgs
1112 CursorPositionChangedEventArgs
*
1113 cursor_position_changed_event_args_new (void)
1115 return new CursorPositionChangedEventArgs ();
1120 cursor_position_changed_event_args_get_cursor_height (CursorPositionChangedEventArgs
*instance
)
1122 if (instance
== NULL
)
1123 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1126 return instance
->GetCursorHeight ();
1131 cursor_position_changed_event_args_get_cursor_x (CursorPositionChangedEventArgs
*instance
)
1133 if (instance
== NULL
)
1134 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1137 return instance
->GetCursorX ();
1142 cursor_position_changed_event_args_get_cursor_y (CursorPositionChangedEventArgs
*instance
)
1144 if (instance
== NULL
)
1145 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1148 return instance
->GetCursorY ();
1156 data_template_new (void)
1158 return new DataTemplate ();
1163 * DeepZoomImageTileSource
1165 DeepZoomImageTileSource
*
1166 deep_zoom_image_tile_source_new (void)
1168 return new DeepZoomImageTileSource ();
1176 dependency_object_add_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
, gpointer closure
)
1178 if (instance
== NULL
)
1181 instance
->AddPropertyChangeHandler (property
, cb
, closure
);
1186 dependency_object_clear_value (DependencyObject
*instance
, DependencyProperty
*property
, bool notify_listeners
, MoonError
*error
)
1188 if (instance
== NULL
)
1192 g_warning ("Moonlight: Called dependency_object_clear_value () with error == NULL.");
1193 instance
->ClearValue (property
, notify_listeners
, error
);
1198 dependency_object_new (void)
1200 return new DependencyObject ();
1205 dependency_object_find_name (DependencyObject
*instance
, const char *name
, int *element_kind
)
1207 if (instance
== NULL
)
1210 return instance
->FindName (name
, (Type::Kind
*) element_kind
);
1215 dependency_object_get_name (DependencyObject
*instance
)
1217 if (instance
== NULL
)
1220 return instance
->GetName ();
1225 dependency_object_get_template_owner (DependencyObject
*instance
)
1227 if (instance
== NULL
)
1230 return instance
->GetTemplateOwner ();
1235 dependency_object_get_value_no_default_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1237 if (instance
== NULL
)
1241 g_warning ("Moonlight: Called dependency_object_get_value_no_default_with_error () with error == NULL.");
1242 return instance
->GetValueNoDefaultWithError (property
, error
);
1247 dependency_object_get_value_with_error (DependencyObject
*instance
, int whatami
, DependencyProperty
*property
, MoonError
*error
)
1249 if (instance
== NULL
)
1253 g_warning ("Moonlight: Called dependency_object_get_value_with_error () with error == NULL.");
1254 return instance
->GetValueWithError ((Type::Kind
) whatami
, property
, error
);
1259 dependency_object_read_local_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, MoonError
*error
)
1261 if (instance
== NULL
)
1265 g_warning ("Moonlight: Called dependency_object_read_local_value_with_error () with error == NULL.");
1266 return instance
->ReadLocalValueWithError (property
, error
);
1271 dependency_object_remove_property_change_handler (DependencyObject
*instance
, DependencyProperty
*property
, PropertyChangeHandler cb
)
1273 if (instance
== NULL
)
1276 instance
->RemovePropertyChangeHandler (property
, cb
);
1281 dependency_object_set_name (DependencyObject
*instance
, const char *name
)
1283 if (instance
== NULL
)
1286 instance
->SetName (name
);
1291 dependency_object_set_parent_safe (DependencyObject
*instance
, DependencyObject
*parent
, MoonError
*error
)
1293 if (instance
== NULL
)
1297 g_warning ("Moonlight: Called dependency_object_set_parent_safe () with error == NULL.");
1298 instance
->SetParentSafe (parent
, error
);
1303 dependency_object_set_template_owner (DependencyObject
*instance
, DependencyObject
*value
)
1305 if (instance
== NULL
)
1308 instance
->SetTemplateOwner (value
);
1313 dependency_object_set_value_with_error (DependencyObject
*instance
, DependencyProperty
*property
, Value
*value
, MoonError
*error
)
1315 if (instance
== NULL
)
1319 g_warning ("Moonlight: Called dependency_object_set_value_with_error () with error == NULL.");
1320 return instance
->SetValueWithError (property
, value
, error
);
1325 * DependencyObjectCollection
1327 DependencyObjectCollection
*
1328 dependency_object_collection_new (void)
1330 return new DependencyObjectCollection ();
1335 * DependencyProperty
1338 dependency_property_get_default_value (DependencyProperty
*instance
)
1340 if (instance
== NULL
)
1343 return instance
->GetDefaultValue ();
1347 DependencyProperty
*
1348 dependency_property_get_dependency_property (int type
, const char *name
)
1350 return DependencyProperty::GetDependencyProperty ((Type::Kind
) type
, name
);
1354 DependencyProperty
*
1355 dependency_property_get_dependency_property_full (int type
, const char *name
, bool inherits
)
1357 return DependencyProperty::GetDependencyPropertyFull ((Type::Kind
) type
, name
, inherits
);
1362 dependency_property_get_name (DependencyProperty
*instance
)
1364 if (instance
== NULL
)
1367 return instance
->GetName ();
1372 dependency_property_get_property_type (DependencyProperty
*instance
)
1374 if (instance
== NULL
)
1375 return Type::INVALID
;
1377 return instance
->GetPropertyType ();
1382 dependency_property_is_attached (DependencyProperty
*instance
)
1384 if (instance
== NULL
)
1387 return instance
->IsAttached ();
1392 dependency_property_is_nullable (DependencyProperty
*instance
)
1394 if (instance
== NULL
)
1397 return instance
->IsNullable ();
1402 dependency_property_is_read_only (DependencyProperty
*instance
)
1404 if (instance
== NULL
)
1407 return instance
->IsReadOnly ();
1411 DependencyProperty
*
1412 dependency_property_register_core_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1414 return DependencyProperty::RegisterCoreProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1418 DependencyProperty
*
1419 dependency_property_register_custom_property (const char *name
, int property_type
, int owner_type
, Value
*defaultValue
, bool attached
, bool read_only
, PropertyChangeHandler callback
)
1421 return DependencyProperty::RegisterCustomProperty (name
, (Type::Kind
) property_type
, (Type::Kind
) owner_type
, defaultValue
, attached
, read_only
, callback
);
1426 dependency_property_set_is_nullable (DependencyProperty
*instance
, bool value
)
1428 if (instance
== NULL
)
1431 instance
->SetIsNullable (value
);
1436 dependency_property_set_property_changed_callback (DependencyProperty
*instance
, PropertyChangeHandler changed_callback
)
1438 if (instance
== NULL
)
1441 instance
->SetPropertyChangedCallback (changed_callback
);
1449 deployment_new (void)
1451 return new Deployment ();
1456 deployment_get_current (void)
1458 return Deployment::GetCurrent ();
1463 deployment_get_surface_reffed (Deployment
*instance
)
1465 if (instance
== NULL
)
1468 return instance
->GetSurfaceReffed ();
1473 deployment_get_types (Deployment
*instance
)
1475 if (instance
== NULL
)
1478 return instance
->GetTypes ();
1483 deployment_set_current (Deployment
*value
)
1485 Deployment::SetCurrent (value
);
1490 deployment_set_current_application (Deployment
*instance
, Application
*value
)
1492 if (instance
== NULL
)
1495 instance
->SetCurrentApplication (value
);
1500 deployment_set_is_loaded_from_xap (Deployment
*instance
, bool flag
)
1502 if (instance
== NULL
)
1505 instance
->SetIsLoadedFromXap (flag
);
1510 * DiscreteColorKeyFrame
1512 DiscreteColorKeyFrame
*
1513 discrete_color_key_frame_new (void)
1515 return new DiscreteColorKeyFrame ();
1520 * DiscreteDoubleKeyFrame
1522 DiscreteDoubleKeyFrame
*
1523 discrete_double_key_frame_new (void)
1525 return new DiscreteDoubleKeyFrame ();
1530 * DiscreteObjectKeyFrame
1532 DiscreteObjectKeyFrame
*
1533 discrete_object_key_frame_new (void)
1535 return new DiscreteObjectKeyFrame ();
1540 * DiscretePointKeyFrame
1542 DiscretePointKeyFrame
*
1543 discrete_point_key_frame_new (void)
1545 return new DiscretePointKeyFrame ();
1553 dispatcher_timer_new (void)
1555 return new DispatcherTimer ();
1560 dispatcher_timer_start (DispatcherTimer
*instance
)
1562 if (instance
== NULL
)
1570 dispatcher_timer_stop (DispatcherTimer
*instance
)
1572 if (instance
== NULL
)
1583 double_animation_new (void)
1585 return new DoubleAnimation ();
1590 * DoubleAnimationUsingKeyFrames
1592 DoubleAnimationUsingKeyFrames
*
1593 double_animation_using_key_frames_new (void)
1595 return new DoubleAnimationUsingKeyFrames ();
1603 double_collection_new (void)
1605 return new DoubleCollection ();
1613 double_key_frame_new (void)
1615 return new DoubleKeyFrame ();
1620 * DoubleKeyFrameCollection
1622 DoubleKeyFrameCollection
*
1623 double_key_frame_collection_new (void)
1625 return new DoubleKeyFrameCollection ();
1633 downloader_create_web_request (Downloader
*instance
, const char *method
, const char *uri
)
1635 if (instance
== NULL
)
1638 return instance
->CreateWebRequest (method
, uri
);
1643 downloader_new (void)
1645 return new Downloader ();
1650 downloader_notify_failed (Downloader
*instance
, const char *msg
)
1652 if (instance
== NULL
)
1655 instance
->NotifyFailed (msg
);
1660 downloader_notify_finished (Downloader
*instance
, const char *final_uri
)
1662 if (instance
== NULL
)
1665 instance
->NotifyFinished (final_uri
);
1670 downloader_notify_size (Downloader
*instance
, gint64 size
)
1672 if (instance
== NULL
)
1675 instance
->NotifySize (size
);
1680 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
)
1682 Downloader::SetFunctions (create_state
, destroy_state
, open
, send
, abort
, header
, body
, request
, response_header_callback
, get_response
);
1687 downloader_write (Downloader
*instance
, void *buf
, gint32 offset
, gint32 n
)
1689 if (instance
== NULL
)
1692 instance
->Write (buf
, offset
, n
);
1700 downloader_request_free (DownloaderRequest
*instance
)
1707 downloader_request_abort (DownloaderRequest
*instance
)
1709 if (instance
== NULL
)
1716 DownloaderResponse
*
1717 downloader_request_get_downloader_response (DownloaderRequest
*instance
)
1719 if (instance
== NULL
)
1722 return instance
->GetDownloaderResponse ();
1727 downloader_request_get_response (DownloaderRequest
*instance
, DownloaderResponseStartedHandler started
, DownloaderResponseDataAvailableHandler available
, DownloaderResponseFinishedHandler finished
, gpointer context
)
1729 if (instance
== NULL
)
1732 return instance
->GetResponse (started
, available
, finished
, context
);
1737 downloader_request_is_aborted (DownloaderRequest
*instance
)
1739 if (instance
== NULL
)
1742 return instance
->IsAborted ();
1747 downloader_request_set_body (DownloaderRequest
*instance
, void *body
, int size
)
1749 if (instance
== NULL
)
1752 instance
->SetBody (body
, size
);
1757 downloader_request_set_http_header (DownloaderRequest
*instance
, const char *name
, const char *value
)
1759 if (instance
== NULL
)
1762 instance
->SetHttpHeader (name
, value
);
1767 * DownloaderResponse
1770 downloader_response_free (DownloaderResponse
*instance
)
1777 downloader_response_abort (DownloaderResponse
*instance
)
1779 if (instance
== NULL
)
1787 downloader_response_get_response_status (DownloaderResponse
*instance
)
1789 if (instance
== NULL
)
1790 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1793 return instance
->GetResponseStatus ();
1798 downloader_response_get_response_status_text (DownloaderResponse
*instance
)
1800 if (instance
== NULL
)
1803 return instance
->GetResponseStatusText ();
1808 downloader_response_set_header_visitor (DownloaderResponse
*instance
, DownloaderResponseHeaderCallback visitor
, gpointer context
)
1810 if (instance
== NULL
)
1813 instance
->SetHeaderVisitor (visitor
, context
);
1818 * DownloadProgressEventArgs
1821 download_progress_event_args_get_progress (DownloadProgressEventArgs
*instance
)
1823 if (instance
== NULL
)
1824 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1827 return instance
->GetProgress ();
1835 drawing_attributes_new (void)
1837 return new DrawingAttributes ();
1845 drop_shadow_effect_new (void)
1847 return new DropShadowEffect ();
1852 * EasingColorKeyFrame
1854 EasingColorKeyFrame
*
1855 easing_color_key_frame_new (void)
1857 return new EasingColorKeyFrame ();
1862 * EasingDoubleKeyFrame
1864 EasingDoubleKeyFrame
*
1865 easing_double_key_frame_new (void)
1867 return new EasingDoubleKeyFrame ();
1872 * EasingFunctionBase
1874 EasingFunctionBase
*
1875 easing_function_base_new (void)
1877 return new EasingFunctionBase ();
1882 easing_function_base_set_easing_function (EasingFunctionBase
*instance
, EasingFunction value
)
1884 if (instance
== NULL
)
1887 instance
->SetEasingFunction (value
);
1892 * EasingPointKeyFrame
1894 EasingPointKeyFrame
*
1895 easing_point_key_frame_new (void)
1897 return new EasingPointKeyFrame ();
1907 return new Effect ();
1915 elastic_ease_ease_in_core (ElasticEase
*instance
, double normalizedTime
)
1917 if (instance
== NULL
)
1918 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1921 return instance
->EaseInCore (normalizedTime
);
1926 elastic_ease_new (void)
1928 return new ElasticEase ();
1938 return new Ellipse ();
1946 ellipse_geometry_new (void)
1948 return new EllipseGeometry ();
1956 error_event_args_get_error_code (ErrorEventArgs
*instance
)
1958 if (instance
== NULL
)
1959 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1962 return instance
->GetErrorCode ();
1967 error_event_args_get_error_message (ErrorEventArgs
*instance
)
1969 if (instance
== NULL
)
1972 return instance
->GetErrorMessage ();
1977 error_event_args_get_error_type (ErrorEventArgs
*instance
)
1979 if (instance
== NULL
)
1980 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1983 return instance
->GetErrorType ();
1988 error_event_args_get_moon_error (ErrorEventArgs
*instance
)
1990 if (instance
== NULL
)
1991 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
1992 return (gpointer
) 0;
1994 return instance
->GetMoonError ();
2002 event_object_add_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2004 if (instance
== NULL
)
2005 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2008 return instance
->AddHandler (event_id
, handler
, data
, data_dtor
);
2013 event_object_add_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2015 if (instance
== NULL
)
2018 instance
->AddOnEventHandler (event_id
, handler
, data
, data_dtor
);
2023 event_object_add_toggle_ref_notifier (EventObject
*instance
, ToggleNotifyHandler tr
)
2025 if (instance
== NULL
)
2028 instance
->AddToggleRefNotifier (tr
);
2033 event_object_add_xaml_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
, GDestroyNotify data_dtor
)
2035 if (instance
== NULL
)
2036 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2039 return instance
->AddXamlHandler (event_id
, handler
, data
, data_dtor
);
2044 event_object_do_emit_current_context (EventObject
*instance
, int event_id
, EventArgs
*calldata
)
2046 if (instance
== NULL
)
2049 instance
->DoEmitCurrentContext (event_id
, calldata
);
2054 event_object_get_object_type (EventObject
*instance
)
2056 if (instance
== NULL
)
2057 return Type::INVALID
;
2059 return instance
->GetObjectType ();
2064 event_object_get_type_name (EventObject
*instance
)
2066 if (instance
== NULL
)
2069 return instance
->GetTypeName ();
2074 event_object_ref (EventObject
*instance
)
2076 if (instance
== NULL
)
2084 event_object_remove_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2086 if (instance
== NULL
)
2087 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2090 return instance
->RemoveHandler (event_id
, handler
, data
);
2095 event_object_remove_on_event_handler (EventObject
*instance
, int event_id
, EventHandler handler
, gpointer data
)
2097 if (instance
== NULL
)
2100 instance
->RemoveOnEventHandler (event_id
, handler
, data
);
2105 event_object_remove_toggle_ref_notifier (EventObject
*instance
)
2107 if (instance
== NULL
)
2110 instance
->RemoveToggleRefNotifier ();
2115 event_object_set_object_type (EventObject
*instance
, int value
)
2117 if (instance
== NULL
)
2120 instance
->SetObjectType ((Type::Kind
) value
);
2125 event_object_unref (EventObject
*instance
)
2127 if (instance
== NULL
)
2138 event_trigger_new (void)
2140 return new EventTrigger ();
2148 exponential_ease_ease_in_core (ExponentialEase
*instance
, double normalizedTime
)
2150 if (instance
== NULL
)
2151 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2154 return instance
->EaseInCore (normalizedTime
);
2159 exponential_ease_new (void)
2161 return new ExponentialEase ();
2169 extension_part_new (void)
2171 return new ExtensionPart ();
2179 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
)
2181 return new ExternalDecoder (media
, stream
, instance
, name
, decode_frame_async
, open_decoder_async
, cleanup
, clean_state
, has_delayed_frame
, dispose
, dtor
);
2186 * ExternalDecoderInfo
2188 ExternalDecoderInfo
*
2189 external_decoder_info_new (void *instance
, const char *name
, ExternalDecoderInfo_SupportsCallback supports
, ExternalDecoderInfo_Create create
, ExternalDecoderInfo_dtor dtor
)
2191 return new ExternalDecoderInfo (instance
, name
, supports
, create
, dtor
);
2199 external_demuxer_add_stream (ExternalDemuxer
*instance
, IMediaStream
*stream
)
2201 if (instance
== NULL
)
2202 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2205 return instance
->AddStream (stream
);
2210 external_demuxer_clear_callbacks (ExternalDemuxer
*instance
)
2212 if (instance
== NULL
)
2215 instance
->ClearCallbacks ();
2220 external_demuxer_set_can_seek (ExternalDemuxer
*instance
, bool value
)
2222 if (instance
== NULL
)
2225 instance
->SetCanSeek (value
);
2233 external_part_new (void)
2235 return new ExternalPart ();
2240 * ExternalPartCollection
2242 ExternalPartCollection
*
2243 external_part_collection_new (void)
2245 return new ExternalPartCollection ();
2253 framework_element_apply_template (FrameworkElement
*instance
)
2255 if (instance
== NULL
)
2258 return instance
->ApplyTemplate ();
2263 framework_element_arrange_override (FrameworkElement
*instance
, Size finalSize
)
2265 if (instance
== NULL
)
2266 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2269 return instance
->ArrangeOverride (finalSize
);
2274 framework_element_new (void)
2276 return new FrameworkElement ();
2281 framework_element_get_logical_parent (FrameworkElement
*instance
)
2283 if (instance
== NULL
)
2286 return instance
->GetLogicalParent ();
2291 framework_element_measure_override (FrameworkElement
*instance
, Size availableSize
)
2293 if (instance
== NULL
)
2294 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2297 return instance
->MeasureOverride (availableSize
);
2302 framework_element_register_managed_overrides (FrameworkElement
*instance
, MeasureOverrideCallback measure_cb
, ArrangeOverrideCallback arrange_cb
, GetDefaultTemplateCallback get_default_template_cb
, LoadedCallback loaded_cb
)
2304 if (instance
== NULL
)
2307 instance
->RegisterManagedOverrides (measure_cb
, arrange_cb
, get_default_template_cb
, loaded_cb
);
2312 framework_element_set_default_style (FrameworkElement
*instance
, Style
*value
)
2314 if (instance
== NULL
)
2317 instance
->SetDefaultStyle (value
);
2322 framework_element_set_logical_parent (FrameworkElement
*instance
, DependencyObject
*logical_parent
, MoonError
*error
)
2324 if (instance
== NULL
)
2328 g_warning ("Moonlight: Called framework_element_set_logical_parent () with error == NULL.");
2329 instance
->SetLogicalParent (logical_parent
, error
);
2337 framework_template_new (void)
2339 return new FrameworkTemplate ();
2344 framework_template_get_visual_tree (FrameworkTemplate
*instance
, FrameworkElement
*templateBindingSource
)
2346 if (instance
== NULL
)
2349 return instance
->GetVisualTree (templateBindingSource
);
2357 general_transform_new (void)
2359 return new GeneralTransform ();
2364 general_transform_get_matrix (GeneralTransform
*instance
)
2366 if (instance
== NULL
)
2369 return instance
->GetMatrix ();
2379 return new Geometry ();
2384 geometry_get_bounds (Geometry
*instance
)
2386 if (instance
== NULL
)
2387 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2390 return instance
->GetBounds ();
2395 * GeometryCollection
2397 GeometryCollection
*
2398 geometry_collection_new (void)
2400 return new GeometryCollection ();
2408 geometry_group_new (void)
2410 return new GeometryGroup ();
2420 return new Glyphs ();
2428 gradient_brush_new (void)
2430 return new GradientBrush ();
2438 gradient_stop_new (void)
2440 return new GradientStop ();
2445 * GradientStopCollection
2447 GradientStopCollection
*
2448 gradient_stop_collection_new (void)
2450 return new GradientStopCollection ();
2468 hit_test_collection_new (void)
2470 return new HitTestCollection ();
2488 icon_collection_new (void)
2490 return new IconCollection ();
2500 return new Image ();
2505 image_set_source (Image
*instance
, ImageSource
*source
)
2507 if (instance
== NULL
)
2510 instance
->SetSource (source
);
2518 image_brush_new (void)
2520 return new ImageBrush ();
2528 image_source_new (void)
2530 return new ImageSource ();
2538 imedia_decoder_report_decode_frame_completed (IMediaDecoder
*instance
, MediaFrame
*frame
)
2540 if (instance
== NULL
)
2543 instance
->ReportDecodeFrameCompleted (frame
);
2548 imedia_decoder_report_open_decoder_completed (IMediaDecoder
*instance
)
2550 if (instance
== NULL
)
2553 instance
->ReportOpenDecoderCompleted ();
2558 imedia_decoder_set_pixel_format (IMediaDecoder
*instance
, int value
)
2560 if (instance
== NULL
)
2563 instance
->SetPixelFormat ((MoonPixelFormat
) value
);
2571 imedia_demuxer_report_get_diagnostic_completed (IMediaDemuxer
*instance
, int diagnosticKind
, gint64 diagnosticValue
)
2573 if (instance
== NULL
)
2576 instance
->ReportGetDiagnosticCompleted ((MediaStreamSourceDiagnosticKind
) diagnosticKind
, diagnosticValue
);
2581 imedia_demuxer_report_get_frame_completed (IMediaDemuxer
*instance
, MediaFrame
*frame
)
2583 if (instance
== NULL
)
2586 instance
->ReportGetFrameCompleted (frame
);
2591 imedia_demuxer_report_get_frame_progress (IMediaDemuxer
*instance
, double bufferingProgress
)
2593 if (instance
== NULL
)
2596 instance
->ReportGetFrameProgress (bufferingProgress
);
2601 imedia_demuxer_report_open_demuxer_completed (IMediaDemuxer
*instance
)
2603 if (instance
== NULL
)
2606 instance
->ReportOpenDemuxerCompleted ();
2611 imedia_demuxer_report_seek_completed (IMediaDemuxer
*instance
, guint64 pts
)
2613 if (instance
== NULL
)
2616 instance
->ReportSeekCompleted (pts
);
2621 imedia_demuxer_report_switch_media_stream_completed (IMediaDemuxer
*instance
, IMediaStream
*stream
)
2623 if (instance
== NULL
)
2626 instance
->ReportSwitchMediaStreamCompleted (stream
);
2634 imedia_object_get_media_reffed (IMediaObject
*instance
)
2636 if (instance
== NULL
)
2639 return instance
->GetMediaReffed ();
2644 imedia_object_report_error_occurred (IMediaObject
*instance
, const char *message
)
2646 if (instance
== NULL
)
2649 instance
->ReportErrorOccurred (message
);
2657 imedia_stream_get_codec (IMediaStream
*instance
)
2659 if (instance
== NULL
)
2662 return instance
->GetCodec ();
2667 imedia_stream_get_codec_id (IMediaStream
*instance
)
2669 if (instance
== NULL
)
2670 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2673 return instance
->GetCodecId ();
2678 imedia_stream_get_duration (IMediaStream
*instance
)
2680 if (instance
== NULL
)
2681 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2684 return instance
->GetDuration ();
2689 imedia_stream_get_extra_data (IMediaStream
*instance
)
2691 if (instance
== NULL
)
2694 return instance
->GetExtraData ();
2699 imedia_stream_get_extra_data_size (IMediaStream
*instance
)
2701 if (instance
== NULL
)
2702 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2705 return instance
->GetExtraDataSize ();
2710 imedia_stream_get_stream_type (IMediaStream
*instance
)
2712 if (instance
== NULL
)
2713 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2714 return (MediaStreamType
) 0;
2716 return instance
->GetStreamType ();
2721 imedia_stream_set_codec_id (IMediaStream
*instance
, int value
)
2723 if (instance
== NULL
)
2726 instance
->SetCodecId (value
);
2731 imedia_stream_set_duration (IMediaStream
*instance
, guint64 value
)
2733 if (instance
== NULL
)
2736 instance
->SetDuration (value
);
2741 imedia_stream_set_extra_data (IMediaStream
*instance
, void *value
)
2743 if (instance
== NULL
)
2746 instance
->SetExtraData (value
);
2751 imedia_stream_set_extra_data_size (IMediaStream
*instance
, int value
)
2753 if (instance
== NULL
)
2756 instance
->SetExtraDataSize (value
);
2764 ink_presenter_new (void)
2766 return new InkPresenter ();
2776 return new Inline ();
2784 inline_collection_new (void)
2786 return new InlineCollection ();
2794 input_method_new (void)
2796 return new InputMethod ();
2804 item_collection_new (void)
2806 return new ItemCollection ();
2814 keyboard_get_modifiers (void)
2816 return Keyboard::GetModifiers ();
2824 key_event_args_get_key (KeyEventArgs
*instance
)
2826 if (instance
== NULL
)
2827 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2830 return instance
->GetKey ();
2835 key_event_args_get_platform_key_code (KeyEventArgs
*instance
)
2837 if (instance
== NULL
)
2838 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2841 return instance
->GetPlatformKeyCode ();
2846 key_event_args_new (void)
2848 return new KeyEventArgs ();
2853 * KeyFrameCollection
2855 KeyFrameCollection
*
2856 key_frame_collection_new (void)
2858 return new KeyFrameCollection ();
2866 key_spline_new (void)
2868 return new KeySpline ();
2883 * LinearColorKeyFrame
2885 LinearColorKeyFrame
*
2886 linear_color_key_frame_new (void)
2888 return new LinearColorKeyFrame ();
2893 * LinearDoubleKeyFrame
2895 LinearDoubleKeyFrame
*
2896 linear_double_key_frame_new (void)
2898 return new LinearDoubleKeyFrame ();
2903 * LinearGradientBrush
2905 LinearGradientBrush
*
2906 linear_gradient_brush_new (void)
2908 return new LinearGradientBrush ();
2913 * LinearPointKeyFrame
2915 LinearPointKeyFrame
*
2916 linear_point_key_frame_new (void)
2918 return new LinearPointKeyFrame ();
2926 line_break_new (void)
2928 return new LineBreak ();
2936 line_geometry_new (void)
2938 return new LineGeometry ();
2946 line_segment_new (void)
2948 return new LineSegment ();
2953 * LogReadyRoutedEventArgs
2955 LogReadyRoutedEventArgs
*
2956 log_ready_routed_event_args_new (void)
2958 return new LogReadyRoutedEventArgs ();
2966 matrix_get_matrix_values (Matrix
*instance
)
2968 if (instance
== NULL
)
2971 return instance
->GetMatrixValues ();
2978 return new Matrix ();
2986 matrix3_d_get_matrix_values (Matrix3D
*instance
)
2988 if (instance
== NULL
)
2989 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
2990 return (gpointer
) 0;
2992 return instance
->GetMatrixValues ();
2997 matrix3_d_new (void)
2999 return new Matrix3D ();
3004 * Matrix3DProjection
3006 Matrix3DProjection
*
3007 matrix3_dprojection_new (void)
3009 return new Matrix3DProjection ();
3017 matrix_transform_new (void)
3019 return new MatrixTransform ();
3027 media_register_decoder (DecoderInfo
*info
)
3029 Media::RegisterDecoder (info
);
3037 media_attribute_new (void)
3039 return new MediaAttribute ();
3044 * MediaAttributeCollection
3047 media_attribute_collection_get_item_by_name (MediaAttributeCollection
*instance
, const char *name
)
3049 if (instance
== NULL
)
3052 return instance
->GetItemByName (name
);
3056 MediaAttributeCollection
*
3057 media_attribute_collection_new (void)
3059 return new MediaAttributeCollection ();
3067 media_base_new (void)
3069 return new MediaBase ();
3074 media_base_set_source (MediaBase
*instance
, const char *uri
)
3076 if (instance
== NULL
)
3079 instance
->SetSource (uri
);
3087 media_element_new (void)
3089 return new MediaElement ();
3094 media_element_pause (MediaElement
*instance
)
3096 if (instance
== NULL
)
3104 media_element_play (MediaElement
*instance
)
3106 if (instance
== NULL
)
3114 media_element_report_error_occurred (MediaElement
*instance
, const char *args
)
3116 if (instance
== NULL
)
3119 instance
->ReportErrorOccurred (args
);
3124 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
)
3126 if (instance
== NULL
)
3129 return instance
->SetDemuxerSource (context
, close_demuxer
, get_diagnostic
, get_sample
, open_demuxer
, seek
, switch_media_stream
);
3134 media_element_set_stream_source (MediaElement
*instance
, ManagedStreamCallbacks
*stream
)
3136 if (instance
== NULL
)
3139 instance
->SetStreamSource (stream
);
3144 media_element_stop (MediaElement
*instance
)
3146 if (instance
== NULL
)
3157 media_frame_add_state (MediaFrame
*instance
, int state
)
3159 if (instance
== NULL
)
3162 instance
->AddState ((MediaFrameState
) state
);
3167 media_frame_get_buffer (MediaFrame
*instance
)
3169 if (instance
== NULL
)
3172 return instance
->GetBuffer ();
3177 media_frame_get_buf_len (MediaFrame
*instance
)
3179 if (instance
== NULL
)
3180 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3183 return instance
->GetBufLen ();
3188 media_frame_get_height (MediaFrame
*instance
)
3190 if (instance
== NULL
)
3191 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3194 return instance
->GetHeight ();
3199 media_frame_get_pts (MediaFrame
*instance
)
3201 if (instance
== NULL
)
3202 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3205 return instance
->GetPts ();
3210 media_frame_get_width (MediaFrame
*instance
)
3212 if (instance
== NULL
)
3213 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3216 return instance
->GetWidth ();
3221 media_frame_is_key_frame (MediaFrame
*instance
)
3223 if (instance
== NULL
)
3226 return instance
->IsKeyFrame ();
3231 media_frame_new (IMediaStream
*stream
, guint8
*buffer
, guint32 buflen
, guint64 pts
, bool keyframe
)
3233 return new MediaFrame (stream
, buffer
, buflen
, pts
, keyframe
);
3238 media_frame_set_buffer (MediaFrame
*instance
, guint8
*value
)
3240 if (instance
== NULL
)
3243 instance
->SetBuffer (value
);
3248 media_frame_set_buf_len (MediaFrame
*instance
, guint32 value
)
3250 if (instance
== NULL
)
3253 instance
->SetBufLen (value
);
3258 media_frame_set_data_stride (MediaFrame
*instance
, guint8
*a
, guint8
*b
, guint8
*c
, guint8
*d
)
3260 if (instance
== NULL
)
3263 instance
->SetDataStride (a
, b
, c
, d
);
3268 media_frame_set_decoder_specific_data (MediaFrame
*instance
, void *value
)
3270 if (instance
== NULL
)
3273 instance
->SetDecoderSpecificData (value
);
3278 media_frame_set_height (MediaFrame
*instance
, gint32 value
)
3280 if (instance
== NULL
)
3283 instance
->SetHeight (value
);
3288 media_frame_set_pts (MediaFrame
*instance
, guint64 value
)
3290 if (instance
== NULL
)
3293 instance
->SetPts (value
);
3298 media_frame_set_src_slide_h (MediaFrame
*instance
, int value
)
3300 if (instance
== NULL
)
3303 instance
->SetSrcSlideH (value
);
3308 media_frame_set_src_slide_y (MediaFrame
*instance
, int value
)
3310 if (instance
== NULL
)
3313 instance
->SetSrcSlideY (value
);
3318 media_frame_set_src_stride (MediaFrame
*instance
, int a
, int b
, int c
, int d
)
3320 if (instance
== NULL
)
3323 instance
->SetSrcStride (a
, b
, c
, d
);
3328 media_frame_set_width (MediaFrame
*instance
, gint32 value
)
3330 if (instance
== NULL
)
3333 instance
->SetWidth (value
);
3341 moon_window_get_transparent (MoonWindow
*instance
)
3343 if (instance
== NULL
)
3346 return instance
->GetTransparent ();
3351 moon_window_set_transparent (MoonWindow
*instance
, bool flag
)
3353 if (instance
== NULL
)
3356 instance
->SetTransparent (flag
);
3364 moon_window_gtk_get_native_widget (MoonWindowGtk
*instance
)
3366 if (instance
== NULL
)
3369 return instance
->GetNativeWidget ();
3374 moon_window_gtk_new (bool fullscreen
, int w
, int h
, MoonWindow
*parent
, Surface
*surface
)
3376 return new MoonWindowGtk (fullscreen
, w
, h
, parent
, surface
);
3381 * MouseButtonEventArgs
3383 MouseButtonEventArgs
*
3384 mouse_button_event_args_new (void)
3386 return new MouseButtonEventArgs ();
3394 mouse_event_args_get_position (MouseEventArgs
*instance
, UIElement
*relative_to
, double *x
, double *y
)
3396 if (instance
== NULL
)
3399 instance
->GetPosition (relative_to
, x
, y
);
3404 mouse_event_args_get_stylus_info (MouseEventArgs
*instance
)
3406 if (instance
== NULL
)
3409 return instance
->GetStylusInfo ();
3413 StylusPointCollection
*
3414 mouse_event_args_get_stylus_points (MouseEventArgs
*instance
, UIElement
*ink_presenter
)
3416 if (instance
== NULL
)
3419 return instance
->GetStylusPoints (ink_presenter
);
3424 mouse_event_args_new (void)
3426 return new MouseEventArgs ();
3431 * MouseWheelEventArgs
3434 mouse_wheel_event_args_get_wheel_delta (MouseWheelEventArgs
*instance
)
3436 if (instance
== NULL
)
3437 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3440 return instance
->GetWheelDelta ();
3444 MouseWheelEventArgs
*
3445 mouse_wheel_event_args_new (void)
3447 return new MouseWheelEventArgs ();
3455 multi_scale_image_element_to_logical_point (MultiScaleImage
*instance
, Point elementPoint
)
3457 if (instance
== NULL
)
3458 return Point (0, 0);
3460 return instance
->ElementToLogicalPoint (elementPoint
);
3465 multi_scale_image_emit_image_failed (MultiScaleImage
*instance
)
3467 if (instance
== NULL
)
3470 instance
->EmitImageFailed ();
3475 multi_scale_image_emit_image_open_failed (MultiScaleImage
*instance
)
3477 if (instance
== NULL
)
3480 instance
->EmitImageOpenFailed ();
3485 multi_scale_image_emit_motion_finished (MultiScaleImage
*instance
)
3487 if (instance
== NULL
)
3490 instance
->EmitMotionFinished ();
3495 multi_scale_image_handle_dz_parsed (MultiScaleImage
*instance
)
3497 if (instance
== NULL
)
3500 instance
->HandleDzParsed ();
3505 multi_scale_image_invalidate_tile_layer (MultiScaleImage
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3507 if (instance
== NULL
)
3510 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3515 multi_scale_image_logical_to_element_point (MultiScaleImage
*instance
, Point logicalPoint
)
3517 if (instance
== NULL
)
3518 return Point (0, 0);
3520 return instance
->LogicalToElementPoint (logicalPoint
);
3525 multi_scale_image_new (void)
3527 return new MultiScaleImage ();
3532 multi_scale_image_on_source_property_changed (MultiScaleImage
*instance
)
3534 if (instance
== NULL
)
3537 instance
->OnSourcePropertyChanged ();
3542 multi_scale_image_zoom_about_logical_point (MultiScaleImage
*instance
, double zoomIncrementFactor
, double zoomCenterLogicalX
, double zoomCenterLogicalY
)
3544 if (instance
== NULL
)
3547 instance
->ZoomAboutLogicalPoint (zoomIncrementFactor
, zoomCenterLogicalX
, zoomCenterLogicalY
);
3552 * MultiScaleSubImage
3555 multi_scale_sub_image_get_zindex (MultiScaleSubImage
*instance
)
3557 if (instance
== NULL
)
3558 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3561 return instance
->GetZIndex ();
3565 MultiScaleSubImage
*
3566 multi_scale_sub_image_new (void)
3568 return new MultiScaleSubImage ();
3573 * MultiScaleSubImageCollection
3575 MultiScaleSubImageCollection
*
3576 multi_scale_sub_image_collection_new (void)
3578 return new MultiScaleSubImageCollection ();
3583 * MultiScaleTileSource
3586 multi_scale_tile_source_invalidate_tile_layer (MultiScaleTileSource
*instance
, int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
3588 if (instance
== NULL
)
3591 instance
->InvalidateTileLayer (level
, tilePositionX
, tilePositionY
, tileLayer
);
3595 MultiScaleTileSource
*
3596 multi_scale_tile_source_new (void)
3598 return new MultiScaleTileSource ();
3603 multi_scale_tile_source_set_image_uri_func (MultiScaleTileSource
*instance
, get_image_uri_func func
)
3605 if (instance
== NULL
)
3608 instance
->set_image_uri_func (func
);
3616 name_scope_new (void)
3618 return new NameScope ();
3623 * ObjectAnimationUsingKeyFrames
3625 ObjectAnimationUsingKeyFrames
*
3626 object_animation_using_key_frames_new (void)
3628 return new ObjectAnimationUsingKeyFrames ();
3636 object_key_frame_new (void)
3638 return new ObjectKeyFrame ();
3643 * ObjectKeyFrameCollection
3645 ObjectKeyFrameCollection
*
3646 object_key_frame_collection_new (void)
3648 return new ObjectKeyFrameCollection ();
3653 * OutOfBrowserSettings
3655 OutOfBrowserSettings
*
3656 out_of_browser_settings_new (void)
3658 return new OutOfBrowserSettings ();
3668 return new Panel ();
3676 parallel_timeline_new (void)
3678 return new ParallelTimeline ();
3686 password_box_new (void)
3688 return new PasswordBox ();
3706 path_figure_new (void)
3708 return new PathFigure ();
3713 * PathFigureCollection
3715 PathFigureCollection
*
3716 path_figure_collection_new (void)
3718 return new PathFigureCollection ();
3726 path_geometry_new (void)
3728 return new PathGeometry ();
3736 path_segment_new (void)
3738 return new PathSegment ();
3743 * PathSegmentCollection
3745 PathSegmentCollection
*
3746 path_segment_collection_new (void)
3748 return new PathSegmentCollection ();
3756 pixel_shader_new (void)
3758 return new PixelShader ();
3766 plane_projection_new (void)
3768 return new PlaneProjection ();
3776 point_animation_new (void)
3778 return new PointAnimation ();
3783 * PointAnimationUsingKeyFrames
3785 PointAnimationUsingKeyFrames
*
3786 point_animation_using_key_frames_new (void)
3788 return new PointAnimationUsingKeyFrames ();
3796 point_collection_new (void)
3798 return new PointCollection ();
3806 point_key_frame_new (void)
3808 return new PointKeyFrame ();
3813 * PointKeyFrameCollection
3815 PointKeyFrameCollection
*
3816 point_key_frame_collection_new (void)
3818 return new PointKeyFrameCollection ();
3826 poly_bezier_segment_new (void)
3828 return new PolyBezierSegment ();
3833 poly_bezier_segment_set_points (PolyBezierSegment
*instance
, PointCollection
*points
)
3835 if (instance
== NULL
)
3838 instance
->SetPoints (points
);
3848 return new Polygon ();
3858 return new Polyline ();
3866 poly_line_segment_new (void)
3868 return new PolyLineSegment ();
3873 * PolyQuadraticBezierSegment
3875 PolyQuadraticBezierSegment
*
3876 poly_quadratic_bezier_segment_new (void)
3878 return new PolyQuadraticBezierSegment ();
3888 return new Popup ();
3896 power_ease_ease_in_core (PowerEase
*instance
, double normalizedTime
)
3898 if (instance
== NULL
)
3899 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3902 return instance
->EaseInCore (normalizedTime
);
3907 power_ease_new (void)
3909 return new PowerEase ();
3917 projection_new (void)
3919 return new Projection ();
3924 * PropertyChangedEventArgs
3927 property_changed_event_args_get_id (PropertyChangedEventArgs
*instance
)
3929 if (instance
== NULL
)
3930 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3933 return instance
->GetId ();
3938 property_changed_event_args_get_new_value (PropertyChangedEventArgs
*instance
)
3940 if (instance
== NULL
)
3943 return instance
->GetNewValue ();
3948 property_changed_event_args_get_old_value (PropertyChangedEventArgs
*instance
)
3950 if (instance
== NULL
)
3953 return instance
->GetOldValue ();
3957 DependencyProperty
*
3958 property_changed_event_args_get_property (PropertyChangedEventArgs
*instance
)
3960 if (instance
== NULL
)
3963 return instance
->GetProperty ();
3968 * QuadraticBezierSegment
3970 QuadraticBezierSegment
*
3971 quadratic_bezier_segment_new (void)
3973 return new QuadraticBezierSegment ();
3981 quadratic_ease_ease_in_core (QuadraticEase
*instance
, double normalizedTime
)
3983 if (instance
== NULL
)
3984 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
3987 return instance
->EaseInCore (normalizedTime
);
3992 quadratic_ease_new (void)
3994 return new QuadraticEase ();
4002 quartic_ease_ease_in_core (QuarticEase
*instance
, double normalizedTime
)
4004 if (instance
== NULL
)
4005 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4008 return instance
->EaseInCore (normalizedTime
);
4013 quartic_ease_new (void)
4015 return new QuarticEase ();
4023 quintic_ease_ease_in_core (QuinticEase
*instance
, double normalizedTime
)
4025 if (instance
== NULL
)
4026 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4029 return instance
->EaseInCore (normalizedTime
);
4034 quintic_ease_new (void)
4036 return new QuinticEase ();
4041 * RadialGradientBrush
4043 RadialGradientBrush
*
4044 radial_gradient_brush_new (void)
4046 return new RadialGradientBrush ();
4054 rectangle_new (void)
4056 return new Rectangle ();
4064 rectangle_geometry_new (void)
4066 return new RectangleGeometry ();
4071 * RenderingEventArgs
4074 rendering_event_args_get_rendering_time (RenderingEventArgs
*instance
)
4076 if (instance
== NULL
)
4077 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4078 return (TimeSpan
) 0;
4080 return instance
->GetRenderingTime ();
4085 * ResourceDictionary
4088 resource_dictionary_add_with_error (ResourceDictionary
*instance
, const char *key
, Value
*value
, MoonError
*error
)
4090 if (instance
== NULL
)
4094 g_warning ("Moonlight: Called resource_dictionary_add_with_error () with error == NULL.");
4095 return instance
->AddWithError (key
, value
, error
);
4100 resource_dictionary_clear (ResourceDictionary
*instance
)
4102 if (instance
== NULL
)
4105 return instance
->Clear ();
4110 resource_dictionary_contains_key (ResourceDictionary
*instance
, const char *key
)
4112 if (instance
== NULL
)
4115 return instance
->ContainsKey (key
);
4120 resource_dictionary_get (ResourceDictionary
*instance
, const char *key
, bool *exists
)
4122 if (instance
== NULL
)
4125 return instance
->Get (key
, exists
);
4130 resource_dictionary_remove (ResourceDictionary
*instance
, const char *key
)
4132 if (instance
== NULL
)
4135 return instance
->Remove (key
);
4139 ResourceDictionary
*
4140 resource_dictionary_new (void)
4142 return new ResourceDictionary ();
4147 resource_dictionary_set (ResourceDictionary
*instance
, const char *key
, Value
*value
)
4149 if (instance
== NULL
)
4152 return instance
->Set (key
, value
);
4157 * ResourceDictionaryCollection
4159 ResourceDictionaryCollection
*
4160 resource_dictionary_collection_new (void)
4162 return new ResourceDictionaryCollection ();
4167 * ResourceDictionaryIterator
4170 resource_dictionary_iterator_get_current_key (ResourceDictionaryIterator
*instance
, MoonError
*error
)
4172 if (instance
== NULL
)
4176 g_warning ("Moonlight: Called resource_dictionary_iterator_get_current_key () with error == NULL.");
4177 return instance
->GetCurrentKey (error
);
4185 rotate_transform_new (void)
4187 return new RotateTransform ();
4195 routed_event_args_get_handled (RoutedEventArgs
*instance
)
4197 if (instance
== NULL
)
4200 return instance
->GetHandled ();
4205 routed_event_args_get_source (RoutedEventArgs
*instance
)
4207 if (instance
== NULL
)
4210 return instance
->GetSource ();
4215 routed_event_args_new (void)
4217 return new RoutedEventArgs ();
4222 routed_event_args_set_handled (RoutedEventArgs
*instance
, bool handled
)
4224 if (instance
== NULL
)
4227 instance
->SetHandled (handled
);
4232 routed_event_args_set_source (RoutedEventArgs
*instance
, DependencyObject
*el
)
4234 if (instance
== NULL
)
4237 instance
->SetSource (el
);
4245 row_definition_new (void)
4247 return new RowDefinition ();
4252 * RowDefinitionCollection
4254 RowDefinitionCollection
*
4255 row_definition_collection_new (void)
4257 return new RowDefinitionCollection ();
4275 scale_transform_new (void)
4277 return new ScaleTransform ();
4287 return new Setter ();
4295 setter_base_new (void)
4297 return new SetterBase ();
4302 * SetterBaseCollection
4304 SetterBaseCollection
*
4305 setter_base_collection_new (void)
4307 return new SetterBaseCollection ();
4315 shader_effect_new (void)
4317 return new ShaderEffect ();
4325 shape_get_geometry_transform (Shape
*instance
)
4327 if (instance
== NULL
)
4330 return instance
->GetGeometryTransform ();
4337 return new Shape ();
4345 sine_ease_ease_in_core (SineEase
*instance
, double normalizedTime
)
4347 if (instance
== NULL
)
4348 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4351 return instance
->EaseInCore (normalizedTime
);
4356 sine_ease_new (void)
4358 return new SineEase ();
4363 * SizeChangedEventArgs
4365 SizeChangedEventArgs
*
4366 size_changed_event_args_new (void)
4368 return new SizeChangedEventArgs ();
4376 skew_transform_new (void)
4378 return new SkewTransform ();
4386 solid_color_brush_new (void)
4388 return new SolidColorBrush ();
4393 * SplineColorKeyFrame
4395 SplineColorKeyFrame
*
4396 spline_color_key_frame_new (void)
4398 return new SplineColorKeyFrame ();
4403 * SplineDoubleKeyFrame
4405 SplineDoubleKeyFrame
*
4406 spline_double_key_frame_new (void)
4408 return new SplineDoubleKeyFrame ();
4413 * SplinePointKeyFrame
4415 SplinePointKeyFrame
*
4416 spline_point_key_frame_new (void)
4418 return new SplinePointKeyFrame ();
4426 storyboard_begin_with_error (Storyboard
*instance
, MoonError
*error
)
4428 if (instance
== NULL
)
4432 g_warning ("Moonlight: Called storyboard_begin_with_error () with error == NULL.");
4433 return instance
->BeginWithError (error
);
4438 storyboard_get_current_state (Storyboard
*instance
)
4440 if (instance
== NULL
)
4441 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4444 return instance
->GetCurrentState ();
4449 storyboard_get_current_time (Storyboard
*instance
)
4451 if (instance
== NULL
)
4452 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4453 return (TimeSpan
) 0;
4455 return instance
->GetCurrentTime ();
4459 DependencyProperty
*
4460 storyboard_get_target_dependency_property (Storyboard
*instance
)
4462 if (instance
== NULL
)
4465 return instance
->GetTargetDependencyProperty ();
4470 storyboard_pause_with_error (Storyboard
*instance
, MoonError
*error
)
4472 if (instance
== NULL
)
4476 g_warning ("Moonlight: Called storyboard_pause_with_error () with error == NULL.");
4477 instance
->PauseWithError (error
);
4482 storyboard_resume_with_error (Storyboard
*instance
, MoonError
*error
)
4484 if (instance
== NULL
)
4488 g_warning ("Moonlight: Called storyboard_resume_with_error () with error == NULL.");
4489 instance
->ResumeWithError (error
);
4494 storyboard_seek_aligned_to_last_tick_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4496 if (instance
== NULL
)
4500 g_warning ("Moonlight: Called storyboard_seek_aligned_to_last_tick_with_error () with error == NULL.");
4501 instance
->SeekAlignedToLastTickWithError (timespan
, error
);
4506 storyboard_seek_with_error (Storyboard
*instance
, TimeSpan timespan
, MoonError
*error
)
4508 if (instance
== NULL
)
4512 g_warning ("Moonlight: Called storyboard_seek_with_error () with error == NULL.");
4513 instance
->SeekWithError (timespan
, error
);
4518 storyboard_skip_to_fill_with_error (Storyboard
*instance
, MoonError
*error
)
4520 if (instance
== NULL
)
4524 g_warning ("Moonlight: Called storyboard_skip_to_fill_with_error () with error == NULL.");
4525 instance
->SkipToFillWithError (error
);
4530 storyboard_stop_with_error (Storyboard
*instance
, MoonError
*error
)
4532 if (instance
== NULL
)
4536 g_warning ("Moonlight: Called storyboard_stop_with_error () with error == NULL.");
4537 instance
->StopWithError (error
);
4542 storyboard_new (void)
4544 return new Storyboard ();
4552 stroke_hit_test (Stroke
*instance
, StylusPointCollection
*stylusPoints
)
4554 if (instance
== NULL
)
4557 return instance
->HitTest (stylusPoints
);
4564 return new Stroke ();
4572 stroke_collection_hit_test (StrokeCollection
*instance
, StylusPointCollection
*stylusPoints
)
4574 if (instance
== NULL
)
4577 return instance
->HitTest (stylusPoints
);
4582 stroke_collection_new (void)
4584 return new StrokeCollection ();
4592 style_seal (Style
*instance
)
4594 if (instance
== NULL
)
4604 return new Style ();
4612 stylus_info_new (void)
4614 return new StylusInfo ();
4622 stylus_point_get_pressure_factor (StylusPoint
*instance
)
4624 if (instance
== NULL
)
4625 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4628 return instance
->GetPressureFactor ();
4633 stylus_point_get_x (StylusPoint
*instance
)
4635 if (instance
== NULL
)
4636 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4639 return instance
->GetX ();
4644 stylus_point_get_y (StylusPoint
*instance
)
4646 if (instance
== NULL
)
4647 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4650 return instance
->GetY ();
4655 stylus_point_set_pressure_factor (StylusPoint
*instance
, double factor
)
4657 if (instance
== NULL
)
4660 instance
->SetPressureFactor (factor
);
4665 stylus_point_set_x (StylusPoint
*instance
, double x
)
4667 if (instance
== NULL
)
4675 stylus_point_set_y (StylusPoint
*instance
, double y
)
4677 if (instance
== NULL
)
4685 stylus_point_new (void)
4687 return new StylusPoint ();
4692 * StylusPointCollection
4695 stylus_point_collection_add_stylus_points (StylusPointCollection
*instance
, StylusPointCollection
*stylusPointCollection
)
4697 if (instance
== NULL
)
4698 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4701 return instance
->AddStylusPoints (stylusPointCollection
);
4705 StylusPointCollection
*
4706 stylus_point_collection_new (void)
4708 return new StylusPointCollection ();
4716 surface_attach (Surface
*instance
, UIElement
*toplevel
)
4718 if (instance
== NULL
)
4721 instance
->Attach (toplevel
);
4726 surface_create_downloader (Surface
*instance
)
4728 if (instance
== NULL
)
4731 return instance
->CreateDownloader ();
4736 surface_emit_error (Surface
*instance
, int number
, int code
, const char *message
)
4738 if (instance
== NULL
)
4741 instance
->EmitError (number
, code
, message
);
4746 surface_get_background_color (Surface
*instance
)
4748 if (instance
== NULL
)
4751 return instance
->GetBackgroundColor ();
4756 surface_get_focused_element (Surface
*instance
)
4758 if (instance
== NULL
)
4761 return instance
->GetFocusedElement ();
4766 surface_get_full_screen (Surface
*instance
)
4768 if (instance
== NULL
)
4771 return instance
->GetFullScreen ();
4776 surface_get_time_manager (Surface
*instance
)
4778 if (instance
== NULL
)
4781 return instance
->GetTimeManager ();
4786 surface_get_toplevel (Surface
*instance
)
4788 if (instance
== NULL
)
4791 return instance
->GetToplevel ();
4796 surface_get_window (Surface
*instance
)
4798 if (instance
== NULL
)
4801 return instance
->GetWindow ();
4806 surface_get_zoom_factor (Surface
*instance
)
4808 if (instance
== NULL
)
4809 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
4812 return instance
->GetZoomFactor ();
4817 surface_in_main_thread (void)
4819 return Surface::InMainThread ();
4824 surface_is_loaded (Surface
*instance
)
4826 if (instance
== NULL
)
4829 return instance
->IsLoaded ();
4834 surface_is_user_initiated_event (Surface
*instance
)
4836 if (instance
== NULL
)
4839 return instance
->IsUserInitiatedEvent ();
4844 surface_is_version_supported (const char *version
)
4846 return Surface::IsVersionSupported (version
);
4851 surface_paint (Surface
*instance
, cairo_t
*ctx
, int x
, int y
, int width
, int height
)
4853 if (instance
== NULL
)
4856 instance
->Paint (ctx
, x
, y
, width
, height
);
4861 surface_resize (Surface
*instance
, int width
, int height
)
4863 if (instance
== NULL
)
4866 instance
->Resize (width
, height
);
4871 surface_set_full_screen (Surface
*instance
, bool value
)
4873 if (instance
== NULL
)
4876 instance
->SetFullScreen (value
);
4881 surface_new (MoonWindow
*window
)
4883 return new Surface (window
);
4888 * TabNavigationWalker
4891 tab_navigation_walker_focus (UIElement
*element
, bool forwards
)
4893 return TabNavigationWalker::Focus (element
, forwards
);
4901 text_block_new (void)
4903 return new TextBlock ();
4913 return new TextBox ();
4921 text_box_base_on_got_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4923 if (instance
== NULL
)
4926 instance
->OnGotFocus (args
);
4931 text_box_base_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4933 if (instance
== NULL
)
4936 instance
->OnKeyDown (args
);
4941 text_box_base_on_key_up (TextBoxBase
*instance
, KeyEventArgs
*args
)
4943 if (instance
== NULL
)
4946 instance
->OnKeyUp (args
);
4951 text_box_base_on_lost_focus (TextBoxBase
*instance
, RoutedEventArgs
*args
)
4953 if (instance
== NULL
)
4956 instance
->OnLostFocus (args
);
4961 text_box_base_on_mouse_left_button_down (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4963 if (instance
== NULL
)
4966 instance
->OnMouseLeftButtonDown (args
);
4971 text_box_base_on_mouse_left_button_up (TextBoxBase
*instance
, MouseButtonEventArgs
*args
)
4973 if (instance
== NULL
)
4976 instance
->OnMouseLeftButtonUp (args
);
4981 text_box_base_on_mouse_move (TextBoxBase
*instance
, MouseEventArgs
*args
)
4983 if (instance
== NULL
)
4986 instance
->OnMouseMove (args
);
4991 text_box_base_post_on_key_down (TextBoxBase
*instance
, KeyEventArgs
*args
)
4993 if (instance
== NULL
)
4996 instance
->PostOnKeyDown (args
);
5001 text_box_base_select_all (TextBoxBase
*instance
)
5003 if (instance
== NULL
)
5006 instance
->SelectAll ();
5011 text_box_base_select_with_error (TextBoxBase
*instance
, int start
, int length
, MoonError
*error
)
5013 if (instance
== NULL
)
5017 g_warning ("Moonlight: Called text_box_base_select_with_error () with error == NULL.");
5018 return instance
->SelectWithError (start
, length
, error
);
5026 text_box_view_new (void)
5028 return new TextBoxView ();
5033 * TextChangedEventArgs
5035 TextChangedEventArgs
*
5036 text_changed_event_args_new (void)
5038 return new TextChangedEventArgs ();
5046 tile_brush_new (void)
5048 return new TileBrush ();
5056 timeline_get_manual_target (Timeline
*instance
)
5058 if (instance
== NULL
)
5061 return instance
->GetManualTarget ();
5066 timeline_set_manual_target (Timeline
*instance
, DependencyObject
*o
)
5068 if (instance
== NULL
)
5071 instance
->SetManualTarget (o
);
5078 return new Timeline ();
5083 * TimelineCollection
5085 TimelineCollection
*
5086 timeline_collection_new (void)
5088 return new TimelineCollection ();
5096 timeline_group_new (void)
5098 return new TimelineGroup ();
5106 timeline_marker_new (void)
5108 return new TimelineMarker ();
5113 * TimelineMarkerCollection
5115 TimelineMarkerCollection
*
5116 timeline_marker_collection_new (void)
5118 return new TimelineMarkerCollection ();
5123 * TimelineMarkerRoutedEventArgs
5126 timeline_marker_routed_event_args_get_marker (TimelineMarkerRoutedEventArgs
*instance
)
5128 if (instance
== NULL
)
5131 return instance
->GetMarker ();
5135 TimelineMarkerRoutedEventArgs
*
5136 timeline_marker_routed_event_args_new (TimelineMarker
*marker
)
5138 return new TimelineMarkerRoutedEventArgs (marker
);
5146 time_manager_add_dispatcher_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5148 if (instance
== NULL
)
5151 instance
->AddDispatcherCall (handler
, tick_data
);
5156 time_manager_add_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5158 if (instance
== NULL
)
5161 instance
->AddTickCall (handler
, tick_data
);
5166 time_manager_add_timeout (TimeManager
*instance
, gint priority
, guint ms_interval
, GSourceFunc func
, gpointer timeout_data
)
5168 if (instance
== NULL
)
5169 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5172 return instance
->AddTimeout (priority
, ms_interval
, func
, timeout_data
);
5177 time_manager_get_maximum_refresh_rate (TimeManager
*instance
)
5179 if (instance
== NULL
)
5180 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5183 return instance
->GetMaximumRefreshRate ();
5188 time_manager_remove_tick_call (TimeManager
*instance
, TickCallHandler handler
, EventObject
*tick_data
)
5190 if (instance
== NULL
)
5193 instance
->RemoveTickCall (handler
, tick_data
);
5198 time_manager_remove_timeout (TimeManager
*instance
, guint timeout_id
)
5200 if (instance
== NULL
)
5203 instance
->RemoveTimeout (timeout_id
);
5208 time_manager_set_maximum_refresh_rate (TimeManager
*instance
, int hz
)
5210 if (instance
== NULL
)
5213 instance
->SetMaximumRefreshRate (hz
);
5221 touch_device_get_directly_over (TouchDevice
*instance
)
5223 if (instance
== NULL
)
5226 return instance
->GetDirectlyOver ();
5231 touch_device_get_id (TouchDevice
*instance
)
5233 if (instance
== NULL
)
5234 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5237 return instance
->GetId ();
5242 touch_device_set_directly_over (TouchDevice
*instance
, UIElement
*element
)
5244 if (instance
== NULL
)
5247 instance
->SetDirectlyOver (element
);
5252 touch_device_set_id (TouchDevice
*instance
, int id
)
5254 if (instance
== NULL
)
5257 instance
->SetId (id
);
5262 touch_device_new (void)
5264 return new TouchDevice ();
5272 touch_point_get_action (TouchPoint
*instance
)
5274 if (instance
== NULL
)
5275 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5276 return (TouchAction
) 0;
5278 return instance
->GetAction ();
5283 touch_point_get_position (TouchPoint
*instance
)
5285 if (instance
== NULL
)
5288 return instance
->GetPosition ();
5293 touch_point_get_size (TouchPoint
*instance
)
5295 if (instance
== NULL
)
5298 return instance
->GetSize ();
5303 touch_point_get_touch_device (TouchPoint
*instance
)
5305 if (instance
== NULL
)
5308 return instance
->GetTouchDevice ();
5313 touch_point_set_action (TouchPoint
*instance
, int action
)
5315 if (instance
== NULL
)
5318 instance
->SetAction ((TouchAction
) action
);
5323 touch_point_set_position (TouchPoint
*instance
, Point
*position
)
5325 if (instance
== NULL
)
5328 instance
->SetPosition (position
);
5333 touch_point_set_size (TouchPoint
*instance
, Size
*size
)
5335 if (instance
== NULL
)
5338 instance
->SetSize (size
);
5343 touch_point_set_touch_device (TouchPoint
*instance
, TouchDevice
*device
)
5345 if (instance
== NULL
)
5348 instance
->SetTouchDevice (device
);
5353 touch_point_new (void)
5355 return new TouchPoint ();
5360 * TouchPointCollection
5362 TouchPointCollection
*
5363 touch_point_collection_new (void)
5365 return new TouchPointCollection ();
5373 transform_new (void)
5375 return new Transform ();
5380 * TransformCollection
5382 TransformCollection
*
5383 transform_collection_new (void)
5385 return new TransformCollection ();
5393 transform_group_new (void)
5395 return new TransformGroup ();
5400 * TranslateTransform
5402 TranslateTransform
*
5403 translate_transform_new (void)
5405 return new TranslateTransform ();
5413 trigger_action_fire (TriggerAction
*instance
)
5415 if (instance
== NULL
)
5423 trigger_action_new (void)
5425 return new TriggerAction ();
5430 * TriggerActionCollection
5432 TriggerActionCollection
*
5433 trigger_action_collection_new (void)
5435 return new TriggerActionCollection ();
5443 trigger_base_new (void)
5445 return new TriggerBase ();
5453 trigger_collection_new (void)
5455 return new TriggerCollection ();
5463 types_find (Types
*instance
, int type
)
5465 if (instance
== NULL
)
5468 return instance
->Find ((Type::Kind
) type
);
5473 types_register_type (Types
*instance
, const char *name
, void *gc_handle
, int parent
, bool is_interface
, bool ctor_visible
, int *interfaces
, int interface_count
)
5475 if (instance
== NULL
)
5476 return Type::INVALID
;
5478 return instance
->RegisterType (name
, gc_handle
, (Type::Kind
) parent
, is_interface
, ctor_visible
, (Type::Kind
*) interfaces
, interface_count
);
5485 return new Types ();
5493 uielement_arrange (UIElement
*instance
, Rect finalRect
)
5495 if (instance
== NULL
)
5498 instance
->Arrange (finalRect
);
5503 uielement_capture_mouse (UIElement
*instance
)
5505 if (instance
== NULL
)
5508 return instance
->CaptureMouse ();
5513 uielement_element_added (UIElement
*instance
, UIElement
*obj
)
5515 if (instance
== NULL
)
5518 instance
->ElementAdded (obj
);
5523 uielement_element_removed (UIElement
*instance
, UIElement
*obj
)
5525 if (instance
== NULL
)
5528 instance
->ElementRemoved (obj
);
5533 uielement_find_elements_in_host_coordinates_p (UIElement
*instance
, Point p
, HitTestCollection
*uielement_list
)
5535 if (instance
== NULL
)
5538 instance
->FindElementsInHostCoordinates_p (p
, uielement_list
);
5543 uielement_find_elements_in_host_coordinates_r (UIElement
*instance
, Rect p
, HitTestCollection
*uielement_list
)
5545 if (instance
== NULL
)
5548 instance
->FindElementsInHostCoordinates_r (p
, uielement_list
);
5553 uielement_focus (UIElement
*instance
, bool recurse
)
5555 if (instance
== NULL
)
5558 return instance
->Focus (recurse
);
5563 uielement_get_desired_size (UIElement
*instance
)
5565 if (instance
== NULL
)
5566 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5569 return instance
->GetDesiredSize ();
5574 uielement_get_render_size (UIElement
*instance
)
5576 if (instance
== NULL
)
5577 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5580 return instance
->GetRenderSize ();
5585 uielement_get_subtree_object (UIElement
*instance
)
5587 if (instance
== NULL
)
5590 return instance
->GetSubtreeObject ();
5595 uielement_get_transform_to_uielement_with_error (UIElement
*instance
, UIElement
*to_element
, MoonError
*error
)
5597 if (instance
== NULL
)
5601 g_warning ("Moonlight: Called uielement_get_transform_to_uielement_with_error () with error == NULL.");
5602 return instance
->GetTransformToUIElementWithError (to_element
, error
);
5607 uielement_get_visual_parent (UIElement
*instance
)
5609 if (instance
== NULL
)
5612 return instance
->GetVisualParent ();
5617 uielement_invalidate (UIElement
*instance
)
5619 if (instance
== NULL
)
5622 instance
->Invalidate ();
5627 uielement_invalidate_arrange (UIElement
*instance
)
5629 if (instance
== NULL
)
5632 instance
->InvalidateArrange ();
5637 uielement_invalidate_measure (UIElement
*instance
)
5639 if (instance
== NULL
)
5642 instance
->InvalidateMeasure ();
5647 uielement_measure (UIElement
*instance
, Size availableSize
)
5649 if (instance
== NULL
)
5652 instance
->Measure (availableSize
);
5657 uielement_release_mouse_capture (UIElement
*instance
)
5659 if (instance
== NULL
)
5662 instance
->ReleaseMouseCapture ();
5667 uielement_set_subtree_object (UIElement
*instance
, DependencyObject
*value
)
5669 if (instance
== NULL
)
5672 instance
->SetSubtreeObject (value
);
5677 uielement_update_layout (UIElement
*instance
)
5679 if (instance
== NULL
)
5682 instance
->UpdateLayout ();
5687 * UIElementCollection
5689 UIElementCollection
*
5690 uielement_collection_new (void)
5692 return new UIElementCollection ();
5700 unmanaged_matrix_new (void)
5702 return new UnmanagedMatrix ();
5710 unmanaged_matrix3_d_new (void)
5712 return new UnmanagedMatrix3D ();
5720 uri_equals (const Uri
*left
, const Uri
*right
)
5722 return Uri::Equals (left
, right
);
5727 uri_free (Uri
*instance
)
5729 if (instance
== NULL
)
5737 uri_get_hash_code (Uri
*instance
)
5739 if (instance
== NULL
)
5740 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5743 return instance
->GetHashCode ();
5748 uri_parse (Uri
*instance
, const char *uri
, bool allow_trailing_sep
)
5750 if (instance
== NULL
)
5753 return instance
->Parse (uri
, allow_trailing_sep
);
5761 user_control_new (void)
5763 return new UserControl ();
5771 video_brush_set_source (VideoBrush
*instance
, MediaElement
*source
)
5773 if (instance
== NULL
)
5776 instance
->SetSource (source
);
5781 video_brush_new (void)
5783 return new VideoBrush ();
5791 video_stream_get_height (VideoStream
*instance
)
5793 if (instance
== NULL
)
5794 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5797 return instance
->GetHeight ();
5802 video_stream_get_width (VideoStream
*instance
)
5804 if (instance
== NULL
)
5805 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5808 return instance
->GetWidth ();
5813 video_stream_new (Media
*media
, int codec_id
, guint32 width
, guint32 height
, guint64 duration
, gpointer extra_data
, guint32 extra_data_size
)
5815 return new VideoStream (media
, codec_id
, width
, height
, duration
, extra_data
, extra_data_size
);
5823 visual_brush_new (void)
5825 return new VisualBrush ();
5833 window_settings_new (void)
5835 return new WindowSettings ();
5843 writeable_bitmap_initialize_from_bitmap_source (WriteableBitmap
*instance
, BitmapSource
*source
)
5845 if (instance
== NULL
)
5846 // Need to find a proper way to get the default value for the specified type and return that if instance is NULL.
5847 return (gpointer
) 0;
5849 return instance
->InitializeFromBitmapSource (source
);
5854 writeable_bitmap_lock (WriteableBitmap
*instance
)
5856 if (instance
== NULL
)
5864 writeable_bitmap_render (WriteableBitmap
*instance
, UIElement
*element
, Transform
*transform
)
5866 if (instance
== NULL
)
5869 instance
->Render (element
, transform
);
5874 writeable_bitmap_unlock (WriteableBitmap
*instance
)
5876 if (instance
== NULL
)
5879 instance
->Unlock ();
5884 writeable_bitmap_new (void)
5886 return new WriteableBitmap ();
5894 xaml_context_get_template_binding_source (XamlContext
*instance
)
5896 if (instance
== NULL
)
5899 return instance
->GetTemplateBindingSource ();
5907 xaml_loader_create_from_file_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, MoonError
*error
)
5909 if (instance
== NULL
)
5913 g_warning ("Moonlight: Called xaml_loader_create_from_file_with_error () with error == NULL.");
5914 return instance
->CreateFromFileWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, error
);
5919 xaml_loader_create_from_string_with_error (XamlLoader
*instance
, const char *xaml
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5921 if (instance
== NULL
)
5925 g_warning ("Moonlight: Called xaml_loader_create_from_string_with_error () with error == NULL.");
5926 return instance
->CreateFromStringWithError (xaml
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5931 xaml_loader_get_context (XamlLoader
*instance
)
5933 if (instance
== NULL
)
5936 return instance
->GetContext ();
5941 xaml_loader_hydrate_from_string_with_error (XamlLoader
*instance
, const char *xaml
, Value
*obj
, bool create_namescope
, int *element_type
, int flags
, MoonError
*error
)
5943 if (instance
== NULL
)
5947 g_warning ("Moonlight: Called xaml_loader_hydrate_from_string_with_error () with error == NULL.");
5948 return instance
->HydrateFromStringWithError (xaml
, obj
, create_namescope
, (Type::Kind
*) element_type
, flags
, error
);
5956 xap_unpack (const char *fname
)
5958 return Xap::Unpack (fname
);