XMSCALESETTICKS(3)
β¨ 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) theSeparatorGadgettick 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 π
π RELATED π
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 π¦β¨π
π¦ 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