Wez Furlong
9a2c7a1485
failure -> anyhow + thiserror
2019-12-14 21:43:05 -08:00
Wez Furlong
29a6c62b6c
window: wayland: fix routing of keyboard events
...
The seat is a global thing, so we need to track the active
surface and route events to the appropriate window.
2019-11-30 10:00:34 -08:00
Wez Furlong
2475969eca
window: enable egl support for wayland
2019-11-29 18:05:09 -08:00
Wez Furlong
c63766ffe2
window: wayland: input mostly working, and hidpi output
...
Some key mappings are not done yet (arrows!) and need to make
opengl work, but this can run a basic wezterm with the software
renderer under wayland.
2019-11-27 22:00:44 -08:00
Wez Furlong
10a0006eaf
window: fix build for examples post mouse coords changes
2019-11-23 16:46:46 -08:00
Wez Furlong
14fbf43485
promise: more properly implement Future::poll
...
The future won't ever complete if you don't connect the waker
from the context!
Prove this out by making the windowops functions async and
verifying them in the async example
2019-11-23 08:16:12 -08:00
Wez Furlong
152874dd23
window: fixup the async example for stable async
2019-11-23 08:16:12 -08:00
Wez Furlong
41e392fc79
we can now init opengl but not render it
2019-10-10 08:15:00 -07:00
Wez Furlong
89a0046f5a
window: A basic opengl capability
2019-10-07 07:17:57 -07:00
Wez Furlong
91e6bb4a5a
rustfmt
2019-09-29 12:29:34 -07:00
Wez Furlong
99579bfca2
make it possible to build async example on stable rust
...
This should make the CI a bit happier
2019-09-28 22:00:07 -07:00
Wez Furlong
950a7d2b22
cargo fix dyn
2019-09-28 20:29:48 -07:00
Wez Furlong
b0dd3a3803
fixup basic example for Point changes
2019-09-23 08:01:27 -07:00
Wez Furlong
6d902d8a39
introduce a Rect type
2019-09-21 00:19:31 -07:00
Wez Furlong
bdc634276d
plumbing for polling std::future::futures on macos
2019-09-15 19:09:08 -07:00
Wez Furlong
e98b29aec6
add apply function to safely access inner data
2019-09-15 19:09:08 -07:00
Wez Furlong
0b7556893d
bunch of plumbing to allow using new window layer as software rendered frontend
2019-09-15 19:09:08 -07:00
Wez Furlong
c54d3b55be
prove that spawning additional windows works
2019-09-15 19:09:08 -07:00
Wez Furlong
dff8e1e652
introduce WindowContext for manipulating the window in a callback
2019-09-15 19:09:08 -07:00
Wez Furlong
e6265c93a4
add arbitrary line drawing with anti-aliasing
2019-09-15 19:09:08 -07:00
Wez Furlong
e371e0385d
x11: mouse cursors
2019-09-15 19:09:08 -07:00
Wez Furlong
f8f470ab1d
add mouse event processing for windows
2019-09-15 19:09:08 -07:00
Wez Furlong
05a60e6e8b
plumb keyboard events for x11
2019-09-15 19:09:08 -07:00
Wez Furlong
b9b94aa516
add resize callback
2019-09-15 19:09:08 -07:00
Wez Furlong
56dc24a1ee
hook up paint method for x11
2019-09-15 19:09:08 -07:00
Wez Furlong
ee203b0b76
improve lifecycle management on macos
...
I'm not totally convinced that the refcounting is right
because I've not seen `dealloc` get triggered, but the
important thing is that closing the window does cause the
rust level objects to be dropped.
2019-09-15 19:09:08 -07:00
Wez Furlong
dc6ef6c55d
basic xcb windows too
2019-09-15 19:09:08 -07:00
Wez Furlong
ddd323464b
refactor traits to top level
2019-09-15 19:09:08 -07:00
Wez Furlong
3b572cb35e
add window callback trait
2019-09-15 19:09:08 -07:00
Wez Furlong
276041a1db
add very basic win32 window creation
2019-09-15 19:09:08 -07:00