public virtual int CreateTypography( out IDWriteTypography typography ) { var fp = GetFunctionPointer(16); if (m_CreateTypographyFunc == null) { m_CreateTypographyFunc = (CreateTypographyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateTypographyFunc)); } typography = new IDWriteTypography(); return(m_CreateTypographyFunc(m_ptr, out typography.PtrForNew)); }
public virtual int SetTypography( IDWriteTypography typography, DWRITE_TEXT_RANGE textRange ) { var fp = GetFunctionPointer(40); if (m_SetTypographyFunc == null) { m_SetTypographyFunc = (SetTypographyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetTypographyFunc)); } return(m_SetTypographyFunc(m_ptr, typography != null ? typography.Ptr : IntPtr.Zero, textRange)); }
public virtual int GetTypography( uint currentPosition, out IDWriteTypography typography, out DWRITE_TEXT_RANGE textRange ) { var fp = GetFunctionPointer(55); if (m_GetTypographyFunc == null) { m_GetTypographyFunc = (GetTypographyFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetTypographyFunc)); } typography = new IDWriteTypography(); return(m_GetTypographyFunc(m_ptr, currentPosition, out typography.PtrForNew, out textRange)); }