vdk 2.4.0
button.h
1 /*
2  * ===========================
3  * VDK Visual Develeopment Kit
4  * Version 0.4
5  * October 1998
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 BUTTON_H
28 #define BUTTON_H
29 #ifndef yes
30 #define yes true
31 #define no false
32 #endif
33 #include <vdk/abstract_button.h>
34 #include <vdk/forms.h>
35 
36 class VDKTooltip;
37 class VDKButton: public VDKAbstractButton {
38 protected:
39  VDKForm* owner;
40  GtkWidget* box;
41  void _add_default();
42  GdkPixmap* def_pixmap;
43  VDKTooltip* tip;
44 public:
45 
46  VDKButton(VDKForm* owner, char* tip = (char*) NULL);
47  virtual ~VDKButton() {
48  if(def_pixmap)
49  gdk_pixmap_unref(def_pixmap);
50  }
51 
52  virtual void SetForeground(VDKRgb , GtkStateType ) {}
53  virtual void SetFont(VDKFont*){}
54 
55 };
56 
57 #endif
This class provides a common base for different types of buttons.
Definition: abstract_button.h:39
virtual void SetFont(VDKFont *)
Definition: abstract_button.h:46
virtual void SetForeground(VDKRgb, GtkStateType)
Definition: abstract_button.h:45
Provides a raw font.
Definition: vdkfont.h:38
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
Provides a simple RGB color structure.
Definition: vdkutils.h:38
Provides a tooltip.
Definition: tooltips.h:37