|
Xm/XmFontList(o) -- Data type for a font list
|
XmFontList is the data type for a font list. A font list consists of font list entries, each of which contains a font or a font set (a group of fonts) and is identified with a tag. The font list entry tag is optional; if NULL, the tag is set to XmFONTLIST_DEFAULT_TAG. The value of XmFONTLIST_DEFAULT_TAG is "XmFONTLIST_DEFAULT_TAG_STRING". When a compound string is displayed, the font list element tag of the compound string segment is matched with a font list entry tag in the font list and the ... |
Xm/XmFontListAdd(o) -- A font list function that creates a new font list
|
XmFontListAdd creates a new font list consisting of the contents of the oldlist and the new font-list element being added. This function deallocates the oldlist after extracting the required information; therefore, do not reference oldlist thereafter. Note: This function is obsolete and exists for compatibility with previous releases. It has been replaced by XmFontListAppendEntry. oldlistSpecifies a pointer to the font list to which an entry will be added. font Specifies a pointer to a font stru... |
|
Xm/XmFontListAppendEntry(o) -- A font list function that appends an entry to a font list
|
XmFontListAppendEntry creates a new font list that contains the contents of oldlist. This function copies the contents of the font list entry being added into this new font list. If oldlist is NULL, XmFontListAppendEntry creates a new font list containing only the single entry specified. This function deallocates the original font list after extracting the required information. The caller must free the font list entry by using XmFontListEntryFree. oldlistSpecifies the font list to be added to en... |
Xm/XmFontListCopy(o) -- A font list function that copies a font list
|
XmFontListCopy creates a new font list consisting of the contents of the fontlist argument. fontlist Specifies a font list to be copied |
Xm/XmFontListCreate(o) -- A font list function that creates a font list
|
XmFontListCreate creates a new font list with a single element specified by the provided font and character set. It also allocates the space for the font list. Note: This function is obsolete and exists for compatibility with previous releases. It is replaced by XmFontListAppendEntry. font Specifies a pointer to a font structure for which the new font list is generated. This is the structure returned by the XLib XLoadQueryFont function. charsetSpecifies the character set identifier for the font.... |
Xm/XmFontListEntryCreate(o) -- A font list function that creates a font list entry
|
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 XCreateF... |
Xm/XmFontListEntryFree(o) -- A font list function that recovers memory used by a font list entry
|
XmFontListEntryFree recovers memory used by a font list entry. This routine does not free the XFontSet or XFontStruct associated with the font list entry. entry Specifies the font list entry to be freed |
Xm/XmFontListEntryGetFont(o) -- A font list function that retrieves font information from a font list entry
|
XmFontListEntryGetFont retrieves font information for a specified font list entry. If the font list entry contains a font, type_return returns XmFONT_IS_FONT and the function returns a pointer to an XFontStruct. If the font list entry contains a font set, type_return returns XmFONT_IS_FONTSET and the function returns the XFontSet. entry Specifies the font list entry. type_return Specifies a pointer to the type of the font element for the current entry. Valid values are XmFONT_IS_FONT and XmFONT_... |
Xm/XmFontListEntryGetTag(o) -- A font list function that retrieves the tag of a font list entry
|
XmFontListEntryGetTag retrieves a copy of the tag of the specified font list entry. This routine allocates memory for the tag string that must be freed by the application. entry Specifies the font list entry |
Xm/XmFontListEntryLoad(o) -- A font list function that loads a font or creates a font set and creates an accompanying font list entry
|
XmFontListEntryLoad loads a font or creates a font set based on the value of the type argument. It creates and returns a font list entry that contains the font or font set and the specified tag. If the value of type is XmFONT_IS_FONT, the function uses the XtCvtStringToFontStruct routine to convert the value of font_name to a font struct. If the value of type is XmFONT_IS_FONTSET, the function uses the XtCvtStringToFontSet converter to create a font set in the current locale. XmFontListEntryLoad... |
Xm/XmFontListFree(o) -- A font list function that recovers memory used by a font list
|
XmFontListFree recovers memory used by a font list. This routine does not free the XFontSet or XFontStruct associated with the specified font list. list Specifies the font list to be freed |
Xm/XmFontListFreeFontContext(o) -- A font list function that instructs the toolkit that the font list context is no longer needed
|
XmFontListFreeFontContext instructs the toolkit that the context is no longer needed and will not be used without reinitialization. contextSpecifies the font list context structure that was allocated by the XmFontListInitFontContext function |
Xm/XmFontListGetNextFont(o) -- A font list function that allows applications to access the fonts and character sets in a font list
|
XmFontListGetNextFont accesses the character set and font for the next entry of the font list. The application first uses the XmFontListInitFontContext routine to create a font list context. The application then calls XmFontListGetNextFont repeatedly with the same context. Each succeeding call accesses the next element of the font list. When finished, the application calls XmFontListFreeFontContext to free the allocated font list context. This routine allocates memory for the character set strin... |
Xm/XmFontListInitFontContext(o) -- A font list function that allows applications to access the entries in a font list
|
XmFontListInitFontContext establishes a context to allow applications to access the contents of a font list. This context is used when reading the font list entry tag, font, or font set associated with each entry in the font list. A Boolean status is returned to indicate whether or not the font list is valid. contextSpecifies a pointer to the allocated context fontlist Specifies the font list |
Xm/XmFontListNextEntry(o) -- A font list function that returns the next entry in a font list
|
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. contextSp... |