Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

vdkhlbutton.h

00001 /* 00002 * =========================== 00003 * VDK Visual Development Kit 00004 * Version 2.0.3 00005 * January 2003 00006 * =========================== 00007 * 00008 * Copyright (C) 1998, Mario Motta 00009 * Developed by Mario Motta <mmotta@guest.net> 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Library General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Library General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Library General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00024 * 02111-1307, USA. 00025 */ 00026 // 00027 #ifndef _vdk_hlbutton_h 00028 // put your code below here 00029 #define _vdk_hlbutton_h 00030 #include <vdk/evlisthandle.h> 00031 #include <vdk/vdkcustombutton.h> 00032 00040 class VDKHLButton: public VDKCustomButton 00041 { 00042 protected: 00043 VDKPixbuf* normal_pix, *pixellated_pix, *darkened_pix; 00044 bool OnEnter (VDKObject*, GdkEvent*); 00045 bool OnLeave (VDKObject*, GdkEvent*); 00046 bool OnClickRelease (VDKObject*, GdkEvent*); 00047 bool OnClickPress (VDKObject*, GdkEvent*); 00048 public: 00057 VDKHLButton (VDKForm *owner, 00058 const char *pixfile, 00059 const char *label = NULL, 00060 unsigned int type=VDK_CBUTTON_UNTOGGLED|VDK_CBUTTON_NORMAL, 00061 GtkPositionType position=GTK_POS_RIGHT); 00070 VDKHLButton (VDKForm *owner, 00071 const char **pixdata, 00072 const char *label = NULL, 00073 unsigned int type=VDK_CBUTTON_UNTOGGLED|VDK_CBUTTON_NORMAL, 00074 GtkPositionType position=GTK_POS_RIGHT); 00075 virtual ~VDKHLButton () {} 00076 void Setup (void); 00077 DECLARE_EVENT_LIST (VDKHLButton); 00078 }; 00079 #endif 00080

Generated on Wed Jul 28 17:23:53 2004 for vdk 2.0.3 by doxygen 1.3.7