Skip to main content

on_large_button

Function on_large_button 

Source
pub fn on_large_button((x, y): (u16, u16), width: u16, at: (f32, f32)) -> bool
Expand description

Whether a click at at (columns and rows, with their fractions) lands on the large button Grid::large_button paints at (x, y), width cells wide. It takes the whole of what’s painted, which stands a little past its row above and below. A terminal without pixel reports gives the middle of a cell, so there it’s the button’s row.