AltF02 / x11-rs

Rust bindings for X11 libraries
https://docs.rs/x11
MIT License
204 stars 66 forks source link

Add bindings for XICCEncodingStyle, copied from /usr/include/X11/Xutil.h #62

Closed mason-larobina closed 7 years ago

mason-larobina commented 7 years ago

Edit:

I tried defining a rust enum for this but there's already a XICCEncodingStyle: c_int decl for this in xlib.rs which I didn't notice before sending the PR.

I've changed this to just exporting the XICCEncodingStyle variants as constants.

Thanks!

mason-larobina commented 7 years ago

Don't merge just yet, I think I made a typo.

mason-larobina commented 7 years ago

Fixed.

I had typo'd the values as flags (XUTF8StringStyle = 1<<3) rather than ints (XUTF8StringStyle = 4).

mason-larobina commented 7 years ago

Heya!

Can you push a new crates.io version for this?

Thanks!

ghost commented 7 years ago

Done (2.14.0) :)