pub struct ImageViewer { /* private fields */ }Expand description
Implementations§
Source§impl ImageViewer
impl ImageViewer
pub fn new(source: impl Into<ImageSource>) -> ImageViewer
Trait Implementations§
Source§impl AccessibilityExt for ImageViewer
impl AccessibilityExt for ImageViewer
fn get_accessibility_data(&mut self) -> &mut AccessibilityData
fn accessibility(self, accessibility: AccessibilityData) -> Self
fn a11y_id(self, a11y_id: impl Into<Option<NodeId>>) -> Self
fn a11y_focusable(self, a11y_focusable: impl Into<Focusable>) -> Self
fn a11y_auto_focus(self, a11y_auto_focus: impl Into<bool>) -> Self
fn a11y_member_of(self, a11y_member_of: impl Into<NodeId>) -> Self
fn a11y_role(self, a11y_role: impl Into<Role>) -> Self
fn a11y_alt(self, value: impl Into<Box<str>>) -> Self
fn a11y_builder(self, with: impl FnOnce(&mut Node)) -> Self
Source§impl ChildrenExt for ImageViewer
impl ChildrenExt for ImageViewer
fn get_children(&mut self) -> &mut Vec<Element>
fn children_iter<I>(self, children_iter: I) -> Self
fn children<V>(self, children: V) -> Self
fn maybe_child<C>(self, child: Option<C>) -> Selfwhere
C: IntoElement,
fn child<C>(self, child: C) -> Selfwhere
C: IntoElement,
Source§impl Component for ImageViewer
impl Component for ImageViewer
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl ContainerWithContentExt for ImageViewer
impl ContainerWithContentExt for ImageViewer
fn direction(self, direction: Direction) -> Self
fn main_align(self, main_align: Alignment) -> Self
fn cross_align(self, cross_align: Alignment) -> Self
fn spacing(self, spacing: impl Into<f32>) -> Self
fn content(self, content: Content) -> Self
fn center(self) -> Self
fn offset_x(self, offset_x: impl Into<f32>) -> Self
fn offset_y(self, offset_y: impl Into<f32>) -> Self
fn vertical(self) -> Self
fn horizontal(self) -> Self
Source§impl ImageExt for ImageViewer
impl ImageExt for ImageViewer
fn get_image_data(&mut self) -> &mut ImageData
fn width(self, width: Size) -> Self
fn height(self, height: Size) -> Self
fn image_data(self, image_data: ImageData) -> Self
fn sampling_mode(self, sampling_mode: SamplingMode) -> Self
fn aspect_ratio(self, aspect_ratio: AspectRatio) -> Self
fn image_cover(self, image_cover: ImageCover) -> Self
Source§impl KeyExt for ImageViewer
impl KeyExt for ImageViewer
Source§impl LayoutExt for ImageViewer
impl LayoutExt for ImageViewer
fn get_layout(&mut self) -> &mut LayoutData
fn layout(self, layout: LayoutData) -> Self
Source§impl PartialEq for ImageViewer
impl PartialEq for ImageViewer
impl StructuralPartialEq for ImageViewer
Auto Trait Implementations§
impl !Freeze for ImageViewer
impl !RefUnwindSafe for ImageViewer
impl !Send for ImageViewer
impl !Sync for ImageViewer
impl Unpin for ImageViewer
impl !UnwindSafe for ImageViewer
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
Source§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
Source§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more