1
0
Fork 0

Merge pull request #92 from greatest-ape/derives

Derive Clone, Copy, PartialEq for EventStatus and WindowScalePolicy
This commit is contained in:
william light 2021-02-10 17:48:07 +01:00 committed by GitHub
commit 68a5c4a19f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ pub enum Event {
/// when there is no clear meaning of passing back the event to the platform, /// when there is no clear meaning of passing back the event to the platform,
/// or it isn't obviously useful. Currently, only [`Event::Keyboard`] variants /// or it isn't obviously useful. Currently, only [`Event::Keyboard`] variants
/// are supported. /// are supported.
#[derive(Debug)] #[derive(Debug, Clone, Copy, PartialEq)]
pub enum EventStatus { pub enum EventStatus {
/// Event was handled by your window and will not be sent back to the /// Event was handled by your window and will not be sent back to the
/// platform for further processing. /// platform for further processing.

View file

@ -1,7 +1,7 @@
use crate::Size; use crate::Size;
/// The dpi scaling policy of the window /// The dpi scaling policy of the window
#[derive(Debug)] #[derive(Debug, Clone, Copy, PartialEq)]
pub enum WindowScalePolicy { pub enum WindowScalePolicy {
/// Use the system's dpi scale factor /// Use the system's dpi scale factor
SystemScaleFactor, SystemScaleFactor,