Generally consistency results in intuitive design.
Each WindowFrame has a CloseButton, therefore to close the window (not hide), a close() call would be the logical choice rather than destroy.
What do you think? Perhaps close() could just be an alias for destroy()?
[Suggestion] WindowFrame destroy() should be close()?
Moderators: CEGUI MVP, CEGUI Team
Re: [Suggestion] WindowFrame destroy() should be close()?
You can do whatever you want when the close button is clicked. Not everyone will want to just close the window. By default nothing happens and you have to subscribe to the event.
By WindowFrame you mean CEGUI::FrameWindow?
Using destroy() for widget destruction is consistent, using close() for just FrameWindow and destroy() for everything else would be inconsistent. I don't really see the point in this change.
By WindowFrame you mean CEGUI::FrameWindow?
Using destroy() for widget destruction is consistent, using close() for just FrameWindow and destroy() for everything else would be inconsistent. I don't really see the point in this change.
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 10 guests