Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
Main Page
Classes
Files
File List
include
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,2013 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
58
FXDragCorner
(
FXComposite
* p);
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
Copyright © 1997-2013 Jeroen van der Zijp