public virtual void GetRoundedRect( out D2D1_ROUNDED_RECT roundedRect ) { var fp = GetFunctionPointer(17); if (m_GetRoundedRectFunc == null) { m_GetRoundedRectFunc = (GetRoundedRectFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetRoundedRectFunc)); } m_GetRoundedRectFunc(m_ptr, out roundedRect); }
public virtual void FillRoundedRectangle( ref D2D1_ROUNDED_RECT roundedRect, ID2D1Brush brush ) { var fp = GetFunctionPointer(19); if (m_FillRoundedRectangleFunc == null) { m_FillRoundedRectangleFunc = (FillRoundedRectangleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(FillRoundedRectangleFunc)); } m_FillRoundedRectangleFunc(m_ptr, ref roundedRect, brush != null ? brush.Ptr : IntPtr.Zero); }
public virtual int CreateRoundedRectangleGeometry( ref D2D1_ROUNDED_RECT roundedRectangle, out ID2D1RoundedRectangleGeometry roundedRectangleGeometry ) { var fp = GetFunctionPointer(6); if (m_CreateRoundedRectangleGeometryFunc == null) { m_CreateRoundedRectangleGeometryFunc = (CreateRoundedRectangleGeometryFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateRoundedRectangleGeometryFunc)); } roundedRectangleGeometry = new ID2D1RoundedRectangleGeometry(); return(m_CreateRoundedRectangleGeometryFunc(m_ptr, ref roundedRectangle, out roundedRectangleGeometry.PtrForNew)); }
public virtual void DrawRoundedRectangle( ref D2D1_ROUNDED_RECT roundedRect, ID2D1Brush brush, float strokeWidth, ID2D1StrokeStyle strokeStyle ) { var fp = GetFunctionPointer(18); if (m_DrawRoundedRectangleFunc == null) { m_DrawRoundedRectangleFunc = (DrawRoundedRectangleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DrawRoundedRectangleFunc)); } m_DrawRoundedRectangleFunc(m_ptr, ref roundedRect, brush != null ? brush.Ptr : IntPtr.Zero, strokeWidth, strokeStyle != null ? strokeStyle.Ptr : IntPtr.Zero); }