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

FXMenuSeparator.h
1 /********************************************************************************
2 * *
3 * M e n u S e p a r a t o r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2017 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (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 *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXMENUSEPARATOR_H
22 #define FXMENUSEPARATOR_H
23 
24 #ifndef FXWINDOW_H
25 #include "FXWindow.h"
26 #endif
27 
28 namespace FX {
29 
30 
40 class FXAPI FXMenuSeparator : public FXWindow {
41  FXDECLARE(FXMenuSeparator)
42 protected:
43  FXColor hiliteColor;
44  FXColor shadowColor;
45 protected:
47 private:
49  FXMenuSeparator &operator=(const FXMenuSeparator&);
50 public:
51  long onPaint(FXObject*,FXSelector,void*);
52 public:
53 
55  FXMenuSeparator(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=0);
56 
58  virtual FXint getDefaultWidth();
59 
61  virtual FXint getDefaultHeight();
62 
64  void setHiliteColor(FXColor clr);
65 
67  FXColor getHiliteColor() const { return hiliteColor; }
68 
70  void setShadowColor(FXColor clr);
71 
73  FXColor getShadowColor() const { return shadowColor; }
74 
76  virtual void save(FXStream& store) const;
77 
79  virtual void load(FXStream& store);
80  };
81 
82 }
83 
84 #endif

Copyright © 1997-2016 Jeroen van der Zijp