ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
TGFrame(const TGFrame &)=delete
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
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.
void Resize(TGDimension size) override
Resize the frame.
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
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.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
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 Int_t GetPosition() const
virtual void SetPosition(Int_t pos)
Set slider position.
Bool_t HandleMotion(Event_t *event) override=0
const TGPicture * fSliderPic
picture to draw slider
virtual Int_t GetMinPosition() const
virtual void SetRange(Int_t min, Int_t max)
Set slider range.
Int_t fVmin
logical lower limit of slider
Bool_t HandleConfigureNotify(Event_t *event) override=0
This event is generated when the frame is resized.
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
Bool_t HandleButton(Event_t *event) override=0
Int_t fScale
tick mark scale
void MapSubwindows() override
map sub windows
TGSlider & operator=(const TGSlider &)=delete
virtual void ChangeSliderPic(const char *name)
Change slider picture.
virtual void SetEnabled(Bool_t flag=kTRUE)
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.
virtual void SetScale(Int_t scale)
void Resize(TGDimension size) override
Resize the frame.
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.
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
map sub windows
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.