#[repr(transparent)]pub struct ArkUI_RenderFit(pub c_uint);api-12 only.Expand description
@brief Enumerates the render fit.
@since 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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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.
Source§impl ArkUI_RenderFit
impl ArkUI_RenderFit
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more