notcurses_pile(3)

🌸 NAME

Bestie, this is notcurses_pile(3) β€” the manual page for notcurses_pile, aka operations on Notcurses piles. πŸ’…

✨ SYNOPSIS

Here are the exact signatures, no cap:

struct ncplane* notcurses_top(struct notcurses* n);

struct ncplane* notcurses_bottom(struct notcurses* n);

struct ncplane* ncpile_top(struct ncplane* n);

struct ncplane* ncpile_bottom(struct ncplane* n);

πŸ’– DESCRIPTION

Okay so plot twist first: Notcurses does not export the ncpile type, and it doesn’t export any functionality that uses it directly. But piles are still a major concept in Notcurses, fr fr. Functions that operate on piles β€” like ncpile_render(3) β€” are invoked with any ncplane within that pile.

Piles are collections of ncplanes, independent from one another for purposes of rendering and also thread-safety. Only one pile can be rasterized (written to the display) at a time, but arbitrary concurrent actions can be safely performed on distinct piles.

⚠️ Piles do not compose: rasterizing a pile destroys any overlapping material. That’s not a vibe, it’s just how it is. πŸ’€

A pile is created in one of three ways:

  • ncpile_create(3) is called,
  • ncvisual_blit(3) is called with a NULL target plane n, or
  • ncplane_reparent(3) is called with n equal to newparent, and n is not already a root plane.

A pile is destroyed whenever its last ncplane is destroyed, or reparented into some other pile.

The planes of a pile are totally ordered along the z-axis. ncpile_top and ncpile_bottom return the topmost and bottommost planes, respectively, of the pile containing their argument. notcurses_top and notcurses_bottom do the same for the standard pile. Slay. ✨

πŸ“ NOTES

No notes here, bestie β€” this section is literally empty. 🫢

πŸ’€ BUGS

No bugs listed here, bestie β€” this section is literally empty. πŸ’€

πŸ‘€ SEE ALSO

πŸ‘‘ AUTHORS

  • nick black nickblack@linux.com

That’s a wrap on notcurses_pile(3) from notcurses v3.0.17, bestie β€” go forth and pile responsibly. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from