BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisLib/include/BesVisLib/BesGPictureButton.h
Go to the documentation of this file.
1
2#ifndef BESGPICTUREBUTTON_H
3#define BESGPICTUREBUTTON_H
4
5#include "TGButton.h"
6
7class BesGPictureButton : public TGPictureButton {
8
9public:
10 BesGPictureButton( const TGWindow* p, const TGPicture* pic, Int_t id = -1,
11 GContext_t norm = GetDefaultGC()(),
12 UInt_t option = kRaisedFrame | kDoubleBorder );
13 BesGPictureButton( const TGWindow* p, const TGPicture* pic, const char* cmd, Int_t id = -1,
14 GContext_t norm = GetDefaultGC()(),
15 UInt_t option = kRaisedFrame | kDoubleBorder );
16 BesGPictureButton( const TGWindow* p = 0, const char* pic = 0, Int_t id = -1,
17 GContext_t norm = GetDefaultGC()(),
18 UInt_t option = kRaisedFrame | kDoubleBorder );
19
20 Bool_t HandleCrossing( Event_t* event );
21 Bool_t IsStateOn() { return fState; }
22 virtual void SetState( Bool_t state ) { fState = state; }
23
24 virtual void SetPicture( const TGPicture* new_pic );
25 virtual void SetPictureHL( const TGPicture* hl_pic ) { fPicHL = hl_pic; }
26
27private:
28protected:
29 const TGPicture* fPicHL; // picture shown when button selected
30 Bool_t fState;
31
32 ClassDef( BesGPictureButton, 0 ) // BesGPictureButton
33};
34
35#endif
Bool_t HandleCrossing(Event_t *event)
BesGPictureButton(const TGWindow *p, const TGPicture *pic, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder)
virtual void SetPicture(const TGPicture *new_pic)