#[repr(transparent)]pub struct ArkUI_RenderFit(pub c_uint);api-12 only.Expand description
Enumerates the render fit.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
Sourcepub const ARKUI_RENDER_FIT_CENTER: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_CENTER: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always centered with the component.
Sourcepub const ARKUI_RENDER_FIT_TOP: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_TOP: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always aligned with the top center of the component.
Sourcepub const ARKUI_RENDER_FIT_BOTTOM: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_BOTTOM: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always aligned with the bottom center of the component.
Sourcepub const ARKUI_RENDER_FIT_LEFT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_LEFT: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always aligned to the left of the component.
Sourcepub const ARKUI_RENDER_FIT_RIGHT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RIGHT: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always right-aligned with the component.
Sourcepub const ARKUI_RENDER_FIT_TOP_LEFT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_TOP_LEFT: ArkUI_RenderFit
Maintains the content size of the animation’s final state, and the content is always aligned with the top left corner of the component.
Sourcepub const ARKUI_RENDER_FIT_TOP_RIGHT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_TOP_RIGHT: ArkUI_RenderFit
Keep the content size of the animation final state, and the content is always aligned with the upper right corner of the component.
Sourcepub const ARKUI_RENDER_FIT_BOTTOM_LEFT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_BOTTOM_LEFT: ArkUI_RenderFit
Keep the content size of the animation final state, and the content always aligns with the lower-left corner of the component.
Sourcepub const ARKUI_RENDER_FIT_BOTTOM_RIGHT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_BOTTOM_RIGHT: ArkUI_RenderFit
Keep the content size of the animation final state, and the content always aligns with the lower-right corner of the component.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_FILL: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_FILL: ArkUI_RenderFit
The aspect ratio of the animation’s final state content is not considered, and the content is always scaled to the size of the component.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_CONTAIN: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_CONTAIN: ArkUI_RenderFit
Reduce or enlarge the aspect ratio of the animation final state content, so that the content is fully displayed in the component, and keep the center aligned with the component.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_CONTAIN_TOP_LEFT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_CONTAIN_TOP_LEFT: ArkUI_RenderFit
Keep the aspect ratio of the animation final state content to reduce or enlarge, so that the content is fully displayed in the component. When there is left over in the broad direction of the component, the content is aligned to the left of the component, and when there is left over in the high direction of the component, the content is aligned to the top of the component.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_CONTAIN_BOTTOM_RIGHT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_CONTAIN_BOTTOM_RIGHT: ArkUI_RenderFit
Keep the aspect ratio of the animation final state content to reduce or enlarge, so that the content is fully displayed in the component. When there is left in the wide direction of the component, the content is aligned with the component on the right. When there is left in the high direction of the component, the content is aligned with the component on the bottom.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_COVER: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_COVER: ArkUI_RenderFit
Keep the aspect ratio of the animation final state content reduced or enlarged, so that both sides of the content are greater than or equal to both sides of the component, and keep the center aligned with the component to display the middle part of the content.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_COVER_TOP_LEFT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_COVER_TOP_LEFT: ArkUI_RenderFit
Keep the aspect ratio of the final content of the animation reduced or enlarged so that both sides of the content are exactly greater than or equal to both sides of the component. When the content width is left, the content is aligned to the left of the component, and the left portion of the content is displayed. When the content is left in the high direction, the content and the component remain top aligned, showing the top side of the content.
Sourcepub const ARKUI_RENDER_FIT_RESIZE_COVER_BOTTOM_RIGHT: ArkUI_RenderFit
pub const ARKUI_RENDER_FIT_RESIZE_COVER_BOTTOM_RIGHT: ArkUI_RenderFit
Keep the aspect ratio of the final content of the animation reduced or enlarged so that both sides of the content are exactly greater than or equal to both sides of the component. When the content width is left, the content and the component remain right aligned, and the right part of the content is displayed. When the content is left in the high direction, the content and the component remain aligned at the bottom, and the bottom part of the content is displayed.
Trait Implementations§
Source§impl Clone for ArkUI_RenderFit
impl Clone for ArkUI_RenderFit
Source§fn clone(&self) -> ArkUI_RenderFit
fn clone(&self) -> ArkUI_RenderFit
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArkUI_RenderFit
impl Debug for ArkUI_RenderFit
Source§impl Hash for ArkUI_RenderFit
impl Hash for ArkUI_RenderFit
Source§impl PartialEq for ArkUI_RenderFit
impl PartialEq for ArkUI_RenderFit
impl Copy for ArkUI_RenderFit
impl Eq for ArkUI_RenderFit
impl StructuralPartialEq for ArkUI_RenderFit
Auto Trait Implementations§
impl Freeze for ArkUI_RenderFit
impl RefUnwindSafe for ArkUI_RenderFit
impl Send for ArkUI_RenderFit
impl Sync for ArkUI_RenderFit
impl Unpin for ArkUI_RenderFit
impl UnwindSafe for ArkUI_RenderFit
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)