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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXDragCorner.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       D r a g   C o r n e r   W i d g e t                     *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1997,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXDRAGCORNER_H
00022 #define FXDRAGCORNER_H
00023 
00024 #ifndef FXWINDOW_H
00025 #include "FXWindow.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00035 class FXAPI FXDragCorner : public FXWindow {
00036   FXDECLARE(FXDragCorner)
00037 protected:
00038   FXColor hiliteColor;
00039   FXColor shadowColor;
00040   FXint   oldw;
00041   FXint   oldh;
00042   FXint   xoff;
00043   FXint   yoff;
00044   FXbool  ewmh;
00045 protected:
00046   FXDragCorner();
00047 private:
00048   FXDragCorner(const FXDragCorner&);
00049   FXDragCorner &operator=(const FXDragCorner&);
00050 public:
00051   long onPaint(FXObject*,FXSelector,void*);
00052   long onLeftBtnPress(FXObject*,FXSelector,void*);
00053   long onLeftBtnRelease(FXObject*,FXSelector,void*);
00054   long onMotion(FXObject*,FXSelector,void*);
00055 public:
00056 
00058   FXDragCorner(FXComposite* p);
00059 
00061   virtual FXint getDefaultWidth();
00062 
00064   virtual FXint getDefaultHeight();
00065 
00067   virtual void create();
00068 
00070   void setHiliteColor(FXColor clr);
00071 
00073   FXColor getHiliteColor() const { return hiliteColor; }
00074 
00076   void setShadowColor(FXColor clr);
00077 
00079   FXColor getShadowColor() const { return shadowColor; }
00080 
00082   virtual void save(FXStream& store) const;
00083 
00085   virtual void load(FXStream& store);
00086   };
00087 
00088 }
00089 
00090 #endif

Copyright © 1997-2011 Jeroen van der Zijp