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,2022 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=nullptr,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
Window is the base class for all widgets in FOX.
Definition: FXWindow.h:130
FXColor getShadowColor() const
Get shadow color.
Definition: FXMenuSeparator.h:73
Base composite.
Definition: FXComposite.h:32
The menu separator is a simple decorative groove used to delineate items in a popup menu...
Definition: FXMenuSeparator.h:40
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
FXColor getHiliteColor() const
Get highlight color.
Definition: FXMenuSeparator.h:67

Copyright © 1997-2022 Jeroen van der Zijp