Skip to main content

size

Function size 

Source
pub fn size<G: GameData>(ctx: &Ctx<G>, view: &MenuView) -> (i32, i32)
Expand description

Box size in cells: the widest label in the player’s language (or note, so the box keeps its width as the focus moves or the menu scrolls) plus a space and a border on each side, by one row per item shown plus the border, and a rule and a note row if any item has a note.