Merge pull request #92 from greatest-ape/derives
Derive Clone, Copy, PartialEq for EventStatus and WindowScalePolicy
This commit is contained in:
commit
68a5c4a19f
|
@ -92,7 +92,7 @@ pub enum Event {
|
|||
/// 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
|
||||
/// are supported.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub enum EventStatus {
|
||||
/// Event was handled by your window and will not be sent back to the
|
||||
/// platform for further processing.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use crate::Size;
|
||||
|
||||
/// The dpi scaling policy of the window
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub enum WindowScalePolicy {
|
||||
/// Use the system's dpi scale factor
|
||||
SystemScaleFactor,
|
||||
|
|
Loading…
Reference in a new issue