library: libGui
#include "TGColorDialog.h"

TGColorDialog


class description - source file - inheritance tree (.pdf)

class TGColorDialog : public TGTransientFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGMainFrame
<-
TGTransientFrame
<-
TGColorDialog

    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) TGColorDialog(const TGColorDialog&) virtual ~TGColorDialog() static TClass* Class() virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Pixel_t fCurrentColor currently selected 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

Class Description

                                                                      
 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.              
                                                                      


TGColorDialog(const TGWindow *p, const TGWindow *m, Int_t *retc, ULong_t *color) : TGTransientFrame(p, m, 200, 150, kHorizontalFrame)
 Color selection dialog constructor.
 The TGColorDialog presents a full featured color selection dialog.
 It uses 2 TGColorPalette's and the TGColorPick widgets.

~TGColorDialog()
 TGColorDialog destructor.

void CloseWindow()
 Called when window is closed via window manager.

void UpdateRGBentries(ULong_t *c)
 Update RGB text entries with RGB values of color c.

void UpdateHLSentries(ULong_t *c)
 Update HLS text entries with HLS values of color c.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t /*parm2*/)
 Process messages for the color selection dialog.



Inline Functions


              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGColorDialog TGColorDialog(const TGColorDialog&)


Author: Bertrand Bellenot + Fons Rademakers 22/08/02
Last update: root/gui:$Name: $:$Id: TGColorDialog.cxx,v 1.20 2005/11/21 00:25:37 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.