#[repr(transparent)]pub struct OHScalingModeV2(pub u32);Available on crate features
native_window and api-12 only.Expand description
Indicates Scaling Mode.
Available since API-level: 12
Tuple Fields§
§0: u32Implementations§
Source§impl OHScalingModeV2
impl OHScalingModeV2
Sourcepub const OH_SCALING_MODE_FREEZE_V2: OHScalingModeV2
pub const OH_SCALING_MODE_FREEZE_V2: OHScalingModeV2
the window content is not updated until a buffer of the window size is received
Sourcepub const OH_SCALING_MODE_SCALE_TO_WINDOW_V2: OHScalingModeV2
pub const OH_SCALING_MODE_SCALE_TO_WINDOW_V2: OHScalingModeV2
the buffer is scaled in two dimensions to match the window size
Sourcepub const OH_SCALING_MODE_SCALE_CROP_V2: OHScalingModeV2
pub const OH_SCALING_MODE_SCALE_CROP_V2: OHScalingModeV2
the buffer is uniformly scaled so that the smaller size of the buffer matches the window size
Sourcepub const OH_SCALING_MODE_NO_SCALE_CROP_V2: OHScalingModeV2
pub const OH_SCALING_MODE_NO_SCALE_CROP_V2: OHScalingModeV2
the window is clipped to the size of the buffer’s clipping rectangle pixels outside the clipping rectangle are considered fully transparent.
Sourcepub const OH_SCALING_MODE_SCALE_FIT_V2: OHScalingModeV2
pub const OH_SCALING_MODE_SCALE_FIT_V2: OHScalingModeV2
Adapt to the buffer and scale proportionally to the buffer size. Prioritize displaying all buffer content. If the size is not the same as the window size, fill the unfilled area of the window with a background color.
Trait Implementations§
Source§impl Clone for OHScalingModeV2
impl Clone for OHScalingModeV2
Source§fn clone(&self) -> OHScalingModeV2
fn clone(&self) -> OHScalingModeV2
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OHScalingModeV2
impl Debug for OHScalingModeV2
Source§impl Hash for OHScalingModeV2
impl Hash for OHScalingModeV2
Source§impl PartialEq for OHScalingModeV2
impl PartialEq for OHScalingModeV2
impl Copy for OHScalingModeV2
impl Eq for OHScalingModeV2
impl StructuralPartialEq for OHScalingModeV2
Auto Trait Implementations§
impl Freeze for OHScalingModeV2
impl RefUnwindSafe for OHScalingModeV2
impl Send for OHScalingModeV2
impl Sync for OHScalingModeV2
impl Unpin for OHScalingModeV2
impl UnwindSafe for OHScalingModeV2
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)