Implement lists sharing

This commit is contained in:
Pierre Krieger 2014-11-24 20:13:32 +01:00
parent 9668878f26
commit 4c0413bc7c
6 changed files with 55 additions and 21 deletions

View file

@ -71,6 +71,10 @@ impl Deref<Window> for HeadlessContext {
#[cfg(feature = "window")]
impl Window {
pub fn new(builder: WindowBuilder) -> Result<Window, CreationError> {
if builder.sharing.is_some() {
unimplemented!()
}
Window::new_impl(builder.dimensions, builder.title.as_slice(), builder.monitor, true)
}
}