#include <BesGMenuTitle.h>
|
| BesGMenuTitle (const TGWindow *p=0, TGHotString *s=0, TGPopupMenu *menu=0, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=0) |
|
virtual void | SetPicture (Pixmap_t pic) |
|
virtual void | SetPictureHL (Pixmap_t pic) |
|
Definition at line 12 of file BesGMenuTitle.h.
◆ BesGMenuTitle()
BesGMenuTitle::BesGMenuTitle |
( |
const TGWindow * |
p = 0 , |
|
|
TGHotString * |
s = 0 , |
|
|
TGPopupMenu * |
menu = 0 , |
|
|
GContext_t |
norm = GetDefaultGC()() , |
|
|
FontStruct_t |
font = GetDefaultFontStruct() , |
|
|
UInt_t |
options = 0 |
|
) |
| |
◆ DoRedraw()
void BesGMenuTitle::DoRedraw |
( |
| ) |
|
|
protectedvirtual |
Definition at line 16 of file BesGMenuTitle.cxx.
17{
18
19
20 TGFrame::DoRedraw();
21
22 int x,
y, max_ascent, max_descent;
24
25 gVirtualX->GetFontProperties(fFontStruct, max_ascent, max_descent);
26
27 if (fState) {
29 else SetBackgroundColor(GetDefaultSelectedBackground());
30 gVirtualX->ClearWindow(fId);
31 fLabel->Draw(fId, fSelGC, x,
y + max_ascent);
32 } else {
34 else SetBackgroundColor(GetDefaultFrameBackground());
35 gVirtualX->ClearWindow(fId);
36 fLabel->Draw(fId, fNormGC, x,
y + max_ascent);
37 }
38}
◆ SetPicture()
virtual void BesGMenuTitle::SetPicture |
( |
Pixmap_t |
pic | ) |
|
|
inlinevirtual |
◆ SetPictureHL()
virtual void BesGMenuTitle::SetPictureHL |
( |
Pixmap_t |
pic | ) |
|
|
inlinevirtual |
◆ fPic
Pixmap_t BesGMenuTitle::fPic |
|
protected |
◆ fPicHL
Pixmap_t BesGMenuTitle::fPicHL |
|
protected |
The documentation for this class was generated from the following files: