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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXToolBarGrip.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                    T o o l   B a r   G r i p   W i d g e t                    *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2000,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 FXTOOLBARGRIP_H
00022 #define FXTOOLBARGRIP_H
00023 
00024 #ifndef FXDOCKHANDLER_H
00025 #include "FXDockHandler.h"
00026 #endif
00027 
00028 namespace FX {
00029 
00030 
00032 enum {
00033   TOOLBARGRIP_SINGLE     = 0,             
00034   TOOLBARGRIP_DOUBLE     = 0x00008000     
00035   };
00036 
00037 
00049 class FXAPI FXToolBarGrip : public FXDockHandler {
00050   FXDECLARE(FXToolBarGrip)
00051 protected:
00052   FXColor activeColor;  // Color when active
00053 protected:
00054   FXToolBarGrip();
00055 private:
00056   FXToolBarGrip(const FXToolBarGrip&);
00057   FXToolBarGrip& operator=(const FXToolBarGrip&);
00058 public:
00059   long onPaint(FXObject*,FXSelector,void*);
00060   long onEnter(FXObject*,FXSelector,void*);
00061   long onLeave(FXObject*,FXSelector,void*);
00062 public:
00063 
00065   FXToolBarGrip(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=TOOLBARGRIP_SINGLE,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0);
00066 
00068   virtual FXint getDefaultWidth();
00069 
00071   virtual FXint getDefaultHeight();
00072 
00074   virtual FXbool canFocus() const;
00075 
00077   void setDoubleBar(FXbool dbl=true);
00078 
00080   FXbool isDoubleBar() const;
00081 
00083   void setActiveColor(FXColor clr);
00084 
00086   FXColor getActiveColor() const { return activeColor; }
00087 
00089   virtual void save(FXStream& store) const;
00090 
00092   virtual void load(FXStream& store);
00093   };
00094 
00095 }
00096 
00097 #endif

Copyright © 1997-2011 Jeroen van der Zijp