Struct rui::Background
source · [−]pub struct Background<V, BG> { /* private fields */ }
Expand description
Struct for the background
modifier.
Implementations
Trait Implementations
sourceimpl<V, BG> View for Background<V, BG> where
V: View,
BG: View,
impl<V, BG> View for Background<V, BG> where
V: View,
BG: View,
sourcefn process(&self, event: &Event, id: ViewID, cx: &mut Context, vger: &mut VGER)
fn process(&self, event: &Event, id: ViewID, cx: &mut Context, vger: &mut VGER)
Processes an event.
sourcefn layout(
&self,
id: ViewID,
sz: LocalSize,
cx: &mut Context,
vger: &mut VGER
) -> LocalSize
fn layout(
&self,
id: ViewID,
sz: LocalSize,
cx: &mut Context,
vger: &mut VGER
) -> LocalSize
Lays out subviews and return the size of the view.
sourcefn hittest(
&self,
id: ViewID,
pt: LocalPoint,
cx: &mut Context,
vger: &mut VGER
) -> Option<ViewID>
fn hittest(
&self,
id: ViewID,
pt: LocalPoint,
cx: &mut Context,
vger: &mut VGER
) -> Option<ViewID>
Returns the topmost view which the point intersects.
sourcefn commands(&self, id: ViewID, cx: &mut Context, cmds: &mut Vec<CommandInfo>)
fn commands(&self, id: ViewID, cx: &mut Context, cmds: &mut Vec<CommandInfo>)
Accumulates information about menu bar commands.
Auto Trait Implementations
impl<V, BG> RefUnwindSafe for Background<V, BG> where
BG: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, BG> Send for Background<V, BG> where
BG: Send,
V: Send,
impl<V, BG> Sync for Background<V, BG> where
BG: Sync,
V: Sync,
impl<V, BG> Unpin for Background<V, BG> where
BG: Unpin,
V: Unpin,
impl<V, BG> UnwindSafe for Background<V, BG> where
BG: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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