FT_Set_Debug_Hook() private method

private FT_Set_Debug_Hook ( IntPtr library, uint hook_index, IntPtr debug_hook ) : void
library System.IntPtr
hook_index uint
debug_hook System.IntPtr
return void
示例#1
0
        public void SetDebugHook(uint hookIndex, IntPtr debugHook)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            FT.FT_Set_Debug_Hook(Reference, hookIndex, debugHook);
        }
示例#2
0
 /// <summary>
 /// Set a debug hook function for debugging the interpreter of a font format.
 /// </summary>
 /// <remarks><para>
 /// Currently, four debug hook slots are available, but only two (for the TrueType and the Type 1 interpreter)
 /// are defined.
 /// </para><para>
 /// Since the internal headers of FreeType are no longer installed, the symbol ‘FT_DEBUG_HOOK_TRUETYPE’ isn't
 /// available publicly. This is a bug and will be fixed in a forthcoming release.
 /// </para></remarks>
 /// <param name="hookIndex">The index of the debug hook. You should use the values defined in ‘ftobjs.h’, e.g.,
 /// ‘FT_DEBUG_HOOK_TRUETYPE’.</param>
 /// <param name="debugHook">The function used to debug the interpreter.</param>
 public void SetDebugHook(uint hookIndex, IntPtr debugHook) =>
 FT.FT_Set_Debug_Hook(Reference, hookIndex, debugHook);