bors-servo 4c63ce7a71 Auto merge of #160 - oluseyi:bitflag-window-masks, r=jdm
Implement NSWindowStyleMask as bitflags

RE https://github.com/servo/cocoa-rs/issues/159

`NSWindowStyleMask`, as an enumeration in Objective-C, degrades to `NSUInteger` and is therefore bitwise-combinable, though it loses type information. Instead of implementing `NSWindowStyleMask` as a packed-data object with a `u64` representational form, we ought to employ bit flags to generate a strong type that remains combinable in the manner Cocoa programmers are accustomed to. Also easier than manually implementing `std::ops::BitOr` for the type.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/cocoa-rs/160)
<!-- Reviewable:end -->
2017-03-22 11:25:14 -07:00
2016-11-26 14:45:27 -05:00
2016-12-12 20:14:50 +11:00
2016-02-27 10:59:41 -05:00
2017-03-15 13:51:02 +01:00
2013-04-04 19:12:07 -07:00
2013-04-03 18:17:00 -07:00
2013-04-03 18:17:00 -07:00
2016-06-06 23:01:19 -07:00

Cocoa-rs

This crate provides Rust bindings to Cocoa for OSX. It's dual-licensed MIT / Apache 2.0. If you'd like to help improve cocoa-rs, check out the Servo contributing guide!

S
Description
No description provided
Readme 2.5 MiB
Languages
Rust 100%