12#ifndef ROOT_TGColorSelect
13#define ROOT_TGColorSelect
143 {
Emit(
"ColorSelected(Pixel_t)", color ? color :
GetColor()); }
145 {
Emit(
"AlphaColorSelected(ULong_t)", colptr); }
Handle_t GContext_t
Graphics context handle.
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
A composite frame with 16 TGColorFrames.
void SetActive(Int_t newat)
Set active color frame.
TG16ColorSelector & operator=(const TG16ColorSelector &)=delete
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process messages for TG16ColorSelector.
TGColorFrame * fCe[16]
matrix of color cells
Int_t fActive
index of active color cell
virtual ~TG16ColorSelector()
TG16ColorSelector destructor.
const TGWindow * fMsgWindow
window handling container messages
TG16ColorSelector(const TG16ColorSelector &)=delete
A small frame with border showing a specific color.
virtual Bool_t HandleButton(Event_t *event)
Handle button events in TGColorFrame.
TGColorFrame(const TGColorFrame &)=delete
GContext_t fGrayGC
Shadow GC.
TGColorFrame & operator=(const TGColorFrame &)=delete
const TGWindow * fMsgWindow
window handling container messages
virtual void DrawBorder()
Draw TGColorFrame border.
void SetActive(Bool_t in)
Bool_t fActive
kTRUE if this color cell is active
Pixel_t fPixel
color value of this cell
Pixel_t fColor
returned color value
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
TGColorPopup * fColorPopup
color popup associated
TGColorSelect & operator=(const TGColorSelect &)=delete
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
Pixel_t fColor
color value of the button
virtual ~TGColorSelect()
TGColorSelect destructor.
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process messages for TGColorSelect.
TGColorSelect(const TGColorSelect &)=delete
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
TGPosition fPressPos
position of frame on button press event
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.
The base class for composite widgets (menu bars, list boxes, etc.).
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Encapsulate a graphics context used in the low level graphics.
virtual void SetTitle(const char *label)
ROOT GUI Window base class.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.