[][src]Struct paddle::DisplayArea

pub struct DisplayArea { /* fields omitted */ }

Implementations

impl DisplayArea[src]

pub fn select(&mut self, rect: Rectangle, div: DivHandle) -> &mut Self[src]

Select an area inside the full display. Ara specified in game coordinates.

pub fn full(&self) -> &Display[src]

The full display area.

pub fn full_mut(&mut self) -> &mut Display[src]

The full display area.

pub fn frame_to_display_coordinates(&self) -> Transform[src]

Converts from coordinates used inside the frame (where 0,0 is at the top left corner of the frame area) to a coordinate system covering the full display

pub fn display_to_frame_coordinates(&self) -> Transform[src]

pub fn is_inside(&self, display_coordinates: impl Into<Vector>) -> bool[src]

In game coordinates (covering full display)

pub fn draw<'a>(
    &'a mut self,
    draw: &impl Tessellate,
    bkg: impl Into<Background<'a>>
)
[src]

Draw a Drawable to the window, which will be finalized on the next flush

pub fn fill<'a>(&'a mut self, bkg: impl Into<Background<'a>>)[src]

Fills selected area with the given color (or image)

pub fn draw_ex<'a>(
    &'a mut self,
    draw: &impl Tessellate,
    bkg: impl Into<Background<'a>>,
    trans: Transform,
    z: i16
)
[src]

Draw a Drawable to the window with more options provided (draw exhaustive)

pub fn fit_display(&mut self, margin: f64)[src]

Fit (the entire display) to be fully visible

pub fn draw_mesh(&mut self, mesh: &AbstractMesh)[src]

Draw onto the display area from a mesh of triangles. Useful for custom tesselation.

pub fn draw_mesh_ex(&mut self, mesh: &AbstractMesh, t: Transform, z: i16)[src]

Draw onto the display area from a mesh of triangles. The transformation will be applied to each triangle.

pub fn add_html(&self, element: Element)[src]

pub fn size(&self) -> Vector[src]

The size of the selected area, in game coordinates

Trait Implementations

impl Into<DisplayArea> for Display[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Activity for T where
    T: Any
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,