cobin/
foundation.rs

1mod ns_string;
2mod ns_date;
3mod ns_array;
4mod ns_mutable_array;
5mod ns_error;
6mod ns_run_loop_mode;
7mod ns_bundle;
8
9use crate::core_graphics::{
10  CGRect,
11  CGPoint
12};
13
14#[link(name = "Foundation", kind = "framework")]
15extern {
16  pub static NSDefaultRunLoopMode: *mut NSRunLoopMode;
17}
18
19pub type NSRect = CGRect;
20pub type NSPoint = CGPoint;
21
22#[repr(usize)]
23#[derive(Clone, Copy)]
24pub enum NSStringEncoding {
25  // ASCII = 1,
26  // NEXTSTEP = 2,
27  // JapaneseEUC = 3,
28  UTF8 = 4
29}
30
31pub use ns_string::NSString;
32pub use ns_date::NSDate;
33pub use ns_error::NSError;
34pub use ns_run_loop_mode::NSRunLoopMode;
35pub use ns_bundle::NSBundle;
36pub use ns_array::{NSArray, NSArrayBase};
37pub use ns_mutable_array::NSMutableArray;