____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

ScrollingWidget Class Reference

#include <widgets.h>

Inheritance diagram for ScrollingWidget:

gcn::ScrollArea gcn::BasicContainer gcn::MouseListener gcn::Widget

List of all members.

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 ()


Detailed Description

Definition at line 211 of file widgets.h.


Constructor & Destructor Documentation

ScrollingWidget::ScrollingWidget ( int  width,
int  height 
)

ScrollingWidget constructor.

Parameters:
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().


Member Function Documentation

void ScrollingWidget::add ( gcn::Widget widget,
int  x,
int  y 
)

Add a widget in the window.

Parameters:
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().

void ScrollingWidget::setSpeed ( float  speed  )  [inline]

Definition at line 217 of file widgets.h.

float ScrollingWidget::getSpeed (  )  [inline]

Definition at line 218 of file widgets.h.


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6