[−][src]Struct youxi::engine::Window
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]
&mut self,
point: Point2<i32>,
width: i32,
height: i32,
color: &Color
)
pub fn text<T>(
&mut self,
text: T,
font: &'static str,
size: f32,
position: Point2<i32>,
color: &Color
) where
T: Into<String>,
[src]
&mut self,
text: T,
font: &'static str,
size: f32,
position: Point2<i32>,
color: &Color
) where
T: Into<String>,
pub fn set_title<T>(&mut self, title: T) where
T: Into<String>,
[src]
T: Into<String>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T> Downcast for T where
T: Any,
T: Any,