FT_Property_Get() private method

private FT_Property_Get ( IntPtr library, string module_name, string property_name, IntPtr value ) : System.Error
library System.IntPtr
module_name string
property_name string
value System.IntPtr
return System.Error
コード例 #1
0
        /// <summary>
        /// Get a module's property value.
        /// </summary>
        /// <param name="moduleName">The module name.</param>
        /// <param name="propertyName">The property name. Properties are described in the ‘Synopsis’ subsection of the
        /// module's documentation.</param>
        /// <param name="value">A generic pointer to a variable or structure which gives the value of the property. The
        /// exact definition of ‘value’ is dependent on the property; see the ‘Synopsis’ subsection of the module's
        /// documentation.</param>
        public void PropertyGet(string moduleName, string propertyName, IntPtr value)
        {
            Error err = FT.FT_Property_Get(Reference, moduleName, propertyName, value);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
コード例 #2
0
ファイル: Library.cs プロジェクト: corliss/SharpFont
        /// <summary>
        /// Get a module's property value.
        /// </summary>
        /// <param name="moduleName">The module name.</param>
        /// <param name="propertyName">The property name. Properties are described in the ‘Synopsis’ subsection of the
        /// module's documentation.</param>
        /// <param name="value">A generic pointer to a variable or structure which gives the value of the property. The
        /// exact definition of ‘value’ is dependent on the property; see the ‘Synopsis’ subsection of the module's
        /// documentation.</param>
        public void PropertyGet(string moduleName, string propertyName, IntPtr value)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            Error err = FT.FT_Property_Get(Reference, moduleName, propertyName, value);

            if (err != Error.Ok)
            {
                throw new FreeTypeException(err);
            }
        }
コード例 #3
0
        /// <summary>
        /// Get a module's property value.
        /// </summary>
        /// <param name="moduleName">The module name.</param>
        /// <param name="propertyName">The property name. Properties are described in the ‘Synopsis’ subsection of the
        /// module's documentation.</param>
        /// <param name="value">A generic pointer to a variable or structure which gives the value of the property. The
        /// exact definition of ‘value’ is dependent on the property; see the ‘Synopsis’ subsection of the module's
        /// documentation.</param>
        public void PropertyGet(string moduleName, string propertyName, out IncreaseXHeightProperty value)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            IntPtr ptr;
            Error  err = FT.FT_Property_Get(Reference, moduleName, propertyName, out ptr);

            IncreaseXHeightPropertyRec ptrRec = PInvokeHelper.PtrToStructure <IncreaseXHeightPropertyRec>(ptr);
            Face face = childFaces.Find(f => f.Reference == ptrRec.face);

            value = new IncreaseXHeightProperty(ptrRec, face);
        }
コード例 #4
0
        /// <summary>
        /// Get a module's property value.
        /// </summary>
        /// <typeparam name="T">The type of property to get.</typeparam>
        /// <param name="moduleName">The module name.</param>
        /// <param name="propertyName">The property name. Properties are described in the ‘Synopsis’ subsection of the
        /// module's documentation.</param>
        /// <param name="value">A generic pointer to a variable or structure which gives the value of the property. The
        /// exact definition of ‘value’ is dependent on the property; see the ‘Synopsis’ subsection of the module's
        /// documentation.</param>
        public void PropertyGet <T>(string moduleName, string propertyName, out T value)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("Library", "Cannot access a disposed object.");
            }

            IntPtr ptr;
            Error  err = FT.FT_Property_Get(Reference, moduleName, propertyName, out ptr);

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

            value = PInvokeHelper.PtrToStructure <T>(ptr);
        }