public virtual void SetDescription(
            ref D2D1_DRAWING_STATE_DESCRIPTION1 stateDescription
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_SetDescriptionFunc == null)
            {
                m_SetDescriptionFunc = (SetDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetDescriptionFunc));
            }

            m_SetDescriptionFunc(m_ptr, ref stateDescription);
        }
        public virtual void GetDescription(
            out D2D1_DRAWING_STATE_DESCRIPTION1 stateDescription
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_GetDescriptionFunc == null)
            {
                m_GetDescriptionFunc = (GetDescriptionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescriptionFunc));
            }

            m_GetDescriptionFunc(m_ptr, out stateDescription);
        }
Beispiel #3
0
        public virtual int CreateDrawingStateBlock(
            ref D2D1_DRAWING_STATE_DESCRIPTION1 drawingStateDescription,
            IDWriteRenderingParams textRenderingParams,
            out ID2D1DrawingStateBlock1 drawingStateBlock
            )
        {
            var fp = GetFunctionPointer(20);

            if (m_CreateDrawingStateBlockFunc == null)
            {
                m_CreateDrawingStateBlockFunc = (CreateDrawingStateBlockFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateDrawingStateBlockFunc));
            }
            drawingStateBlock = new ID2D1DrawingStateBlock1();
            return(m_CreateDrawingStateBlockFunc(m_ptr, ref drawingStateDescription, textRenderingParams != null ? textRenderingParams.Ptr : IntPtr.Zero, out drawingStateBlock.PtrForNew));
        }