XMGETVISIBILITY(3)
π XmGetVisibility β the library call that spills the tea on whether ur widget is actually visible π
okay bestie, so this is a page from the XmGetVisibility(library call) manual, and it's literally the vibe-check function for widgets. Let's get into it π
β¨ NAME β¨
XmGetVisibility β a function that determines if a widget is visible π¦
π SYNOPSIS π
#include <Xm/Xm.h>
XmVisibility XmGetVisibility(
Widget widget);
π DESCRIPTION π
So, XmGetVisibility returns the visibility state of the widget you point at. It's out here checking whether some part of the widget's rectangular area is unobscured by the widget's ancestors, OR whether some part of the widget's rectangular area is inside the work window (but possibly outside the clip window) of a ScrolledWindow whose XmNscrollingPolicy is XmAUTOMATIC and whose XmNtraverseObscuredCallback is not NULL. πΈ
π¨ Big caveat incoming, bestie, don't skip this one:XmGetVisibilitydoes not check whetherwidgetis obscured by its siblings, or by siblings of its ancestors. So yeah β it will literally returnXmVISIBILITY_UNOBSCUREDfor widgets that are completely or partially covered by one or more siblings ofwidget, or by one or more siblings of ancestors ofwidget. It's giving "technically visible, don't @ me." π
A few more things it wants you to know:
- When a widget which is unrealized is being queried, it is indicated that the widget is fully obscured.
- If an application unmaps a widget that has its
XmNmappedWhenManagedresource set toTrue, the return value is undefined. (undefined = chaos, we don't stan π) - When a widget which is unmanaged is being queried, it is indicated that the widget is fully obscured.
And the one parameter, which is doing the absolute most:
widgetβ Specifies the ID of the widget π«Ά
π RETURN π
Returns one of the following values, periodt:
XmVISIBILITY_UNOBSCUREDβ indicates that the widget is mapped, not obscured, and is completely visible on the screen. main character energy β¨XmVISIBILITY_PARTIALLY_OBSCUREDβ indicates that the widget is mapped, and is not completely visible on the screen (partially obscured). lowkey shy π₯ΊXmVISIBILITY_FULLY_OBSCUREDβ indicates that the widget is not at all visible on the screen. gone. ghosted. π
π RELATED π
iykyk π
and that's the whole page, bestie!! this lil masterpiece comes to you straight from the XmGetVisibility(library call) manual page β go forth and check ur visibility, no cap πβ¨ππ¦πΈπ
π«Ά
π¦ 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