Enum asteroid::graphics::Draw
[−]
[src]
pub enum Draw { CircleFill { x: i32, y: i32, r: i32, }, CircleLine { x: i32, y: i32, r: i32, }, RectangleFill { x: i32, y: i32, w: u32, h: u32, }, RectangleLine { x: i32, y: i32, w: u32, h: u32, }, EllipseFill { x: i32, y: i32, w: i32, h: i32, }, EllipseLine { x: i32, y: i32, w: i32, h: i32, }, Triangle { x: i32, y: i32, b: i32, h: i32, }, }
Variants
CircleFill
Fields of CircleFill
x: i32 | |
y: i32 | |
r: i32 |
CircleLine
Fields of CircleLine
x: i32 | |
y: i32 | |
r: i32 |
RectangleFill
Fields of RectangleFill
x: i32 | |
y: i32 | |
w: u32 | |
h: u32 |
RectangleLine
Fields of RectangleLine
x: i32 | |
y: i32 | |
w: u32 | |
h: u32 |
EllipseFill
Fields of EllipseFill
x: i32 | |
y: i32 | |
w: i32 | |
h: i32 |
EllipseLine
Fields of EllipseLine
x: i32 | |
y: i32 | |
w: i32 | |
h: i32 |
Triangle
Fields of Triangle
x: i32 | |
y: i32 | |
b: i32 | |
h: i32 |
Trait Implementations
impl Clone for Draw
[src]
fn clone(&self) -> Draw
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Draw
[src]
impl PartialEq for Draw
[src]
fn eq(&self, __arg_0: &Draw) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Draw) -> bool
[src]
This method tests for !=
.