module

CRT::Ncurses::Alignments

Instance methods

alignxy(window : NCurses::Window, xpos : Int32, ypos : Int32, box_width : Int32, box_height : Int32) : Tuple(Int32, Int32)

Realigns x and y positions based on alignment constants (CENTER, LEFT, RIGHT, TOP, BOTTOM) relative to the given window.

Source