77 else Warning(
"SetRange",
"Incorrect range boundaries [%d,%d]", min, max);
81 else Warning(
"SetPosition",
"The position (%d) is out of range [%d,%d]", pos,
fVmin,
fVmax);
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
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.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Concrete class for horizontal slider.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void Resize(TGDimension size)
Resize the frame.
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual void DoRedraw()
Redraw horizontal slider widget.
virtual ~TGHSlider()
Delete a horizontal slider widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal slide widget.
Int_t fXp
horizontal slider x position in pixel coordinates
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal slider widget.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handles resize events for this widget.
TGClient * fClient
Connection to display server.
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 Int_t GetMaxPosition() const
virtual void CreateDisabledPicture()
Creates disabled picture.
virtual void ChangeSliderPic(const char *name)
virtual Int_t GetPosition() const
const TGPicture * fSliderPic
picture to draw slider
virtual void MapSubwindows()
map sub windows
virtual Int_t GetMinPosition() const
virtual Bool_t HandleButton(Event_t *event)=0
virtual void SetPosition(Int_t pos)
Int_t fVmin
logical lower limit of slider
Int_t fType
slider type bits
TString GetTypeString() const
used in SavePrimitive
TGSlider(const TGSlider &)=delete
virtual Int_t GetScale() const
Bool_t fDragging
true if in dragging mode
virtual Bool_t HandleMotion(Event_t *event)=0
virtual void SetRange(Int_t min, Int_t max)
Int_t fScale
tick mark scale
TGSlider & operator=(const TGSlider &)=delete
virtual void SetEnabled(Bool_t flag=kTRUE)
const TGPicture * fDisabledPic
picture to draw disabled slider
virtual void PositionChanged(Int_t pos)
virtual Bool_t HandleConfigureNotify(Event_t *event)=0
This event is generated when the frame is resized.
Int_t fVmax
logical upper limit of slider
virtual void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
virtual void SetScale(Int_t scale)
Concrete class for vertical slider.
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handles resize events for this widget.
virtual ~TGVSlider()
Delete vertical slider widget.
virtual void DoRedraw()
Redraw vertical slider widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
Int_t fYp
vertical slider y position in pixel coordinates
virtual void Resize(TGDimension size)
Resize the frame.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical slider.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical slider.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
ROOT GUI Window base class.
virtual void MapSubwindows()
map sub windows
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.