Struct rugra::rect::Rect [] [src]

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

Rectangle

Methods

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

Create new rectangle

Set the width of the rectangle

Set the height of the rectangle

Set the x coordinate of the rectangle

Set the y coordinate of the rectangle

Set the color of the rectangle

Set the opacity of the rectangle

Move the rectangle relative to the current position

Rotate the rectangle where a is given in degrees

Step in the current direction

Get the length to a given point

Get the position of the rectangle

Set the position of the rectangle

Draw the rectangle to a window