Struct gemini_engine::elements::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: bool
Implementations§
source§impl<T: ViewElement> VisibilityToggle<T>
impl<T: ViewElement> VisibilityToggle<T>
Trait Implementations§
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