XmFontListNextEntry(X3mot)


XmFontListNextEntry -- a font list function that returns the next entry in a font list

Synopsis

#include <Xm/Xm.h> 

XmFontListEntry XmFontListNextEntry (context) XmFontContext context;

Description

XmFontListNextEntry returns the next entry in the font list. The application uses the XmFontListInitFontContext routine to create a font list context. The first call to XmFontListNextEntry sets the context to the first entry in the font list. The application then calls XmFontListNextEntry repeatedly with the same context. Each succeeding call accesses the next entry of the font list. When finished, the application calls XmFontListFreeFontContext to free the allocated font list context.

context
Specifies the font list context

Return values

Returns NULL if the context does not refer to a valid entry or if it is at the end of the font list; otherwise, it returns a font list entry.

References

XmFontList(X3mot), XmFontListEntryFree(X3mot), XmFontListEntryGetFont(X3mot), XmFontListEntryGetTag(X3mot), XmFontListFreeFontContext(X3mot) and XmFontListInitFontContext(X3mot).
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.