Skip to content

Guichan 0.8.0

Choose a tag to compare

@bjorn bjorn released this 30 Jan 08:36
· 188 commits to master since this release

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::showPart has 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 uses BasicContainer::showWidgetPart.
  • ListBox::setWrappingKeyboardSelection and ListBox::isWrappingKeyboardSelection have been renamed to ListBox::setWrappingEnabled and ListBox::isWrappingEnabled.
  • Rectangle::intersect has been renamed to Rectangle::isIntersecting.
  • Widget::hasModalFocus and Widget::hasModalMouseInputFocus have been renamed to Widget::isModalFocused and Widget::isModalMouseInputFocused.
  • Widget::generateAction has been renamed to Widget::distributeActionEvent.
  • All the examples have been improved. Examples have been added for HGE, OpenGL with SDL and for OpenGL with Allegro.
  • Widget::drawBorder, Widget::getBorderSize and Widget::setBorderSize have been renamed to Widget::drawFrame, Widget::getFrameSize and Widget::setFrameSize.
  • The alignment enum in Graphics, the orientation enum in Slider and the scroll policy enum in ScrollArea are no longer anonymous enums.
  • RadioButton::setMarked and RadioButton::isMarked have been renamed to RadioButton::setSelected and RadioButton::isSelected.
  • CheckBox::setMarked, CheckBox::isMarked and CheckBox::toggle have been renamed to CheckBox::setSelected, CheckBox::isSelected and CheckBox::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 DropDown has been fixed. Before the fix the selection coloured was ignored by the internal ListBox of DropDown.
  • 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.