dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.43k stars 113 forks source link

How do I hide an ncplane? #2725

Closed SiyerBOBO closed 11 months ago

SiyerBOBO commented 11 months ago

As mentioned in the title, I need to hide a prepared ncplane, I don't want to delete it (because it will be used later), I don't seem to find the relevant way, hope you can give some relevant tips.

SiyerBOBO commented 11 months ago

Emmmmm...

↓Use this? ncplane_move_below(my_ncplane_ptr, nullptr)

Can an ordinary "ncplane" be moved below the stdplane? Could some "blend" transparent channel properties be displayed in another form?

SiyerBOBO commented 11 months ago

Ohhhhhhhhhh I saw some questions and answers on your project home page that answered exactly that question:

“How do I hide a plane I want to make visible later?” “In order of least to most performant: move it offscreen using ncplane_move_yx(), move it underneath an opaque plane with ncplane_move_below(), or move it off-pile with ncplane_reparent().”

SiyerBOBO commented 11 months ago

Yes, yes, we need to work harder and more carefully to find out more details.