FT_Remove_Module() private method

private FT_Remove_Module ( IntPtr library, IntPtr module ) : System.Error
library System.IntPtr
module System.IntPtr
return System.Error
コード例 #1
0
        /// <summary>
        /// Remove a given module from a library instance.
        /// </summary>
        /// <remarks>
        /// The module object is destroyed by the function in case of success.
        /// </remarks>
        /// <param name="module">A handle to a module object.</param>
        public void RemoveModule(Module module)
        {
            if (module == null)
            {
                throw new ArgumentNullException("module");
            }

            Error err = FT.FT_Remove_Module(Reference, module.Reference);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
コード例 #2
0
ファイル: Library.cs プロジェクト: corliss/SharpFont
        /// <summary>
        /// Remove a given module from a library instance.
        /// </summary>
        /// <remarks>
        /// The module object is destroyed by the function in case of success.
        /// </remarks>
        /// <param name="module">A handle to a module object.</param>
        public void RemoveModule(Module module)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            if (module == null)
            {
                throw new ArgumentNullException("module");
            }

            Error err = FT.FT_Remove_Module(Reference, module.Reference);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }