Migration from 0.5.0 to 0.6.0
From Guichan
This document will roughly go through the changes need to be made for application using Guichan 0.5.0 to be able to use Guichan 0.6.0. As this document is written prior to the release of Guichan 0.6.0 it might contain errors. If it does, please contact one of the devs through the devs mailing lists.
Contents |
Events
As of Guichan 0.6.0 an event system is used. With the event system listener functions have changed and some functions have been introduced. For more information about the event system please read the events document.
Distribution of input
As of Guichan 0.6.0 the way Guichan distributes input has changed significantly. For more information about the distribution of input please read the events document.
Renamed functions
As of Guichan 0.6.0 a couple of functions have been renamed.
- Widget::setEventId - is now called Widget::setActionEventId
- Widget::lostFocus - is now called Wigdet::focusLost
- Widget::gotFocus - is now called Widget::focusGained
Removed functions
As of Guichan 0.6.0 a couple of functions have been removed.
- Widget::hasMouse - The mouse listener events mouse entered and mouse exited should be used instead to store a boolean variable about the mouse state
- Widget::isDragged - The mouse listener events mouse dragged should be used instead to get information about mouse drags.
- Widget::_announceDeath - Death listener and the death event should be used instead, for more information about the death event please read the events document
- All functions regarding input have been removed from Widget, input distribution is now handled by the Gui class
Widgets are containers
As of Guichan 0.6.0 all widgets are considered to be containers, however they don't have a proper implementation to act as containers, BasicContainer is still used to add basic container behaviour.
A portable C++ GUI library designed for games using Allegro, HGE, OpenGL, OpenLayer and/or SDL.
