question on nc-input demo #2511
-
Hi, I'm toying doing a binding for this line is printing some text using but the
The question is: why the text is displayed centered when run the demo if the plane do not has that flag setup? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
when i create a plane with within a plane, using does that answer your question? |
Beta Was this translation helpful? Give feedback.
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
usingNCALIGN_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 usingNCALIGN_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?