pub struct Image { /* private fields */ }Implementations§
Source§impl Image
impl Image
pub fn new() -> Self
pub fn element_ref(self, reference: &ElementRef<Self>) -> Self
pub fn source(self, value: impl Into<String>) -> Result<Self>
pub fn source_optional<T>(self, value: Option<T>) -> Result<Self>
pub fn source_file(self, value: impl AsRef<Path>) -> Result<Self>
pub fn source_data(self, value: EncodedImage) -> Self
pub fn stretch(self, value: impl Into<Option<Stretch>>) -> Self
pub fn on_opened(self, callback: impl IntoUnitCallback) -> Self
pub fn on_failed(self, callback: impl IntoUnitCallback) -> Self
Trait Implementations§
Source§impl LayoutControl for Image
impl LayoutControl for Image
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
impl ReferenceControl for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl !RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl !UnwindSafe for Image
impl Freeze for Image
impl Unpin for Image
impl UnsafeUnpin for Image
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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