library: libGui #include "TGColorDialog.h" |
TGColorDialog
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void CloseWindow()
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
void UpdateHLSentries(Pixel_t* c)
void UpdateRGBentries(Pixel_t* c)
public:
TGColorDialog(const TGWindow* p = 0, const TGWindow* m = 0, Int_t* retc = 0, Pixel_t* color = 0, Bool_t wait = kTRUE)
TGColorDialog(const TGColorDialog&)
virtual ~TGColorDialog()
static TClass* Class()
virtual void ColorSelected(Pixel_t)
TGColorPalette* GetCustomPalette() const
TGColorPalette* GetPalette() const
virtual TClass* IsA() const
virtual void SetCurrentColor(Pixel_t col)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Pixel_t fCurrentColor currently selected color
Pixel_t fInitColor initially set color
Int_t* fRetc return code (kMBOk, kMBCancel)
Pixel_t* fRetColor return color
TGColorPalette* fPalette color palette
TGColorPalette* fCpalette color palette
TGColorPick* fColors color pick widget
TGFrame* fSample color sample frame
TGTextEntry* fRte
TGTextEntry* fGte
TGTextEntry* fBte
TGTextEntry* fHte
TGTextEntry* fLte
TGTextEntry* fSte RGB/HLS text entries
TGTextBuffer* fRtb
TGTextBuffer* fGtb
TGTextBuffer* fBtb
TGTextBuffer* fHtb
TGTextBuffer* fLtb
TGTextBuffer* fStb RGB/HLS associated buffers
Bool_t fWaitFor call WaitFor method in constructor
TGColorPalette, TGColorPick and TGColorDialog.
The TGColorPalette is a widget showing an matrix of color cells. The
colors can be set and selected.
The TGColorPick is a widget which allows a color to be picked from
HLS space. It consists of two elements: a color map window from
where the user can select the hue and saturation level of a color,
and a slider to select color's lightness.
Selecting a color in these two widgets will generate the event:
kC_COLORSEL, kCOL_CLICK, widget id, 0.
and the signal:
ColorSelected(Pixel_t color)
The TGColorDialog presents a full featured color selection dialog.
It uses 2 TGColorPalette's and the TGColorPick widgets.
void CloseWindow()
Called when window is closed via window manager.
Author: Bertrand Bellenot + Fons Rademakers 22/08/02
Last update: root/gui:$Name: $:$Id: TGColorDialog.cxx,v 1.23 2006/07/11 09:05:01 rdm Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.