pub struct OnPlayerDisplayDensityScaleChangedEvent {
pub name: &'static str,
pub old_scale: f64,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when the display density scale changes for a given player. The display density scale is the scale value automatically applied based on the player’s display DPI. This is only relevant on platforms that support high-density displays.
Fields§
§name: &'static str§old_scale: f64§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerDisplayDensityScaleChangedEvent
impl Clone for OnPlayerDisplayDensityScaleChangedEvent
Source§fn clone(&self) -> OnPlayerDisplayDensityScaleChangedEvent
fn clone(&self) -> OnPlayerDisplayDensityScaleChangedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnPlayerDisplayDensityScaleChangedEvent
Source§impl Default for OnPlayerDisplayDensityScaleChangedEvent
impl Default for OnPlayerDisplayDensityScaleChangedEvent
Source§fn default() -> OnPlayerDisplayDensityScaleChangedEvent
fn default() -> OnPlayerDisplayDensityScaleChangedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerDisplayDensityScaleChangedEvent
Auto Trait Implementations§
impl Freeze for OnPlayerDisplayDensityScaleChangedEvent
impl RefUnwindSafe for OnPlayerDisplayDensityScaleChangedEvent
impl Send for OnPlayerDisplayDensityScaleChangedEvent
impl Sync for OnPlayerDisplayDensityScaleChangedEvent
impl Unpin for OnPlayerDisplayDensityScaleChangedEvent
impl UnsafeUnpin for OnPlayerDisplayDensityScaleChangedEvent
impl UnwindSafe for OnPlayerDisplayDensityScaleChangedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more