120      Error(
"TGTripleVSlider", 
"slider1h.xpm not found");
 
 
  224      if (event->
fY > (
fCz - 5) && event->
fY < (
fCz + 5) &&
 
  253   } 
else if (
fMove == 2) {
 
  259   } 
else if (
fMove == 3) {
 
  275   else if (
fMove == 4) {
 
 
  393      Error(
"TGTripleVSlider", 
"slider1v.xpm not found");
 
 
  497      if (event->
fX > (
fCz - 5) && event->
fX < (
fCz + 5) &&
 
  526   } 
else if (
fMove == 2) {
 
  532   } 
else if (
fMove == 3) {
 
  548   else if (
fMove == 4) {
 
 
  662   out << 
"   TGTripleHSlider *" << 
GetName() << 
" = new TGTripleHSlider(" << 
fParent->GetName() << 
"," << 
GetWidth()
 
  666         out << 
",kTRUE,kTRUE";
 
  668         out << 
",kFALSE,kTRUE";
 
  670      out << 
",kTRUE,kFALSE";
 
  672      out << 
",kFALSE,kFALSE";
 
  676         out << 
",kFALSE,kTRUE);\n";
 
  678         out << 
",kFALSE,kFALSE);\n";
 
  685      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");\n";
 
  694      out << 
"   " << 
GetName() << 
"->SetScale(" << 
fScale << 
");\n";
 
  696   out << 
"   " << 
GetName() << 
"->SetPointerPosition(" << 
fSCz << 
");\n";
 
 
  706   out << 
"   TGTripleVSlider *" << 
GetName() << 
" = new TGTripleVSlider(" << 
fParent->GetName() << 
"," << 
GetHeight()
 
  710         out << 
",kTRUE,kTRUE";
 
  712         out << 
",kFALSE,kTRUE";
 
  714      out << 
",kTRUE,kFALSE";
 
  716      out << 
",kFALSE,kFALSE";
 
  720         out << 
",kFALSE,kTRUE);\n";
 
  722         out << 
",kFALSE,kFALSE);\n";
 
  729      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");\n";
 
  738      out << 
"   " << 
GetName() << 
"->SetScale(" << 
fScale << 
");\n";
 
  740   out << 
"   " << 
GetName() << 
"->SetPointerPosition(" << 
fSCz << 
");\n";
 
 
const Mask_t kButtonPressMask
 
const Mask_t kPointerMotionMask
 
const Mask_t kStructureNotifyMask
 
const Mask_t kButtonReleaseMask
 
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 on
 
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
 
R__EXTERN TSystem * gSystem
 
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.
 
void FreePicture(const TGPicture *pic)
Free picture resource.
 
Dragging the slider will generate the event:
 
void DoRedraw() override
Redraw horizontal slider widget.
 
void ChangeCursor(Event_t *event)
Change the cursor shape depending on the slider area.
 
virtual Float_t GetMaxPosition() const
 
Double_t fSmin
logical position of min value of Slider
 
Double_t fPressSmax
logical max position at button press event
 
virtual void PositionChanged()
 
Double_t fSmax
logical position of max value of Slider
 
Double_t fVmax
logical upper limit of slider
 
Int_t fScale
tick mark scale
 
Double_t fVmin
logical lower limit of slider
 
Int_t fMove
1: move min value 2: move max value 3: move min and max value 0: don't move any value
 
virtual Float_t GetMinPosition() const
 
Bool_t fReversedScale
reverse which end is min and max
 
Double_t fPressSmin
logical min position at button press event
 
Bool_t fMarkEnds
lines marking where stretch zones begin
 
Int_t fPressPoint
mouse position at button press event
 
TString GetSString() const
returns scaling type as string
 
Dragging the slider will generate the event:
 
void DoRedraw() override
Redraw vertical slider widget.
 
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
 
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
 
UInt_t fHeight
frame height
 
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.
 
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
 
static const TGGC & GetBckgndGC()
Get background color graphics context.
 
TGClient * fClient
Connection to display server.
 
Handle_t fId
X11/Win32 Window identifier.
 
TripleSlider inherit from DoubleSlider widgets and allow easy selection of a min, max and pointer val...
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
 
Bool_t fConstrained
kTRUE if pointer is constrained to slider edges
 
Int_t fCz
horizontal pointer position in pixel coordinates
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal slider widget.
 
const TGPicture * fPointerPic
picture to draw pointer
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in horizontal slide widget.
 
Double_t fSCz
vertical pointer position
 
virtual void PointerPositionChanged()
 
~TGTripleHSlider() override
Delete a horizontal slider widget.
 
Bool_t fRelative
kTRUE if pointer position is relative to slider
 
virtual Float_t GetPointerPosition() const
 
void DoRedraw() override
Redraw horizontal slider widget.
 
virtual void DrawPointer()
Draw slider pointer.
 
virtual void SetPointerPos(Int_t z, Int_t opt=0)
Set slider pointer position in pixel value.
 
virtual void SetPointerPosition(Double_t pos)
Set pointer position in scaled (real) value.
 
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
 
Bool_t HandleConfigureNotify(Event_t *event) override
Handles resize events for this widget.
 
TGTripleHSlider(const TGWindow *p=nullptr, UInt_t w=1, UInt_t type=1, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground(), Bool_t reversed=kFALSE, Bool_t mark_ends=kFALSE, Bool_t constrained=kTRUE, Bool_t relative=kFALSE)
Create horizontal slider widget.
 
TripleSlider inherit from DoubleSlider widgets and allow easy selection of a min, max and pointer val...
 
virtual void SetPointerPos(Int_t z, Int_t opt=0)
Set slider pointer position in pixel value.
 
virtual void SetPointerPosition(Double_t pos)
Set pointer position in scaled (real) value.
 
Double_t fSCz
vertical pointer position
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical slider.
 
~TGTripleVSlider() override
Delete vertical slider widget.
 
Int_t fCz
vertical pointer position in pixel coordinates
 
virtual void DrawPointer()
Draw slider pointer.
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
 
virtual void PointerPositionChanged()
 
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
 
Bool_t fRelative
kTRUE if pointer position is relative to slider
 
Bool_t HandleConfigureNotify(Event_t *event) override
Handles resize events for this widget.
 
void DoRedraw() override
Redraw vertical slider widget.
 
TGTripleVSlider(const TGWindow *p=nullptr, UInt_t h=1, UInt_t type=1, Int_t id=-1, UInt_t options=kVerticalFrame, Pixel_t back=GetDefaultFrameBackground(), Bool_t reversed=kFALSE, Bool_t mark_ends=kFALSE, Bool_t constrained=kTRUE, Bool_t relative=kFALSE)
Create a vertical slider widget.
 
const TGPicture * fPointerPic
picture to draw pointer
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical slider.
 
virtual Float_t GetPointerPosition() const
 
Bool_t fConstrained
kTRUE if pointer is constrained to slider edges
 
ROOT GUI Window base class.
 
const TGWindow * fParent
Parent window.
 
virtual void SetWindowName(const char *name=nullptr)
Set window name.
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
 
EGEventType fType
of event (see EGEventType)
 
Int_t fY
pointer x, y coordinates in event window
 
UInt_t fCode
key or button code