library: libGui
#include "TGColorSelect.h"

TGColorSelect


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

class TGColorSelect : public TGCheckButton

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
TGWidget
<-
TGButton
<-
TGTextButton
<-
TGCheckButton
<-
TGColorSelect

    protected:
TGColorSelect(const TGColorSelect&) virtual void DoRedraw() void DrawTriangle(GContext_t gc, Int_t x, Int_t y) TGColorSelect& operator=(const TGColorSelect&) public:
TGColorSelect(const TGWindow* p = 0, Pixel_t color = 0, Int_t id = -1) virtual ~TGColorSelect() static TClass* Class() virtual void ColorSelected(Pixel_t color = 0) void Disable() void Enable(Bool_t on = kTRUE) Pixel_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 Rename(const char* title) virtual void SavePrimitive(ostream& out, Option_t* = "") void SetColor(Pixel_t color, Bool_t emit = kTRUE) virtual void SetDown(Bool_t on = kTRUE, Bool_t emit = kFALSE) virtual void SetEnabled(Bool_t e = kTRUE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Pixel_t fColor color value of the button TGGC fDrawGC drawing GC TGColorPopup* fColorPopup color popup associated TGPosition fPressPos psotion of frame on button press event

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)                                         
                                                                      

TGColorSelect(const TGWindow *p, ULong_t color, Int_t id)
 TGColorSelect constructor.
 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.
TGColorSelect(const TGColorSelect& cs)
copy constructor
TGColorSelect& operator=(const TGColorSelect& cs)
assignment operator
~TGColorSelect()
 TGColorSelect destructor.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
 Process messages for TGColorSelect.
Bool_t HandleButton(Event_t *event)
 Handle button events for TGColorSelect.
void Enable(Bool_t on)
 Set state of widget as enabled.
void Disable()
 Set state of widget as disabled.
void DoRedraw()
 Redraw TGColorSelect widget.
void DrawTriangle(GContext_t gc, Int_t x, Int_t y)
 Draw triangle (arrow) on which user can click to open TGColorPopup.
void SetColor(ULong_t color, Bool_t emit)
 Set color.
void SavePrimitive(ostream &out, Option_t * /*= ""*/)
 Save a color select widget as a C++ statement(s) on output stream out
Pixel_t GetColor()
void SetDown(Bool_t on = kTRUE, Bool_t emit = kFALSE)
 dummy methods just to remove from context menu
void Rename(const char *title)
void SetEnabled(Bool_t e = kTRUE)
TGDimension GetDefaultSize()
void ColorSelected(Pixel_t color = 0)

Author: Bertrand Bellenot + Fons Rademakers 22/08/02
Last update: root/gui:$Name: $:$Id: TGColorSelect.cxx,v 1.22 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.