XMNOTEBOOKGETPAGEINFO(3)
β¨ XmNotebookGetPageInfo β the Notebook glow-up that spills the tea on your pages β¨
okay bestie, so this one lives in the library call manual (section 3, we love a classic), and it's literally the function you call when you wanna know what's actually going on with a page in your Notebook widget. no cap. π
π¦ NAME π¦
XmNotebookGetPageInfo β a Notebook function that returns page information π
πΈ SYNOPSIS πΈ
#include <Xm/Notebook.h>
XmNotebookPageStatus XmNotebookGetPageInfo(
Widget notebook,
int page_number,
XmNotebookPageInfo *page_info);
π DESCRIPTION π
XmNotebookGetPageInfo returns status information for the specified Notebook page. that's it, that's the vibe. it's giving lookup service. π
Here's who's who in the group chat:
- notebook β Specifies the Notebook widget. π
- page_number β Specifies the page number to be queried. π’
- page_info β Points to the structure containing the page information. π¦
The structure has the following form:
typedef struct
{
int page_number;
Widget page_widget;
Widget status_area_widget;
Widget major_tab_widget;
Widget minor_tab_widget;
} XmNotebookPageInfo;
(void) β yes that's literally what it says, no notes π
and inside that struct, bestie, every field is a whole personality:
page_numberβ Specifies thepage_numberpassed to the function. it's literally echoing back what you told it. πpage_widgetβ Specifies a child widget of the Notebook with aXmNchildTypeofXmPAGEand aXmNpageNumberequal topage_numberif one exists; otherwise set toNULL. so if it's not there, you getNULL, not a sad little ghost. π»status_area_widgetβ Specifies a child widget of the Notebook with aXmNchildTypeofXmSTATUS_AREAand aXmNpageNumberequal topage_numberif one exists; otherwise set toNULL. β¨major_tab_widgetβ Specifies a child widget of the Notebook with aXmNchildTypeofXmMAJOR_TABand the nearestXmNpageNumberequal to or less thanpage_numberif one exists; otherwise set toNULL. she'll take the closest one at or below, she's not picky πminor_tab_widgetβ Specifies a child widget of the Notebook with aXmNchildTypeofXmMINOR_TABand the nearestXmNpageNumberequal to or less thanpage_numberif one exists; otherwise set toNULL. same energy, different tab. π
For a complete definition of Notebook and its associated resources, see XmNotebook(3). go read it, it's the lore. π
π₯ RETURN π₯
Returns one of the following page status values β aka the vibe check results:
XmPAGE_FOUNDβ The specified page was found. ate and left no crumbs. πXmPAGE_INVALIDβ The specified page number is out of the page number range. she's not even in the building. πXmPAGE_EMPTYβ The specified page does not have a page widget. page exists, widget does not. it's giving empty plate π½οΈXmPAGE_DUPLICATEDβ There is more than one page widget with the specified page number. The more recently managed page widget is used for the page information structure. so when there's drama, the newest one wins. π«Ά
π RELATED π
and that's the whole page, bestie!! this one was filed under XmNotebookGetPageInfo(library call) in the library call manual, and honestly the footer didn't even bring a version or date stamp along β no receipts, just the title. iconic behaviour, honestly. πβ¨ππ¦
π¦ 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