Steven Sheldon
0dbaa0502c
Removed incorrect casts.
2015-03-21 21:20:01 -07:00
Steven Sheldon
2ba1ebbb36
Use objc crate for runtime functions.
2015-03-21 21:20:01 -07:00
Coeuvre Wong
621242eb22
Added more methods
2015-03-19 09:21:51 +08:00
Jack Moffitt
e3f85ff51c
Use objc_msgSend_fpret consistently.
2015-03-06 16:12:58 -07:00
Hyeon Kim
c0e12fdccf
Fix compile warning
...
1. You don't need `#![feature(hash)]` anymore.
2. `CString::from_slice` is deprecated now.
2015-02-27 10:03:15 +09:00
Hyeon Kim
2e4e155aed
Fix compile error
...
'NSEventMask', 'NSEventModifierFlags' are not module, so commands like
below is not valid anymore.
pub use self::NSEventMask::*;
pub use self::NSEventModifierFlags::*;
2015-02-27 09:39:45 +09:00
Patrick Walton
b8a33f19a1
Use objc_msgSend_fpret for backingStoreFactor.
...
This mistake led to a bizarre chain reaction in Servo that ultimately
led to a hang only when optimization was enabled.
2015-02-20 22:17:53 -08:00
Glenn Watson
d7e68cf6bb
Fix an osx internal assertion in NSWindow - ensure the C string is null terminated.
2015-02-18 14:39:15 +10:00
Ivan Ukhov
549f168f26
Fix letter case in NSEventMask
2015-02-10 21:27:30 +01:00
Brendan Zabarauskas
3c737a9f16
Fix NSOpenGLContext init methods
...
These are instance methods, not class methods
2015-02-10 20:05:18 +11:00
Brendan Zabarauskas
587657ec8e
Fix silly copy-paste mistake
...
Fixes #67 .
2015-02-10 08:48:32 +11:00
Brendan Zabarauskas
c4b1941432
Add NSOpenGLContext methods
2015-02-09 19:38:56 +11:00
Brendan Zabarauskas
c77d7b5edb
Merge pull request #64 from SkylerLipthay/runtime-base-improvements
...
Completed Objective-C runtime FFI
2015-02-09 17:28:48 +11:00
Skyler Lipthay
d23a4a177f
Use libc::ptrdiff_t instead of defining ptrdiff_t manually
2015-02-08 17:16:40 -08:00
Skyler Lipthay
7a2e87a0df
Flushed out the entirety of the Objective-C runtime. Added some extra documentation.
2015-02-08 01:29:11 -08:00
Skyler Lipthay
f7c8ef9d62
Silence warnings by adding std_misc and hash features and removing the unstable warning allowance.
2015-02-08 01:18:26 -08:00
Brendan Zabarauskas
5c2a2b2a9e
Use consistent naming style
2015-02-04 07:58:54 +11:00
Brendan Zabarauskas
9b542ec8c3
Use correct selector name
2015-02-04 07:58:36 +11:00
Brendan Zabarauskas
cab89193ad
Use correct msg_send function
2015-02-04 07:58:02 +11:00
Brendan Zabarauskas
9b44050455
Use standard indentation
2015-01-29 21:25:40 +11:00
Brendan Zabarauskas
e11ad6e525
Add NSScreen methods
2015-01-26 20:40:18 +11:00
Brendan Zabarauskas
78509d02d8
Add missing NSEvent methods
2015-01-26 20:35:35 +11:00
Brendan Zabarauskas
6f62456824
More NSWindow methods added
2015-01-26 13:12:57 +11:00
Brendan Zabarauskas
807beb8dcf
Add lots of missing window methods
2015-01-25 00:35:27 +11:00
Brendan Zabarauskas
90d66dc8a0
Use faithful BOOL type in bindings
2015-01-23 22:43:49 +11:00
Brendan Zabarauskas
67dc6b7c8b
Add Nil
2015-01-23 22:42:51 +11:00
Ivan Ukhov
3372dec93a
Update to Rust Nightly
2015-01-20 15:50:49 +01:00
Ivan Ukhov
84a405ba9f
Update to Rust 1.0 Alpha
2015-01-20 15:50:35 +01:00
Sam Ward
d44a1b8520
Replace target_word_size with target_pointer_width
2015-01-12 14:04:40 -08:00
Sam Ward
816fa02a28
Change NSEventMask enum to 32 bit representation
2015-01-10 12:00:31 -08:00
Sam Ward
604141a324
Update for 1.0.0-alpha compatibility
2015-01-09 21:59:17 -08:00
Jack Moffitt
bf53a53ce3
Merge pull request #51 from poiru/fix-rustc-fc2ba1393
...
Fix build failure with latest Rust nightly
2015-01-05 09:42:58 -07:00
Birunthan Mohanathas
4996cf5ab2
Fix dangling pointer with to_c_str().as_mut_ptr()
2015-01-04 17:59:59 +02:00
Birunthan Mohanathas
9f9705df62
Fix build failure with latest Rust nightly
2015-01-04 17:56:32 +02:00
Patrick Horlebein
f04542effc
Added NSOpenGLPFAOpenGLProfile values
2014-12-29 12:36:46 +01:00
Glenn Watson
45cef1badf
Revert "Fix more obj-c method calls."
...
This reverts commit fc1f0360f9 .
2014-12-24 07:51:57 +10:00
Glenn Watson
fc1f0360f9
Fix more obj-c method calls.
2014-12-24 05:27:41 +10:00
Glenn Watson
5303c54297
Use correct msg send function to fix segfault.
2014-12-23 14:02:22 +10:00
Glenn Watson
d55dd11e77
Add method to get scroll delta from NSEvent.
2014-12-18 15:04:06 +10:00
David Partouche
b43d03fb9a
Fixed merge issue
2014-11-26 14:50:52 +01:00
David Partouche
43783e50fc
Added the option to set context parameter values to an NSOpenGLContext
2014-11-26 14:31:58 +01:00
Brendan Zabarauskas
084f8e1baf
Merge pull request #44 from pcwalton/off-thread-events
...
appkit: Add some methods useful for waking up event loops from other threads
2014-11-21 22:52:23 +11:00
Patrick Walton
e29a43a6c5
appkit: Add some methods useful for waking up event loops from other
...
threads
2014-11-21 00:03:50 -08:00
Brendan Zabarauskas
7ebdf43e43
Update for enum namespacing
2014-11-20 00:23:08 +11:00
Glenn Watson
75c3dd5049
Add accessors for bounds and frame to NSView.
2014-11-19 15:40:03 +10:00
David Partouche
0a951a6cdd
Forgot to switch to the new msg_send system
2014-11-11 23:54:39 +01:00
David Partouche
54ea87fdc8
Added a window level static
2014-11-11 23:39:02 +01:00
David Partouche
5de9d1742d
Added NSScreen class
2014-11-11 23:39:02 +01:00
Brendan Zabarauskas
274a5f9e87
Remove method traits
2014-11-11 12:18:02 +11:00
David Partouche
ad2f33054e
Removed NSEventSubtype, as it's only available from 10.10
2014-11-10 18:52:21 +01:00