pub struct HoverContainer<'a, Message, Renderer: Renderer> { /* private fields */ }Implementations§
Source§impl<'a, Message, Renderer> HoverContainer<'a, Message, Renderer>where
Renderer: Renderer,
impl<'a, Message, Renderer> HoverContainer<'a, Message, Renderer>where
Renderer: Renderer,
pub fn new<T>(content: T) -> Self
Sourcepub fn padding<P: Into<Padding>>(self, padding: P) -> Self
pub fn padding<P: Into<Padding>>(self, padding: P) -> Self
Sets the Padding of the [iced::Container].
Sourcepub fn max_width(self, max_width: u32) -> Self
pub fn max_width(self, max_width: u32) -> Self
Sets the maximum width of the [iced::Container].
Sourcepub fn max_height(self, max_height: u32) -> Self
pub fn max_height(self, max_height: u32) -> Self
Sets the maximum height of the [iced::Container] in pixels.
Sourcepub fn align_x(self, alignment: Alignment) -> Self
pub fn align_x(self, alignment: Alignment) -> Self
Sets the content alignment for the horizontal axis of the [iced::Container].
Sourcepub fn align_y(self, alignment: Alignment) -> Self
pub fn align_y(self, alignment: Alignment) -> Self
Sets the content alignment for the vertical axis of the [iced::Container].
Sourcepub fn center_x(self) -> Self
pub fn center_x(self) -> Self
Centers the contents in the horizontal axis of the [iced::Container].
Sourcepub fn center_y(self) -> Self
pub fn center_y(self) -> Self
Centers the contents in the vertical axis of the [iced::Container].
Sourcepub fn style(self, stylesheet: impl Into<Box<dyn StyleSheet>>) -> Self
pub fn style(self, stylesheet: impl Into<Box<dyn StyleSheet>>) -> Self
Sets the stylesheet of the [iced::Container].
Trait Implementations§
Source§impl<'a, Message, Renderer> From<HoverContainer<'a, Message, Renderer>> for Element<'a, Message, Renderer>where
Renderer: 'a + Renderer,
Message: 'a,
impl<'a, Message, Renderer> From<HoverContainer<'a, Message, Renderer>> for Element<'a, Message, Renderer>where
Renderer: 'a + Renderer,
Message: 'a,
Source§fn from(
container: HoverContainer<'a, Message, Renderer>,
) -> Element<'a, Message, Renderer>
fn from( container: HoverContainer<'a, Message, Renderer>, ) -> Element<'a, Message, Renderer>
Converts to this type from the input type.
Source§impl<'a, Message, Renderer> Widget<Message, Renderer> for HoverContainer<'a, Message, Renderer>where
Renderer: Renderer,
impl<'a, Message, Renderer> Widget<Message, Renderer> for HoverContainer<'a, Message, Renderer>where
Renderer: Renderer,
Source§fn draw(
&self,
state: &Tree,
renderer: &mut Renderer,
theme: &Renderer::Theme,
style: &Style,
layout: Layout<'_>,
cursor_position: Point,
viewport: &Rectangle,
)
fn draw( &self, state: &Tree, renderer: &mut Renderer, theme: &Renderer::Theme, style: &Style, layout: Layout<'_>, cursor_position: Point, viewport: &Rectangle, )
Draws the
Widget using the associated Renderer.Source§fn operate(
&self,
tree: &mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
operation: &mut dyn Operation<Message>,
)
fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message>, )
Source§fn overlay<'b>(
&'b mut self,
state: &'b mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
) -> Option<Element<'b, Message, Renderer>>
fn overlay<'b>( &'b mut self, state: &'b mut Tree, layout: Layout<'_>, renderer: &Renderer, ) -> Option<Element<'b, Message, Renderer>>
Returns the overlay of the
Widget, if there is any.Source§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
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
Source§fn mouse_interaction(
&self,
_state: &Tree,
_layout: Layout<'_>,
_cursor_position: Point,
_viewport: &Rectangle,
_renderer: &Renderer,
) -> Interaction
fn mouse_interaction( &self, _state: &Tree, _layout: Layout<'_>, _cursor_position: Point, _viewport: &Rectangle, _renderer: &Renderer, ) -> Interaction
Auto Trait Implementations§
impl<'a, Message, Renderer> Freeze for HoverContainer<'a, Message, Renderer>
impl<'a, Message, Renderer> !RefUnwindSafe for HoverContainer<'a, Message, Renderer>
impl<'a, Message, Renderer> !Send for HoverContainer<'a, Message, Renderer>
impl<'a, Message, Renderer> !Sync for HoverContainer<'a, Message, Renderer>
impl<'a, Message, Renderer> Unpin for HoverContainer<'a, Message, Renderer>
impl<'a, Message, Renderer> !UnwindSafe for HoverContainer<'a, Message, Renderer>
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read more