13 #ifndef ROOT_TGColorDialog 14 #define ROOT_TGColorDialog 85 {
return TGDimension((fCw + 5) * fCols, (fCh + 5) * fRows); }
125 void DrawHScursor(
Int_t onoff);
126 void DrawLcursor(
Int_t onoff);
132 void SetSliderColor();
133 void UpdateCurrentColor();
186 void UpdateRGBentries(
Pixel_t *c);
187 void UpdateHLSentries(
Pixel_t *c);
189 virtual void CloseWindow();
201 virtual void AlphaColorSelected(
ULong_t);
203 virtual void SetCurrentColor(
Pixel_t col);
TColorWheel * fColorWheel
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual void ColorSelected(Pixel_t col=0)
virtual Bool_t HandleButton(Event_t *event)
Handle button events in color palette.
TGColorPalette * fCpalette
TRootEmbeddedCanvas * fEcanvas
virtual ~TGColorPalette()
Destructor.
virtual void ColorSelected(Pixel_t col=0)
virtual void LostFocus()
Remove keyboard input.
#define ClassDef(name, id)
TGColorPalette * fPalette
void DrawFocusHilite(Int_t onoff)
Draw a highlight rectangle around cell obtaining focus.
void SetColor(Int_t ix, Pixel_t color)
Set color at index ix of color entries.
TGColorPalette(const TGColorPalette &)
Pixel_t GetCurrentColor() const
Return currently selected color value.
TGColorPalette * GetPalette() const
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events in color palette.
virtual void GotFocus()
Add keyboard input.
void SetColors(Pixel_t colors[])
Set color entries in color samples.
TGColorPalette * GetCustomPalette() const
The color creation and management class.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void DoRedraw()
Redraw color palette.
Rectangle_t fColormapRect
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
void SetCurrentCellColor(Pixel_t color)
Set current cell color.
void SetCellSize(Int_t w=20, Int_t h=17)
Set color cell size.
Pixel_t GetCurrentColor() const
TGColorPalette & operator=(const TGColorPalette &)
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events in color palette.
Draw the ROOT Color Wheel.
Pixel_t GetColorByIndex(Int_t ix) const