public static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
public static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
public static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
+ public static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
%}
%typemap(cscode) Dali::Toolkit::Control::Property %{
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
}
- public Vector2 ScreenPosition
- {
+ public Vector2 ScreenPosition
+ {
get
{
Vector2 temp = new Vector2( 0.0f, 0.0f );
GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp );
return temp;
}
- }
+ }
- public bool StateFocusEnable
+ protected bool PositionUsesAnchorPoint
{
+ get
+ {
+ bool temp = false;
+ GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp );
+ return temp;
+ }
set
{
- SetKeyboardFocusable(value);
+ SetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value( value ) );
}
+ }
+
+ public bool StateFocusEnable
+ {
get
{
return IsKeyboardFocusable();
}
+ set
+ {
+ SetKeyboardFocusable(value);
+ }
}
public bool IsOnStage
return Dali::DevelActor::Property::SCREEN_POSITION;
}
+SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get() {
+
+ return Dali::DevelActor::Property::POSITION_USES_ANCHOR_POINT;
+}
+
SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_TOOLTIP_get() {
int jresult ;
int result;
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
[global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_SCREEN_POSITION_get")]
public static extern int Actor_Property_SCREEN_POSITION_get();
+ [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get")]
+ public static extern int Actor_Property_POSITION_USES_ANCHOR_POINT_get();
+
[global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_TOOLTIP_get")]
public static extern int View_Property_TOOLTIP_get();
// Register this instance of view in the view registry.
ViewRegistry.RegisterView(this);
+
+ // By default, we do not want the position to use the anchor point
+ this.PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj) {