Repository navigation
Guichan 0.8.0
This release broke compatibility, with many functions being renamed to more intuitive versions. It also added several new widgets as well as widget listener and selection listener interfaces. See below for the full list of changes.
Change log
Widget::showParthas been added to be used when a specific part of a widget should be visible. An example is when a text area wants a specific text part to be visible in a scroll area. This function usesBasicContainer::showWidgetPart.ListBox::setWrappingKeyboardSelectionandListBox::isWrappingKeyboardSelectionhave been renamed toListBox::setWrappingEnabledandListBox::isWrappingEnabled.Rectangle::intersecthas been renamed toRectangle::isIntersecting.Widget::hasModalFocusandWidget::hasModalMouseInputFocushave been renamed toWidget::isModalFocusedandWidget::isModalMouseInputFocused.Widget::generateActionhas been renamed toWidget::distributeActionEvent.- All the examples have been improved. Examples have been added for HGE, OpenGL with SDL and for OpenGL with Allegro.
Widget::drawBorder,Widget::getBorderSizeandWidget::setBorderSizehave been renamed toWidget::drawFrame,Widget::getFrameSizeandWidget::setFrameSize.- The alignment enum in Graphics, the orientation enum in Slider and the scroll policy enum in ScrollArea are no longer anonymous enums.
RadioButton::setMarkedandRadioButton::isMarkedhave been renamed toRadioButton::setSelectedandRadioButton::isSelected.CheckBox::setMarked,CheckBox::isMarkedandCheckBox::togglehave been renamed toCheckBox::setSelected,CheckBox::isSelectedandCheckBox::toggleSelected.- An image button widget, a button capable of displaying an image, has been added.
- A widget listener has been added used to listen for resized events, hidden events, shown events and moved events from a widget.
- Two new widgets have been added, a tabbed area widget and a tab widget to be used with the tabbed widget.
- A selection listener interface has been added used to listen for value change events from a list box and a drop down.
- A bug has been fixed where mouse entered and exited events weren't honored when a widget gained or released modal focus or modal mouse input focus.
- An id property has been added to Widget. The property can be used to uniquely identify widgets inside a container. BasicContainer and Container have been enhanced with the ability to find a widget given an id. An id can be useful when using GUIs created from an XML file or created with a Gui editor.
- An OpenGL image loader that uses Allegro to load images has been added along with an example of how to use Guichan with AllegroGL.
- A bug with setting the selection colour for
DropDownhas been fixed. Before the fix the selection coloured was ignored by the internalListBoxofDropDown. - Distribution of mouse entered and mouse exited events have been fixed. A mouse entered event is distributed to a widget when the mouse enters a widget and a mouse exited event is distributed to a widget as soon as the mouse leaves the widget.
- OpenGL true type font has been added as an add on. The font uses the OGLFT font library, http://oglft.sourceforge.net/.
- A bug has been fixed where a segfault could occur when a drop down widget was deleted.
- Button now has configurable spacing.