Giter Club home page Giter Club logo

rust-xlib's Introduction

rust-xlib

Rust bindings for xlib.

Note: This project is currently unmaintained.

rust-xlib's People

Contributors

acmiyaguchi avatar armavica avatar aweinstock314 avatar brson avatar bryal avatar frewsxcv avatar glennw avatar jdm avatar kintaro avatar kmcallister avatar larsbergstrom avatar manishearth avatar metajack avatar mmatyas avatar ms2ger avatar pcwalton avatar randompoison avatar simonsapin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rust-xlib's Issues

Match on events & XSelectInput mask

Hello !

First of all, thank you for those bindings, great work !
This is more some questions than issues :

  • How do you check for the received event with that lib ??

I tried this :

loop {
         let ev: *mut xlib::XEvent;
         unsafe {
             xlib::XNextEvent(dpy, ev);
         }

         match ev {
             xlib::XExposeEvent => println!("Ok"),
             _ => println!("Nothing"),
         }
     };

But it does not compile ( unresolved enum variant, struct or const XExposeEvent ) I'm new to rust, and I'm doing this little project with xlib & rust to learn both ^^ So my question should be stupid...

  • Secondly, is there anything to applying masks (like ExposeMask) to XSelectInput ? Or not for the moment ?

Thank you
Regards,
Peekmo

error: failed to run custom build command for `x11 v2.14.0`

How do I add x11 to path?

error: failed to run custom build command for `x11 v2.14.0`
process didn't exit successfully: `/home/mikhail/Documents/InputBot/target/debug/build/x11-160e0d6f1c19ff1b/build-sc
ript-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(PkgConfig(Failure { command: "\"pkg-co
nfig\" \"--libs\" \"--cflags\" \"x11 >= 1.4.99.1\"", output: Output { status: ExitStatus(ExitStatus(256)), stdout: "
", stderr: "Package x11 was not found in the pkg-config search path.\nPerhaps you should add the directory containin
g `x11.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'x11\' found\n" } }), State { next_error: None
 })', /checkout/src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.