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

✨ XmScaleSetTicks ✨

okay bestie so you're in the XmScaleSetTicks(library call) pages, welcome to the club πŸ’… this one is a Scale function, and it's all about tick marks. yes. the little lines. the sparkle of a slider. let's go πŸŽ€


🌸 NAME 🌸

XmScaleSetTicks β€” a Scale function that controls tick marks πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/Scale.h>
void XmScaleSetTicks(
Widget scale,
int big_every,
Cardinal num_medium,
Cardinal num_small,
Dimension size_big,
Dimension size_medium,
Dimension size_small);

like. look at that signature. seven whole arguments. she's that girl fr fr πŸ’œ


πŸ’– DESCRIPTION πŸ’–

So XmScaleSetTicks is the one in charge of how many tick marks a Scale has, where they sit, and how big they are. ✨

Every single tick mark is a SeparatorGadget, and it's oriented perpendicular to the Scale's orientation. So like, if your Scale is horizontal, the tick marks go vertical. simple geometry, no cap 🧚

⚠️ ok important one. If you set tick marks on a Scale and then you go change that Scale's orientation? You are not done yet, bestie. You have homework. Here's the list:
  • Remove all the tick marks. To remove tick marks from a Scale, you must destroy (with XtDestroyChildren) the SeparatorGadget tick marks. Heads up on the child order: the first two children of a Scale are its title and scroll bar, and all additional children are tick marks. iykyk 🫢
  • Recreate the tick marks by calling XmScaleSetTicks. ✨

πŸŽ€ The arguments, one by one πŸŽ€

  • scale β€” Specifies the Scale widget ID that is getting the tick marks. this is the main character, obviously πŸ‘‘
  • big_every β€” Specifies the number of scale values between big ticks. the big girls πŸ’…
  • num_medium β€” Specifies the number of medium ticks between big values. the middle children πŸ“
  • num_small β€” Specifies the number of small ticks between medium values. the tiny babies 🌸
  • size_big β€” Specifies the size (either width or height) of the big ticks. πŸ“
  • size_medium β€” Specifies the size (either width or height) of the medium ticks. πŸ“
  • size_small β€” Specifies the size (either width or height) of the small ticks. πŸ“

and for a complete definition of Scale and all its associated resources, go read XmScale(3). it's giving required reading πŸ“š



okay that's the whole page, you're so smart, you ate this πŸ’– The footer of the original just repeats XmScaleSetTicks(library call) β€” same title, same manual section, no extra date or version tucked in there β€” so consider this your cute little sign-off instead. mwah. go set some ticks, bestie πŸ¦‹βœ¨πŸŽ€