LayoutDirectionChanged
{
add
{
if (_layoutDirectionChangedEventHandler == null)
{
_layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
}
_layoutDirectionChangedEventHandler += value;
}
remove
{
_layoutDirectionChangedEventHandler -= value;
if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
{
LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
}
}
}
// Callback for View layout direction change signal
private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
{
LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
if (data != null)
{
e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
}
e.Type = type;
if (_layoutDirectionChangedEventHandler != null)
{
_layoutDirectionChangedEventHandler(this, e);
}
}
// Resource Ready Signal
private EventHandler _resourcesLoadedEventHandler;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void ResourcesLoadedCallbackType(IntPtr control);
private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
///
/// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.
/// This signal is emitted after all resources required by a view are loaded and ready.
///
/// 3
public event EventHandler ResourcesLoaded
{
add
{
if (_resourcesLoadedEventHandler == null)
{
_ResourcesLoadedCallback = OnResourcesLoaded;
this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
}
_resourcesLoadedEventHandler += value;
}
remove
{
_resourcesLoadedEventHandler -= value;
if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
{
this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
}
}
}
private void OnResourcesLoaded(IntPtr view)
{
if (_resourcesLoadedEventHandler != null)
{
_resourcesLoadedEventHandler(this, null);
}
}
internal IntPtr GetPtrfromView()
{
return (IntPtr)swigCPtr;
}
internal class Property
{
internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
internal static readonly int PADDING = NDalicPINVOKE.View_Property_PADDING_get();
}
///
/// Describes the direction to move the focus towards.
///
/// 3
public enum FocusDirection
{
///
/// Move keyboard focus towards the left direction.
///
/// 3
Left,
///
/// Move keyboard focus towards the right direction.
///
/// 3
Right,
///
/// Move keyboard focus towards the up direction.
///
/// 3
Up,
///
/// Move keyboard focus towards the down direction.
///
/// 3
Down,
///
/// Move keyboard focus towards the previous page direction.
///
/// 3
PageUp,
///
/// Move keyboard focus towards the next page direction.
///
/// 3
PageDown
}
protected void InitXamlResource()
{
if (null != Application.Current)
{
Application.AddResourceChangedCallback(this, OnResourcesChanged);
}
}
///
/// Creates a new instance of a view.
///
/// 3
public View() : this(NDalicPINVOKE.View_New(), true)
{
InitXamlResource();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
{
InitXamlResource();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
private View ConvertIdToView(uint id)
{
View view = null;
if (GetParent() is View)
{
View parentView = GetParent() as View;
view = parentView.FindChildById(id);
}
if (!view)
{
view = Window.Instance.GetRootLayer().FindChildById(id);
}
return view;
}
internal void SetKeyInputFocus()
{
NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
///
/// Queries whether the view has a focus.
///
/// True if this view has a focus.
/// 3
public bool HasFocus()
{
bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void ClearKeyInputFocus()
{
NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal PinchGestureDetector GetPinchGestureDetector()
{
PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal PanGestureDetector GetPanGestureDetector()
{
PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal TapGestureDetector GetTapGestureDetector()
{
TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal LongPressGestureDetector GetLongPressGestureDetector()
{
LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Sets the name of the style to be applied to the view.
///
/// A string matching a style described in a stylesheet.
/// 3
public void SetStyleName(string styleName)
{
NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
///
/// Retrieves the name of the style to be applied to the view (if any).
///
/// A string matching a style, or an empty string.
/// 3
public string GetStyleName()
{
string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetBackgroundColor(Vector4 color)
{
NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector4 GetBackgroundColor()
{
Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetBackgroundImage(Image image)
{
NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
///
/// Clears the background.
///
/// 3
public void ClearBackground()
{
NDalicPINVOKE.View_ClearBackground(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal ControlKeySignal KeyEventSignal()
{
ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal KeyInputFocusSignal KeyInputFocusGainedSignal()
{
KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal KeyInputFocusSignal KeyInputFocusLostSignal()
{
KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal enum PropertyRange
{
PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
}
///
/// The StyleName, type string.
///
/// 3
public string StyleName
{
get
{
return (string)GetValue(StyleNameProperty);
}
set
{
SetValue(StyleNameProperty, value);
NotifyPropertyChanged();
}
}
///
/// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
///
/// 3
public Color BackgroundColor
{
get
{
return (Color)GetValue(BackgroundColorProperty);
}
set
{
SetValue(BackgroundColorProperty, value);
NotifyPropertyChanged();
}
}
///
/// Creates an animation to animate the background color visual. If there is no
/// background visual, creates one with transparent black as it's mixColor.
///
/// 3
public Animation AnimateBackgroundColor(object destinationValue,
int startTime,
int endTime,
AlphaFunction.BuiltinFunctions? alphaFunction = null,
object initialValue = null)
{
Tizen.NUI.PropertyMap background = Background;
if (background.Empty())
{
// If there is no background yet, ensure there is a transparent
// color visual
BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
background = Background;
}
return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
}
///
/// Creates an animation to animate the mixColor of the named visual.
///
/// 3
public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
{
Animation animation = null;
{
PropertyMap _animator = new PropertyMap();
if (alphaFunction != null)
{
_animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
}
PropertyMap _timePeriod = new PropertyMap();
_timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
_timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
_animator.Add("timePeriod", new PropertyValue(_timePeriod));
PropertyMap _transition = new PropertyMap();
_transition.Add("animator", new PropertyValue(_animator));
_transition.Add("target", new PropertyValue(targetVisual));
_transition.Add("property", new PropertyValue("mixColor"));
if (initialColor != null)
{
PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
_transition.Add("initialValue", initValue);
}
PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
_transition.Add("targetValue", destValue);
TransitionData _transitionData = new TransitionData(_transition);
animation = new Animation(NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
return animation;
}
///
/// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
///
/// 3
public string BackgroundImage
{
get
{
return (string)GetValue(BackgroundImageProperty);
}
set
{
SetValue(BackgroundImageProperty, value);
NotifyPropertyChanged();
}
}
///
/// The background of view.
///
/// 3
public Tizen.NUI.PropertyMap Background
{
get
{
return (PropertyMap)GetValue(BackgroundProperty);
}
set
{
SetValue(BackgroundProperty, value);
NotifyPropertyChanged();
}
}
///
/// The current state of the view.
///
/// 3
public States State
{
get
{
return (States)GetValue(StateProperty);
}
set
{
SetValue(StateProperty, value);
NotifyPropertyChanged();
}
}
///
/// The current sub state of the view.
///
/// 3
public States SubState
{
get
{
return (States)GetValue(SubStateProperty);
}
set
{
SetValue(SubStateProperty, value);
NotifyPropertyChanged();
}
}
///
/// Displays a tooltip
///
/// 3
public Tizen.NUI.PropertyMap Tooltip
{
get
{
return (PropertyMap)GetValue(TooltipProperty);
}
set
{
SetValue(TooltipProperty, value);
NotifyPropertyChanged();
}
}
///
/// Displays a tooltip as a text.
///
/// 3
public string TooltipText
{
set
{
SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
NotifyPropertyChanged();
}
}
private int LeftFocusableViewId
{
get
{
int temp = 0;
GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
}
}
private int RightFocusableViewId
{
get
{
int temp = 0;
GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
}
}
private int UpFocusableViewId
{
get
{
int temp = 0;
GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
}
}
private int DownFocusableViewId
{
get
{
int temp = 0;
GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
}
}
///
/// The Child property of FlexContainer.
/// The proportion of the free space in the container, the flex item will receive.
/// If all items in the container set this property, their sizes will be proportional to the specified flex factor.
///
/// 3
public float Flex
{
get
{
return (float)GetValue(FlexProperty);
}
set
{
SetValue(FlexProperty, value);
NotifyPropertyChanged();
}
}
///
/// The Child property of FlexContainer.
/// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.
///
/// 3
public int AlignSelf
{
get
{
return (int)GetValue(AlignSelfProperty);
}
set
{
SetValue(AlignSelfProperty, value);
NotifyPropertyChanged();
}
}
///
/// The Child property of FlexContainer.
/// The space around the flex item.
///
/// 3
public Vector4 FlexMargin
{
get
{
return (Vector4)GetValue(FlexMarginProperty);
}
set
{
SetValue(FlexMarginProperty, value);
NotifyPropertyChanged();
}
}
///
/// The top-left cell this child occupies, if not set, the first available cell is used.
///
/// 3
public Vector2 CellIndex
{
get
{
return (Vector2)GetValue(CellIndexProperty);
}
set
{
SetValue(CellIndexProperty, value);
NotifyPropertyChanged();
}
}
///
/// The number of rows this child occupies, if not set, the default value is 1.
///
/// 3
public float RowSpan
{
get
{
return (float)GetValue(RowSpanProperty);
}
set
{
SetValue(RowSpanProperty, value);
NotifyPropertyChanged();
}
}
///
/// The number of columns this child occupies, if not set, the default value is 1.
///
/// 3
public float ColumnSpan
{
get
{
return (float)GetValue(ColumnSpanProperty);
}
set
{
SetValue(ColumnSpanProperty, value);
NotifyPropertyChanged();
}
}
///
/// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
///
/// 3
public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
{
get
{
return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
}
set
{
SetValue(CellHorizontalAlignmentProperty, value);
NotifyPropertyChanged();
}
}
///
/// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
///
/// 3
public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
{
get
{
return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
}
set
{
SetValue(CellVerticalAlignmentProperty, value);
NotifyPropertyChanged();
}
}
///
/// The left focusable view.
/// This will return null if not set.
/// This will also return null if the specified left focusable view is not on a window.
///
/// 3
public View LeftFocusableView
{
// As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
get
{
return (View)GetValue(LeftFocusableViewProperty);
}
set
{
SetValue(LeftFocusableViewProperty, value);
NotifyPropertyChanged();
}
}
///
/// The right focusable view.
/// This will return null if not set.
/// This will also return null if the specified right focusable view is not on a window.
///
/// 3
public View RightFocusableView
{
// As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
get
{
return (View)GetValue(RightFocusableViewProperty);
}
set
{
SetValue(RightFocusableViewProperty, value);
NotifyPropertyChanged();
}
}
///
/// The up focusable view.
/// This will return null if not set.
/// This will also return null if the specified up focusable view is not on a window.
///
/// 3
public View UpFocusableView
{
// As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
get
{
return (View)GetValue(UpFocusableViewProperty);
}
set
{
SetValue(UpFocusableViewProperty, value);
NotifyPropertyChanged();
}
}
///
/// The down focusable view.
/// This will return null if not set.
/// This will also return null if the specified down focusable view is not on a window.
///
/// 3
public View DownFocusableView
{
// As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
get
{
return (View)GetValue(DownFocusableViewProperty);
}
set
{
SetValue(DownFocusableViewProperty, value);
NotifyPropertyChanged();
}
}
///
/// Whether the view should be focusable by keyboard navigation.
///
/// 3
public bool Focusable
{
set
{
SetValue(FocusableProperty, value);
NotifyPropertyChanged();
}
get
{
return (bool)GetValue(FocusableProperty);
}
}
///
/// Enumeration for describing the states of the view.
///
/// 3
public enum States
{
///
/// The normal state.
///
Normal,
///
/// The focused state.
///
Focused,
///
/// The disabled state.
///
Disabled
}
///
/// Retrieves the position of the view.
/// The coordinates are relative to the view's parent.
///
/// 3
public Position CurrentPosition
{
get
{
return GetCurrentPosition();
}
}
///
/// Sets the size of a view for the width and the height.
/// Geometry can be scaled to fit within this area.
/// This does not interfere with the view's scale factor.
/// The views default depth is the minimum of width and height.
///
/// 3
public Size2D Size2D
{
get
{
return (Size2D)GetValue(Size2DProperty);
}
set
{
SetValue(Size2DProperty, value);
NotifyPropertyChanged();
}
}
///
/// Retrieves the size of the view.
/// The coordinates are relative to the view's parent.
///
/// 3
public Size2D CurrentSize
{
get
{
return GetCurrentSize();
}
}
///
/// Retrieves and sets the view's opacity.
///
/// 3
public float Opacity
{
get
{
return (float)GetValue(OpacityProperty);
}
set
{
SetValue(OpacityProperty, value);
NotifyPropertyChanged();
}
}
///
/// Sets the position of the view for X and Y.
/// By default, sets the position vector between the parent origin and the pivot point (default).
/// If the position inheritance is disabled, sets the world position.
///
/// 3
public Position2D Position2D
{
get
{
return (Position2D)GetValue(Position2DProperty);
}
set
{
SetValue(Position2DProperty, value);
NotifyPropertyChanged();
}
}
///
/// Retrieves the screen postion of the view.
///
/// 3
public Vector2 ScreenPosition
{
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
GetProperty(View.Property.SCREEN_POSITION).Get(temp);
return temp;
}
}
///
/// Determines whether the pivot point should be used to determine the position of the view.
/// This is true by default.
///
/// If false, then the top-left of the view is used for the position.
/// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
///
/// 3
public bool PositionUsesPivotPoint
{
get
{
return (bool)GetValue(PositionUsesPivotPointProperty);
}
set
{
SetValue(PositionUsesPivotPointProperty, value);
NotifyPropertyChanged();
}
}
///
/// Please do not use! this will be deprecated.
///
/// Please do not use! this will be deprecated!
/// Instead please use PositionUsesPivotPoint.
/// 3
[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));
NotifyPropertyChanged();
}
}
internal bool FocusState
{
get
{
return IsKeyboardFocusable();
}
set
{
SetKeyboardFocusable(value);
}
}
///
/// Queries whether the view is connected to the stage.
/// When a view is connected, it will be directly or indirectly parented to the root view.
///
/// 3
public bool IsOnWindow
{
get
{
return OnWindow();
}
}
///
/// Gets the depth in the hierarchy for the view.
///
/// 3
public int HierarchyDepth
{
get
{
return GetHierarchyDepth();
}
}
///
/// Sets the sibling order of the view so the depth position can be defined within the same parent.
///
///
/// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
/// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
/// The values set by this property will likely change.
///
/// 3
public int SiblingOrder
{
get
{
return (int)GetValue(SiblingOrderProperty);
}
set
{
SetValue(SiblingOrderProperty, value);
NotifyPropertyChanged();
}
}
///
/// Returns the natural size of the view.
///
///
/// Deriving classes stipulate the natural size and by default a view has a zero natural size.
///
/// /// Please do not use! this will be deprecated!
/// Instead please use NaturalSize2D.
/// 3
[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;
}
}
///
/// Returns the natural size (Size2D) of the view.
///
///
/// Deriving classes stipulate the natural size and by default a view has a zero natural size.
///
/// 4
public Size2D NaturalSize2D
{
get
{
Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return new Size2D((int)temp.Width, (int)temp.Height);
}
}
///
/// Set the layout on this control.
///
///
///
/// 5
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public LayoutItem Layout
{
get
{
IntPtr cPtr = Tizen.NUI.NDalicManualPINVOKE.GetLayout__SWIG_1(View.getCPtr(this));
HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
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 basehandle as LayoutItem;
}
set
{
Tizen.NUI.NDalicManualPINVOKE.SetLayout__SWIG_1(View.getCPtr(this), LayoutItem.getCPtr(value));
}
}
///
/// Shows the view.
///
///
/// This is an asynchronous method.
///
/// 3
public void Show()
{
SetVisible(true);
}
///
/// Hides the view.
///
///
/// This is an asynchronous method.
/// If the view is hidden, then the view and its children will not be rendered.
/// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown.
///
/// 3
public void Hide()
{
SetVisible(false);
}
internal void Raise()
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
int currentIndex = parentChildren.IndexOf(this);
// If the view is not already the last item in the list.
if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
{
View temp = parentChildren[currentIndex + 1];
parentChildren[currentIndex + 1] = this;
parentChildren[currentIndex] = temp;
NDalicPINVOKE.Raise(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
}
internal void Lower()
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
int currentIndex = parentChildren.IndexOf(this);
// If the view is not already the first item in the list.
if (currentIndex > 0 && currentIndex < parentChildren.Count)
{
View temp = parentChildren[currentIndex - 1];
parentChildren[currentIndex - 1] = this;
parentChildren[currentIndex] = temp;
NDalicPINVOKE.Lower(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
}
///
/// Raises the view above all other views.
///
///
/// Sibling order of views within the parent will be updated automatically.
/// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
///
/// 3
public void RaiseToTop()
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
parentChildren.Remove(this);
parentChildren.Add(this);
NDalicPINVOKE.RaiseToTop(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
///
/// Lowers the view to the bottom of all views.
///
///
/// The sibling order of views within the parent will be updated automatically.
/// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
///
/// 3
public void LowerToBottom()
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
parentChildren.Remove(this);
parentChildren.Insert(0, this);
NDalicPINVOKE.LowerToBottom(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
///
/// Queries if all resources required by a view are loaded and ready.
///
/// Most resources are only loaded when the control is placed on the stage.
///
/// 3
public bool IsResourceReady()
{
bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Raises the view to above the target view.
///
/// The sibling order of views within the parent will be updated automatically.
/// Views on the level above the target view will still be shown above this view.
/// Raising this view above views with the same sibling order as each other will raise this view above them.
/// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
///
/// Will be raised above this view.
internal void RaiseAbove(View target)
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
int currentIndex = parentChildren.IndexOf(this);
int targetIndex = parentChildren.IndexOf(target);
if (currentIndex < 0 || targetIndex < 0 ||
currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
{
NUILog.Error("index should be bigger than 0 and less than children of layer count");
return;
}
// If the currentIndex is less than the target index and the target has the same parent.
if (currentIndex < targetIndex)
{
parentChildren.Remove(this);
parentChildren.Insert(targetIndex, this);
NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
}
///
/// Lowers the view to below the target view.
///
/// The sibling order of views within the parent will be updated automatically.
/// Lowering this view below views with the same sibling order as each other will lower this view above them.
/// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
///
/// Will be lowered below this view.
internal void LowerBelow(View target)
{
var parentChildren = GetParent()?.Children;
if (parentChildren != null)
{
int currentIndex = parentChildren.IndexOf(this);
int targetIndex = parentChildren.IndexOf(target);
if (currentIndex < 0 || targetIndex < 0 ||
currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
{
NUILog.Error("index should be bigger than 0 and less than children of layer count");
return;
}
// If the currentIndex is not already the 0th index and the target has the same parent.
if ((currentIndex != 0) && (targetIndex != -1) &&
(currentIndex > targetIndex))
{
parentChildren.Remove(this);
parentChildren.Insert(targetIndex, this);
NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
}
internal string GetName()
{
string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetName(string name)
{
NDalicPINVOKE.Actor_SetName(swigCPtr, name);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal uint GetId()
{
uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal bool IsRoot()
{
bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal bool OnWindow()
{
bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Gets the parent layer of this view.If a view has no parent, this method does nothing.
///
/// The view has been initialized.
/// the parent layer of view
/// 5
public Layer GetLayer()
{
//to fix memory leak issue, match the handle count with native side.
IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
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;
}
///
/// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
///
/// The (child) view has been initialized.
/// 4
public void Unparent()
{
GetParent()?.Remove(this);
}
///
/// Search through this view's hierarchy for a view with the given name.
/// The view itself is also considered in the search.
///
/// The view has been initialized.
/// The name of the view to find.
/// A handle to the view if found, or an empty handle if not.
/// 3
public View FindChildByName(string viewName)
{
//to fix memory leak issue, match the handle count with native side.
IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) 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;
}
internal View FindChildById(uint id)
{
//to fix memory leak issue, match the handle count with native side.
IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) 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;
}
internal void SetParentOrigin(Vector3 origin)
{
NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector3 GetCurrentParentOrigin()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetAnchorPoint(Vector3 anchorPoint)
{
NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector3 GetCurrentAnchorPoint()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetSize(float width, float height)
{
NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetSize(float width, float height, float depth)
{
NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetSize(Vector2 size)
{
NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetSize(Vector3 size)
{
NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector3 GetTargetSize()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Size2D GetCurrentSize()
{
Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
return size;
}
internal Vector3 GetNaturalSize()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetPosition(float x, float y)
{
NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetPosition(float x, float y, float z)
{
NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetPosition(Vector3 position)
{
NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetX(float x)
{
NDalicPINVOKE.Actor_SetX(swigCPtr, x);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetY(float y)
{
NDalicPINVOKE.Actor_SetY(swigCPtr, y);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetZ(float z)
{
NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void TranslateBy(Vector3 distance)
{
NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Position GetCurrentPosition()
{
Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Vector3 GetCurrentWorldPosition()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetInheritPosition(bool inherit)
{
NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal bool IsPositionInherited()
{
bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetOrientation(Degree angle, Vector3 axis)
{
NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetOrientation(Radian angle, Vector3 axis)
{
NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetOrientation(Rotation orientation)
{
NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void RotateBy(Degree angle, Vector3 axis)
{
NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void RotateBy(Radian angle, Vector3 axis)
{
NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void RotateBy(Rotation relativeRotation)
{
NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Rotation GetCurrentOrientation()
{
Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetInheritOrientation(bool inherit)
{
NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal bool IsOrientationInherited()
{
bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Rotation GetCurrentWorldOrientation()
{
Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetScale(float scale)
{
NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetScale(float scaleX, float scaleY, float scaleZ)
{
NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetScale(Vector3 scale)
{
NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void ScaleBy(Vector3 relativeScale)
{
NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector3 GetCurrentScale()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Vector3 GetCurrentWorldScale()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetInheritScale(bool inherit)
{
NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal bool IsScaleInherited()
{
bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Matrix GetCurrentWorldMatrix()
{
Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetVisible(bool visible)
{
NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal bool IsVisible()
{
bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetOpacity(float opacity)
{
NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal float GetCurrentOpacity()
{
float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetColor(Vector4 color)
{
NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector4 GetCurrentColor()
{
Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetColorMode(ColorMode colorMode)
{
NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal ColorMode GetColorMode()
{
ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal Vector4 GetCurrentWorldColor()
{
Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetDrawMode(DrawModeType drawMode)
{
NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal DrawModeType GetDrawMode()
{
DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Converts screen coordinates into the view's coordinate system using the default camera.
///
/// The view has been initialized.
/// The view coordinates are relative to the top-left(0.0, 0.0, 0.5).
/// On return, the X-coordinate relative to the view.
/// On return, the Y-coordinate relative to the view.
/// The screen X-coordinate.
/// The screen Y-coordinate.
/// True if the conversion succeeded.
/// 3
public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
{
bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetKeyboardFocusable(bool focusable)
{
NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal bool IsKeyboardFocusable()
{
bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
{
NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal ResizePolicyType GetResizePolicy(DimensionType dimension)
{
ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Sets the relative to parent size factor of the view.
/// This factor is only used when ResizePolicy is set to either:
/// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.
/// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.
///
/// The view has been initialized.
/// A Vector3 representing the relative factor to be applied to each axis.
/// 3
public void SetSizeModeFactor(Vector3 factor)
{
NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector3 GetSizeModeFactor()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Calculates the height of the view given a width.
/// The natural size is used for default calculation.
/// Size 0 is treated as aspect ratio 1:1.
///
/// The width to use.
/// The height based on the width.
/// 3
public float GetHeightForWidth(float width)
{
float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Calculates the width of the view given a height.
/// The natural size is used for default calculation.
/// Size 0 is treated as aspect ratio 1:1.
///
/// The height to use.
/// The width based on the height.
/// 3
public float GetWidthForHeight(float height)
{
float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Return the amount of size allocated for relayout.
///
/// The dimension to retrieve.
/// Return the size.
/// 3
public float GetRelayoutSize(DimensionType dimension)
{
float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Set the padding for the view.
///
/// Padding for the view.
/// 3
public void SetPadding(PaddingType padding)
{
NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
///
/// Return the value of padding for the view.
///
/// the value of padding for the view
/// 3
public void GetPadding(PaddingType paddingOut)
{
NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal void SetMinimumSize(Vector2 size)
{
NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector2 GetMinimumSize()
{
Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal void SetMaximumSize(Vector2 size)
{
NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector2 GetMaximumSize()
{
Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal int GetHierarchyDepth()
{
int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// 3
public uint AddRenderer(Renderer renderer)
{
uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal uint GetRendererCount()
{
uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// 3
public Renderer GetRendererAt(uint index)
{
//to fix memory leak issue, match the handle count with native side.
IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
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;
}
/// 3
public void RemoveRenderer(Renderer renderer)
{
NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// 3
public void RemoveRenderer(uint index)
{
NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal TouchDataSignal TouchSignal()
{
TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal HoverSignal HoveredSignal()
{
HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal WheelSignal WheelEventSignal()
{
WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewSignal OnWindowSignal()
{
ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewSignal OffWindowSignal()
{
ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewSignal OnRelayoutSignal()
{
ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
{
ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
{
ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal ViewSignal ResourcesLoadedSignal()
{
ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
///
/// Gets or sets the origin of a view within its parent's area.
/// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.
/// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).
/// A view's position is the distance between this origin and the view's anchor-point.
///
/// The view has been initialized.
/// 3
public Position ParentOrigin
{
get
{
return (Position)GetValue(ParentOriginProperty);
}
set
{
SetValue(ParentOriginProperty, value);
NotifyPropertyChanged();
}
}
internal float ParentOriginX
{
get
{
float temp = 0.0f;
GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
NotifyPropertyChanged();
}
}
internal float ParentOriginY
{
get
{
float temp = 0.0f;
GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
NotifyPropertyChanged();
}
}
internal float ParentOriginZ
{
get
{
float temp = 0.0f;
GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
NotifyPropertyChanged();
}
}
///
/// Gets or sets the anchor-point of a view.
/// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.
/// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).
/// A view position is the distance between its parent-origin and this anchor-point.
/// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.
/// The view has been initialized.
///
/// 3
public Position PivotPoint
{
get
{
return (Position)GetValue(PivotPointProperty);
}
set
{
SetValue(PivotPointProperty, value);
NotifyPropertyChanged();
}
}
internal float PivotPointX
{
get
{
float temp = 0.0f;
GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
}
}
internal float PivotPointY
{
get
{
float temp = 0.0f;
GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
}
}
internal float PivotPointZ
{
get
{
float temp = 0.0f;
GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
return temp;
}
set
{
SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
}
}
///
/// Gets or sets the size width of the view.
///
/// 3
public float SizeWidth
{
get
{
return (float)GetValue(SizeWidthProperty);
}
set
{
SetValue(SizeWidthProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the size height of the view.
///
/// 3
public float SizeHeight
{
get
{
return (float)GetValue(SizeHeightProperty);
}
set
{
SetValue(SizeHeightProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the position of the view.
/// By default, sets the position vector between the parent origin and pivot point (default).
/// If the position inheritance is disabled, sets the world position.
///
/// 3
public Position Position
{
get
{
return (Position)GetValue(PositionProperty);
}
set
{
SetValue(PositionProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the position X of the view.
///
/// 3
public float PositionX
{
get
{
return (float)GetValue(PositionXProperty);
}
set
{
SetValue(PositionXProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the position Y of the view.
///
/// 3
public float PositionY
{
get
{
return (float)GetValue(PositionYProperty);
}
set
{
SetValue(PositionYProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the position Z of the view.
///
/// 3
public float PositionZ
{
get
{
return (float)GetValue(PositionZProperty);
}
set
{
SetValue(PositionZProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the world position of the view.
///
/// 3
public Vector3 WorldPosition
{
get
{
Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
GetProperty(View.Property.WORLD_POSITION).Get(temp);
return temp;
}
}
internal float WorldPositionX
{
get
{
float temp = 0.0f;
GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
return temp;
}
}
internal float WorldPositionY
{
get
{
float temp = 0.0f;
GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
return temp;
}
}
internal float WorldPositionZ
{
get
{
float temp = 0.0f;
GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
return temp;
}
}
///
/// Gets or sets the orientation of the view.
/// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.
///
/// This is an asynchronous method.
/// 3
public Rotation Orientation
{
get
{
return (Rotation)GetValue(OrientationProperty);
}
set
{
SetValue(OrientationProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the world orientation of the view.
///
/// 3
public Rotation WorldOrientation
{
get
{
Rotation temp = new Rotation();
GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
return temp;
}
}
///
/// Gets or sets the scale factor applied to the view.
///
/// 3
public Vector3 Scale
{
get
{
return (Vector3)GetValue(ScaleProperty);
}
set
{
SetValue(ScaleProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the scale X factor applied to the view.
///
/// 3
public float ScaleX
{
get
{
return (float)GetValue(ScaleXProperty);
}
set
{
SetValue(ScaleXProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the scale Y factor applied to the view.
///
/// 3
public float ScaleY
{
get
{
return (float)GetValue(ScaleYProperty);
}
set
{
SetValue(ScaleYProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the scale Z factor applied to the view.
///
/// 3
public float ScaleZ
{
get
{
return (float)GetValue(ScaleZProperty);
}
set
{
SetValue(ScaleZProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets the world scale of the view.
///
/// 3
public Vector3 WorldScale
{
get
{
Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
GetProperty(View.Property.WORLD_SCALE).Get(temp);
return temp;
}
}
///
/// Retrieves the visibility flag of the view.
///
///
/// If the view is not visible, then the view and its children will not be rendered.
/// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true.
///
/// 3
public bool Visibility
{
get
{
bool temp = false;
GetProperty(View.Property.VISIBLE).Get(out temp);
return temp;
}
}
///
/// Gets the view's world color.
///
/// 3
public Vector4 WorldColor
{
get
{
Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
GetProperty(View.Property.WORLD_COLOR).Get(temp);
return temp;
}
}
internal Matrix WorldMatrix
{
get
{
Matrix temp = new Matrix();
GetProperty(View.Property.WORLD_MATRIX).Get(temp);
return temp;
}
}
///
/// Gets or sets the view's name.
///
/// 3
public string Name
{
get
{
return (string)GetValue(NameProperty);
}
set
{
SetValue(NameProperty, value);
NotifyPropertyChanged();
}
}
///
/// Get the number of children held by the view.
///
/// 3
public new uint ChildCount
{
get
{
return GetChildCount();
}
}
///
/// Gets the view's ID.
/// Readonly
///
/// 3
public uint ID
{
get
{
return GetId();
}
}
///
/// Gets or sets the status of whether the view should emit touch or hover signals.
///
/// 3
public bool Sensitive
{
get
{
return (bool)GetValue(SensitiveProperty);
}
set
{
SetValue(SensitiveProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
///
/// 3
public bool LeaveRequired
{
get
{
return (bool)GetValue(LeaveRequiredProperty);
}
set
{
SetValue(LeaveRequiredProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of whether a child view inherits it's parent's orientation.
///
/// 3
public bool InheritOrientation
{
get
{
return (bool)GetValue(InheritOrientationProperty);
}
set
{
SetValue(InheritOrientationProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of whether a child view inherits it's parent's scale.
///
/// 3
public bool InheritScale
{
get
{
return (bool)GetValue(InheritScaleProperty);
}
set
{
SetValue(InheritScaleProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of how the view and its children should be drawn.
/// Not all views are renderable, but DrawMode can be inherited from any view.
/// If an object is in a 3D layer, it will be depth-tested against other objects in the world, i.e., it may be obscured if other objects are in front.
/// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.
/// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.
/// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.
///
/// 3
public DrawModeType DrawMode
{
get
{
return (DrawModeType)GetValue(DrawModeProperty);
}
set
{
SetValue(DrawModeProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the relative to parent size factor of the view.
/// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.
/// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.
///
/// 3
public Vector3 SizeModeFactor
{
get
{
return (Vector3)GetValue(SizeModeFactorProperty);
}
set
{
SetValue(SizeModeFactorProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the width resize policy to be used.
///
/// 3
public ResizePolicyType WidthResizePolicy
{
get
{
return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
}
set
{
SetValue(WidthResizePolicyProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the height resize policy to be used.
///
/// 3
public ResizePolicyType HeightResizePolicy
{
get
{
return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
}
set
{
SetValue(HeightResizePolicyProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the policy to use when setting size with size negotiation.
/// Defaults to SizeScalePolicyType.UseSizeSet.
///
/// 3
public SizeScalePolicyType SizeScalePolicy
{
get
{
return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
}
set
{
SetValue(SizeScalePolicyProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of whether the width size is dependent on the height size.
///
/// 3
public bool WidthForHeight
{
get
{
return (bool)GetValue(WidthForHeightProperty);
}
set
{
SetValue(WidthForHeightProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the status of whether the height size is dependent on the width size.
///
/// 3
public bool HeightForWidth
{
get
{
return (bool)GetValue(HeightForWidthProperty);
}
set
{
SetValue(HeightForWidthProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the padding for use in layout.
///
/// 5
public Extents Padding
{
get
{
return (Extents)GetValue(PaddingProperty);
}
set
{
SetValue(PaddingProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the minimum size the view can be assigned in size negotiation.
///
/// 3
public Size2D MinimumSize
{
get
{
return (Size2D)GetValue(MinimumSizeProperty);
}
set
{
SetValue(MinimumSizeProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the maximum size the view can be assigned in size negotiation.
///
/// 3
public Size2D MaximumSize
{
get
{
return (Size2D)GetValue(MaximumSizeProperty);
}
set
{
SetValue(MaximumSizeProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets whether a child view inherits it's parent's position.
/// Default is to inherit.
/// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.
///
/// 3
public bool InheritPosition
{
get
{
return (bool)GetValue(InheritPositionProperty);
}
set
{
SetValue(InheritPositionProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the clipping behavior (mode) of it's children.
///
/// 3
public ClippingModeType ClippingMode
{
get
{
return (ClippingModeType)GetValue(ClippingModeProperty);
}
set
{
SetValue(ClippingModeProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets the number of renderers held by the view.
///
/// 3
public uint RendererCount
{
get
{
return GetRendererCount();
}
}
///
/// [Obsolete("Please do not use! this will be deprecated")]
///
/// 3
/// 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));
NotifyPropertyChanged();
}
}
///
/// [Obsolete("Please do not use! this will be deprecated")]
///
/// 3
[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
{
return (Size)GetValue(SizeProperty);
}
set
{
SetValue(SizeProperty, value);
NotifyPropertyChanged();
}
}
///
/// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
///
/// 3
[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 layer)
{
ret = new View(Layer.getCPtr(layer).Handle, 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;
}
}
///
/// Gets/Sets whether inherit parent's the layout Direction.
///
/// 4
public bool InheritLayoutDirection
{
get
{
return (bool)GetValue(InheritLayoutDirectionProperty);
}
set
{
SetValue(InheritLayoutDirectionProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets/Sets the layout Direction.
///
/// 4
public ViewLayoutDirectionType LayoutDirection
{
get
{
return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
}
set
{
SetValue(LayoutDirectionProperty, value);
NotifyPropertyChanged();
}
}
///
/// Gets or sets the Margin for use in layout.
///
/// 4
public Extents Margin
{
get
{
return (Extents)GetValue(MarginProperty);
}
set
{
SetValue(MarginProperty, value);
NotifyPropertyChanged();
}
}
internal Style Style
{
get
{
return (Style)GetValue(StyleProperty);
}
set
{
SetValue(StyleProperty, value);
}
}
///
/// [Obsolete("Please do not use! this will be deprecated")]
///
/// Please do not use! this will be deprecated!
/// Instead please use Padding.
/// 4
[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));
NotifyPropertyChanged();
}
}
///
/// Perform an action on a visual registered to this view.
/// Visuals will have actions, this API is used to perform one of these actions with the given attributes.
///
/// The Property index of the visual.
/// The action to perform. See Visual to find supported actions.
/// Optional attributes for the action.
/// 5
public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
{
NDalicManualPINVOKE.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal readonly MergedStyle _mergedStyle;
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public int WidthSpecificationFixed
{
get
{
int tmp = 0;
if (GetProperty(LayoutItemWrapper.ChildProperty.WIDTH_SPECIFICATION).Get(out tmp) == false)
{
NUILog.Error("WidthSpecificationFixed get error!");
}
return tmp;
}
set
{
SetProperty(LayoutItemWrapper.ChildProperty.WIDTH_SPECIFICATION, new Tizen.NUI.PropertyValue(value));
}
}
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public int HeightSpecificationFixed
{
get
{
int tmp = 0;
if (GetProperty(LayoutItemWrapper.ChildProperty.HEIGHT_SPECIFICATION).Get(out tmp) == false)
{
NUILog.Error("HeightSpecificationFixed get error!");
}
return tmp;
}
set
{
SetProperty(LayoutItemWrapper.ChildProperty.HEIGHT_SPECIFICATION, new Tizen.NUI.PropertyValue(value));
}
}
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public ChildLayoutData WidthSpecification
{
get
{
int tmp = 0;
if (GetProperty(LayoutItemWrapper.ChildProperty.WIDTH_SPECIFICATION).Get(out tmp) == false)
{
NUILog.Error("WidthSpecificationFixed get error!");
}
return (ChildLayoutData)tmp;
}
set
{
SetProperty(LayoutItemWrapper.ChildProperty.WIDTH_SPECIFICATION, new Tizen.NUI.PropertyValue((int)value));
}
}
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public ChildLayoutData HeightSpecification
{
get
{
int tmp = 0;
if (GetProperty(LayoutItemWrapper.ChildProperty.HEIGHT_SPECIFICATION).Get(out tmp) == false)
{
NUILog.Error("HeightSpecificationFixed get error!");
}
return (ChildLayoutData)tmp;
}
set
{
SetProperty(LayoutItemWrapper.ChildProperty.HEIGHT_SPECIFICATION, new Tizen.NUI.PropertyValue((int)value));
}
}
}
///
/// The View layout Direction type.
///
/// 4
public enum ViewLayoutDirectionType
{
///
/// Left to right.
///
/// 4
LTR,
///
/// Right to left.
///
/// 4
RTL
}
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public enum ChildLayoutData
{
MatchParent = -1,
WrapContent = -2,
}
}