public void FontClientCreateVectorBlob() { tlog.Debug(tag, $"FontClientCreateVectorBlob START"); var testingTarget = new FontClient(FontClient.Instance); using (Color color = new Color(0.4f, 1.0f, 0.3f, 0.0f)) { var blob = new SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob(color.SwigCPtr.Handle); var blobLegnth = new SWIGTYPE_p_unsigned_int(color.SwigCPtr.Handle); var nominalWidth = new SWIGTYPE_p_unsigned_int(FontClient.Instance.SwigCPtr.Handle); var nominalHeight = new SWIGTYPE_p_unsigned_int(testingTarget.SwigCPtr.Handle); try { testingTarget.CreateVectorBlob(0, 0, blob, blobLegnth, nominalWidth, nominalHeight); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); } tlog.Debug(tag, $"FontClientCreateVectorBlob END (OK)"); }
internal void CreateVectorBlob(uint fontId, uint glyphIndex, SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob blob, SWIGTYPE_p_unsigned_int blobLength, SWIGTYPE_p_unsigned_int nominalWidth, SWIGTYPE_p_unsigned_int nominalHeight) { NDalicManualPINVOKE.FontClient_CreateVectorBlob(swigCPtr, fontId, glyphIndex, SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob.getCPtr(blob), SWIGTYPE_p_unsigned_int.getCPtr(blobLength), SWIGTYPE_p_unsigned_int.getCPtr(nominalWidth), SWIGTYPE_p_unsigned_int.getCPtr(nominalHeight)); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_Dali__TextAbstraction__VectorBlob obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }