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

fxImageFrame.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * Copyright (C) 2001,2002 by Harry J. Daniel III. All Rights Reserved.         *
00003 ********************************************************************************
00004 * This library is free software; you can redistribute it and/or                *
00005 * modify it under the terms of the GNU Lesser General Public                   *
00006 * License as published by the Free Software Foundation; either                 *
00007 * version 2.1 of the License, or (at your option) any later version.           *
00008 *                                                                              *
00009 * This library is distributed in the hope that it will be useful,              *
00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of               *
00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU            *
00012 * Lesser General Public License for more details.                              *
00013 *                                                                              *
00014 * You should have received a copy of the GNU Lesser General Public             *
00015 * License along with this library; if not, write to the Free Software          *
00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.   *
00017 *******************************************************************************/
00018 
00022 #ifndef FXIMAGEFRAME_H
00023 #define FXIMAGEFRAME_H
00024 
00025 #ifndef FXFRAME_H
00026 #include "FXFrame.h"
00027 #endif
00028 
00029 class FXImageFrame : public FXFrame {
00030   FXDECLARE(FXImageFrame)
00031 protected:
00032         FXImageFrame(){ image=(FXImage*)-1;     }
00033 
00034 private:
00035         FXImageFrame(const FXImageFrame&);
00036         FXImageFrame &operator=(const FXImageFrame&);
00037 
00038 public:
00039         long onPaint(FXObject*,FXSelector,void* ptr);
00040 
00041 public:
00042 FXImage* image;
00043   // Construct image frame
00044   FXImageFrame(FXComposite* p,
00045                            FXImage *img,
00046                            FXuint opts=FRAME_NONE,
00047                            FXint x=0,FXint y=0,
00048                            FXint w=0,FXint h=0
00049                            );
00050 
00051         // Create window
00052         virtual void create();
00053 
00054         // Get default width
00055         virtual FXint getDefaultWidth();
00056 
00057         // Get default height
00058         virtual FXint getDefaultHeight();
00059 
00060         // Put new image in frame, important to create() the image first though
00061         void setImage(FXImage* img);
00062 
00063         // Destructor
00064         virtual ~FXImageFrame();
00065 
00066   };
00067 
00068 FXDEFMAP(FXImageFrame) FXImageFrameMap[]=
00069 {
00070   FXMAPFUNC(SEL_PAINT,0,FXImageFrame::onPaint),
00071 };
00072 
00073 #endif // FXIMAGEFRAME_H

Generated on Fri Mar 8 09:33:38 2002 by doxygen1.2.13 written by Dimitri van Heesch, © 1997-2001