12#ifndef ROOT_TGColorSelect
13#define ROOT_TGColorSelect
166 {
Emit(
"ColorSelected(Pixel_t)", color ? color :
GetColor()); }
168 {
Emit(
"AlphaColorSelected(ULong_t)", colptr); }
#define ClassDef(name, id)
TG16ColorSelector & operator=(const TG16ColorSelector &)
TG16ColorSelector(const TG16ColorSelector &)
void SetActive(Int_t newat)
Set active color frame.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for TG16ColorSelector.
virtual ~TG16ColorSelector()
TG16ColorSelector destructor.
const TGWindow * fMsgWindow
virtual Bool_t HandleButton(Event_t *event)
Handle button events in TGColorFrame.
TGColorFrame & operator=(const TGColorFrame &)
TGColorFrame(const TGColorFrame &)
const TGWindow * fMsgWindow
virtual void DrawBorder()
Draw TGColorFrame border.
void SetActive(Bool_t in)
TGColorPopup * fColorPopup
TGColorSelect(const TGColorSelect &)
virtual void AlphaColorSelected(ULong_t colptr=0)
void SetEnabled(Bool_t e=kTRUE)
Set enabled or disabled state of button.
void SetDown(Bool_t on=kTRUE, Bool_t emit=kFALSE)
virtual TGDimension GetDefaultSize() const
default size
TGColorSelect & operator=(const TGColorSelect &)
virtual ~TGColorSelect()
TGColorSelect destructor.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for TGColorSelect.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
void Enable(Bool_t on=kTRUE)
Set state of widget as enabled.
virtual void ColorSelected(Pixel_t color=0)
void Rename(const char *title)
void SetAlphaColor(ULong_t color, Bool_t emit=kTRUE)
Set color.
void Disable()
Set state of widget as disabled.
virtual Bool_t HandleButton(Event_t *event)
Handle button events for TGColorSelect.
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
Draw triangle (arrow) on which user can click to open TGColorPopup.
virtual void DoRedraw()
Redraw TGColorSelect widget.
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save a color select widget as a C++ statement(s) on output stream out.
virtual void SetTitle(const char *label)
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.