00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _FL_TOGGLE_BUTTON_H_
00023 #define _FL_TOGGLE_BUTTON_H_
00024
00025 #include "Fl_Button.h"
00026
00028 class Fl_Toggle_Button : public Fl_Button {
00029 public:
00031 Fl_Toggle_Button(int x,int y,int w,int h,const char *l=0)
00032 : Fl_Button(x,y,w,h,l) { type(TOGGLE); }
00033
00035 Fl_Toggle_Button(const char* l = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP)
00036 : Fl_Button(l,layout_size,layout_al) { type(TOGGLE); }
00037
00038 virtual void reset() { value(0); }
00039 };
00040
00041 #endif