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 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 on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
A composite frame with 16 TGColorFrames.
void SetActive(Int_t newat)
Set active color frame.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages for TG16ColorSelector.
TG16ColorSelector & operator=(const TG16ColorSelector &)=delete
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.
Bool_t HandleButton(Event_t *event) override
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
void SetActive(Bool_t in)
void DrawBorder() override
Draw TGColorFrame border.
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
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages for TGColorSelect.
TGColorSelect & operator=(const TGColorSelect &)=delete
virtual void AlphaColorSelected(ULong_t colptr=0)
void DoRedraw() override
Redraw TGColorSelect widget.
TGDimension GetDefaultSize() const override
default size
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a color select widget as a C++ statement(s) on output stream out.
Pixel_t fColor
color value of the button
virtual ~TGColorSelect()
TGColorSelect destructor.
TGColorSelect(const TGColorSelect &)=delete
void SetEnabled(Bool_t e=kTRUE) override
Set enabled or disabled state of button.
void SetDown(Bool_t on=kTRUE, Bool_t emit=kFALSE) override
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
TGPosition fPressPos
position of frame on button press event
Bool_t HandleButton(Event_t *event) override
Handle button events for TGColorSelect.
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.
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
Draw triangle (arrow) on which user can click to open TGColorPopup.
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.