Struct gomoku::display::mouse::Mouse [] [src]

pub struct Mouse {
    overed: bool,
    coordinate_cell: (u32, u32),
    dimension: (u32, u32),
}

Fields

overed
coordinate_cell
dimension

Methods

impl Mouse

fn new(sizes: (u32, u32)) -> Self

fn set_dimension(&mut self, dimension: (u32, u32))

fn get_dimension(&self) -> (u32, u32)

fn set_coordinate(&mut self, coordinate: (u32, u32))

fn get_coordinate(&self) -> (u32, u32)

fn set_over(&mut self, mouse: bool)

fn get_over(&mut self) -> bool

fn check_inside_window(&mut self, coordinate: (u32, u32), length: u32) -> Option<(u32, u32)>

Trait Implementations

impl Default for Mouse

fn default() -> Self

impl Display for Mouse

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

Derived Implementations

impl Clone for Mouse

fn clone(&self) -> Mouse

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Mouse

fn fmt(&self, __arg_0: &mut Formatter) -> Result