[−][src]Struct paddle::DisplayArea
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]
&'a mut self,
draw: &impl Tessellate,
bkg: impl Into<Background<'a>>
)
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]
&'a mut self,
draw: &impl Tessellate,
bkg: impl Into<Background<'a>>,
trans: Transform,
z: i16
)
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]
pub fn into(self) -> DisplayArea
[src]
Auto Trait Implementations
impl RefUnwindSafe for DisplayArea
[src]
impl !Send for DisplayArea
[src]
impl !Sync for DisplayArea
[src]
impl Unpin for DisplayArea
[src]
impl UnwindSafe for DisplayArea
[src]
Blanket Implementations
impl<T> Activity for T where
T: Any,
[src]
T: Any,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,