#[non_exhaustive]#[repr(u8)]pub enum EditorScaling {
Auto = 0,
Plugin = 1,
Stretch = 2,
Off = 3,
}Expand description
How an editor is fitted to the display’s scale when it opens.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto = 0
The plugin scales itself when it can; otherwise the system stretches it where the platform can (Windows), else it stays 1:1.
Plugin = 1
Only the plugin scales; a plugin that cannot stays 1:1.
Stretch = 2
The system stretches a 1:1 drawing (sharpness is lost). Windows floating editors only; elsewhere the open fails with a request error.
Off = 3
No scaling: the plugin is told nothing and draws 1:1 physical pixels.
Trait Implementations§
Source§impl Clone for EditorScaling
impl Clone for EditorScaling
impl Copy for EditorScaling
Source§impl Debug for EditorScaling
impl Debug for EditorScaling
Source§impl Default for EditorScaling
impl Default for EditorScaling
impl Eq for EditorScaling
Source§impl PartialEq for EditorScaling
impl PartialEq for EditorScaling
impl StructuralPartialEq for EditorScaling
Auto Trait Implementations§
impl Freeze for EditorScaling
impl RefUnwindSafe for EditorScaling
impl Send for EditorScaling
impl Sync for EditorScaling
impl Unpin for EditorScaling
impl UnsafeUnpin for EditorScaling
impl UnwindSafe for EditorScaling
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