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

FXSeparator.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * S e p a r a t o r W i d g e t s *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXSeparator.h,v 1.18 2006/01/22 17:58:09 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXSEPARATOR_H
25 #define FXSEPARATOR_H
26 
27 #ifndef FXFRAME_H
28 #include "FXFrame.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /// Separator Options
35 enum {
36  SEPARATOR_NONE = 0, /// Nothing visible
37  SEPARATOR_GROOVE = 0x00008000, /// Etched-in looking groove
38  SEPARATOR_RIDGE = 0x00010000, /// Embossed looking ridge
39  SEPARATOR_LINE = 0x00020000 /// Simple line
40  };
41 
42 
43 /**
44 * A Separator widget is used to draw a horizontal or vertical divider between
45 * groups of controls. It is purely decorative. The separator may be drawn
46 * in various styles as determined by the SEPARATOR_NONE, SEPARATOR_GROOVE,
47 * SEPARATOR_RIDGE, and SEPARATOR_LINE options. Since its derived from Frame,
48 * it can also have the frame's border styles.
49 */
50 class FXAPI FXSeparator : public FXFrame {
52 protected:
53  FXSeparator(){}
54 private:
55  FXSeparator(const FXSeparator&);
56  FXSeparator &operator=(const FXSeparator&);
57 public:
58  long onPaint(FXObject*,FXSelector,void*);
59 public:
60 
61  /// Constructor
63 
64  /// Return default width
65  virtual FXint getDefaultWidth();
66 
67  /// Return default height
68  virtual FXint getDefaultHeight();
69 
70  /// Change separator style
71  void setSeparatorStyle(FXuint style);
72 
73  /// Get separator style
74  FXuint getSeparatorStyle() const;
75  };
76 
77 
78 
79 /// Horizontal separator widget
82 protected:
84 private:
85  FXHorizontalSeparator(const FXHorizontalSeparator&);
87 public:
88 
89  /// Constructor
91  };
92 
93 
94 
95 /// Vertical separator widget
96 class FXAPI FXVerticalSeparator : public FXSeparator {
98 protected:
100 private:
102  FXVerticalSeparator &operator=(const FXVerticalSeparator&);
103 public:
104 
105  /// Constructor
107  };
108 
109 }
110 
111 #endif
Simple line.
Definition: FXSeparator.h:42
The Frame widget provides borders around some contents.
Definition: FXFrame.h:73
unsigned int FXuint
Definition: fxdefs.h:389
FXuint FXSelector
Association key.
Definition: FXObject.h:53
Vertical separator widget.
Definition: FXSeparator.h:101
Nothing visible.
Definition: FXSeparator.h:39
#define FXAPI
Definition: fxdefs.h:122
Stretch or shrink horizontally.
Definition: FXWindow.h:62
Base composite.
Definition: FXComposite.h:35
Embossed looking ridge.
Definition: FXSeparator.h:41
A Separator widget is used to draw a horizontal or vertical divider between groups of controls...
Definition: FXSeparator.h:57
Etched-in looking groove.
Definition: FXSeparator.h:40
Horizontal separator widget.
Definition: FXSeparator.h:86
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:390
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
Stretch or shrink vertically.
Definition: FXWindow.h:63

Copyright © 1997-2005 Jeroen van der Zijp