X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fcsapi%2Ftizenfx.git;a=blobdiff_plain;f=internals%2Fsrc%2FEflSharp%2FEflSharp%2Fefl%2Fefl_canvas_animation_player.eo.cs;h=c1294ba6a10aa37542f9b1c185bd425e5091570e;hp=4eb6f43ed4731e64b589ca6ad53d9e7575fdfdba;hb=04e59dc939f2654e4525abdb21f65f0632c988e0;hpb=5fa5718a930d8d558a0cc0e0c9637e645926ca73 diff --git a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs index 4eb6f43..c1294ba 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_canvas_animation_player.eo.cs @@ -10,12 +10,14 @@ namespace Efl { namespace Canvas { ///Event argument wrapper for event . +[Efl.Eo.BindingEntity] public class AnimationPlayerRunningEvt_Args : EventArgs { ///Actual event payload. public Efl.Canvas.ObjectAnimationEvent arg { get; set; } } /// Efl animation object class [Efl.Canvas.AnimationPlayer.NativeMethods] +[Efl.Eo.BindingEntity] public class AnimationPlayer : Efl.Object, Efl.IPlayer { ///Pointer to the native class description. @@ -39,24 +41,29 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// Initializes a new instance of the class. /// Parent instance. public AnimationPlayer(Efl.Object parent= null - ) : base(efl_canvas_animation_player_class_get(), typeof(AnimationPlayer), parent) + ) : base(efl_canvas_animation_player_class_get(), parent) { FinishInstantiation(); } + /// Constructor to be used when objects are expected to be constructed from native code. + /// Tag struct storing the native handle of the object being constructed. + protected AnimationPlayer(ConstructingHandle ch) : base(ch) + { + } + /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. - /// The native pointer to be wrapped. - protected AnimationPlayer(System.IntPtr raw) : base(raw) + /// The native pointer to be wrapped. + protected AnimationPlayer(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. - /// The managed type of the public constructor that originated this call. /// The Efl.Object parent of this instance. - protected AnimationPlayer(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + protected AnimationPlayer(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } @@ -65,7 +72,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer { add { - lock (eventLock) + lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { @@ -92,7 +99,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer remove { - lock (eventLock) + lock (eflBindingEventLock) { string key = "_EFL_ANIMATION_PLAYER_EVENT_STARTED"; RemoveNativeEventHandler(efl.Libs.Evas, key, value); @@ -117,7 +124,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer { add { - lock (eventLock) + lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { @@ -125,7 +132,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer if (obj != null) { Efl.Canvas.AnimationPlayerRunningEvt_Args args = new Efl.Canvas.AnimationPlayerRunningEvt_Args(); - args.arg = default(Efl.Canvas.ObjectAnimationEvent); + args.arg = (Efl.Canvas.ObjectAnimationEvent)evt.Info; try { value?.Invoke(obj, args); @@ -145,7 +152,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer remove { - lock (eventLock) + lock (eflBindingEventLock) { string key = "_EFL_ANIMATION_PLAYER_EVENT_RUNNING"; RemoveNativeEventHandler(efl.Libs.Evas, key, value); @@ -178,7 +185,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer { add { - lock (eventLock) + lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { @@ -205,7 +212,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer remove { - lock (eventLock) + lock (eflBindingEventLock) { string key = "_EFL_ANIMATION_PLAYER_EVENT_ENDED"; RemoveNativeEventHandler(efl.Libs.Evas, key, value); @@ -226,51 +233,51 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero); } virtual public Efl.Canvas.Animation GetAnimation() { - var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } virtual public void SetAnimation(Efl.Canvas.Animation animation) { - Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation); + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_animation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),animation); Eina.Error.RaiseIfUnhandledException(); } /// Auto delete property /// true to delete animation object automatically when animation is finished or animation is cancelled, false otherwise. virtual public bool GetAutoDel() { - var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Auto delete property /// true to delete animation object automatically when animation is finished or animation is cancelled, false otherwise. virtual public void SetAutoDel(bool auto_del) { - Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),auto_del); + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_auto_del_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),auto_del); Eina.Error.RaiseIfUnhandledException(); } /// Target object property /// Target object which is applied animation. virtual public Efl.Canvas.Object GetTarget() { - var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Target object property /// Target object which is applied animation. virtual public void SetTarget(Efl.Canvas.Object target) { - Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),target); + Efl.Canvas.AnimationPlayer.NativeMethods.efl_animation_player_target_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),target); Eina.Error.RaiseIfUnhandledException(); } /// Whether or not the playable can be played. /// true if the object have playable data, false otherwise virtual public bool GetPlayable() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get play/pause state of the media file. /// true if playing, false otherwise. virtual public bool GetPlay() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -278,14 +285,14 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position. /// true if playing, false otherwise. virtual public void SetPlay(bool play) { - Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),play); + Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),play); Eina.Error.RaiseIfUnhandledException(); } /// Get the position in the media file. /// The position is returned as the number of seconds since the beginning of the media file. /// The position (in seconds). virtual public double GetPos() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -293,14 +300,14 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file. /// The position (in seconds). virtual public void SetPos(double sec) { - Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),sec); + Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),sec); Eina.Error.RaiseIfUnhandledException(); } /// Get how much of the file has been played. /// This function gets the progress in playing the file, the return value is in the [0, 1] range. /// The progress within the [0, 1] range. virtual public double GetProgress() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -308,7 +315,7 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public double GetPlaySpeed() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -316,14 +323,14 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on. /// The play speed in the [0, infinity) range. virtual public void SetPlaySpeed(double speed) { - Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),speed); + Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),speed); Eina.Error.RaiseIfUnhandledException(); } /// Control the audio volume. /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public double GetVolume() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } @@ -331,44 +338,44 @@ public class AnimationPlayer : Efl.Object, Efl.IPlayer /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25. /// The volume level virtual public void SetVolume(double volume) { - Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),volume); + Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),volume); Eina.Error.RaiseIfUnhandledException(); } /// This property controls the audio mute state. /// The mute state. true or false. virtual public bool GetMute() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// This property controls the audio mute state. /// The mute state. true or false. virtual public void SetMute(bool mute) { - Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),mute); + Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),mute); Eina.Error.RaiseIfUnhandledException(); } /// Get the length of play for the media file. /// The length of the stream in seconds. virtual public double GetLength() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get whether the media file is seekable. /// true if seekable. virtual public bool GetSeekable() { - var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Start a playing playable object. virtual public void Start() { - Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } /// Stop playable object. virtual public void Stop() { - Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle)); + Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); } public Efl.Canvas.Animation Animation {