예제 #1
0
        /// <summary>
        /// Dispose.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        protected override void Dispose(DisposeTypes type)
        {
            if (disposed)
            {
                return;
            }

            if (type == DisposeTypes.Explicit)
            {
                //Called by User
                //Release your own managed resources here.
                //You should release all of your own disposable objects here.
            }

            //Release your own unmanaged resources here.
            //You should not access any managed member here except static instance.
            //because the execution order of Finalizes is non-deterministic.

            if (_timerTickCallbackDelegate != null)
            {
                TickSignal().Disconnect(_timerTickCallbackDelegate);
            }

            if (swigCPtr.Handle != global::System.IntPtr.Zero)
            {
                if (swigCMemOwn)
                {
                    swigCMemOwn = false;
                    NDalicPINVOKE.delete_Timer(swigCPtr);
                }
                swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
            }

            played = false;
            base.Dispose(type);
        }
예제 #2
0
        /// <summary>
        /// Increments the depth of the layer.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        public void Raise()
        {
            var parentChildren = Window.Instance.LayersChildren;

            if (parentChildren != null)
            {
                int currentIdx = parentChildren.IndexOf(this);

                if (currentIdx >= 0 && currentIdx < parentChildren.Count - 1)
                {
                    RaiseAbove(parentChildren[currentIdx + 1]);

                    Layer temp = parentChildren[currentIdx + 1];
                    parentChildren[currentIdx + 1] = this;
                    parentChildren[currentIdx]     = temp;

                    NDalicPINVOKE.Layer_Raise(swigCPtr);
                    if (NDalicPINVOKE.SWIGPendingException.Pending)
                    {
                        throw NDalicPINVOKE.SWIGPendingException.Retrieve();
                    }
                }
            }
        }
예제 #3
0
        /// <summary>
        /// Decrements the depth of the layer.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        public void Lower()
        {
            var parentChildren = Window.Instance.LayersChildren;

            if (parentChildren != null)
            {
                int currentIdx = parentChildren.IndexOf(this);

                if (currentIdx > 0 && currentIdx < parentChildren.Count)
                {
                    LowerBelow(parentChildren[currentIdx - 1]);

                    Layer temp = parentChildren[currentIdx - 1];
                    parentChildren[currentIdx - 1] = this;
                    parentChildren[currentIdx]     = temp;

                    NDalicPINVOKE.Layer_Lower(swigCPtr);
                    if (NDalicPINVOKE.SWIGPendingException.Pending)
                    {
                        throw NDalicPINVOKE.SWIGPendingException.Retrieve();
                    }
                }
            }
        }
