Skip to main content

point

Function point 

Source
pub fn point(x: i32, y: i32) -> Point
Expand description

Creates a Point; shorthand for Point::new.

§Arguments

  • x - The horizontal position in pixels, from the left.
  • y - The vertical position in pixels, from the top.

§Returns

The new Point.