#include <BesGPictureButton.h>
|
| BesGPictureButton (const TGWindow *p, const TGPicture *pic, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) |
|
| BesGPictureButton (const TGWindow *p, const TGPicture *pic, const char *cmd, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) |
|
| BesGPictureButton (const TGWindow *p=0, const char *pic=0, Int_t id=-1, GContext_t norm=GetDefaultGC()(), UInt_t option=kRaisedFrame|kDoubleBorder) |
|
Bool_t | HandleCrossing (Event_t *event) |
|
Bool_t | IsStateOn () |
|
virtual void | SetState (Bool_t state) |
|
virtual void | SetPicture (const TGPicture *new_pic) |
|
virtual void | SetPictureHL (const TGPicture *hl_pic) |
|
Definition at line 7 of file BesGPictureButton.h.
◆ BesGPictureButton() [1/3]
BesGPictureButton::BesGPictureButton |
( |
const TGWindow * | p, |
|
|
const TGPicture * | pic, |
|
|
Int_t | id = -1, |
|
|
GContext_t | norm = GetDefaultGC()(), |
|
|
UInt_t | option = kRaisedFrame|kDoubleBorder ) |
◆ BesGPictureButton() [2/3]
BesGPictureButton::BesGPictureButton |
( |
const TGWindow * | p, |
|
|
const TGPicture * | pic, |
|
|
const char * | cmd, |
|
|
Int_t | id = -1, |
|
|
GContext_t | norm = GetDefaultGC()(), |
|
|
UInt_t | option = kRaisedFrame | kDoubleBorder ) |
◆ BesGPictureButton() [3/3]
BesGPictureButton::BesGPictureButton |
( |
const TGWindow * | p = 0, |
|
|
const char * | pic = 0, |
|
|
Int_t | id = -1, |
|
|
GContext_t | norm = GetDefaultGC()(), |
|
|
UInt_t | option = kRaisedFrame | kDoubleBorder ) |
◆ HandleCrossing()
Bool_t BesGPictureButton::HandleCrossing |
( |
Event_t * | event | ) |
|
Definition at line 36 of file BesGPictureButton.cxx.
37{
38
39
40 static const TGPicture *picTemp;
41 static Bool_t state;
42
44 if (event->fType == kEnterNotify) {
45 picTemp = fPic;
48 }
49 else {
52 }
53 }
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77 TGButton::HandleCrossing(event);
78 return kTRUE;
79}
◆ IsStateOn()
Bool_t BesGPictureButton::IsStateOn |
( |
| ) |
|
|
inline |
◆ SetPicture()
void BesGPictureButton::SetPicture |
( |
const TGPicture * | new_pic | ) |
|
|
virtual |
◆ SetPictureHL()
virtual void BesGPictureButton::SetPictureHL |
( |
const TGPicture * | hl_pic | ) |
|
|
inlinevirtual |
◆ SetState()
virtual void BesGPictureButton::SetState |
( |
Bool_t | state | ) |
|
|
inlinevirtual |
◆ fPicHL
const TGPicture* BesGPictureButton::fPicHL |
|
protected |
◆ fState
Bool_t BesGPictureButton::fState |
|
protected |
The documentation for this class was generated from the following files: