コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: ID2D1Factory1.cs プロジェクト: ousttrue/ShrimpDX
        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));
        }