| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // ValueAnimation.cs
- //
- // Copyright 2015 Xamarin Inc. All rights reserved.
- using System;
- using System.Runtime.InteropServices;
- using System.Collections.Generic;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Resources;
- using Urho.IO;
- using Urho.Navigation;
- using Urho.Network;
- namespace Urho
- {
- /// <summary>
- /// Value animation class.
- /// </summary>
- public unsafe partial class ValueAnimation : Resource
- {
- unsafe partial void OnValueAnimationCreated ();
- [Preserve]
- public ValueAnimation (IntPtr handle) : base (handle)
- {
- OnValueAnimationCreated ();
- }
- [Preserve]
- protected ValueAnimation (UrhoObjectFlag emptyFlag) : base (emptyFlag)
- {
- OnValueAnimationCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int ValueAnimation_GetType (IntPtr handle);
- private StringHash UrhoGetType ()
- {
- Runtime.ValidateRefCounted (this);
- return new StringHash (ValueAnimation_GetType (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr ValueAnimation_GetTypeName (IntPtr handle);
- private string GetTypeName ()
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (ValueAnimation_GetTypeName (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int ValueAnimation_GetTypeStatic ();
- private static StringHash GetTypeStatic ()
- {
- Runtime.Validate (typeof(ValueAnimation));
- return new StringHash (ValueAnimation_GetTypeStatic ());
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr ValueAnimation_GetTypeNameStatic ();
- private static string GetTypeNameStatic ()
- {
- Runtime.Validate (typeof(ValueAnimation));
- return Marshal.PtrToStringAnsi (ValueAnimation_GetTypeNameStatic ());
- }
- [Preserve]
- public ValueAnimation () : this (Application.CurrentContext)
- {
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr ValueAnimation_ValueAnimation (IntPtr context);
- [Preserve]
- public ValueAnimation (Context context) : base (UrhoObjectFlag.Empty)
- {
- Runtime.Validate (typeof(ValueAnimation));
- handle = ValueAnimation_ValueAnimation ((object)context == null ? IntPtr.Zero : context.Handle);
- Runtime.RegisterObject (this);
- OnValueAnimationCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void ValueAnimation_RegisterObject (IntPtr context);
- /// <summary>
- /// Register object factory.
- /// </summary>
- public static void RegisterObject (Context context)
- {
- Runtime.Validate (typeof(ValueAnimation));
- ValueAnimation_RegisterObject ((object)context == null ? IntPtr.Zero : context.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_BeginLoad_File (IntPtr handle, IntPtr source);
- /// <summary>
- /// Load resource from stream. May be called from a worker thread. Return true if successful.
- /// </summary>
- public override bool BeginLoad (File source)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_BeginLoad_File (handle, (object)source == null ? IntPtr.Zero : source.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_BeginLoad_MemoryBuffer (IntPtr handle, IntPtr source);
- /// <summary>
- /// Load resource from stream. May be called from a worker thread. Return true if successful.
- /// </summary>
- public override bool BeginLoad (MemoryBuffer source)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_BeginLoad_MemoryBuffer (handle, (object)source == null ? IntPtr.Zero : source.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_Save_File (IntPtr handle, IntPtr dest);
- /// <summary>
- /// Save resource. Return true if successful.
- /// </summary>
- public override bool Save (File dest)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_Save_File (handle, (object)dest == null ? IntPtr.Zero : dest.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_Save_MemoryBuffer (IntPtr handle, IntPtr dest);
- /// <summary>
- /// Save resource. Return true if successful.
- /// </summary>
- public override bool Save (MemoryBuffer dest)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_Save_MemoryBuffer (handle, (object)dest == null ? IntPtr.Zero : dest.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_LoadXML (IntPtr handle, IntPtr source);
- /// <summary>
- /// Load from XML data. Return true if successful.
- /// </summary>
- public bool LoadXml (XmlElement source)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_LoadXML (handle, (object)source == null ? IntPtr.Zero : source.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SaveXML (IntPtr handle, IntPtr dest);
- /// <summary>
- /// Save as XML data. Return true if successful.
- /// </summary>
- public bool SaveXml (XmlElement dest)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SaveXML (handle, (object)dest == null ? IntPtr.Zero : dest.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void ValueAnimation_SetOwner (IntPtr handle, IntPtr owner);
- /// <summary>
- /// Set owner.
- /// </summary>
- private void SetOwner (IntPtr owner)
- {
- Runtime.ValidateRefCounted (this);
- ValueAnimation_SetOwner (handle, owner);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void ValueAnimation_SetInterpolationMethod (IntPtr handle, InterpMethod method);
- /// <summary>
- /// Set interpolation method.
- /// </summary>
- private void SetInterpolationMethod (InterpMethod method)
- {
- Runtime.ValidateRefCounted (this);
- ValueAnimation_SetInterpolationMethod (handle, method);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void ValueAnimation_SetSplineTension (IntPtr handle, float tension);
- /// <summary>
- /// Set spline tension, should be between 0.0f and 1.0f, but this is not a must.
- /// </summary>
- private void SetSplineTension (float tension)
- {
- Runtime.ValidateRefCounted (this);
- ValueAnimation_SetSplineTension (handle, tension);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void ValueAnimation_SetValueType (IntPtr handle, VariantType valueType);
- /// <summary>
- /// Set value type.
- /// </summary>
- private void SetValueType (VariantType valueType)
- {
- Runtime.ValidateRefCounted (this);
- ValueAnimation_SetValueType (handle, valueType);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_0 (IntPtr handle, float time, ref Vector3 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Vector3 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_0 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_1 (IntPtr handle, float time, ref IntRect value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, IntRect value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_1 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_2 (IntPtr handle, float time, ref Color value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Color value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_2 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_3 (IntPtr handle, float time, ref Vector2 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Vector2 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_3 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_4 (IntPtr handle, float time, ref Vector4 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Vector4 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_4 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_5 (IntPtr handle, float time, ref IntVector2 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, IntVector2 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_5 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_6 (IntPtr handle, float time, ref Quaternion value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Quaternion value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_6 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_7 (IntPtr handle, float time, ref Matrix4 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Matrix4 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_7 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_8 (IntPtr handle, float time, ref Matrix3x4 value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, Matrix3x4 value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_8 (handle, time, ref value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_9 (IntPtr handle, float time, int value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, int value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_9 (handle, time, value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_10 (IntPtr handle, float time, float value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, float value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_10 (handle, time, value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_11 (IntPtr handle, float time, string value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, string value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_11 (handle, time, value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_SetKeyFrame_12 (IntPtr handle, float time, bool value);
- /// <summary>
- /// Set key frame.
- /// </summary>
- public bool SetKeyFrame (float time, bool value)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_SetKeyFrame_12 (handle, time, value);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_IsValid (IntPtr handle);
- /// <summary>
- /// Return animation is valid.
- /// </summary>
- private bool IsValid ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_IsValid (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr ValueAnimation_GetOwner (IntPtr handle);
- /// <summary>
- /// Return owner.
- /// </summary>
- private IntPtr GetOwner ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetOwner (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern InterpMethod ValueAnimation_GetInterpolationMethod (IntPtr handle);
- /// <summary>
- /// Return interpolation method.
- /// </summary>
- private InterpMethod GetInterpolationMethod ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetInterpolationMethod (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern float ValueAnimation_GetSplineTension (IntPtr handle);
- /// <summary>
- /// Return spline tension.
- /// </summary>
- private float GetSplineTension ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetSplineTension (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern VariantType ValueAnimation_GetValueType (IntPtr handle);
- /// <summary>
- /// Return value type.
- /// </summary>
- private VariantType GetValueType ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetValueType (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern float ValueAnimation_GetBeginTime (IntPtr handle);
- /// <summary>
- /// Return begin time.
- /// </summary>
- private float GetBeginTime ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetBeginTime (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern float ValueAnimation_GetEndTime (IntPtr handle);
- /// <summary>
- /// Return end time.
- /// </summary>
- private float GetEndTime ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetEndTime (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Variant ValueAnimation_GetAnimationValue (IntPtr handle, float scaledTime);
- /// <summary>
- /// Return animation value.
- /// </summary>
- public Variant GetAnimationValue (float scaledTime)
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_GetAnimationValue (handle, scaledTime);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool ValueAnimation_HasEventFrames (IntPtr handle);
- /// <summary>
- /// Has event frames.
- /// </summary>
- public bool HasEventFrames ()
- {
- Runtime.ValidateRefCounted (this);
- return ValueAnimation_HasEventFrames (handle);
- }
- public override StringHash Type {
- get {
- return UrhoGetType ();
- }
- }
- public override string TypeName {
- get {
- return GetTypeName ();
- }
- }
- [Preserve]
- public new static StringHash TypeStatic {
- get {
- return GetTypeStatic ();
- }
- }
- public new static string TypeNameStatic {
- get {
- return GetTypeNameStatic ();
- }
- }
- /// <summary>
- /// Return owner.
- /// Or
- /// Set owner.
- /// </summary>
- public IntPtr Owner {
- get {
- return GetOwner ();
- }
- set {
- SetOwner (value);
- }
- }
- /// <summary>
- /// Return interpolation method.
- /// Or
- /// Set interpolation method.
- /// </summary>
- public InterpMethod InterpolationMethod {
- get {
- return GetInterpolationMethod ();
- }
- set {
- SetInterpolationMethod (value);
- }
- }
- /// <summary>
- /// Return spline tension.
- /// Or
- /// Set spline tension, should be between 0.0f and 1.0f, but this is not a must.
- /// </summary>
- public float SplineTension {
- get {
- return GetSplineTension ();
- }
- set {
- SetSplineTension (value);
- }
- }
- /// <summary>
- /// Return value type.
- /// Or
- /// Set value type.
- /// </summary>
- public VariantType ValueType {
- get {
- return GetValueType ();
- }
- set {
- SetValueType (value);
- }
- }
- /// <summary>
- /// Return animation is valid.
- /// </summary>
- public bool Valid {
- get {
- return IsValid ();
- }
- }
- /// <summary>
- /// Return begin time.
- /// </summary>
- public float BeginTime {
- get {
- return GetBeginTime ();
- }
- }
- /// <summary>
- /// Return end time.
- /// </summary>
- public float EndTime {
- get {
- return GetEndTime ();
- }
- }
- }
- }
|