Scroller(3I)

πŸ’… Scroller β€” scrolling an interactor ✨

okay bestie, welcome to Scroller(3I), from the InterViews Reference Manual πŸ“œ β€” this is the glow-up your interactor's perspective has been waiting for 🫢


🌸 NAME 🌸

Scroller, HScroller, VScroller β€” literally just scrolling an interactor, that's the whole vibe πŸŒ€


πŸŽ€ SYNOPSIS πŸŽ€

#include <InterViews/scroller.h>

✨ DESCRIPTION ✨

so a scroller is an interactor whose whole main character energy is manipulating the perspective of another interactor πŸ’«. It's got a bar, and that bar's position and size are reflecting the current origin and size inside the other interactor's perspective β€” like a little mirror of where you are, no cap πŸͺž.

Click and drag in the scroller? Boom, you just modified the attached interactor's perspective. That's it, that's the job πŸ’….

  • VScroller β€” the class for defining vertical scrollers, she goes up and down πŸ¦‹
  • HScroller β€” the class for defining horizontal scrollers, she goes side to side 🌈

πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • HScroller(Interactor*, int size = 0)
  • VScroller(Interactor*, int size = 0)

Create a scroller of a given size β€” and yes, that size means height for a horizontal scroller and width for a vertical scroller πŸŽ€. Passing a size of zero means: bestie, just use the default size, she knows what she's doing πŸ’β™€οΈ.

  • virtual void Update()

Redisplay the scroller so it reflects a change in the interactor's perspective πŸ”„. It's giving "refresh the mirror, queen."


🌟 X DEFAULTS 🌟

The syncScroll resource is the one deciding whether your scroller works in real-time or not ⏱️.

  • When synchronized scrolling is employed, the interactor scrolls synchronously as the scroller's bar is dragged β€” instant, live, no delay, obsessed 😌✨
  • Otherwise, only the bar's outline follows the mouse while you're dragging, and the interactor is scrolled only after the user stops dragging the bar πŸ–±οΈ (so, like, a little suspense first).

Scrollers will scroll synchronously if their syncScroll resource is set to on or true βœ….

πŸ’‘ little hack for you: the state of the syncScroll attribute can be toggled temporarily by holding down the control key while the scroller is manipulated πŸ‘€πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

  • Interactor(3I)
  • Perspective(3I)

okay that's the whole page, you ate it up fr fr πŸ’– go scroll something, you've earned it 🫢

InterViews β€” 15 June 1987 β€” signing off, mwah πŸ’‹πŸŽ€βœ¨