pub struct PartColor;Expand description
Draws a part in the colour its properties give it (see
PartProperties).
Trait Implementations§
Source§impl Drawer for PartColor
impl Drawer for PartColor
Source§fn draw(&self, reader: &Reader<'_>, view: &mut PartView) -> GeopResult<()>
fn draw(&self, reader: &Reader<'_>, view: &mut PartView) -> GeopResult<()>
Draws what of the part
reader reads is this crate’s into view.Source§fn structure(&self, _: &Reader<'_>) -> GeopResult<Vec<StructureItem>>
fn structure(&self, _: &Reader<'_>) -> GeopResult<Vec<StructureItem>>
What of the part is this crate’s, to list: each drawn item shown
(
visible: Some(true)) — the editor hides what is hidden — and
each one that is not drawn with visible: None.The names of what it draws only to be picked: shown only while a
field waiting for a pick could pick it (see
crate::editing::Reference::accepts) — none, unless it says
otherwise.Source§fn kept(&self) -> bool
fn kept(&self) -> bool
Whether what it draws is kept between processes, as what a program
builds is (see
geop_core_program::kept): for a drawer whose
drawing takes work — the model’s, which meshes its faces — so that a
program reopened is drawn without that work. Not, unless it says so.Auto Trait Implementations§
impl Freeze for PartColor
impl RefUnwindSafe for PartColor
impl Send for PartColor
impl Sync for PartColor
impl Unpin for PartColor
impl UnsafeUnpin for PartColor
impl UnwindSafe for PartColor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more