Commit graph

105 commits

Author SHA1 Message Date
Nikolai Vazquez 38bc6babb7 Change Travis badge to SVG (#573)
PNG on GitHub does not render well on HiDPI screens.
2018-06-17 15:08:01 -04:00
Francesca Frangipane 282770f11a
Release winit 0.15.0 (#530) 2018-05-22 14:17:41 -04:00
Francesca Frangipane e48f1fc5f1
Release winit 0.14.0 (#503) 2018-05-09 10:58:06 -04:00
Joe Moon 4641433c6a bump minor version (#468)
* bump minor version

* update changelog date and fix typo

* Updated date (we're going to release for real this time)

* Update version in README for the first time in a long time
2018-04-25 11:43:32 -04:00
Francesca Frangipane eadd9a19b2
Replace Closed event with CloseRequested and Destroyed (#476)
* Replace Closed event with CloseRequested and Destroyed

Implements #434

The existing Closed event had ambiguous meaning, both in name and in
cross-platform behavior. Closed is now split into two more precise events:

* CloseRequested - the window has been requested to close, most commonly by
having clicked the window's close button. Whether or not you respond by
closing the window is up to you.

* Destroyed - the window has been destroyed, and can no longer be safely
used.

Most notably, now you can reliably implement classic patterns like
prompting the user to save their work before closing, and have the
opportunity to perform any necessary cleanup.

Migrating to the new API is straightforward. In most cases, you can simply
replace all existing usages of Closed with CloseRequested. For more
information, see the example programs, particularly handling_close and
multiwindow.

iOS applications must replace all usages of Closed with Destroyed, and
require no other changes.
2018-04-24 16:20:40 -04:00
icefoxen 5dcde83b4c Fix readme for webassembly usage. (#425)
Needs to do `getElementById()`, not just have the ID name.
Not sure if this is a winit change or what.
2018-03-22 17:56:21 +01:00
W. Brian Gourlie b36a8e010f Fix typo in README (#367) 2017-12-17 20:13:16 +01:00
tomaka 769d4fe897 Emscripten rework (#286)
* partial implementation for emscripten

this pull request contain a partial but working implementation of emscripten backend

some implementations may be controversial.

here some implementation detail:

* cursor state:
  * on grab: emscripten request pointer lock deferred and also set a callback when pointer lock change
             the callback request pointer lock deferred.
  * on hide: `emscripten_hide_mouse` exist but not `emscripten_show_mouse`
             a pull request has been open on october 2016 but never been merged
             so I copied the javascript function and put it in emscripten_asm_const function

* fullscreen: if fullscreen is requested then it request fullscreen deferred and set a callback on fullscreen change
              the callback request fullscreen deferred

* run forever: this method use emscripten main loop to run an infinite loop

* keyboard callback doesn't consume the event. I think it is more apopriate as in desktop environment it is the same, is it ?

* emscripten dir is added in example and contains html pages

Some things that are not implemented:

* lots of events

* min and max dimension can be implemented with a callback that listen to size change and resize if dimension out of bound

* title may be implemented using javascript to change document.title

* Use std::os::raw in the emscripten bindings

* Fix emscripten code

* Update code

* Add CI

* Remove the emscripten-specific examples

* Add some information to the README
2017-09-14 16:31:34 +02:00
mitchmindtree 9d2a32b415 Update the README for the version 2017-06-24 17:08:05 +10:00
mitchmindtree fe61d81d41 Change Complete to Break in the README 2017-06-20 21:35:02 +10:00
mitchmindtree 24d6f8da49 Update README to addition of ControlFlow 2017-06-10 13:43:15 +10:00
tomaka 96a90d0ec6 Merge pull request #184 from LPGhatguy/patch-1
Update 'winit' dependency in README
2017-05-22 09:02:07 +02:00
Lucien Greathouse b8c6afb96a Update README example to use EventsLoop 2017-05-21 22:03:22 -07:00
Lucien Greathouse 622b3b248e Update 'winit' dependency in README
It now matches the current release line, 0.6.x
2017-05-21 21:41:06 -07:00
Pierre Krieger a557d6417c Forgot OpenGL 2016-10-31 17:33:36 +01:00
Pierre Krieger 2896ed889b Update the README 2016-10-31 17:19:37 +01:00
Andrey Lesnikov 74d5ae3e86 README.rst: docs.io -> docs.rs 2016-09-06 09:39:31 +03:00
Andrey Lesnikov 6089fa8c2c docs.rs 2016-09-05 22:10:15 +03:00
jshrake bccbbaa57c Fix the usage example in the README
Closes #712
2016-01-23 11:37:32 -08:00
Pierre Krieger 39128dd7e1 Remove the is_closed function 2015-06-16 14:03:58 +02:00
Corey Farwell 3222ec2b34 Alphabetize crate declarations 2015-06-09 06:14:47 -07:00
tomaka b1a5f06169 Remove the necessity to call glFlush 2015-05-04 22:31:36 +02:00
tomaka e577995fc8 Update the README 2015-05-04 15:18:03 +02:00
Bryan Bell 1ed1cc6e3c README del note that set_cursor isnt implemented 2015-04-02 22:37:41 -07:00
Pierre Krieger d091323b22 Minor changes in documentation 2015-03-01 14:07:50 +01:00
tomaka 68f2fa9880 Fix the README, again 2015-02-22 14:01:44 +01:00
tomaka 0e6f37903c Fix the README example 2015-02-22 11:31:27 +01:00
Mátyás Mustoha 0a31f57202 Fixed missing newline in README. 2015-02-18 16:52:22 +01:00
tomaka cd155ce8ea Update README.md 2015-02-15 18:28:12 +01:00
tomaka 05a03fb6a1 Merge pull request #192 from bjwbell/mouse-cursors
Add mouse cursor support
2015-01-13 10:43:46 +01:00
Pierre Krieger 746af5a835 Add appveyor build status in README 2015-01-13 09:44:14 +01: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 452514a863 Add links to documentation 2014-12-17 10:57:13 +01:00
tomaka 45f9ff09e6 Remove obsolete README message about win32 2014-12-04 11:29:11 +01:00
Tomaka17 293dcdc9a4 Remove obsolete notice in README 2014-11-11 08:44:17 +01:00
tomaka a908a14adc Merge pull request #90 from tomaka/remove-glflush
Remove call to glFlush() before swap_buffers on win32
2014-10-31 17:46:16 +01:00
tomaka 367d488ccd Update README.md 2014-10-29 20:38:54 +01:00
Tomaka17 bbcb4c8bea Remove call to glFlush() before swap_buffers
We may not want to call `swap_buffers` in the same thread as the
current thread, so we're moving the call to `glFlush` out of the scope
of glutin.
2014-10-29 19:01:58 +01:00
tomaka 089f47821c Update README.md 2014-10-28 08:20:59 +01:00
tomaka 4dcdf3ec50 Update README.md 2014-10-13 11:02:03 +02:00
The Gitter Badger 3a408d8ebb Added Gitter badge 2014-10-04 16:18:09 +00:00
tomaka 3d052adbe9 Update README.md 2014-10-03 13:12:42 +02:00
tomaka 56ca9b8d14 Rename gl-init-rs to glutin in the README 2014-10-03 09:16:36 +02:00
Tomaka17 02ba9d33d7 Rename crate to glutin 2014-09-21 11:34:41 +02:00
tomaka d8171a0c73 Update README.md 2014-09-19 19:51:54 +02:00
Tomaka17 661c936253 Add platform-specific notes in README 2014-09-15 13:46:37 +02:00
tomaka c0c43f4138 Update README.md 2014-09-07 20:28:43 +02:00
Tomaka17 87d62e5b6f get_proc_address now returns a libc::c_void 2014-08-11 10:32:33 +02:00
tomaka 3ea19e0fa2 Update README.md 2014-08-03 11:43:57 +02:00
tomaka ed3ed47ad8 Update README.md 2014-08-02 13:35:42 +02:00
Tomaka17 270e290af9 make_current() is now unsafe 2014-07-30 18:12:39 +02:00
tomaka 07a53af952 Add "try it!" to README 2014-07-28 11:45:59 +02:00
Tomaka17 d824fb94db Draft for monitor API 2014-07-27 20:41:25 +02:00
Pierre Krieger 7bb4e4f9ae Add example to README 2014-07-27 15:59:58 +02:00
Tomaka17 1cc0447c5e Initial commit 2014-07-27 11:41:26 +02:00