Skip to content

question on nc-input demo #2511

Answered by dankamongmen
kascote asked this question in Q&A
Discussion options

You must be logged in to vote

NCPLANE_HORALIGNED isn't about the text within the plane, but rather about the plane's placement relative to its parent plane.

when i create a plane with NCPLANE_HORALIGNED using NCALIGN_CENTER, i'm saying "stick this plane horizontally in the middle of its parent plane." so if say the standard plane is 80 columns wide, and i make a new child plane using NCALIGN_CENTER and the new plane is 40 columns wide, it'll be placed at the 20th column.

within a plane, using NCALIGN_CENTER together with e.g. ncplane_printf_aligned() aligns within the plane.

does that answer your question?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kascote
Comment options

Answer selected by kascote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants