You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows basic window implementation (mostly refactor available code)
X11 basic window implementation
Provide generic interface for both, probably with a pimpl pattern?
Provide rudimentary platform-agnostic basic text rendering for bootstrapping
Basic facilities for connection to graphics contexts
Generic event system, for keyboard and mouse events
Rendering to bitmap is useful, also for unit tests
What about window*impl?
This approach also limits following options
onMouse, onKeyboard, ... as virtual members that you inherit and customize
This means you cannot do a js style
Window w;
w.onclick = lambda;
onMouse, kbd, ... As vector of lambda
single eventproc with minimal translation of messages
This enables a camera object with sophisticated key and mouse events to be easily added
I shouldn't make this decision in a vacuum. I need a reasonably complex project in both x11 and windows and see what is actually needed and works best.
One related thing is: if I have multiple boxes (not necessarily windows), for example two textboxes, I probably do not want to create a class for handling each, and just provide a lambda for each of their event handlers.
The text was updated successfully, but these errors were encountered:
What about window*impl?
This approach also limits following options
This means you cannot do a js style
This enables a camera object with sophisticated key and mouse events to be easily added
I shouldn't make this decision in a vacuum. I need a reasonably complex project in both x11 and windows and see what is actually needed and works best.
One related thing is: if I have multiple boxes (not necessarily windows), for example two textboxes, I probably do not want to create a class for handling each, and just provide a lambda for each of their event handlers.
The text was updated successfully, but these errors were encountered: