library: libGui
#include "TGButton.h"

TGCheckButton


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

class TGCheckButton : public TGTextButton

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

    protected:
virtual void DoRedraw() virtual void EmitSignals(Bool_t wasUp = kTRUE) void Init() void PSetState(EButtonState state, Bool_t emit) public:
TGCheckButton(const TGWindow* p, TGHotString* s, Int_t id = -1, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t option = 0) TGCheckButton(const TGWindow* p = 0, const char* s = "0", Int_t id = -1, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t option = 0) TGCheckButton(const TGWindow* p, const char* s, const char* cmd, Int_t id = -1, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t option = 0) TGCheckButton(const TGCheckButton&) virtual ~TGCheckButton() static TClass* Class() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() const virtual TGDimension GetDefaultSize() const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleCrossing(Event_t* event) virtual Bool_t HandleKey(Event_t* event) virtual TClass* IsA() const virtual Bool_t IsDown() const virtual Bool_t IsOn() const virtual Bool_t IsToggleButton() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetState(EButtonState state, Bool_t emit = kFALSE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
EButtonState fPrevState previous check button state static const TGFont* fgDefaultFont static const TGGC* fgDefaultGC

Class Description

                                                                      
 TGButton, TGTextButton, TGPictureButton, TGCheckButton and           
 TGRadioButton                                                        
                                                                      
 This header defines all GUI button widgets.                          
                                                                      
 TGButton is a button abstract base class. It defines general button  
 behaviour.                                                           
                                                                      
 Selecting a text or picture button will generate the event:          
 kC_COMMAND, kCM_BUTTON, button id, user data.                        
                                                                      
 Selecting a check button will generate the event:                    
 kC_COMMAND, kCM_CHECKBUTTON, button id, user data.                   
                                                                      
 Selecting a radio button will generate the event:                    
 kC_COMMAND, kCM_RADIOBUTTON, button id, user data.                   
                                                                      
 If a command string has been specified (via SetCommand()) then this  
 command string will be executed via the interpreter whenever a       
 button is selected. A command string can contain the macros:         
 $MSG   -- kC_COMMAND, kCM[CHECK|RADIO]BUTTON packed message          
           (use GET_MSG() and GET_SUBMSG() to unpack)                 
 $PARM1 -- button id                                                  
 $PARM2 -- user data pointer                                          
 Before executing these macros are expanded into the respective       
 Long_t's                                                             
                                                                      


TGCheckButton(const TGWindow *p, TGHotString *s, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGTextButton(p, s, id, norm, font, option)
 Create a check button widget. The hotstring will be adopted and deleted
 by the check button.

TGCheckButton(const TGWindow *p, const char *s, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGTextButton(p, s, id, norm, font, option)
 Create a check button widget.

TGCheckButton(const TGWindow *p, const char *s, const char *cmd, Int_t id, GContext_t norm, FontStruct_t font, UInt_t option) : TGTextButton(p, s, cmd, id, norm, font, option)
 Create a check button widget.

void Init()
 Common initialization.

~TGCheckButton()
 Delete a check button.

void SetState(EButtonState state, Bool_t emit)
 Set check button state.

void EmitSignals(Bool_t /*wasUp*/)
 emit signals

void PSetState(EButtonState state, Bool_t emit)
 Set check button state.

Bool_t HandleButton(Event_t *event)
 Handle mouse button event.

Bool_t HandleCrossing(Event_t *event)
 Handle mouse crossing event.

Bool_t HandleKey(Event_t *event)
 Handle key event. This function will be called when the hotkey is hit.

void DoRedraw()
 Draw the check button widget.

FontStruct_t GetDefaultFontStruct()

const TGGC& GetDefaultGC()

void SavePrimitive(ofstream &out, Option_t *option)
 Save a check button widget as a C++ statement(s) on output stream out



Inline Functions


          TGDimension GetDefaultSize() const
               Bool_t IsToggleButton() const
               Bool_t IsOn() const
               Bool_t IsDown() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGCheckButton TGCheckButton(const TGCheckButton&)


Author: Fons Rademakers 06/01/98
Last update: root/gui:$Name: $:$Id: TGButton.cxx,v 1.59 2005/09/05 13:33:08 rdm Exp $
Copyright (C) 1995-2000, 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.