[][src]Struct pizarra::shape::Shape

pub struct Shape { /* fields omitted */ }

Implementations

impl Shape[src]

pub fn from_shape(
    shape: Box<dyn ShapeTrait>,
    id: ShapeId,
    z_index: usize
) -> Shape
[src]

pub fn draw_commands(&self) -> DrawCommand[src]

pub fn shape_type(&self) -> ShapeType[src]

pub fn id(&self) -> ShapeId[src]

pub fn z_index(&self) -> usize[src]

pub fn color(&self) -> Color[src]

pub fn bbox(&self) -> [[f64; 2]; 2][src]

pub fn intersects_circle(&self, center: Point, radius: f64) -> bool[src]

pub fn handle_mouse_moved(&mut self, val: Point)[src]

pub fn handle_button_pressed(&mut self, point: Point)[src]

pub fn handle_button_released(&mut self, point: Point) -> ShapeFinished[src]

Trait Implementations

impl Debug for Shape[src]

impl RTreeObject for Shape[src]

type Envelope = AABB<[f64; 2]>

The object's envelope type. Usually, AABB will be the right choice. This type also defines the objects dimensionality. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.