Esempio n. 1
0
        public virtual void GetDescription(
            out D2D1_DRAWING_STATE_DESCRIPTION stateDescription
            )
        {
            var fp = GetFunctionPointer(4);

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

            m_GetDescriptionFunc(m_ptr, out stateDescription);
        }
Esempio n. 2
0
        public virtual void SetDescription(
            ref D2D1_DRAWING_STATE_DESCRIPTION stateDescription
            )
        {
            var fp = GetFunctionPointer(5);

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

            m_SetDescriptionFunc(m_ptr, ref stateDescription);
        }
Esempio n. 3
0
        public virtual int CreateDrawingStateBlock(
            ref D2D1_DRAWING_STATE_DESCRIPTION drawingStateDescription,
            IDWriteRenderingParams textRenderingParams,
            out ID2D1DrawingStateBlock drawingStateBlock
            )
        {
            var fp = GetFunctionPointer(12);

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