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

       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"

Windows Class Reference

#include <widgets.h>

Inheritance diagram for Windows:

gcn::Window gcn::BasicContainer gcn::MouseListener gcn::Widget

List of all members.

Public Member Functions

 Windows (const std::string &text, int width, int height)
void add (gcn::Widget *widget, int x, int y)


Detailed Description

Definition at line 228 of file widgets.h.


Constructor & Destructor Documentation

Windows::Windows ( const std::string &  title,
int  width,
int  height 
)

Windows constructor.

Parameters:
title Title of the window.
width Width of the window.
height Height of the window.

Definition at line 1091 of file widgets.cpp.

References gcn::Window::resizeToContent(), gcn::ScrollArea::setContent(), gcn::Window::setContent(), and gcn::Widget::setDimension().


Member Function Documentation

void Windows::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 1108 of file widgets.cpp.

References gcn::Container::add(), gcn::Widget::getHeight(), gcn::Widget::getWidth(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().


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