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

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,2004 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.15 2004/02/08 17:17:34 fox Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXSEPARATOR_H 00025 #define FXSEPARATOR_H 00026 00027 #ifndef FXFRAME_H 00028 #include "FXFrame.h" 00029 #endif 00030 00031 namespace FX { 00032 00033 00034 /// Separator Options 00035 enum { 00036 SEPARATOR_NONE = 0, /// Nothing visible 00037 SEPARATOR_GROOVE = 0x00008000, /// Etched-in looking groove 00038 SEPARATOR_RIDGE = 0x00010000, /// Embossed looking ridge 00039 SEPARATOR_LINE = 0x00020000 /// Simple line 00040 }; 00041 00042 00043 /// Separator widget 00044 class FXAPI FXSeparator : public FXFrame { 00045 FXDECLARE(FXSeparator) 00046 protected: 00047 FXSeparator(){} 00048 private: 00049 FXSeparator(const FXSeparator&); 00050 FXSeparator &operator=(const FXSeparator&); 00051 public: 00052 long onPaint(FXObject*,FXSelector,void*); 00053 public: 00054 00055 /// Constructor 00056 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); 00057 00058 /// Return default width 00059 virtual FXint getDefaultWidth(); 00060 00061 /// Return default height 00062 virtual FXint getDefaultHeight(); 00063 00064 /// Change separator style 00065 void setSeparatorStyle(FXuint style); 00066 00067 /// Get separator style 00068 FXuint getSeparatorStyle() const; 00069 }; 00070 00071 00072 00073 /// Horizontal separator widget 00074 class FXAPI FXHorizontalSeparator : public FXSeparator { 00075 FXDECLARE(FXHorizontalSeparator) 00076 protected: 00077 FXHorizontalSeparator(){} 00078 private: 00079 FXHorizontalSeparator(const FXHorizontalSeparator&); 00080 FXHorizontalSeparator &operator=(const FXHorizontalSeparator&); 00081 public: 00082 00083 /// Constructor 00084 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); 00085 }; 00086 00087 00088 00089 /// Vertical separator widget 00090 class FXAPI FXVerticalSeparator : public FXSeparator { 00091 FXDECLARE(FXVerticalSeparator) 00092 protected: 00093 FXVerticalSeparator(){} 00094 private: 00095 FXVerticalSeparator(const FXVerticalSeparator&); 00096 FXVerticalSeparator &operator=(const FXVerticalSeparator&); 00097 public: 00098 00099 /// Constructor 00100 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); 00101 }; 00102 00103 } 00104 00105 #endif

Copyright © 1997-2004 Jeroen van der Zijp