13 #ifndef ROOT_TGColorDialog 14 #define ROOT_TGColorDialog 89 {
return TGDimension((fCw + 5) * fCols, (fCh + 5) * fRows); }
129 void DrawHScursor(
Int_t onoff);
130 void DrawLcursor(
Int_t onoff);
136 void SetSliderColor();
137 void UpdateCurrentColor();
193 virtual void CloseWindow();
205 virtual void AlphaColorSelected(
ULong_t);
207 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 Emit(const char *signal)
Acitvate signal without args.
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 &)
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