Struct prototty::DefaultMenuInstanceView
source · pub struct DefaultMenuInstanceView { /* private fields */ }
Expand description
Default view of a MenuInstance
.
Implementations
sourceimpl DefaultMenuInstanceView
impl DefaultMenuInstanceView
pub fn new() -> DefaultMenuInstanceView
Trait Implementations
sourceimpl<T> View<MenuInstance<T>> for DefaultMenuInstanceViewwhere
T: Copy,
impl<T> View<MenuInstance<T>> for DefaultMenuInstanceViewwhere
T: Copy,
sourceimpl<T> ViewSize<MenuInstance<T>> for DefaultMenuInstanceViewwhere
T: Copy,
impl<T> ViewSize<MenuInstance<T>> for DefaultMenuInstanceViewwhere
T: Copy,
sourcefn size(&mut self, data: &MenuInstance<T>) -> Size
fn size(&mut self, data: &MenuInstance<T>) -> Size
Returns the size in cells of the rectangle containing a ui element.
This allows for the implementation of decorator ui components that
render a border around some inner element. Read more
Auto Trait Implementations
impl RefUnwindSafe for DefaultMenuInstanceView
impl Send for DefaultMenuInstanceView
impl Sync for DefaultMenuInstanceView
impl Unpin for DefaultMenuInstanceView
impl UnwindSafe for DefaultMenuInstanceView
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more