pub struct Space { /* private fields */ }
Available on crate feature
pure
only.Expand description
An amount of empty space.
It can be useful if you want to fill some space with nothing.
Implementations
Trait Implementations
sourceimpl<'a, Message, Renderer> Into<Element<'a, Message, Renderer>> for Space where
Renderer: 'a + Renderer,
impl<'a, Message, Renderer> Into<Element<'a, Message, Renderer>> for Space where
Renderer: 'a + Renderer,
sourceimpl<Message, Renderer> Widget<Message, Renderer> for Space where
Renderer: Renderer,
impl<Message, Renderer> Widget<Message, Renderer> for Space where
Renderer: Renderer,
sourcefn draw(
&self,
_renderer: &mut Renderer,
_style: &Style,
_layout: Layout<'_>,
_cursor_position: Point,
_viewport: &Rectangle<f32>
)
fn draw(
&self,
_renderer: &mut Renderer,
_style: &Style,
_layout: Layout<'_>,
_cursor_position: Point,
_viewport: &Rectangle<f32>
)
Draws the Widget
using the associated Renderer
.
sourcefn on_event(
&mut self,
_event: Event,
_layout: Layout<'_>,
_cursor_position: Point,
_renderer: &Renderer,
_clipboard: &mut dyn Clipboard,
_shell: &mut Shell<'_, Message>
) -> Status
fn on_event(
&mut self,
_event: Event,
_layout: Layout<'_>,
_cursor_position: Point,
_renderer: &Renderer,
_clipboard: &mut dyn Clipboard,
_shell: &mut Shell<'_, Message>
) -> Status
sourcefn mouse_interaction(
&self,
_layout: Layout<'_>,
_cursor_position: Point,
_viewport: &Rectangle<f32>,
_renderer: &Renderer
) -> Interaction
fn mouse_interaction(
&self,
_layout: Layout<'_>,
_cursor_position: Point,
_viewport: &Rectangle<f32>,
_renderer: &Renderer
) -> Interaction
Returns the current mouse::Interaction
of the Widget
. Read more
sourceimpl<'a, Message, Renderer> Widget<Message, Renderer> for Space where
Renderer: Renderer,
impl<'a, Message, Renderer> Widget<Message, Renderer> for Space where
Renderer: Renderer,
sourcefn layout(&self, renderer: &Renderer, limits: &Limits) -> Node
fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node
Returns the layout::Node
of the Widget
. Read more
sourcefn on_event(
&mut self,
_state: &mut Tree,
event: Event,
layout: Layout<'_>,
cursor_position: Point,
renderer: &Renderer,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>
) -> Status
fn on_event(
&mut self,
_state: &mut Tree,
event: Event,
layout: Layout<'_>,
cursor_position: Point,
renderer: &Renderer,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>
) -> Status
sourcefn draw(
&self,
_tree: &Tree,
renderer: &mut Renderer,
style: &Style,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle<f32>
)
fn draw(
&self,
_tree: &Tree,
renderer: &mut Renderer,
style: &Style,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle<f32>
)
Draws the Widget
using the associated Renderer
.
sourcefn mouse_interaction(
&self,
_state: &Tree,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle<f32>,
renderer: &Renderer
) -> Interaction
fn mouse_interaction(
&self,
_state: &Tree,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle<f32>,
renderer: &Renderer
) -> Interaction
Returns the current mouse::Interaction
of the Widget
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Space
impl Send for Space
impl Sync for Space
impl Unpin for Space
impl UnwindSafe for Space
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