XMTABLISTGETTAB(3)
π NAME π
XmTabListGetTab β a convenience function that returns a copy of a tab. yes bestie, a copy, not the og tab itself, this matters so much, keep reading π«Ά
This one lives in the library call section of the manual, iykyk.
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmTab XmTabListGetTab(
XmTabList tablist,
Cardinal position);
π¦ DESCRIPTION π¦
Okay so XmTabListGetTab returns a copy of the tab that is located at the specified position in the tab list. That's the whole vibe. π
tablistβ specifies the tab list. it's giving "here's the list we're digging through" β¨positionβ specifies the position of the tab to be returned. a value of0(zero) returns the first tab in the tab list, a value of1returns the second tab, and so on. so likeβ¦ zero-indexed, bestie, the counting starts at zero, not one, do not come for me π
π RETURN π
Returns a copy of the tab that is located at the specified position in the tab list.
But wait β plot twist: if position is greater than or equal to the number of tabs in the tab list, this function returns NULL. π no tab for you, that index does not exist.
π¨ Important, fr fr: the application is responsible for managing the space allocated by the returned tab copy. yes YOU, the app, you're the main character here and you own that memory. π«Ά
The application can recover this allocated space by calling XmTabFree. clean up after yourself, it's the least you can do πΈ
πΈ RELATED πΈ
okay that's the whole page, slay, go manage your memory responsibly π
This has been XmTabListGetTab, a library call, brought to you by the good people who wrote the manual page β mwah, no cap, it ate. πβ¨ππ¦
π¦ 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