/// <summary> /// Gets the hints for an object's aspect ratio. /// </summary> /// <param name="aspect">The policy or type of aspect ratio to apply to an object.</param> /// <param name="w">The integer to be used as aspect width ratio term.</param> /// <param name="h">The integer to be used as aspect height ratio term.</param> /// <since_tizen> preview </since_tizen> public void GetSizeHintAspect(out AspectControl aspect, out int w, out int h) { int aspectRatio; Interop.Evas.evas_object_size_hint_aspect_get(Handle, out aspectRatio, out w, out h); aspect = (AspectControl)aspectRatio; }
/// <summary> /// Sets the hints for an object's aspect ratio. /// </summary> /// <param name="aspect">The policy or type of aspect ratio to apply to an object.</param> /// <param name="w">The integer to be used as aspect width ratio term.</param> /// <param name="h">The integer to be used as aspect height ratio term.</param> /// <since_tizen> preview </since_tizen> public void SetSizeHintAspect(AspectControl aspect, int w, int h) { Interop.Evas.evas_object_size_hint_aspect_set(Handle, (int)aspect, w, h); }