TGColorSelect


class description - source file - inheritance tree

class TGColorSelect : public TGCheckButton


    protected:
virtual void DoRedraw() void DrawTriangle(GContext_t gc, Int_t x, Int_t y) public:
TGColorSelect TGColorSelect(const TGWindow* p, ULong_t color, Int_t id) TGColorSelect TGColorSelect(const TGColorSelect&) virtual void ~TGColorSelect() static TClass* Class() virtual void ColorSelected() void Disable() void Enable() ULong_t GetColor() const virtual TGDimension GetDefaultSize() const virtual Bool_t HandleButton(Event_t* event) virtual TClass* IsA() const virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) void SetColor(ULong_t color) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
ULong_t fColor TGGC fDrawGC TGColorPopup* fColorPopup

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(ULong_t pixel)                                         
                                                                      


TGColorSelect(const TGWindow *p, ULong_t color, Int_t id) : TGCheckButton(p, "", id), fDrawGC(TGButton::GetDefaultGC())

~TGColorSelect()

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)

Bool_t HandleButton(Event_t *event)

void Enable()
 Set state of widget. If kTRUE=enabled, kFALSE=disabled.

void Disable()
 Set state of widget. If kTRUE=enabled, kFALSE=disabled.

void DoRedraw()

void DrawTriangle(GContext_t gc, Int_t x, Int_t y)

void SetColor(ULong_t color)
 Set color.



Inline Functions


              ULong_t GetColor() const
          TGDimension GetDefaultSize() const
                 void ColorSelected()
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGColorSelect TGColorSelect(const TGColorSelect&)


Author: Bertrand Bellenot + Fons Rademakers 22/08/02
Last update: root/gui:$Name: $:$Id: TGColorSelect.cxx,v 1.3 2003/01/28 18:31:12 rdm Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.