]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/mdi/lib/XsResizeOutline.h
2 Copyright (C) 1996 Scott W. Sadler
10 03-Mar-96 1.0; Scott W. Sadler (ssadler@cisco.com)
14 #ifndef XSRESIZEOUTLINE_H
15 #define XSRESIZEOUTLINE_H
19 #include "XsOutline.h"
21 class XsResizeOutline
: public XsOutline
{
27 enum { Up
= 0x0001, Right
= 0x0002, Down
= 0x0004, Left
= 0x0008,
28 Undetermined
= 0x0010 };
31 TopCursor
= 0, BottomCursor
, LeftCursor
, RightCursor
, TopLeftCursor
,
32 TopRightCursor
, BottomLeftCursor
, BottomRightCursor
, Fleur
,
35 // Constructor/Destructor
37 XsResizeOutline (Widget w
, int direction
);
38 virtual ~XsResizeOutline ( );
40 void setMinSize (int minWidth
, int minHeight
);
46 virtual void _motionHandler (XEvent
*);
50 virtual Cursor
_getCursor ( ) const;
56 int _rootX
, _rootY
; // Root coordinates
57 int _origRootX
, _origRootY
;
59 int _origX
, _origY
; // Window coordinates
62 int _minWidth
, _minHeight
;
66 static Cursor _cursors
[NumCursors
];