[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_RemoveRenderer__SWIG_1")]
public static extern void RemoveRenderer(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_GetSuggestedMinimumWidth")]
+ public static extern float GetSuggestedMinimumWidth(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_GetSuggestedMinimumHeight")]
+ public static extern float GetSuggestedMinimumHeight(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
}
}
}
+ internal LayoutLength SuggestedMinimumWidth
+ {
+ get
+ {
+ float result = Interop.Actor.GetSuggestedMinimumWidth(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return new LayoutLength(result);
+ }
+ }
+
+ internal LayoutLength SuggestedMinimumHeight
+ {
+ get
+ {
+ float result = Interop.Actor.GetSuggestedMinimumHeight(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return new LayoutLength(result);
+ }
+ }
+
internal float WorldPositionX
{
get
{
get
{
- float maximumWidth = Owner.MaximumSize.Width;
- float minimumWidth = Owner.MinimumSize.Width;
-
- float baseHeight = Owner.MaximumSize.Height > 0 ? Math.Min(Owner.MaximumSize.Height, Owner.NaturalSize.Height) : Owner.NaturalSize.Height;
- float baseWidth = Owner.GetWidthForHeight(baseHeight);
-
- float result = minimumWidth > 0 ? Math.Max(baseWidth, minimumWidth) : baseWidth;
- result = maximumWidth > 0 ? Math.Min(result, maximumWidth) : result;
-
- return new LayoutLength(result);
+ return Owner.SuggestedMinimumWidth;
}
}
{
get
{
- float maximumHeight = Owner.MaximumSize.Height;
- float minimumHeight = Owner.MinimumSize.Height;
-
- float baseWidth = Owner.MaximumSize.Width > 0 ? Math.Min(Owner.MaximumSize.Width, Owner.NaturalSize.Width) : Owner.NaturalSize.Width;
- float baseHeight = Owner.GetHeightForWidth(baseWidth);
-
- float result = minimumHeight > 0 ? Math.Max(baseHeight, minimumHeight) : baseHeight;
- result = maximumHeight > 0 ? Math.Min(result, maximumHeight) : result;
-
- return new LayoutLength(result);
+ return Owner.SuggestedMinimumHeight;
}
}