FXMenuSeparator.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *                    M e n u   S e p a r a t o r   W i d g e t                  *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (at your option) any later version.            *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXMenuSeparator.h,v 1.17 2006/01/22 17:58:06 fox Exp $                   *
00023 ********************************************************************************/
00024 #ifndef FX_DISABLEMENUS
00025 
00026 #ifndef FXMENUSEPARATOR_H
00027 #define FXMENUSEPARATOR_H
00028 
00029 #ifndef FXWINDOW_H
00030 #include "FXWindow.h"
00031 #endif
00032 
00033 namespace FX {
00034 
00035 
00040 class FXAPI FXMenuSeparator : public FXWindow {
00041   FXDECLARE(FXMenuSeparator)
00042 protected:
00043   FXColor hiliteColor;
00044   FXColor shadowColor;
00045 protected:
00046   FXMenuSeparator();
00047 private:
00048   FXMenuSeparator(const FXMenuSeparator&);
00049   FXMenuSeparator &operator=(const FXMenuSeparator&);
00050 public:
00051   long onPaint(FXObject*,FXSelector,void*);
00052 public:
00053 
00055   FXMenuSeparator(FXComposite* p,FXuint opts=0);
00056 
00058   virtual FXint getDefaultWidth();
00059 
00061   virtual FXint getDefaultHeight();
00062 
00064   void setHiliteColor(FXColor clr);
00065 
00067   FXColor getHiliteColor() const { return hiliteColor; }
00068 
00070   void setShadowColor(FXColor clr);
00071 
00073   FXColor getShadowColor() const { return shadowColor; }
00074 
00076   virtual void save(FXStream& store) const;
00077 
00079   virtual void load(FXStream& store);
00080   };
00081 
00082 }
00083 
00084 #endif
00085 #endif

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:23 2009 for TnFOX by doxygen v1.4.7