105      Warning(
"SetRange", 
"Incorrect range boundaries [%d,%d]", min, max);
 
 
  116      Warning(
"SetPosition", 
"The position (%d) is out of range [%d,%d]", pos, 
fVmin, 
fVmax);
 
 
  183      Error(
"TGVSlider", 
"slider?h.xpm not found");
 
 
  232      if (lines < 1) lines = 1;
 
  233      for (
int i = 0; i <= lines; i++) {
 
 
  378      Error(
"TGHSlider", 
"slider?v.xpm not found");
 
 
  426      if (lines < 1) lines = 1;
 
  427      for (
int i = 0; i <= lines; i++) {
 
 
  564         if (stype.
Length() == 0) stype  = 
"kSlider1";
 
  565         else                     stype += 
" | kSlider1";
 
  568         if (stype.
Length() == 0) stype  = 
"kSlider2";
 
  569         else                     stype += 
" | kSlider2";
 
  572         if (stype.
Length() == 0) stype  = 
"kScaleNo";
 
  573         else                     stype += 
" | kScaleNo";
 
  576         if (stype.
Length() == 0) stype  = 
"kScaleDownRight";
 
  577         else                     stype += 
" | kScaleDownRight";
 
  580         if (stype.
Length() == 0) stype  = 
"kScaleBoth";
 
  581         else                     stype += 
" | kScaleBoth";
 
 
  594   out <<
"   TGHSlider *";
 
  601         out <<
");" << std::endl;
 
  609      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
  612      out << 
"   " << 
GetName() <<
"->SetRange(" << 
fVmin << 
"," << 
fVmax << 
");" << std::endl;
 
  618      out << 
"   " << 
GetName() <<
"->SetScale(" << 
fScale << 
");" << std::endl;
 
  621      out << 
"   " << 
GetName() <<
"->SetState(kFALSE);" << std::endl;
 
 
  639         out <<
");" << std::endl;
 
  647      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
  650      out << 
"   " << 
GetName() <<
"->SetRange(" << 
fVmin << 
"," << 
fVmax << 
");" << std::endl;
 
  656      out << 
"   " << 
GetName() <<
"->SetScale(" << 
fScale << 
");" << std::endl;
 
  659      out << 
"   " << 
GetName() <<
"->SetState(kFALSE);" << std::endl;
 
 
Handle_t Pixmap_t
Pixmap handle.
 
const Mask_t kButtonPressMask
 
const Mask_t kAnyModifier
 
Handle_t GContext_t
Graphics context handle.
 
const Mask_t kPointerMotionMask
 
const Mask_t kStructureNotifyMask
 
const Mask_t kButtonReleaseMask
 
ULong_t Pixel_t
Pixel value.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
 
Bool_t IsEditable() const
 
void ProcessLine(TString cmd, Long_t msg, Long_t parm1, Long_t parm2)
Execute string "cmd" via the interpreter.
 
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
TGPicturePool * GetPicturePool() const
 
void FreePicture(const TGPicture *pic)
Free picture resource.
 
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
 
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.
 
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
 
UInt_t fHeight
frame height
 
virtual UInt_t GetDefaultWidth() const
 
virtual UInt_t GetDefaultHeight() const
 
static const TGGC & GetHilightGC()
Get highlight color graphics context.
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
virtual UInt_t GetOptions() const
 
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
 
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.
 
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
 
Pixel_t fBackground
frame background color
 
static const TGGC & GetBckgndGC()
Get background color graphics context.
 
Concrete class for horizontal slider.
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in horizontal slide widget.
 
Bool_t HandleConfigureNotify(Event_t *event) override
Handles resize events for this widget.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal slider widget.
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
 
void DoRedraw() override
Redraw horizontal slider widget.
 
Int_t fXp
horizontal slider x position in pixel coordinates
 
void Resize(UInt_t w, UInt_t h) override
Resize the frame.
 
~TGHSlider() override
Delete a horizontal slider widget.
 
TGHSlider(const TGWindow *p=nullptr, UInt_t w=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground())
Create horizontal slider widget.
 
TGClient * fClient
Connection to display server.
 
Handle_t fId
X11/Win32 Window identifier.
 
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
 
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
 
Slider widgets allow easy selection of a range.
 
Int_t fPos
logical position between fVmin and fVmax
 
Int_t fRelPos
slider position in pixel coordinates
 
virtual void CreateDisabledPicture()
Creates disabled picture.
 
virtual Int_t GetPosition() const
 
virtual void SetPosition(Int_t pos)
Set slider position.
 
const TGPicture * fSliderPic
picture to draw slider
 
virtual void SetRange(Int_t min, Int_t max)
Set slider range.
 
Int_t fVmin
logical lower limit of slider
 
Int_t fType
slider type bits
 
TString GetTypeString() const
used in SavePrimitive
 
TGSlider(const TGSlider &)=delete
 
Bool_t fDragging
true if in dragging mode
 
Int_t fScale
tick mark scale
 
virtual void ChangeSliderPic(const char *name)
Change slider picture.
 
const TGPicture * fDisabledPic
picture to draw disabled slider
 
virtual void PositionChanged(Int_t pos)
 
Int_t fVmax
logical upper limit of slider
 
virtual void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
 
Concrete class for vertical slider.
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical slider.
 
void DoRedraw() override
Redraw vertical slider widget.
 
~TGVSlider() override
Delete vertical slider widget.
 
Bool_t HandleConfigureNotify(Event_t *event) override
Handles resize events for this widget.
 
void Resize(UInt_t w, UInt_t h) override
Resize the frame.
 
Int_t fYp
vertical slider y position in pixel coordinates
 
TGVSlider(const TGWindow *p=nullptr, UInt_t h=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kVerticalFrame, Pixel_t back=GetDefaultFrameBackground())
Create a vertical slider widget.
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical slider.
 
ROOT GUI Window base class.
 
const TGWindow * fParent
Parent window.
 
@ kEditDisableHeight
window height cannot be edited
 
@ kEditDisableWidth
window width cannot be edited
 
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.
 
static TImage * Create()
Create an image.
 
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
 
const char * Data() const
 
EGEventType fType
of event (see EGEventType)
 
Int_t fY
pointer x, y coordinates in event window
 
UInt_t fCode
key or button code