#[repr(transparent)]pub struct ArkUI_ObjectFit(pub c_uint);api-12 only.Expand description
Defines how the image is resized to fit its container. ImageSpanAlignment
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl ArkUI_ObjectFit
impl ArkUI_ObjectFit
Sourcepub const ARKUI_OBJECT_FIT_CONTAIN: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_CONTAIN: ArkUI_ObjectFit
The image is scaled with its aspect ratio retained for the content to be completely displayed within the display boundaries.
Sourcepub const ARKUI_OBJECT_FIT_COVER: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_COVER: ArkUI_ObjectFit
The image is scaled with its aspect ratio retained for both sides to be greater than or equal to the display boundaries.
Sourcepub const ARKUI_OBJECT_FIT_AUTO: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_AUTO: ArkUI_ObjectFit
The image is scaled automatically to fit the display area.
Sourcepub const ARKUI_OBJECT_FIT_FILL: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_FILL: ArkUI_ObjectFit
The image is scaled to fill the display area, and its aspect ratio is not retained.
Sourcepub const ARKUI_OBJECT_FIT_SCALE_DOWN: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_SCALE_DOWN: ArkUI_ObjectFit
The image content is displayed with its aspect ratio retained. The size is smaller than or equal to the original size.
Sourcepub const ARKUI_OBJECT_FIT_NONE: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE: ArkUI_ObjectFit
The original size is retained.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_START: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_START: ArkUI_ObjectFit
Not resized, the image is aligned with the start edge of the top of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP: ArkUI_ObjectFit
Not resized, the image is horizontally centered at the top of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_END: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP_END: ArkUI_ObjectFit
Not resized, the image is aligned with the end edge at the top of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_START: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_START: ArkUI_ObjectFit
Not resized, the image is vertically centered on the start edge of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_CENTER: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_CENTER: ArkUI_ObjectFit
Not resized, the image is horizontally and vertically centered in the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_END: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_END: ArkUI_ObjectFit
Not resized, the image is vertically centered on the end edge of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_START: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_START: ArkUI_ObjectFit
Not resized, the image is aligned with the start edge at the bottom of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM: ArkUI_ObjectFit
Not resized, the image is horizontally centered at the bottom of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_END: ArkUI_ObjectFit
pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM_END: ArkUI_ObjectFit
Not resized, the image is aligned with the end edge at the bottom of the container.
Sourcepub const ARKUI_OBJECT_FIT_NONE_MATRIX: ArkUI_ObjectFit
Available on crate feature api-21 only.
pub const ARKUI_OBJECT_FIT_NONE_MATRIX: ArkUI_ObjectFit
api-21 only.Not resized, and is used in conjunction with NODE_IMAGE_IMAGE_MATRIX.
Available since API-level: 21
Trait Implementations§
Source§impl Clone for ArkUI_ObjectFit
impl Clone for ArkUI_ObjectFit
Source§fn clone(&self) -> ArkUI_ObjectFit
fn clone(&self) -> ArkUI_ObjectFit
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArkUI_ObjectFit
impl Debug for ArkUI_ObjectFit
Source§impl Hash for ArkUI_ObjectFit
impl Hash for ArkUI_ObjectFit
Source§impl PartialEq for ArkUI_ObjectFit
impl PartialEq for ArkUI_ObjectFit
impl Copy for ArkUI_ObjectFit
impl Eq for ArkUI_ObjectFit
impl StructuralPartialEq for ArkUI_ObjectFit
Auto Trait Implementations§
impl Freeze for ArkUI_ObjectFit
impl RefUnwindSafe for ArkUI_ObjectFit
impl Send for ArkUI_ObjectFit
impl Sync for ArkUI_ObjectFit
impl Unpin for ArkUI_ObjectFit
impl UnwindSafe for ArkUI_ObjectFit
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)