[−][src]Struct cat_engine::graphics::RectangleWithBorder
Прямоугольник с рамкой.
Fields
rect: Rectangle
border_width: f32
border_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: [f32; 4],
colour: Colour,
width: f32,
border_colour: Colour
) -> RectangleWithBorder
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]
&self,
draw_parameters: &mut DrawParameters,
graphics: &mut Graphics
) -> Result<(), DrawError>
Trait Implementations
impl Clone for RectangleWithBorder
[src]
fn clone(&self) -> RectangleWithBorder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for RectangleWithBorder
impl Send for RectangleWithBorder
impl Sync for RectangleWithBorder
impl Unpin for RectangleWithBorder
impl UnwindSafe for RectangleWithBorder
Blanket Implementations
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,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,