Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGroupButton.h
Go to the documentation of this file.
1// @(#)root/gpad:$Id$
2// Author: Rene Brun 01/07/96
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGroupButton
13#define ROOT_TGroupButton
14
15#include "TButton.h"
16
17class TGroupButton : public TButton {
18
19private:
20 TGroupButton(const TGroupButton &) = delete;
22
23public:
25 TGroupButton(const char *groupname, const char *title, const char *method, Double_t x1, Double_t y1,Double_t x2 ,Double_t y2);
26 ~TGroupButton() override;
27 virtual void DisplayColorTable(const char *action, Double_t x0, Double_t y0, Double_t wc, Double_t hc);
28 virtual void ExecuteAction();
29 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
30 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
31 ClassDefOverride(TGroupButton,0) //A user interface button in a group of buttons.
32};
33
34#endif
35
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
A TButton object is a user interface object.
Definition TButton.h:18
A specialized TButton used in a group of Buttons.
TGroupButton(const TGroupButton &)=delete
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
TGroupButton()
GroupButton default constructor.
virtual void DisplayColorTable(const char *action, Double_t x0, Double_t y0, Double_t wc, Double_t hc)
Display Color Table in an attribute canvas.
TGroupButton & operator=(const TGroupButton &)=delete
virtual void ExecuteAction()
Execute action of this button.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
~TGroupButton() override
GroupButton default destructor.