Pedro Côrte-Real
60b575a7c1
Get rid of FullScreenState::get_monitor()
2017-08-29 02:53:13 +01:00
Pedro Côrte-Real
9693f7caa9
Convert new fullscreen API in all platforms
2017-08-29 02:16:16 +01:00
Pedro Côrte-Real
1382adbf11
Unify fullscreen and fullscreen_windowed APIs
...
Use the enum to make a single fullscreen API that's much more
consistent. Both set_fullscreen() and with_fullscreen() take the
same enum and support all the variations so you can build the window
however you want and switch between the modes at runtime.
2017-08-29 01:36:24 +01:00
Pedro Côrte-Real
1d97a2a506
Implement Windowed Fullscreen
...
There are two kinds of fullscreen. One where you take over the whole
output the other where you just set the window size to the screen
size and get rid of decorations. The first one already existed,
implement the second which is more common for normal desktop apps.
Use an enum to consolidate all the fullscreen states.
2017-08-28 02:23:55 +01:00
Pedro Côrte-Real
a4052b8693
Add window maximization API
...
Implement a simple API to set a window to maximized. Implement it
only for the X11 backend.
2017-08-28 01:28:42 +01:00
Lloyd Cunningham
24f5b0b591
Derive Clone for MonitorId
2017-08-05 18:15:50 -05:00
Alex Butler
3a89843767
Add WINIT_UNIX_BACKEND
documentation
2017-06-21 20:10:23 +01:00
mitchmindtree
f2dd2f0752
WIP - Make poll_events and run_forever take &mut self
...
This removes the need for the EventsLoop::interrupt method by inroducing
a ControlFlow type. This new type is to be returned by the user's
callback and indicates whether the `EventsLoop` should continue waiting
for events or break from the loop.
Only the wayland, x11 and api_transition backends have been updated so
far, and only the wayland backend has actually been tested.
2017-06-02 21:19:45 +10:00
vanderlokken
5645941a14
Fixed obsolete comments
2017-05-11 03:10:07 +03:00
mitchmindtree
be09639b69
Update the macOS backend to the new futures-compatible API.
...
This is a follow up to the new API introduced in #20 .
This also fixes the issue where window resize events would not be
emitted until the end of the resize. This PR fixese #39 by ensuring that
the user callback given to either `EventsLoop::poll_events` or
`EventsLoop::run_forever` can be called by each window delegate's resize
callback directly.
2017-02-03 23:05:57 +11:00
Pierre Krieger
b988c174fe
Add WindowId type
2017-02-03 09:13:11 +01:00
Pierre Krieger
9cd0430ec7
Remove stuff from Window's API
2017-02-03 06:48:58 +01:00
Pierre Krieger
bcb242983b
Add documentation for the new API
2017-01-28 15:33:54 +01:00
Pierre Krieger
e7d43174e7
Implement the transition API
2017-01-28 15:05:36 +01:00
Pierre Krieger
422b332c1b
Add a transition macro system
2017-01-28 15:00:17 +01:00
tomaka
f1d70d351e
Merge pull request #82 from tomaka/documentation
...
Some documentation improvements
2017-01-28 13:31:36 +01:00
k-brac
3e2154a922
child window created using a winapi::HWND instead of a WindowProxy
2016-11-29 13:02:42 +01:00
k-brac
2b25bf1480
child window creation improvement
2016-11-28 13:50:07 +01:00
k-brac
5a09e8ba21
first try to allow child window on windows
2016-11-25 17:05:39 +01:00
mitchmindtree
53065bda40
Move resize_callback field from WindowBuilder into WindowAttributes struct
2016-11-12 02:55:21 +11:00
mitchmindtree
eb18b3d8b6
Add a WindowBuilder::with_window_resize_callback
method.
...
This allows for passing the window_resize_callback fn during the window
building stage. More importantly, this allows setting the callback
without the need for mutable access to the Window, making it possible
to set the callback in the downstream glium crate.
This may solve tomaka/glium#1232 for most folk.
2016-11-11 22:08:46 +11:00
Pierre Krieger
2c58e85584
Some documentation improvements
2016-11-06 09:51:20 +01:00
Andrey Lesnikov
7f6ae8910e
Merge https://github.com/tomaka/glutin
...
Conflicts:
.travis.yml
Cargo.toml
examples/fullscreen.rs
src/api/android/mod.rs
src/api/cocoa/headless.rs
src/api/cocoa/helpers.rs
src/api/cocoa/mod.rs
src/api/glx/mod.rs
src/api/osmesa/mod.rs
src/api/win32/callback.rs
src/headless.rs
src/lib.rs
src/platform/linux/mod.rs
src/window.rs
2016-09-19 19:53:28 +03:00
mitchmindtree
561349669a
Addresses several warnings emitted on OS X by removing unused imports and allowing non_upper_case_globals in cocoa event conversion function.
2016-06-22 12:40:48 +10:00
Ivan Ukhov
54f442ea06
Generalize WindowBuilder::with_title
2016-05-08 09:28:42 +02:00
Corey Farwell
dc49156fe6
Allow OSX WindowBuilder to specify 'activation behavior'.
2016-04-29 10:43:30 -04:00
Pierre Krieger
10bb03c5f0
Remove most OpenGL stuff and make it compile on win32
2016-02-23 12:56:23 +01:00
Pierre Krieger
ec76d991ad
Unlocks platform-specific attributes
2016-02-10 17:39:35 +01:00
Pierre Krieger
0b6418fabb
Change PixelFormatRequirements
2015-12-19 11:32:51 +01:00
Aceeri
78eb4a5990
Minimum/maximum dimensions for windows in win32 api
2015-11-09 01:42:54 -08:00
Pierre Krieger
37262fb228
Remove public exports of gl_common and libc
2015-11-09 08:46:52 +01:00
Pierre Krieger
8c6a27d426
Add an os
module containing platform-specific traits
2015-10-03 09:53:37 +02:00
Pierre Krieger
86fa1b58e5
Rename MonitorID -> MonitorId
2015-09-24 09:11:59 +02:00
Pierre Krieger
aa9cb99929
Add #[inline] attributes
2015-09-23 13:11:47 +02:00
Pierre Krieger
e466cfb2d6
Make some fields in WindowBuilder and HeadlessRendererBuilder public
2015-09-21 15:42:24 +02:00
Pierre Krieger
62bafe2130
Remove BuilderAttribs
2015-09-21 14:03:05 +02:00
Pierre Krieger
58b3bfb4fb
Extract PixelFormatRequirements from BuilderAttribs
2015-09-21 12:03:56 +02:00
Pierre Krieger
48fe9b2644
Extract WindowAttributes from the BuilderAttribs
2015-09-21 12:03:55 +02:00
Pierre Krieger
c244f8c033
Extract GlAttributes from BuilderAttribs
2015-09-21 12:03:55 +02:00
Sven Nilsen
79b8cf2cc8
Keep existing function for backward compatibility
2015-07-25 13:57:52 +02:00
Sven Nilsen
05175c1d80
Split get_inner_size
...
Closes https://github.com/tomaka/glutin/issues/542
* Splits `get_inner_size` into `get_inner_size_points` and
`get_inner_size_pixels`
This is a breaking change.
2015-07-25 13:40:33 +02:00
Sven Nilsen
5f98e510e4
Fixed docs for get_inner_size
...
Closes https://github.com/tomaka/glutin/issues/388
2015-07-25 12:01:20 +02:00
tomaka
836e53e55a
Merge pull request #477 from rozaliev/feature/ios
...
[WIP] ios support
2015-06-29 09:29:46 +02:00
Pierre Krieger
dbaca24cde
Add with_robustness and handle robustness on all implementations
2015-06-22 19:42:03 +02:00
tomaka
7773996d7b
Merge pull request #488 from tomaka/rem-is-closed
...
Remove the is_closed function
2015-06-17 07:36:16 +02:00
Pierre Krieger
39128dd7e1
Remove the is_closed function
2015-06-16 14:03:58 +02:00
Pierre Krieger
f6c26ec593
Handle errors from MakeCurrent and SwapBuffers
2015-06-16 10:44:44 +02:00
Evgeny Rozaliev
84703027d6
[add] ios support
2015-06-05 16:38:35 +03:00
Pierre Krieger
81314f91d8
Add API for transparency and decorations and add support for win32
2015-05-24 09:10:44 +02:00
Dzmitry Malyshau
171986c7e8
Introduced GlProfile enum
2015-05-01 07:32:48 -04:00
Dzmitry Malyshau
a42f1f5833
Implemented gl_core flag
2015-04-30 22:50:15 -04:00
Pierre Krieger
aa58f4149a
Add a GlContext trait
2015-04-30 16:57:07 +02:00
tomaka
f81a430c6d
Merge pull request #383 from tomaka/remove-deprecated
...
Remove functions marked as #[deprecated]
2015-04-19 11:29:29 +02:00
Pierre Krieger
1ec168fed0
Remove functions marked as #[deprecated]
2015-04-19 09:52:03 +02:00
Pierre Krieger
1e94d85d35
Adds get_pixel_format() to Window
2015-04-11 09:06:08 +02:00
Pierre Krieger
65f4809280
Add support for sRGB attribute and fix creation on windows
2015-04-08 09:44:19 +02:00
Pierre Krieger
8cf875434c
Fix the default value for OpenGL flag again
2015-04-02 10:13:01 +02:00
tomaka
e51b694d59
Merge pull request #340 from tomaka/winimpl-platform
...
Rename "winimpl" module to "platform"
2015-04-02 09:52:21 +02:00
Pierre Krieger
eb430ff207
Fix default OpenGL debug flag being the opposite of what it should be
2015-04-02 09:06:33 +02:00
Pierre Krieger
414335e0fc
Rename "winimpl" to "platform"
2015-04-02 08:27:32 +02:00
Pierre Krieger
3d692870e2
Change grab_cursor and ungrab_cursor to set_cursor_state
2015-03-26 17:15:18 +01:00
tomaka
d6ebaaaf5c
Merge pull request #227 from aepsil0n/grab-cursor
...
Implement grabbing of the mouse pointer for X11
2015-03-26 16:48:40 +01:00
Corey Farwell
82367772bb
Fix typo in Window::get_position docs
2015-03-25 23:44:21 -04: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
Brendan Zabarauskas
8a463f6643
Merge pull request #316 from binsoftware/cocoa-fixes
...
Cocoa fixes: memory leaks, monitor handling, is_current()
2015-03-24 18:33:53 +11:00
York Xiang
0be7b072f0
Update for latest Rust
2015-03-19 18:06:50 +08:00
Ryan Stewart
1b2fd6e6d0
fix headless build by ensuring NativeMonitorId enum is available internally even without the window feature; add Eq/PartialEq to NativeMonitorId
2015-03-18 14:16:35 -07:00
Ryan Stewart
9914d826b8
expose platform-native monitor identifier
2015-03-16 14:11:49 -07:00
Pierre Krieger
daa086759c
Redirect size_hint method to the underlying iterators
2015-03-16 13:50:23 +01:00
Pierre Krieger
c61c33a833
Add set_cursor_position function
2015-03-10 10:29:07 +01:00
Pierre Krieger
689ace8b25
Add is_current function
2015-03-04 07:43:55 +01:00
Jan Niklas Hasse
4a56ac53de
Fix doc
2015-03-02 00:01:36 +01:00
mitchmindtree
9bb41bf277
Fixed errors on latest nightly, RingBuf -> VecDeque
2015-02-21 23:59:37 +11:00
Ryan Stewart
25ce029cf6
expose the platform-specific window handle (currently Win only)
2015-02-20 12:33:25 -08:00
Pierre Krieger
f4f84c6566
Improve the OpenGL context request system
2015-02-18 17:15:01 +01:00
Pierre Krieger
009be2ab2b
Cleanup crate root by moving headless and window to modules
2015-02-16 09:39:46 +01:00