예제 #4
0
 public ScrollViewPagePathEffect(Path path, Vector3 forward, int inputPropertyIndex, Vector3 pageSize, uint pageCount) : this(NDalicPINVOKE.ScrollViewPagePathEffect_New(Path.getCPtr(path), Vector3.getCPtr(forward), inputPropertyIndex, Vector3.getCPtr(pageSize), pageCount), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
 public PixelData(byte[] buffer, uint bufferSize, uint width, uint height, PixelFormat pixelFormat, PixelData.ReleaseFunction releaseFunction) : this(NDalicPINVOKE.PixelData_New(buffer, bufferSize, width, height, (int)pixelFormat, (int)releaseFunction), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
 static public string GetEnvironmentVariable(string variable)
 {
     return(NDalicPINVOKE.EnvironmentVariable_GetEnvironmentVariable(variable));
 }
예제 #7
0
 /// <summary>
 /// Create an instance of BaseHandle.
 /// </summary>
 /// <param name="handle">The BaseHandle instance.</param>
 /// <since_tizen> 3 </since_tizen>
 public BaseHandle(BaseHandle handle)
     : this(NDalicPINVOKE.new_BaseHandle__SWIG_2(BaseHandle.getCPtr(handle)))
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #8
0
 /// <summary>
 /// Resets the handle.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 public void Reset()
 {
     NDalicPINVOKE.BaseHandle_Reset(swigCPtr);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #9
0
 /// <summary>
 /// Returns the type name for the Handle.<br />
 /// Will return an empty string if the typename does not exist. This will happen for types that
 /// have not registered with type-registry.
 /// </summary>
 /// <returns>The type name. Empty string if the typename does not exist.</returns>
 /// <since_tizen> 3 </since_tizen>
 public string GetTypeName()
 {
     string ret = NDalicPINVOKE.BaseHandle_GetTypeName(swigCPtr);
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #10
0
 /// <summary>
 /// Performs an action on this object with the given action name and attributes.
 /// </summary>
 /// <param name="actionName">The command for the action.</param>
 /// <param name="attributes">The list of attributes for the action.</param>
 /// <returns>The action is performed by the object or not.</returns>
 /// <since_tizen> 3 </since_tizen>
 public bool DoAction(string actionName, PropertyMap attributes)
 {
     bool ret = NDalicPINVOKE.BaseHandle_DoAction(swigCPtr, actionName, PropertyMap.getCPtr(attributes));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #11
0
파일: Key.cs 프로젝트: yl33/TizenFX
 /// <summary>
 /// The constructor.
 /// </summary>
 /// <param name="keyName">The name of the key pressed or command from the IMF, if later, then the following parameters will be needed.</param>
 /// <param name="keyString">A string of input characters or key pressed.</param>
 /// <param name="keyCode">The unique key code for the key pressed.</param>
 /// <param name="keyModifier">The key modifier for special keys like Shift and Alt.</param>
 /// <param name="timeStamp">The time (in ms) that the key event occurred.</param>
 /// <param name="keyState">The state of the key event.</param>
 internal Key(string keyName, string keyString, int keyCode, int keyModifier, uint timeStamp, Key.StateType keyState) : this(NDalicPINVOKE.new_Key__SWIG_1(keyName, keyString, keyCode, keyModifier, timeStamp, (int)keyState), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #12
0
파일: NDalic.cs 프로젝트: prjung/TizenFX
        internal static SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t NewItemLayout(DefaultItemLayoutType type)
        {
            SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(NDalicPINVOKE.NewItemLayout((int)type), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #13
0
 internal KeyInputFocusManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.KeyInputFocusManager_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #14
0
        internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t KeyInputFocusChangedSignal()
        {
            SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__Control_Dali__Toolkit__ControlF_t(NDalicPINVOKE.KeyInputFocusManager_KeyInputFocusChangedSignal(swigCPtr), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #15
0
파일: WebView.cs 프로젝트: yl33/TizenFX
 private void InitializeSignals()
 {
     pageLoadStartedSignalProxy  = new global::System.Runtime.InteropServices.HandleRef(this, NDalicPINVOKE.new_WebViewSignalProxy_PageLoadStarted(swigCPtr));
     pageLoadFinishedSignalProxy = new global::System.Runtime.InteropServices.HandleRef(this, NDalicPINVOKE.new_WebViewSignalProxy_PageLoadFinished(swigCPtr));
 }
예제 #16
0
 internal PropertyNotification(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PropertyNotification_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #17
0
 public TouchPoint(int id, TouchPoint.StateType state, float screenX, float screenY, float localX, float localY) : this(NDalicPINVOKE.new_TouchPoint__SWIG_1(id, (int)state, screenX, screenY, localX, localY), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #18
0
 public GaussianBlurView(uint numSamples, float blurBellCurveWidth, PixelFormat renderTargetPixelFormat, float downsampleWidthScale, float downsampleHeightScale) : this(NDalicPINVOKE.GaussianBlurView_New__SWIG_2(numSamples, blurBellCurveWidth, (int)renderTargetPixelFormat, downsampleWidthScale, downsampleHeightScale), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #19
0
 /// <summary>
 /// Returns the type info for the Handle.<br />
 /// </summary>
 /// <param name="info">The type information.</param>
 /// <returns>True If get the type info.</returns>
 /// <since_tizen> 3 </since_tizen>
 public bool GetTypeInfo(Tizen.NUI.TypeInfo info)
 {
     bool ret = NDalicPINVOKE.BaseHandle_GetTypeInfo(swigCPtr, Tizen.NUI.TypeInfo.getCPtr(info));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #20
0
 internal GaussianBlurView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GaussianBlurView_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #21
0
 /// <summary>
 /// To check the BaseHandle instance is equal or not.
 /// </summary>
 /// <param name="rhs">The baseHandle instance.</param>
 /// <returns>True If not equal.</returns>
 /// <since_tizen> 3 </since_tizen>
 public bool NotEqualTo(BaseHandle rhs)
 {
     bool ret = NDalicPINVOKE.BaseHandle_NotEqualTo(swigCPtr, BaseHandle.getCPtr(rhs));
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
예제 #22
0
 internal ObjectRegistry(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ObjectRegistry_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #23
0
 /// <summary>
 /// Create an instance of BaseHandle.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 public BaseHandle()
     : this(NDalicPINVOKE.new_BaseHandle__SWIG_1())
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #24
0
 internal VisualBase(SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base impl) : this(NDalicPINVOKE.new_VisualBase__SWIG_2(SWIGTYPE_p_Dali__Toolkit__Internal__Visual__Base.getCPtr(impl)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #25
0
 internal LongPressGestureDetector(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.LongPressGestureDetector_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #26
0
        public SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetActiveLayout()
        {
            SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(NDalicPINVOKE.ItemView_GetActiveLayout(swigCPtr), true);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #27
0
 static public bool SetEnvironmentVariable(string variable, string value)
 {
     return(NDalicPINVOKE.EnvironmentVariable_SetEnvironmentVariable(variable, value));
 }
예제 #28
0
파일: WebView.cs 프로젝트: yl33/TizenFX
        internal WebView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.WebView_SWIGUpcast(cPtr), cMemoryOwn)
        {
            swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);

            InitializeSignals();
        }
예제 #29
0
 internal Animatable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Handle_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
예제 #30
0
 internal ScrollViewPagePathEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollViewPagePathEffect_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }