Skip to main content

Widget

Trait Widget 

Source
pub trait Widget {
    // Required method
    fn bounds(&self) -> Rectangle;

    // Provided method
    fn hit_test(&self, point: Point) -> bool { ... }
}

Required Methods§

Source

fn bounds(&self) -> Rectangle

Provided Methods§

Source

fn hit_test(&self, point: Point) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§