Update cocoa and core-graphics (#608)

* Update cocoa and core-graphics

* Release winit 0.17.0

* Updated date / README version
This commit is contained in:
Paul Rouget 2018-08-03 04:26:30 +08:00 committed by Francesca Frangipane
parent e8e9fa2418
commit a32f7f2ec5
6 changed files with 11 additions and 8 deletions

View file

@ -1,5 +1,8 @@
# Unreleased # Unreleased
# Version 0.17.0 (2018-08-02)
- Cocoa and core-graphics updates.
- Fixed thread-safety issues in several `Window` functions on Windows. - Fixed thread-safety issues in several `Window` functions on Windows.
- On MacOS, the key state for modifiers key events is now properly set. - On MacOS, the key state for modifiers key events is now properly set.
- On iOS, the view is now set correctly. This makes it possible to render things (instead of being stuck on a black screen), and touch events work again. - On iOS, the view is now set correctly. This makes it possible to render things (instead of being stuck on a black screen), and touch events work again.

View file

@ -1,6 +1,6 @@
[package] [package]
name = "winit" name = "winit"
version = "0.16.2" version = "0.17.0"
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"] authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform window creation library." description = "Cross-platform window creation library."
keywords = ["windowing"] keywords = ["windowing"]
@ -30,9 +30,9 @@ objc = "0.2.3"
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2.3" objc = "0.2.3"
cocoa = "0.15" cocoa = "0.17"
core-foundation = "0.6" core-foundation = "0.6"
core-graphics = "0.14" core-graphics = "0.16"
[target.'cfg(target_os = "windows")'.dependencies.winapi] [target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3.5" version = "0.3.5"

View file

@ -9,7 +9,7 @@
```toml ```toml
[dependencies] [dependencies]
winit = "0.16" winit = "0.17"
``` ```
## [Documentation](https://docs.rs/winit) ## [Documentation](https://docs.rs/winit)

View file

@ -2,7 +2,7 @@
#![allow(dead_code, non_snake_case, non_upper_case_globals)] #![allow(dead_code, non_snake_case, non_upper_case_globals)]
use cocoa::base::{class, id}; use cocoa::base::id;
use cocoa::foundation::{NSInteger, NSUInteger}; use cocoa::foundation::{NSInteger, NSUInteger};
use objc; use objc;

View file

@ -1,5 +1,5 @@
use cocoa::appkit::NSWindowStyleMask; use cocoa::appkit::NSWindowStyleMask;
use cocoa::base::{class, id, nil}; use cocoa::base::{id, nil};
use cocoa::foundation::{NSRect, NSUInteger}; use cocoa::foundation::{NSRect, NSUInteger};
use core_graphics::display::CGDisplay; use core_graphics::display::CGDisplay;

View file

@ -7,7 +7,7 @@ use std::collections::VecDeque;
use std::os::raw::*; use std::os::raw::*;
use std::sync::Weak; use std::sync::Weak;
use cocoa::base::{class, id, nil}; use cocoa::base::{id, nil};
use cocoa::appkit::{NSEvent, NSView, NSWindow}; use cocoa::appkit::{NSEvent, NSView, NSWindow};
use cocoa::foundation::{NSPoint, NSRect, NSSize, NSString, NSUInteger}; use cocoa::foundation::{NSPoint, NSRect, NSSize, NSString, NSUInteger};
use objc::declare::ClassDecl; use objc::declare::ClassDecl;