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

Alternative to WinHandler::connect() #78

Open
lord opened this issue Mar 18, 2023 · 0 comments · May be fixed by #176
Open

Alternative to WinHandler::connect() #78

lord opened this issue Mar 18, 2023 · 0 comments · May be fixed by #176

Comments

@lord
Copy link
Collaborator

lord commented Mar 18, 2023

Writing down this idea just so I don't forget: one thing I've noticed is most implementations of WinHandler end up containing a ton of Options, which only get filled in after connect() is called. If we changed set_handler to take a FnOnce(&WindowHandle) -> WinHandler as an argument instead of an explicit WinHandler, perhaps we could handle some complexity for the user? (Although the user must be careful to not call any methods of the WindowHandle during initialization that would require the WinHandler to exist.)

@lord lord added the discussion label Apr 2, 2023
@DJMcNab DJMcNab linked a pull request Dec 28, 2023 that will close this issue
13 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant