XmFontListEntryCreate(X3mot)


XmFontListEntryCreate -- a font list function that creates a font list entry

Synopsis

#include <Xm/Xm.h>

XmFontListEntry XmFontListEntryCreate (tag, type, font) char *tag; XmFontType type; XtPointer font;

Description

XmFontListEntryCreate creates a font list entry that contains either a font or font set and is identified by a tag.

tag
Specifies a NULL terminated string for the tag of the font list entry. The tag may be specified as XmFONTLIST_DEFAULT_TAG, which is used to identify the default font list element in a font list.

type
Specifies whether the font argument is a font structure or a font set. Valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET.

font
Specifies either an XFontSet returned by XCreateFontSet or a pointer to an XFontStruct returned by XLoadQueryFont.

The toolkit does not copy the X Font structure specified by the font argument. Therefore, an application programmer must not free XFontStruct or XFontSet until all font lists and/or font entries that reference it have been freed.

Return values

Returns a font list entry.

References

XmFontList(X3mot), XmFontListAppendEntry(X3mot), XmFontListEntryFree(X3mot), XmFontListEntryGetFont(X3mot), XmFontListEntryGetTag(X3mot), XmFontListEntryLoad(X3mot) and XmFontListRemoveEntry(X3mot).
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004