Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Masks for XParseGeometry result missing #58

Closed
Ryan1729 opened this issue Mar 7, 2017 · 1 comment
Closed

Masks for XParseGeometry result missing #58

Ryan1729 opened this issue Mar 7, 2017 · 1 comment

Comments

@Ryan1729
Copy link

Ryan1729 commented Mar 7, 2017

I'm porting some C code to Rust and I just had to dig these values out of X11/Xutil.h in order to move the part that interpreted the result of XParseGeometry into Rust.

/*
 * Bitmask returned by XParseGeometry().  Each bit tells if the corresponding
 * value (x, y, width, height) was found in the parsed string.
 */
#define NoValue		0x0000
#define XValue  	0x0001
#define YValue		0x0002
#define WidthValue  	0x0004
#define HeightValue  	0x0008
#define AllValues 	0x000F
#define XNegative 	0x0010
#define YNegative 	0x0020 

It would be nice if these values were available through this crate.

@ghost
Copy link

ghost commented Mar 8, 2017

a0e55af

@ghost ghost closed this as completed Mar 8, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant