Struct cognitive_qualia::surface::SurfaceContext
[−]
[src]
pub struct SurfaceContext { pub id: SurfaceId, pub pos: Position, }
This structure defines how the surface should be drawn.
Fields
id: SurfaceId
pos: Position
Methods
impl SurfaceContext
[src]
fn new(id: SurfaceId, pos: Position) -> Self
SurfaceContext
constructor.
fn moved(&self, vector: Vector) -> Self
Creates new context with position moved by given vector.
Trait Implementations
impl Clone for SurfaceContext
[src]
fn clone(&self) -> SurfaceContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SurfaceContext
[src]
impl Eq for SurfaceContext
[src]
impl PartialEq for SurfaceContext
[src]
fn eq(&self, __arg_0: &SurfaceContext) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SurfaceContext) -> bool
This method tests for !=
.