XMFONTLISTNEXTENTRY(3)
π XmFontListNextEntry π
okay so bestie, welcome to XmFontListNextEntry β a lil library call from the Xm font list family (yes, the (library call) one, we're fancy like that). she's the girl who walks down the font list one entry at a time and hands you the next one. no cap. π
β¨ NAME β¨
XmFontListNextEntry β a font list function that returns the next entry in a font list π¦
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmFontListEntry XmFontListNextEntry(
XmFontContext context);
β¨ DESCRIPTION β¨
so here's the tea β β XmFontListNextEntry returns the next entry in the font list. like, she literally just hands you the next one. that's her whole job and she eats every time. π
the way it works: your app uses the XmFontListInitFontContext routine to create a font list context. that context is your lil bookmark π. and the first call to XmFontListNextEntry sets that context to the first entry in the font list. iconic behavior, honestly.
after that, the application calls XmFontListNextEntry over and over again with the same context. each succeeding call accesses the next entry of the font list. it's giving "walk the whole list, one step at a time" and we're obsessed. πΆβοΈβ¨
and when you're done? when you've seen every single entry and you're full? the application calls XmFontListFreeFontContext to free the allocated font list context. clean up after yourself, queen. π§Ήπ
contextβ specifies the font list context. that's the lil bookmark we were talking about. π
β¨ RETURN β¨
she returns NULL if the context does not refer to a valid entry or if it is at the end of the font list. so like, NULL = "nothing here bestie, we're done" π«
otherwise, she returns a font list entry. yay! π
β οΈ okay important, and I mean important: if the function does return a font list entry, that font list entry is not a copy. so the application should not free the returned font list entry. do not free it. put the free() down. ππ« that's not yours to free, it belongs to the font list. periodt. π
β¨ RELATED β¨
go check out her sisters, they're all serving π₯:
XmFontList(3)XmFontListEntryFree(3)XmFontListEntryGetFont(3)XmFontListEntryGetTag(3)XmFontListFreeFontContext(3)XmFontListInitFontContext(3)
and that's the whole page, bestie!! π«Ά this came to you straight from the XmFontListNextEntry(library call) manual, so you know it's legit. mwah π go walk that font list, one entry at a time, and don't forget to free your context when you're done. slay β¨ππ
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms