Skip to content

Commit 68a5c4a

Browse files
authored
Merge pull request #92 from greatest-ape/derives
Derive Clone, Copy, PartialEq for EventStatus and WindowScalePolicy
2 parents 72b6a4a + 5ad2d2b commit 68a5c4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub enum Event {
9292
/// when there is no clear meaning of passing back the event to the platform,
9393
/// or it isn't obviously useful. Currently, only [`Event::Keyboard`] variants
9494
/// are supported.
95-
#[derive(Debug)]
95+
#[derive(Debug, Clone, Copy, PartialEq)]
9696
pub enum EventStatus {
9797
/// Event was handled by your window and will not be sent back to the
9898
/// platform for further processing.

src/window_open_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::Size;
22

33
/// The dpi scaling policy of the window
4-
#[derive(Debug)]
4+
#[derive(Debug, Clone, Copy, PartialEq)]
55
pub enum WindowScalePolicy {
66
/// Use the system's dpi scale factor
77
SystemScaleFactor,

0 commit comments

Comments
 (0)