indexing description: "Implementation of Motif Font List."; status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" class MEL_FONT_LIST inherit MEL_MEMORY create make_from_existing, append_entry feature {NONE} -- Initialization append_entry (an_entry: MEL_FONT_LIST_ENTRY) is -- Append font list entry `an_entry' to -- Current font list. require valid_entry: an_entry /= Void and then an_entry.is_valid do handle := xm_font_list_append_entry (handle, an_entry.handle) ensure is_valid: is_valid end; feature -- Access font_context: MEL_FONT_CONTEXT is -- Font context from Current font list require is_valid: is_valid do create Result.make (Current) end; feature -- Removal destroy is -- Free the font list. do xm_font_list_free (handle); handle := default_pointer end; feature {NONE} -- External features xm_font_list_append_entry (a_font_list, an_entry: POINTER): POINTER is external "C (XmFontList, XmFontListEntry): EIF_POINTER | " alias "XmFontListAppendEntry" end; xm_font_list_free (a_font_list: POINTER) is external "C (XmFontList) | " alias "XmFontListFree" end; end -- class MEL_FONT_LIST --|---------------------------------------------------------------- --| Motif Eiffel Library: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------