BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
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
9 public:
10
11 BesGPictureButton(const TGWindow *p, const TGPicture *pic, Int_t id = -1,
12 GContext_t norm = GetDefaultGC()(),
13 UInt_t option = kRaisedFrame | kDoubleBorder);
14 BesGPictureButton(const TGWindow *p, const TGPicture *pic, const char *cmd,
15 Int_t id = -1, GContext_t norm = GetDefaultGC()(),
16 UInt_t option = kRaisedFrame | kDoubleBorder);
17 BesGPictureButton(const TGWindow *p = 0, const char* pic = 0, Int_t id = -1,
18 GContext_t norm = GetDefaultGC()(),
19 UInt_t option = kRaisedFrame | kDoubleBorder);
20
21 Bool_t HandleCrossing(Event_t *event);
22 Bool_t IsStateOn() { return fState; }
23 virtual void SetState(Bool_t state) { fState = state; }
24
25 virtual void SetPicture(const TGPicture *new_pic);
26 virtual void SetPictureHL(const TGPicture *hl_pic) { fPicHL = hl_pic; }
27
28 private:
29
30protected:
31
32 const TGPicture *fPicHL; // picture shown when button selected
33 Bool_t fState;
34
35 ClassDef(BesGPictureButton,0) // BesGPictureButton
36};
37
38#endif
39
40
virtual void SetState(Bool_t state)
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 SetPictureHL(const TGPicture *hl_pic)
const TGPicture * fPicHL
virtual void SetPicture(const TGPicture *new_pic)