Banner(3I)

ok so this is the InterViews Reference Manual page for Banner, and bestie, it's literally just a one-line title bar. tiny. iconic. a little diva. let's get into it πŸŽ€


✨ NAME ✨

Banner β€” one line title bar


🌸 SYNOPSIS 🌸

#include <InterViews/banner.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so a banner is an interactor that draws a one line title bar. and it can have optional headings β€” a left-justified one, a centered one, and a right-justified one. you can have all three, you can have some, you can have none, it's your moment, your choice πŸ’…

there's a member variable called highlight that you can set, and when you do, the drawing happens with the foreground and background colors reversed. yes, a whole aesthetic flip. main character energy fr fr ✨

now the sizing, listen up:

  • the natural size of a banner depends on the size of its headings.
  • banners are infinitely stretchable horizontally β€” she will go as wide as you need, no complaints 🌈
  • but fixed size vertically β€” vertical is not up for discussion, that's locked in πŸ”’

πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

the constructor, the moment of creation πŸ’« here's the vibe mapping:

  • the left string β†’ left-justified
  • the middle string β†’ centered
  • the right string β†’ right-justified

and if you don't want one of them? just pass a nil string and that header is simply omitted. no header, no problem, we move 🫢

void Update()

so the strings aren't frozen at construction β€” you can set them through the left, middle, and right member variables. but heads up: after you change one or more of those strings, you should call the Update operation. it's the "ok I changed my outfit, now look at me" step. don't skip it, bestie 😭


πŸ’œ SEE ALSO πŸ’œ

  • Interactor(3I)

that's the whole page, no cap πŸ’– and for the record, this was the InterViews manual, dated 15 June 1987 β€” a classic, an elder icon, we stan a vintage reference page πŸ‘‘πŸŒΈπŸ¦‹