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

FXDragCorner.h
1 /********************************************************************************
2 * *
3 * D r a g C o r n e r W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2018 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 FXDRAGCORNER_H
22 #define FXDRAGCORNER_H
23 
24 #ifndef FXWINDOW_H
25 #include "FXWindow.h"
26 #endif
27 
28 namespace FX {
29 
30 
35 class FXAPI FXDragCorner : public FXWindow {
36  FXDECLARE(FXDragCorner)
37 protected:
38  FXColor hiliteColor;
39  FXColor shadowColor;
40  FXint oldw;
41  FXint oldh;
42  FXint xoff;
43  FXint yoff;
44  FXbool ewmh;
45 protected:
46  FXDragCorner();
47 private:
48  FXDragCorner(const FXDragCorner&);
49  FXDragCorner &operator=(const FXDragCorner&);
50 public:
51  long onPaint(FXObject*,FXSelector,void*);
52  long onLeftBtnPress(FXObject*,FXSelector,void*);
53  long onLeftBtnRelease(FXObject*,FXSelector,void*);
54  long onMotion(FXObject*,FXSelector,void*);
55 public:
56 
59 
61  virtual FXint getDefaultWidth();
62 
64  virtual FXint getDefaultHeight();
65 
67  virtual void create();
68 
70  void setHiliteColor(FXColor clr);
71 
73  FXColor getHiliteColor() const { return hiliteColor; }
74 
76  void setShadowColor(FXColor clr);
77 
79  FXColor getShadowColor() const { return shadowColor; }
80 
82  virtual void save(FXStream& store) const;
83 
85  virtual void load(FXStream& store);
86  };
87 
88 }
89 
90 #endif
A drag corner widget may be placed in the bottom right corner so as to allow the window to be resized...
Definition: FXDragCorner.h:35
FXColor getHiliteColor() const
Return current highlight color.
Definition: FXDragCorner.h:73
Window is the base class for all widgets in FOX.
Definition: FXWindow.h:130
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:78
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:104
FXColor getShadowColor() const
Return current shadow color.
Definition: FXDragCorner.h:79

Copyright © 1997-2018 Jeroen van der Zijp