Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Menu_Window.h

00001 /*
00002  * $Id: Fl_Menu_Window.h,v 1.12 2003/03/15 16:09:55 laza2000 Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef _FL_MENU_WINDOW_H_
00023 #define _FL_MENU_WINDOW_H_
00024 
00025 #include "Fl_Single_Window.h"
00026 
00028 class FL_API Fl_Menu_Window : public Fl_Single_Window {
00029     enum {NO_OVERLAY = 0x08000000};
00030 
00031 public:
00032     Fl_Menu_Window(int W, int H, const char *l = 0);
00033     Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0);
00034     ~Fl_Menu_Window();
00035 
00036     virtual void create();
00037     virtual void flush();
00038     virtual void destroy();
00039     virtual void layout();
00040 
00041     int overlay() {return !(flags()&NO_OVERLAY);}
00042     void set_overlay() {clear_flag(NO_OVERLAY);}
00043     void clear_overlay() {set_flag(NO_OVERLAY);}
00044 
00045     void fade(int x, int y, int w, int h, uchar opacity=255);
00046 
00047     void animate(int fx, int fy, int fw, int fh,
00048                  int tx, int ty, int tw, int th);
00049 
00050     // Set/Get animate speed, ONLY for this window
00051     float anim_speed() { return anim_speed_; }
00052     void anim_speed(float v) { anim_speed_ = v; }
00053 
00054 protected:
00055     float anim_speed_;
00056 
00057     bool animating; //set true, while animating
00058 };
00059 
00060 #endif

Generated on Thu Jul 31 15:33:44 2003 for eFLTK by doxygen1.2.15