XMSCROLLVISIBLE(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– XmScrollVisible β€” the glow-up your hidden widget deserves πŸ’–

ok so bestie, this is a page from the library call manual β€” the XmScrollVisible one, literally the ScrolledWindow function that drags an invisible descendant of a ScrolledWindow work area out of the shadows and into the light. ✨


🌸 NAME 🌸

XmScrollVisible β€” a ScrolledWindow function that makes an invisible descendant of a ScrolledWindow work area visible. no cap, that's the whole job. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/ScrolledW.h>
void XmScrollVisible(
Widget scrollw_widget,
Widget widget,
Dimension left_right_margin,
Dimension top_bottom_margin);

πŸ¦‹ DESCRIPTION πŸ¦‹

XmScrollVisible makes an obscured or partially obscured widget or gadget descendant of a ScrolledWindow work area visible. it's giving "not me rescuing you from behind the scrollbar." 😭

the function repositions the work area and sets the specified margins between the widget and the nearest viewport boundary. the widget's location relative to the viewport determines whether one or both of the margins must be adjusted. so basically, it does a little vibe check on where the widget is sitting and moves accordingly.

🚨 important bestie: this function requires that the XmNscrollingPolicy of the ScrolledWindow widget be set to XmAUTOMATIC. no automatic scrolling policy, no glow-up. periodt.

here's the tea on each argument:

  • scrollw_widget β€” specifies the ID of the ScrolledWindow widget whose work area window contains an obscured descendant. like, which ScrolledWindow are we operating on, queen? πŸ‘‘
  • widget β€” specifies the ID of the widget to be made visible. this is the main character we're rescuing from the void. 🌟
  • left_right_margin β€” specifies the margin to establish between the left or right edge of the widget and the associated edge of the viewport. this margin is established only if the widget must be moved horizontally to make it visible. horizontal move only, iykyk.
  • top_bottom_margin β€” specifies the margin to establish between the top or bottom edge of the widget and the associated edge of the viewport. this margin is established only if the widget must be moved vertically to make it visible. vertical move only, fr fr.

for a complete definition of ScrolledWindow and its associated resources, see XmScrolledWindow(3). 🫢



and that's the whole page, babe 🧚 this lil number lives in the library call manual as XmScrollVisible(library call) β€” go make some hidden widgets feel seen, you iconic thing. πŸ’–πŸŒΈπŸŽ€