00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
#ifndef _vdk_hlbutton_h
00028
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