Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

videowidget.h

00001 /*
00002   libwftk - Worldforge Toolkit - a widget library
00003   Copyright (C) 2003 Ron Steinke <rsteinke@w-link.net>
00004 
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Lesser General Public
00007   License as published by the Free Software Foundation; either
00008   version 2.1 of the License, or (at your option) any later version.
00009   
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Lesser General Public License for more details.
00014   
00015   You should have received a copy of the GNU Lesser General Public
00016   License along with this library; if not, write to the
00017   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018   Boston, MA  02111-1307, SA.
00019 */
00020 
00021 #ifndef _VIDEO_WIDGET_H
00022 #define _VIDEO_WIDGET_H
00023 
00024 #include <wftk/screenarea.h>
00025 #include <wftk/video.h>
00026 
00027 namespace wftk {
00028 
00030 class VideoWidget : public ScreenArea, public Video
00031 {
00032  public:
00034   explicit VideoWidget();
00035 
00037   virtual bool load(const std::string& filename, double scale = 1);
00038  
00039  protected: 
00040 
00041   // Make it opaque
00042   virtual void handleResize(Uint16 w, Uint16 h);
00044   virtual void setPackingInfo();
00045 
00046  private:
00047 
00049   virtual void updateExposeMask() {Video::setMask(ScreenArea::getExposed());}
00050 };
00051 
00052 } // namespace wftk
00053 
00054 #endif // _VIDEO_WIDGET_H

Generated Fri Mar 5 08:11:00 2004.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.