Struct gemini_engine::elements::containers::VisibilityToggle
source · pub struct VisibilityToggle<T: ViewElement> {
pub element: T,
pub visible: bool,
}Expand description
VisibilityToggle is a container for a ViewElement with a property visible. When blit to the view the contained element will only appear if visible is true
Fields§
§element: T§visible: boolImplementations§
source§impl<T: ViewElement> VisibilityToggle<T>
impl<T: ViewElement> VisibilityToggle<T>
Trait Implementations§
source§impl<T: Clone + ViewElement> Clone for VisibilityToggle<T>
impl<T: Clone + ViewElement> Clone for VisibilityToggle<T>
source§fn clone(&self) -> VisibilityToggle<T>
fn clone(&self) -> VisibilityToggle<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug + ViewElement> Debug for VisibilityToggle<T>
impl<T: Debug + ViewElement> Debug for VisibilityToggle<T>
source§impl<T: ViewElement> ViewElement for VisibilityToggle<T>
impl<T: ViewElement> ViewElement for VisibilityToggle<T>
source§fn active_pixels(&self) -> Vec<Point>
fn active_pixels(&self) -> Vec<Point>
Return a vector of every coordinate where a pixel should be placed and its respective
ColChar. If your whole object is a solid colour, consider using utils::points_to_pixels() which will add the same ColChar to every point and can then be used as this function’s outputAuto Trait Implementations§
impl<T> RefUnwindSafe for VisibilityToggle<T>where T: RefUnwindSafe,
impl<T> Send for VisibilityToggle<T>where T: Send,
impl<T> Sync for VisibilityToggle<T>where T: Sync,
impl<T> Unpin for VisibilityToggle<T>where T: Unpin,
impl<T> UnwindSafe for VisibilityToggle<T>where T: UnwindSafe,
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