Esempio n. 1
0
        /// <summary>
        /// Parse a list and calls a given iterator function on each element. Note that parsing is stopped as soon as
        /// one of the iterator calls returns a non-zero value.
        /// </summary>
        /// <param name="iterator">An iterator function, called on each node of the list.</param>
        /// <param name="user">A user-supplied field which is passed as the second argument to the iterator.</param>
        public void Iterate(FT_List_Iterator iterator, IntPtr user)
        {
            FT_Error err = FT.FT_List_Iterate(Reference, iterator, user);

            if (err != FT_Error.FT_Err_Ok)
            {
                throw new FreeTypeException(err);
            }
        }
Esempio n. 2
0
 public static extern FT_Error FT_List_Iterate(IntPtr list, FT_List_Iterator iterator, IntPtr user);