library: libGui #include "TGColorSelect.h"

# TGColorFrame

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

## class TGColorFrame : public TGFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGColorFrame`

        public:

                          TGColorFrame(const TGWindow* p = 0, Pixel_t c = 0, Int_t n = 1)
                          TGColorFrame(const TGColorFrame&)
                  virtual ~TGColorFrame()
           static TClass* Class()
             virtual void DrawBorder()
                  Pixel_t GetColor() const
           virtual Bool_t HandleButton(Event_t* event)
          virtual TClass* IsA() const
                     void SetActive(Bool_t in)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          const TGWindow* fMsgWindow
                  Pixel_t fPixel
                   Bool_t fActive
               GContext_t fGrayGC
                  Pixel_t fColor

## Class Description

     TGColorFrame, TG16ColorSelector, TGColorPopup and TGColorSelect.

     The TGColorFrame is a small frame with border showing a specific
     color.

     The TG16ColorSelector is a composite frame with 16 TGColorFrames.

     The TGColorPopup is a popup containing a TG16ColorSelector and a
     "More..." button which popups up a TGColorDialog allowing custom
     color selection.

     The TGColorSelect widget is like a checkbutton but instead of the
     check mark there is color area with a little down arrow. When
     clicked on the arrow the TGColorPopup pops up.

     Selecting a color in this widget will generate the event:
     kC_COLORSEL, kCOL_SELCHANGED, widget id, pixel.
     and the signal:
     ColorSelected(Pixel_t color)

TGColorFrame(const TGWindow *p, ULong_t color, Int_t /*n*/) : TGFrame(p, 20, 20, kOwnBackground, color)

Bool_t HandleButton(Event_t *event)

void DrawBorder()

### Inline Functions

                    void ~TGColorFrame()
                    void SetActive(Bool_t in)
                 Pixel_t GetColor() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
            TGColorFrame TGColorFrame(const TGColorFrame&)

Author: Bertrand Bellenot + Fons Rademakers 22/08/02
Last update: root/gui:$Name: $:$Id: TGColorSelect.cxx,v 1.9 2004/10/18 12:32:12 brun Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *