Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Make a typedef for shell creation return types #272

Open
Timidger opened this issue Feb 17, 2019 · 0 comments
Open

Make a typedef for shell creation return types #272

Timidger opened this issue Feb 17, 2019 · 0 comments

Comments

@Timidger
Copy link
Member

Currently the shell return types are very long and awkward to type. It's clear what needs to be return, but it's very hard to read. E.g.:

pub fn new_surface(compositor_handle: compositor::Handle,
                   shell_handle: xdg_shell::Handle)
                   -> (Option<Box<xdg_shell::Handler>>, Option<Box<surface::Handler>>) {
    (None, None)
}

If we could condense that into something like this it would be much better (name undecided):

pub fn new_surface(compositor_handle: compositor::Handle,
                   shell_handle: xdg_shell::Handle)
                   -> XdgShellHandlers {
    (None, None)
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant