167 TString back =
gEnv->GetValue(
"Gui.BackgroundColor",
"#c0c0c0");
171 img2->
Merge(img,
"overlay");
284 if ((el = bar->
GetHead()) !=
this) {
288 if ((el = bar->
GetTail()) !=
this) {
311 UInt_t options,
Pixel_t back,
const char *headPicName,
const char *tailPicName) :
448 fHead->ChangeBackground(back);
449 fTail->ChangeBackground(back);
450 fSlider->ChangeBackground(back);
458 TGScrollBar(p, w,
h, options, back,
"arrow_left.xpm",
"arrow_right.xpm")
491 if (!
fHead->IsEnabled()) {
496 if (newpos<0) newpos = 0;
501 if (!
fTail->IsEnabled()) {
531 if (subw ==
fSlider->GetId()) {
544 if (subw ==
fHead->GetId()) {
550 }
else if (subw ==
fTail->GetId()) {
633 fRange = std::max(range, 1);
634 fPsize = std::max(page_size, 0);
666 fPos = std::max(pos, 0);
687 TGScrollBar(p, w,
h, options, back,
"arrow_up.xpm",
"arrow_down.xpm")
720 if (!
fHead->IsEnabled()) {
725 if (newpos<0) newpos = 0;
730 if (!
fTail->IsEnabled()) {
761 if (subw ==
fSlider->GetId()) {
774 if (subw ==
fHead->GetId()) {
780 }
else if (subw ==
fTail->GetId()) {
865 fRange = std::max(range, 1);
866 fPsize = std::max(page_size, 0);
900 fPos = std::max(pos, 0);
924 out <<
" TGHScrollBar *" <<
GetName() <<
" = new TGHScrollBar(" <<
fParent->GetName() <<
"," <<
GetWidth() <<
","
927 if (option && strstr(option,
"keep_names"))
928 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
942 out <<
" TGVScrollBar *" <<
GetName() <<
" = new TGVScrollBar(" <<
fParent->GetName() <<
"," <<
GetWidth() <<
","
945 if (option && strstr(option,
"keep_names"))
946 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
const Mask_t kButtonPressMask
const Mask_t kAnyModifier
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kPointerMotionMask
const Mask_t kLeaveWindowMask
const Mask_t kButtonReleaseMask
const Mask_t kEnterWindowMask
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC & GetBlackGC()
Get black graphics context.
UInt_t fOptions
frame options
TGFrame(const TGFrame &)=delete
UInt_t fHeight
frame height
void DoRedraw() override
Redraw the frame.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
static const TGGC & GetShadowGC()
Get shadow color graphics context.
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
static const TGGC & GetWhiteGC()
Get white graphics context.
Pixel_t fBackground
frame background color
static const TGGC & GetBckgndGC()
Get background color graphics context.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
const TGWindow * fParent
Parent window.
@ kEditDisableHeight
window height cannot be edited
@ kEditDisableLayout
window layout cannot be edited
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisableWidth
window width cannot be edited
@ kEditDisableGrab
window grab cannot be edited
@ kEditDisable
disable edit of this window
virtual void SetWindowName(const char *name=nullptr)
Set window name.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
An abstract interface to image processing library.
virtual void FillRectangle(const char *=nullptr, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
static TImage * Create()
Create an image.
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
virtual Pixmap_t GetPixmap()
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=nullptr)
virtual Pixmap_t GetMask()
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Bool_t Notify() override
Notify when timer times out and reset the timer.
TSBRepeatTimer(TGScrollBar *s, Long_t ms, Int_t inc)
Int_t GetSmallInc() const
const char * Data() const
Handles synchronous and a-synchronous timer events.
void Reset()
Reset the timer.
void SetTime(Long_t milliSec)
TTimer(const TTimer &)=delete
EGEventType fType
of event (see EGEventType)
Int_t fY
pointer x, y coordinates in event window
UInt_t fState
key or button mask
Int_t fYRoot
coordinates relative to root
UInt_t fCode
key or button code
Longptr_t fUser[5]
5 longs can be used by client message events NOTE: only [0], [1] and [2] may be used.