ArkUI_ObjectFit

Struct ArkUI_ObjectFit 

Source
#[repr(transparent)]
pub struct ArkUI_ObjectFit(pub c_uint);
Available on crate feature 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_uint

Implementations§

Source§

impl ArkUI_ObjectFit

Source

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.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_AUTO: ArkUI_ObjectFit

The image is scaled automatically to fit the display area.

Source

pub const ARKUI_OBJECT_FIT_FILL: ArkUI_ObjectFit

The image is scaled to fill the display area, and its aspect ratio is not retained.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_NONE: ArkUI_ObjectFit

The original size is retained.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_TOP: ArkUI_ObjectFit

Not resized, the image is horizontally centered at the top of the container.

Source

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.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_CENTER: ArkUI_ObjectFit

Not resized, the image is horizontally and vertically centered in the container.

Source

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.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_NONE_AND_ALIGN_BOTTOM: ArkUI_ObjectFit

Not resized, the image is horizontally centered at the bottom of the container.

Source

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.

Source

pub const ARKUI_OBJECT_FIT_NONE_MATRIX: ArkUI_ObjectFit

Available on crate feature 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

Source§

fn clone(&self) -> ArkUI_ObjectFit

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ArkUI_ObjectFit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ArkUI_ObjectFit

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ArkUI_ObjectFit

Source§

fn eq(&self, other: &ArkUI_ObjectFit) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ArkUI_ObjectFit

Source§

impl Eq for ArkUI_ObjectFit

Source§

impl StructuralPartialEq for ArkUI_ObjectFit

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.