Page(3U)

πŸ’– Page(3U) πŸ’–

okay so bestie, we're in the InterViews Reference Manual today and we're talking about Page(3U) β€” she's literally the blueprint for drawing a cute little boundary around a viewer, no cap πŸŽ€


✨ NAME ✨

Page β€” she defines AND displays a visual boundary for a viewer. that's it, that's the gig πŸ’…


🌸 SYNOPSIS 🌸

#include <Unidraw/page.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

so a Page object delineates an area of interest in a viewer. think of her as the velvet rope at the club πŸͺ©

her appearance is the whole vibe check β€” it guides the user to stay within a particular area, like a friendly little "bestie stay in here pls" ✨ and her bounding box defines the total scrollable area in the viewer. that's the important part, don't skip it.

by default Page displays a rectangle, but lowkey the boundary can be any arbitrary graphic you want. she's flexible like that 🧚

she also occludes any graphical components in the viewer β€” like, she's on top, main character energy, periodt πŸ‘‘

a typical use for a page is defining the page boundary in a drawing editor. and the tea here is: graphics beyond this area will not appear on the printed page. so if you put stuff outside her, it's giving invisible. gone. not on paper. 😭


πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • Page(float width, float height) β€” instantiate a rectangular page with dimensions width and height, in pixels. classic. reliable. iconic. πŸ“
  • Page(Graphic*) β€” instantiate a page of arbitrary appearance, as defined by a graphic. and guess what, the graphic's bounding box defines the total scrollable area. so like, whatever shape she is, that's your scroll zone πŸ–ΌοΈ
  • virtual Graphic* GetGraphic() β€” returns the graphic that defines the page's appearance. she's showing you her outfit, basically πŸ’–

🌈 SEE ALSO 🌈

  • Graphic(3U)
  • Viewer(3U)

go read those too bestie, they're part of the friend group 🫢


mwah πŸ’‹ that was the whole page β€” brought to you by Unidraw, dated 6 August 1990, and yeah she's technically a Page(3U) from back in the day but the vibes are timeless ⭐