[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CanvasView_RemoveAllDrawables")]
public static extern void RemoveAllDrawables(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CanvasView_Property_VIEWBOX_get")]
+ public static extern int PropertyViewBoxGet();
}
}
}
}
/// <summary>
+ /// Set size of CanvasView's viewbox.
+ /// </summary>
+ /// <param name="viewBox">The size of viewBox</param>
+ /// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetViewBoxSize(Size2D viewBox)
+ {
+ if (viewBox == null)
+ {
+ throw new ArgumentNullException(nameof(viewBox));
+ }
+ PropertyValue setVal = new Tizen.NUI.PropertyValue(viewBox);
+ SetProperty(Interop.CanvasView.PropertyViewBoxGet(), setVal);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ setVal?.Dispose();
+ }
+
+ /// <summary>
+ /// Get size of CanvasView's viewbox.
+ /// </summary>
+ /// <returns>The size of viewBox</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Size2D GetViewBoxSize()
+ {
+ Size2D retVal = new Size2D(0, 0);
+ PropertyValue viewBoxPropertyValue = GetProperty(Interop.CanvasView.PropertyViewBoxGet());
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ viewBoxPropertyValue?.Get(retVal);
+ viewBoxPropertyValue?.Dispose();
+ return retVal;
+ }
+
+ /// <summary>
/// Add drawable object to the CanvasView.
/// This method is similar to registration. The added shape is drawn on the inner canvas.
/// </summary>