vdk 2.4.0
vdkhlbutton.h
1/*
2 * ===========================
3 * VDK Visual Development Kit
4 * Version 2.0.3
5 * January 2003
6 * ===========================
7 *
8 * Copyright (C) 1998, Mario Motta
9 * Developed by Mario Motta <mmotta@guest.net>
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
20 *
21 * You should have received a copy of the GNU Library General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24 * 02111-1307, USA.
25 */
26//
27#ifndef _vdk_hlbutton_h
28// put your code below here
29#define _vdk_hlbutton_h
30#include <vdk/evlisthandle.h>
31#include <vdk/vdkcustombutton.h>
32
41{
42 protected:
43 VDKPixbuf* normal_pix, *pixellated_pix, *darkened_pix;
44 bool OnEnter (VDKObject*, GdkEvent*);
45 bool OnLeave (VDKObject*, GdkEvent*);
46 bool OnClickRelease (VDKObject*, GdkEvent*);
47 bool OnClickPress (VDKObject*, GdkEvent*);
48 public:
57 VDKHLButton (VDKForm *owner,
58 const char *pixfile,
59 const char *label = NULL,
60 unsigned int type=VDK_CBUTTON_UNTOGGLED|VDK_CBUTTON_NORMAL,
61 GtkPositionType position=GTK_POS_RIGHT);
70 VDKHLButton (VDKForm *owner,
71 const char **pixdata,
72 const char *label = NULL,
73 unsigned int type=VDK_CBUTTON_UNTOGGLED|VDK_CBUTTON_NORMAL,
74 GtkPositionType position=GTK_POS_RIGHT);
75 virtual ~VDKHLButton () {}
76 void Setup (void);
77 DECLARE_EVENT_LIST (VDKHLButton);
78};
79#endif
80
This class provides an unified wrapper for almost all kind of GtkButton.
Definition: vdkcustombutton.h:48
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
(HL stands for HighLighted) this class provides a button that behaves like Netscape buttons,...
Definition: vdkhlbutton.h:41
void Setup(void)
Definition: vdkhlbutton.cc:71
VDKHLButton(VDKForm *owner, const char *pixfile, const char *label=NULL, unsigned int type=VDK_CBUTTON_UNTOGGLED|VDK_CBUTTON_NORMAL, GtkPositionType position=GTK_POS_RIGHT)
Definition: vdkhlbutton.cc:33
Definition: vdkobj.h:141
Provides a raw image wrapping GdkPixbuf This class should in time substitute VDKRawPixmap that from n...
Definition: rawpixbuf.h:41