![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
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,2002 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: FXSeparator.h,v 1.9 2002/01/18 22:42:54 jeroen Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXSEPARATOR_H 00025 #define FXSEPARATOR_H 00026 00027 #ifndef FXFRAME_H 00028 #include "FXFrame.h" 00029 #endif 00030 00031 00032 00033 /// Separator Options 00034 enum { 00035 SEPARATOR_NONE = 0, /// Nothing visible 00036 SEPARATOR_GROOVE = 0x00008000, /// Etched-in looking groove 00037 SEPARATOR_RIDGE = 0x00010000, /// Embossed looking ridge 00038 SEPARATOR_LINE = 0x00020000 /// Simple line 00039 }; 00040 00041 00042 /// Horizontal separator 00043 class FXAPI FXHorizontalSeparator : public FXFrame { 00044 FXDECLARE(FXHorizontalSeparator) 00045 protected: 00046 FXHorizontalSeparator(){} 00047 private: 00048 FXHorizontalSeparator(const FXHorizontalSeparator&); 00049 FXHorizontalSeparator &operator=(const FXHorizontalSeparator&); 00050 public: 00051 long onPaint(FXObject*,FXSelector,void*); 00052 public: 00053 00054 /// Constructor 00055 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); 00056 00057 /// Return default width 00058 virtual FXint getDefaultWidth(); 00059 00060 /// Return default height 00061 virtual FXint getDefaultHeight(); 00062 }; 00063 00064 00065 /// Vertical separator 00066 class FXAPI FXVerticalSeparator : public FXFrame { 00067 FXDECLARE(FXVerticalSeparator) 00068 protected: 00069 FXVerticalSeparator(){} 00070 private: 00071 FXVerticalSeparator(const FXVerticalSeparator&); 00072 FXVerticalSeparator &operator=(const FXVerticalSeparator&); 00073 public: 00074 long onPaint(FXObject*,FXSelector,void*); 00075 public: 00076 00077 /// Constructor 00078 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); 00079 00080 /// Return default width 00081 virtual FXint getDefaultWidth(); 00082 00083 /// Return default height 00084 virtual FXint getDefaultHeight(); 00085 }; 00086 00087 00088 #endif