namespace Tizen.NUI
{
- // Please do not use! This will be changed to internal class.
/// <summary>
/// A three-dimensional size.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class Size : global::System.IDisposable
+ internal class Size : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>swigCMemOwn.</summary>
}
/// <summary>
- /// This will be deprecated, please use Image instead. <br />
- /// ImageView ImageMap, type PropertyMap: string if it is a URL, map otherwise.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Image property instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public PropertyMap ImageMap
- {
- get
- {
- if (_border == null)
- {
- PropertyMap temp = new PropertyMap();
- GetProperty(ImageView.Property.IMAGE).Get(temp);
- return temp;
- }
- else
- {
- return null;
- }
- }
- set
- {
- if (_border == null)
- {
- if (_url != null) { value.Add("url", new PropertyValue(_url)); }
- SetProperty(ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(value));
- }
- }
- }
-
- /// <summary>
/// ImageView Image, type PropertyMap
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
}
- /// <summary>
- /// Please do not use! this will be deprecated.
- /// </summary>
- /// Please do not use! this will be deprecated!
- /// Instead please use PositionUsesPivotPoint.
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
- "Like: " +
- "View view = new View(); " +
- "view.PivotPoint = PivotPoint.Center; " +
- "view.PositionUsesPivotPoint = true;")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool PositionUsesAnchorPoint
- {
- get
- {
- bool temp = false;
- GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
- }
- }
-
internal bool FocusState
{
get
}
/// <summary>
- /// Returns the natural size of the view.
- /// </summary>
- /// <remarks>
- /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
- /// </remarks>
- /// /// Please do not use! this will be deprecated!
- /// Instead please use NaturalSize2D.
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use NaturalSize2D instead! " +
- "Like: " +
- "TextLabel label = new TextLabel(\"Hello World!\"); " +
- "Size2D size = label.NaturalSize2D;")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Vector3 NaturalSize
- {
- get
- {
- Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
/// Returns the natural size (Size2D) of the view.
/// </summary>
/// <remarks>
}
/// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use PivotPoint.
- [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
- "Like: " +
- "View view = new View(); " +
- "view.PivotPoint = PivotPoint.Center; " +
- "view.PositionUsesPivotPoint = true;")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Position AnchorPoint
- {
- get
- {
- Position temp = new Position(0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.ANCHOR_POINT).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead! " +
- "Like: " +
- "View view = new View(); " +
- "view.Size2D = new Size2D(100, 100);")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Size Size
- {
- get
- {
- Size temp = new Size(0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.SIZE).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
- /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
- "Like: " +
- "Container parent = view.GetParent(); " +
- "View view = parent as View;")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new View Parent
- {
- get
- {
- View ret;
- IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
- HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
-
- if (basehandle is Layer)
- {
- ret = new View(cPtr, false);
- NUILog.Error("This Parent property is deprecated, shoud do not be used");
- }
- else
- {
- ret = basehandle as View;
- }
-
- NDalicPINVOKE.delete_BaseHandle(CPtr);
- CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
-
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
/// Gets/Sets whether inherit parent's the layout Direction.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
/// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// Please do not use! this will be deprecated!
- /// Instead please use Padding.
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Extents PaddingEX
- {
- get
- {
- Extents temp = new Extents(0, 0, 0, 0);
- GetProperty(View.Property.PADDING).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
- }
- }
-
- /// <summary>
/// Perform an action on a visual registered to this view. <br />
/// Visuals will have actions, this API is used to perform one of these actions with the given attributes.
/// </summary>
}
}
-
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated.
- /// Instead please use FocusedViewActivatedEventArgs.
- [Obsolete("Please do not use! This will be deprecated! Please use FocusedViewActivatedEventArgs instead! " +
- "Like: " +
- "FocusManager.Instance.FocusedViewActivated = OnFocusedViewActivated; " +
- "private void OnFocusedViewActivated(object source, FocusManager.FocusedViewActivatedEventArgs arg)" +
- "{...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class FocusedViewEnterKeyEventArgs : EventArgs
- {
- private View _view;
-
- /// <summary>
- /// View.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- private EventHandler<FocusedViewEnterKeyEventArgs> _focusedViewEnterKeyEventHandler2;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void FocusedViewEnterKeyEventCallback2(IntPtr view);
private FocusedViewEnterKeyEventCallback2 _focusedViewEnterKeyEventCallback2;
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use FocusedViewActivated.
- [Obsolete("Please do not use! This will be deprecated! Please use FocusManager.FocusedViewActivated instead! " +
- "Like: " +
- "FocusManager.Instance.FocusedViewActivated = OnFocusedViewActivated; " +
- "private void OnFocusedViewActivated(object source, FocusManager.FocusedViewActivatedEventArgs args) {...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<FocusedViewEnterKeyEventArgs> FocusedViewEnterKeyPressed
- {
- add
- {
- if (_focusedViewEnterKeyEventCallback2 == null)
- {
- _focusedViewEnterKeyEventCallback2 = OnFocusedViewEnterKey2;
- FocusedViewEnterKeySignal().Connect(_focusedViewEnterKeyEventCallback2);
- }
- _focusedViewEnterKeyEventHandler2 += value;
- }
- remove
- {
- _focusedViewEnterKeyEventHandler2 -= value;
-
- if (_focusedViewEnterKeyEventCallback2 != null && FocusedViewEnterKeySignal().Empty() == false)
- {
- FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback2);
- }
- }
- }
-
- /// <summary>
- /// Please do not use! this will be deprecated!
- /// </summary>
- /// Please do not use! this will be deprecated!
- /// Instead please use OnFocusedViewEnterKey.
- [Obsolete("Please do not use! This will be deprecated! Please use FocusManager.OnFocusedViewEnterKey instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- private void OnFocusedViewEnterKey2(IntPtr view)
- {
- FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
-
- e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
-
- if (_focusedViewEnterKeyEventHandler != null)
- {
- _focusedViewEnterKeyEventHandler(this, e);
- }
- }
}
}
\ No newline at end of file
}
/// <summary>
- /// Downcasts a handle to layer handle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use as keyword.
- [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static Layer DownCast(BaseHandle handle)
- {
- Layer ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Layer;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
/// Search through this layer's hierarchy for a view with the given unique ID.
/// </summary>
/// <pre>This layer (the parent) has been initialized.</pre>
/// <summary>
/// Use to make style change event disabled.
/// </summary>
- DisableStyleChangeSignals = 1 << 6,
- /// <summary>
- /// Please do not use! This will be deprecated!
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- LastViewBehaviourFlag
+ DisableStyleChangeSignals = 1 << 6
}
/// <summary>
Implicit,
}
-
-
- /// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public struct AnchorPoint
- {
- /// <summary>
- /// Top
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static float Top
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointTop_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// Bottom
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static float Bottom
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointBottom_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// Left
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static float Left
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointLeft_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// Right
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static float Right
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointRight_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// Middle
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static float Middle
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointMiddle_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// TopLeft
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position TopLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// TopCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position TopCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// TopRight
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position TopRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// CenterLeft
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position CenterLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// Center
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position Center
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// CenterRight
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position CenterRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// BottomLeft
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position BottomLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// BottomCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position BottomCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- /// <summary>
- /// BottomRight
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static Position BottomRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- }
-
/// <summary>
/// An enum of the scroll state of the text eidtor.
/// </summary>
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- /// <summary>
- /// Please do not use! this will be deprecated, please use VisualFactory.Instance instead.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use VisualFactory.Instance instead! " +
- "Like: " +
- "VisualFactory visualFactory = VisualFactory.Instance; " +
- "visualFactory.CreateVisual(visualMap);")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static VisualFactory Get()
+ internal static VisualFactory Get()
{
VisualFactory ret = new VisualFactory(NDalicPINVOKE.VisualFactory_Get(), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
/// <summary>
/// Request the visual.
/// </summary>
}
/// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use FocusChangedEventArgs instead! " +
- "Like: " +
- "Window.Instance.FocusChanged = OnFocusChanged; " +
- "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class WindowFocusChangedEventArgs : EventArgs
- {
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public bool FocusGained
- {
- get;
- set;
- }
- }
-
- private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback2;
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowFocusChangedEventCallbackType2(bool focusGained);
- private event EventHandler<WindowFocusChangedEventArgs> _windowFocusChangedEventHandler2;
-
- /// <summary>
- /// Please do not use! this will be deprecated. Please use 'FocusChanged' event instead.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- /// Please do not use! this will be deprecated!
- /// Instead please use FocusChanged.
- [Obsolete("Please do not use! This will be deprecated! Please use FocusChanged instead! " +
- "Like: " +
- "Window.Instance.FocusChanged = OnFocusChanged; " +
- "private void OnFocusChanged(object source, Window.FocusChangedEventArgs args) {...}")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<WindowFocusChangedEventArgs> WindowFocusChanged
- {
- add
- {
- if (_windowFocusChangedEventHandler2 == null)
- {
- _windowFocusChangedEventCallback2 = OnWindowFocusedChanged2;
- WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback2);
- }
-
- _windowFocusChangedEventHandler2 += value;
- }
- remove
- {
- _windowFocusChangedEventHandler2 -= value;
-
- if (_windowFocusChangedEventHandler2 == null && WindowFocusChangedSignal().Empty() == false && _windowFocusChangedEventCallback2 != null)
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback2);
- }
- }
- }
-
- private void OnWindowFocusedChanged2(bool focusGained)
- {
- WindowFocusChangedEventArgs e = new WindowFocusChangedEventArgs();
-
- e.FocusGained = focusGained;
-
- if (_windowFocusChangedEventHandler2 != null)
- {
- _windowFocusChangedEventHandler2(this, e);
- }
- }
-
- /// <summary>
/// Gets or sets a size of the window.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
/// <summary>
- /// Feed a key-event into the window.
- /// </summary>
- /// <param name="keyEvent">The key event to feed.</param>
- /// <since_tizen> 4 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use FeedKey(Key keyEvent) instead!")]
- public void FeedKeyEvent(Key keyEvent)
- {
- NDalicManualPINVOKE.Window_FeedKeyEvent(Key.getCPtr(keyEvent));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
/// Allows at least one more render, even when paused.
/// The window should be shown, not minimised.
/// </summary>