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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXSeparator.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                      S e p a r a t o r   W i d g e t s                        *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXSEPARATOR_H
00022 #define FXSEPARATOR_H
00023 
00024 #ifndef FXFRAME_H
00025 #include "FXFrame.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 enum {
00033   SEPARATOR_NONE       = 0,               
00034   SEPARATOR_GROOVE     = 0x00008000,      
00035   SEPARATOR_RIDGE      = 0x00010000,      
00036   SEPARATOR_LINE       = 0x00020000       
00037   };
00038 
00039 
00047 class FXAPI FXSeparator : public FXFrame {
00048   FXDECLARE(FXSeparator)
00049 protected:
00050   FXSeparator(){}
00051 private:
00052   FXSeparator(const FXSeparator&);
00053   FXSeparator &operator=(const FXSeparator&);
00054 public:
00055   long onPaint(FXObject*,FXSelector,void*);
00056 public:
00057 
00059   FXSeparator(FXComposite* p,FXuint opts=SEPARATOR_GROOVE|LAYOUT_FILL_X,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0);
00060 
00062   virtual FXint getDefaultWidth();
00063 
00065   virtual FXint getDefaultHeight();
00066 
00068   void setSeparatorStyle(FXuint style);
00069 
00071   FXuint getSeparatorStyle() const;
00072   };
00073 
00074 
00075 
00077 class FXAPI FXHorizontalSeparator : public FXSeparator {
00078   FXDECLARE(FXHorizontalSeparator)
00079 protected:
00080   FXHorizontalSeparator(){}
00081 private:
00082   FXHorizontalSeparator(const FXHorizontalSeparator&);
00083   FXHorizontalSeparator &operator=(const FXHorizontalSeparator&);
00084 public:
00085 
00087   FXHorizontalSeparator(FXComposite* p,FXuint opts=SEPARATOR_GROOVE|LAYOUT_FILL_X,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=1,FXint pr=1,FXint pt=0,FXint pb=0);
00088   };
00089 
00090 
00091 
00093 class FXAPI FXVerticalSeparator : public FXSeparator {
00094   FXDECLARE(FXVerticalSeparator)
00095 protected:
00096   FXVerticalSeparator(){}
00097 private:
00098   FXVerticalSeparator(const FXVerticalSeparator&);
00099   FXVerticalSeparator &operator=(const FXVerticalSeparator&);
00100 public:
00101 
00103   FXVerticalSeparator(FXComposite* p,FXuint opts=SEPARATOR_GROOVE|LAYOUT_FILL_Y,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=1,FXint pb=1);
00104   };
00105 
00106 }
00107 
00108 #endif

Copyright © 1997-2011 Jeroen van der Zijp