-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: May ImwContainer be pointed by ImwWindow #41
Comments
In which situation would you like to access the ImwContainer ? |
Actually I am not interested in ImwContainer at all, what I want to know is which ImwPlatformWindow contain a certain ImwWindow. |
Why I care about the ImwPlatformWindow in ImwWindow? simpply put , the key and mouse states, which are bound to ImwPlatformWindow, not a specific ImwWindow. However in my framework, users can not see ImwPlatformWindow, they can only access a class called "Cavnas" which is derrived from ImwWindow. If one should for instance, figured out if the ctrl key is pressed, he can only access through the Cavnas's interface, in which, the key state can only be fetched from the ImwPlatformWindow that contain the canvas. |
During ImwWindow::OnGui you can call |
I think so, and I managed to store the ImwPlatformWindow pointer inside ImwWindow as well. It works, and so far so good:) |
By store a ImwContainer pointer inside ImwWindow, it is handy to know which ImwContainer contains the window, and through this pointer one can further fetch the PlatformWindow in which some PlatformWindow--specific states can be known.(for example, key and mouse state).
The text was updated successfully, but these errors were encountered: