XMOPTIONLABELGADGET(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

πŸ’– XmOptionLabelGadget πŸ’–

okay bestie, welcome to the XmOptionLabelGadget(library call) page β€” yes it's a library call, yes it lives in the Xm fam, and yes we're gonna get you that widget ID. this one's a RowColumn function that obtains the widget ID for the LabelGadget in an OptionMenu. periodt. πŸ‘‘


✨ SYNOPSIS ✨

#include <Xm/RowColumn.h>
Widget XmOptionLabelGadget(
Widget option_menu);

like, look at her. so short. so iconic. πŸŽ€


🌸 DESCRIPTION 🌸

so here's the tea: XmOptionLabelGadget gives your application the means for obtaining the widget ID for the internally created LabelGadget. and once you've got that widget ID in your hands?? you can adjust the visuals for the LabelGadget, if desired. it's giving "customize your own little guy" energy and honestly? we love that for you. πŸ’…

  • option_menu β€” specifies the OptionMenu widget ID 🫢

okay now the lore. when an application creates an instance of the OptionMenu widget, that widget creates two internal gadgets. not one, bestie, TWO:

  1. a LabelGadget β€” this one is used to display RowColumn's XmNlabelString resource ✨
  2. a CascadeButtonGadget β€” this one displays the current selection and provides the means for posting the OptionMenu's submenu πŸ”₯

the user can specify resources in a resource file for the automatically created widgets and gadgets of an OptionMenu. so if you ever wondered "wait, what do I even call these mystery children in my resource file"β€” here's the list. it identifies the names of these widgets (or gadgets) and the associated OptionMenu areas:

  • Option Menu Label Gadget β†’ OptionLabel πŸŽ€
  • Option Menu Cascade Button β†’ OptionButton πŸ¦‹

and for a complete definition of RowColumn and its associated resources, see XmRowColumn(3). iykyk. πŸ’œ


⭐ RETURN ⭐

returns the widget ID for the internal label. that's it, that's the whole vibe check. she delivers. 🌈



lowkey important: everything above is exactly what the page says. no extra guesses, no invented behaviour, just the facts with a little sparkle on top. πŸ’–

and that's a wrap on XmOptionLabelGadget(library call) β€” sourced from the library call page, dated whenever this lil doc got its last glow-up, and honestly? ate. mwah πŸ’…βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ«Ά