Pierre Krieger
5a31b2e438
Implement set_cursor_position() on X11
2015-04-07 21:54:53 +02:00
Eduard Bopp
18f9bc44c9
Implement grabbing of the mouse pointer for X11
...
Contains new methods in the Window API that closely mirror the Xlib API. The
methods are left unimplemented for other platforms for now.
2015-03-25 13:10:55 +01:00
Akos Kiss
e4469cfce7
Reorder the fields of XErrorEvent
to match the struct layout found in recent Xlib.h
...
Fixes #244
2015-02-01 22:08:34 +00:00
Glenn Watson
19475f8521
Some GPU/driver combinations have glxCreateContextAttribsARB present, but it fails with an X error. In this case, catch the X error and fall back to the old method of creating a context.
2015-01-22 12:07:31 +10:00
Bryan Bell
b532b8c65f
Add mouse cursor support
...
Add a new api, window.set_cursor, for setting the cursor. The enum MouseCursor lists the possible cursors.
Only X11 is implemented. On OSX, Android, & Win32 the window.set_cursor function
either does nothing or calls the "unimplemented!" macro.
2015-01-12 16:22:37 -08:00
Pierre Krieger
4c5e430dd3
Update for Rustc
2015-01-03 23:15:39 +01:00
Pierre Krieger
7f6f4f8d04
Update for gl_generator's changes
2014-12-24 08:12:10 +01:00
Glenn Watson
9dc5689eef
Introduce a WindowProxy for accessing a subset of functionality
...
from other threads. This currently provides a way for other threads
to wakeup a blocked event loop on X11. Other platforms have stub
functions that need to be implemented. This is similar to
the functionality of glfwPostEmptyEvent.
2014-12-17 14:50:05 +10:00
Glenn Watson
583506dca0
Fix some rustc warnings
2014-11-24 07:36:13 +10:00
Glenn Watson
c9e1912eb7
Add support for with_visibility(), show(), hide() on X11.
2014-11-18 10:27:45 +10:00
Glenn Watson
ad54e01a91
Fix resize event on X11. Without this change, resizing window larger than initial size doesn't work.
2014-10-28 13:34:47 +10:00
Glenn Watson
97c471dc05
Add an interface for providing system wide initialization options to the windowing system.
...
This allows setting up Linux based systems which use multithreaded OpenGL contexts.
2014-10-24 19:58:19 +10:00
Tomaka17
2ff393fe62
Update for rustc and gl-rs
2014-10-22 11:23:21 +02:00
Tomaka17
0d0c14e6ec
Update for gl-rs
2014-10-21 08:11:08 +02:00
Pierre Krieger
bb22087d1c
Use gl-rs's GLX bindings for x11
2014-10-13 11:36:01 +02:00
Tomaka17
c316c86e7c
Update for rustc f9fc49c06 2014-10-10 00:07:08 +0000
2014-10-10 17:52:47 +02:00
Tomaka17
e565bfeb13
Implement headless rendering
2014-10-09 15:55:42 +02:00
Pierre Krieger
fe245e2929
Fix warnings
2014-10-05 15:54:37 +02:00
Tomaka17
ea957ce1d7
Fix compilation warnings
2014-09-23 08:01:18 +02:00
DavidPartouche
ac74db979c
Get the monitors attached to the display, and their resolution for X11
2014-09-19 20:28:14 +02:00
DavidPartouche
bd3b06e1a5
Changed is_fullscreen to monitor.is_some()
2014-09-19 20:28:11 +02:00
David Partouche
b149fca83d
Added fullscreen support for X11
2014-09-19 20:26:41 +02:00
Evan Tatarka
bcd3da1fcd
make x11 keyboard repeat detectable
2014-09-15 19:11:23 -04:00
Pierre Krieger
5d997b618f
Cleaner GL creation on X11
2014-08-07 17:53:41 +02:00
Pierre Krieger
c7aa219ef1
Now using glXChooseFBConfig
2014-08-07 17:35:26 +02:00
Pierre Krieger
eee9e298ba
Implement set_window_position for x11
2014-08-02 12:47:32 +02:00
Pierre Krieger
26fec195d5
Implement ReceivedCharacter for X11
2014-07-31 18:44:44 +02:00
Pierre Krieger
59b4d23d58
Add mouse buttons press/release events for X11
2014-07-31 17:33:46 +02:00
Pierre Krieger
0d45c7fcb4
Fix warning in X11 ffi
2014-07-31 17:25:56 +02:00
Pierre Krieger
0c76ff8771
Add get_position and get_inner_size for X11
2014-07-31 17:01:58 +02:00
Pierre Krieger
67349d717a
Better events handling on X11
2014-07-28 15:06:38 +02:00
Pierre Krieger
c1da2b1273
Work on input support for X11
2014-07-28 14:41:12 +02:00
Pierre Krieger
433c5b956e
Implement CursorPositionChanged event for X11
2014-07-28 13:25:28 +02:00
Pierre Krieger
5764b9c243
Implement resize events on X11
2014-07-28 13:16:55 +02:00
Pierre Krieger
356394cc75
Better cleanup in X11 destruction
2014-07-27 15:49:43 +02:00
Pierre Krieger
bd0ae7476c
Work on X11 events
2014-07-27 15:21:42 +02:00
Pierre Krieger
4028b925d3
X11 implementation
2014-07-27 15:10:58 +02:00