XMGETFOCUSWIDGET(3)
β¨ XmGetFocusWidget β¨
okay bestie, gather round, because we're reading a library call man page and it's honestly kind of a serve π it's called XmGetFocusWidget and it lives in the Motif/Xm docs, so yes, we're in widget-girl territory now π
π NAME π
XmGetFocusWidget β returns the ID of the widget that has keyboard focus π―
like... literally just that. she tells you who's holding the focus. iconic behavior, no notes π«Ά
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
Widget XmGetFocusWidget(
Widget widget);
so you pull in <Xm/Xm.h>, you call XmGetFocusWidget, you hand her a Widget, and she hands you back a Widget. that's the whole vibe β¨
π¦ DESCRIPTION π¦
so here's the tea, bestie: XmGetFocusWidget goes snooping through the hierarchy that contains the widget you specified, and it returns the ID of the widget that has keyboard focus. π
the way it does this is lowkey clever: it extracts the widget ID from the associated Shell widget. and because it does that, your specified widget can literally be anywhere in the hierarchy. anywhere. no cap. it does not have to be the focused one, it does not have to be adjacent, it just has to be in there somewhere and the Shell does the rest π
widgetβ specifies a widget ID within a given hierarchy π§
β RETURN β
returns the ID of the widget with keyboard focus π
and if no child of the Shell has focus, the function returns NULL. so pls check for NULL, bestie, don't be out here dereferencing a whole nothing π
π RELATED π
and that's the whole page, periodt π this was XmGetFocusWidget, a library call page, straight out of the Xm manual β mwah, love that for her, and love that for you for reading the whole thing π π«Ά
π¦ 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