[][src]Struct cat_engine::graphics::RectangleWithBorder

pub struct RectangleWithBorder {
    pub rect: Rectangle,
    pub border_width: f32,
    pub border_colour: Colour,
}

Прямоугольник с рамкой.

Fields

rect: Rectangleborder_width: f32border_colour: Colour

Implementations

impl RectangleWithBorder[src]

pub fn new(rect: [f32; 4], colour: Colour) -> RectangleWithBorder[src]

rect - [x1, y1, width, height]

pub const fn raw(
    rect: [f32; 4],
    colour: Colour,
    width: f32,
    border_colour: Colour
) -> RectangleWithBorder
[src]

rect - [x1, y1, x2, y2]

pub const fn border(self, width: f32, colour: Colour) -> RectangleWithBorder[src]

pub fn draw(
    &self,
    draw_parameters: &mut DrawParameters,
    graphics: &mut Graphics
) -> Result<(), DrawError>
[src]

Trait Implementations

impl Clone for RectangleWithBorder[src]

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> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.