ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
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 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
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
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.
virtual ~TGHSlider()
Delete a horizontal slider widget.
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.
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 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)
Concrete class for vertical slider.
void Resize(TGDimension size) override
Resize the frame.
virtual ~TGVSlider()
Delete vertical slider widget.
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical slider.
void DoRedraw() override
Redraw 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
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;
ROOT GUI Window base class.
virtual void MapSubwindows()
map sub windows
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.