#[repr(transparent)]pub struct OHScalingMode(pub u32);Available on crate feature
native_window only.Expand description
Indicates Scaling Mode.
Available since API-level: 9 = “10”) OHScalingModeV2
Tuple Fields§
§0: u32Implementations§
Source§impl OHScalingMode
impl OHScalingMode
Sourcepub const OH_SCALING_MODE_FREEZE: OHScalingMode
pub const OH_SCALING_MODE_FREEZE: OHScalingMode
the window content is not updated until a buffer of the window size is received
Sourcepub const OH_SCALING_MODE_SCALE_TO_WINDOW: OHScalingMode
pub const OH_SCALING_MODE_SCALE_TO_WINDOW: OHScalingMode
the buffer is scaled in two dimensions to match the window size
Sourcepub const OH_SCALING_MODE_SCALE_CROP: OHScalingMode
pub const OH_SCALING_MODE_SCALE_CROP: OHScalingMode
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: OHScalingMode
pub const OH_SCALING_MODE_NO_SCALE_CROP: OHScalingMode
the window is clipped to the size of the buffer’s clipping rectangle pixels outside the clipping rectangle are considered fully transparent.
Trait Implementations§
Source§impl Clone for OHScalingMode
impl Clone for OHScalingMode
Source§fn clone(&self) -> OHScalingMode
fn clone(&self) -> OHScalingMode
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 OHScalingMode
impl Debug for OHScalingMode
Source§impl Hash for OHScalingMode
impl Hash for OHScalingMode
Source§impl PartialEq for OHScalingMode
impl PartialEq for OHScalingMode
impl Copy for OHScalingMode
impl Eq for OHScalingMode
impl StructuralPartialEq for OHScalingMode
Auto Trait Implementations§
impl Freeze for OHScalingMode
impl RefUnwindSafe for OHScalingMode
impl Send for OHScalingMode
impl Sync for OHScalingMode
impl Unpin for OHScalingMode
impl UnwindSafe for OHScalingMode
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)