____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <widgets.h>

Public Member Functions | |
| ScrollingWidget (int width, int height) | |
| void | add (gcn::Widget *widget, int x, int y) |
| void | restart () |
| void | setSpeed (float speed) |
| float | getSpeed () |
Definition at line 211 of file widgets.h.
| ScrollingWidget::ScrollingWidget | ( | int | width, | |
| int | height | |||
| ) |
ScrollingWidget constructor.
| width | Width of the widget. | |
| height | Height of the widget. |
Definition at line 1023 of file widgets.cpp.
References gcn::ScrollArea::setContent(), gcn::Widget::setDimension(), and gcn::Container::setOpaque().
| void ScrollingWidget::add | ( | gcn::Widget * | widget, | |
| int | x, | |||
| int | y | |||
| ) |
Add a widget in the window.
| widget | Widget to add. | |
| x | Position of the widget in the window. | |
| y | Position of the widget in the window. |
Definition at line 1040 of file widgets.cpp.
References gcn::Container::add(), gcn::Widget::getHeight(), gcn::Widget::getWidth(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().
| void ScrollingWidget::restart | ( | ) |
Restart animation to the beginning.
Definition at line 1071 of file widgets.cpp.
References gcn::Widget::getHeight(), and gcn::Widget::setY().
1.5.6