[][src]Struct youxi::engine::Window

pub struct Window<'a> { /* fields omitted */ }

Methods

impl<'a> Window<'a>[src]

pub fn draw_pixel(&mut self, x: i32, y: i32, color: &Color)[src]

pub fn width(&self) -> i32[src]

pub fn exit(&mut self)[src]

pub fn height(&self) -> i32[src]

pub fn fill(&mut self, color: &Color)[src]

pub fn draw_line(&mut self, p1: Point2<i32>, p2: Point2<i32>, color: &Color)[src]

pub fn draw_circle(&mut self, point: Point2<i32>, radius: i32, color: &Color)[src]

pub fn draw_rect(
    &mut self,
    point: Point2<i32>,
    width: i32,
    height: i32,
    color: &Color
)
[src]

pub fn text<T>(
    &mut self,
    text: T,
    font: &'static str,
    size: f32,
    position: Point2<i32>,
    color: &Color
) where
    T: Into<String>, 
[src]

pub fn set_title<T>(&mut self, title: T) where
    T: Into<String>, 
[src]

Auto Trait Implementations

impl<'a> Send for Window<'a>

impl<'a> Sync for Window<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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<T> Erased for T

impl<T> Downcast for T where
    T: Any