XmSlideContext(3X)

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

πŸ’… XmSlideContext β€” the slide-y widget class, bestie

okay so this is XmSlideContext(3X), from section 3X of the manual. It's the SlideContext widget class and honestly? she's giving main character energy. Let's get into it. πŸ¦‹


✨ NAME ✨

XmSlideContext β€” the SlideContext widget class. that's it, that's the name, periodt. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <Xm/SlideC.h>

🌸 DESCRIPTION 🌸

so SlideContext can be used to change a widget's geometry over a period of time. lowkey iconic behavior.

Next paragraph

Next paragraph


🧚 Classes

SlideContext inherits behavior and resources from the Object class. family tree moment fr fr.

  • The class pointer is XmSlideContextWidgetClass.
  • The class name is XmSlideContext.

πŸ’– New Resources πŸ’–

The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a .Xdefaults file, remove the XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using XtSetValues (S), retrieved by using XtGetValues (G), or is not applicable (N/A).

⭐ XmSlideContext Resource Set ⭐

  • XmNslideDestHeight β€” class XtCSlideDestHeight, type Dimension, default variable, access C
  • XmNslideDestWidth β€” class XtCSlideDestWidth, type Dimension, default variable, access C
  • XmNslideDestX β€” class XtCSlideDestX, type Position, default variable, access C
  • XmNslideDestY β€” class XtCSlideDestY, type Position, default variable, access C
  • XmNslideFinishCallback β€” class XtCCallback, type XtCallbackList, default NULL, access C
  • XmNslideInterval β€” class XtCSlideInterval, type int, default 5, access C
  • XmNslideMotionCallback β€” class XtCCallback, type XtCallbackList, default NULL, access C
  • XmNslideWidget β€” class XtCSlideWidget, type Widget, default NULL, access C

and here's what each one actually does, bestie:

  • XmNslideDestHeight β€” if you don't specify it, the current height of XmNslideWidget is used. no thoughts, just the height it already has. πŸ’«
  • XmNslideDestWidth β€” if you don't specify it, the current width of XmNslideWidget is used.
  • XmNslideDestX β€” if you don't specify it, the current x of XmNslideWidget is used.
  • XmNslideDestY β€” if you don't specify it, the current y of XmNslideWidget is used.
  • XmNslideFinishCallback β€” specifies the list of callbacks that is called when the XmNslideWidget reaches it's destination. 🏁
  • XmNslideInterval β€” the time between each geometry change. A value of 0 will set the destination values on the first iteration. 🫢
  • XmNslideMotionCallback β€” specifies the list of callbacks that is called when the widget geometry changes.
  • XmNslideWidget β€” the widget to alter. This _must_ be specified during creation. like, must. no cap. 🚨

🌈 Inherited Resources 🌈

SlideContext inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the man page for that superclass. (iykyk πŸ’œ)

πŸ“ Object Resource Set πŸ“

  • XmNdestroyCallback β€” class XmCCallback, type XtCallbackList, default NULL, access C
  • XmNscreen β€” class XmCScreen, type Screen *, default dynamic, access CG

πŸ”₯ Behavior πŸ”₯

XmSlideContext behavior is described below: XmSlideContext installs an Xt timer that is called every XmNslideInterval miliseconds. At each call of the timer proc the XmNslideWidget geometry is adjusted such that the X/Y/Width/Height are 10 percent closer to the final values. The XmSlideContext is automatically destroyed when the XmNslideWidget reaches its destination. If the XmNslideWidget is destroyed before the slide is finished, the XmSlideContext is destroyed.

ngl that auto-destroy is doing a lot of heavy lifting for you. you literally don't have to clean up. slay. ✨

πŸ¦‹ Virtual Bindings πŸ¦‹

The bindings for virtual keys are vendor specific. For information about bindings for virtual buttons and keys, see VirtualBindings(3X).


  • Object(3X)

and that's the whole page, bestie!! this was XmSlideContext(3X) β€” source/version XmSlideContext(3X), straight from the manual. go forth and slide those geometries. πŸ’…βœ¨πŸŽ€