Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a macro to implement context methods (#972)
* Use a macro to implement context methods This attempts to solve the issue of duplicate code and out of date documentation for methods shared between multiple contexts. The approach taken here is to use a simple macro to implement those methods. A consequence of this work is that methods are now more consistently available across more contexts; as an example, `window_id` and `window` are now available from all contexts, whereas they were previously missing from `PaintCtx` for no particular reason. * Update druid/src/contexts.rs Co-authored-by: Leopold Luley <[email protected]> Co-authored-by: Leopold Luley <[email protected]>
- Loading branch information