library: libGui
#include "TGButton.h"

TGPictureButton


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

class TGPictureButton : public TGButton

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
TGWidget
<-
TGButton
<-
TGPictureButton
<-
TGImageMap

    protected:
virtual void CreateDisabledPicture() virtual void DoRedraw() public:
TGPictureButton(const TGWindow* p, const TGPicture* pic, Int_t id = -1, GContext_t norm = GetDefaultGC()(), UInt_t option = kRaisedFrame|kDoubleBorder) TGPictureButton(const TGWindow* p, const TGPicture* pic, const char* cmd, Int_t id = -1, GContext_t norm = GetDefaultGC()(), UInt_t option = kRaisedFrame|kDoubleBorder) TGPictureButton(const TGWindow* p = 0, const char* pic = "0", Int_t id = -1, GContext_t norm = GetDefaultGC()(), UInt_t option = kRaisedFrame|kDoubleBorder) TGPictureButton(const TGPictureButton&) virtual ~TGPictureButton() static TClass* Class() const TGPicture* GetPicture() const virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetDisabledPicture(const TGPicture* pic) virtual void SetPicture(const TGPicture* new_pic) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
const TGPicture* fPic picture to be put in button const TGPicture* fPicD picture shown when button disabled Bool_t fOwnDisabledPic kTRUE if disabled picture was autogenerated

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                                                             
                                                                      


TGPictureButton(const TGWindow *p, const TGPicture *pic, Int_t id, GContext_t norm, UInt_t option) : TGButton(p, id, norm, option)
 Create a picture button widget. The picture is not adopted and must
 later be freed by the user once the picture button is deleted (a single
 picture reference might be used by other buttons).

TGPictureButton(const TGWindow *p, const TGPicture *pic, const char *cmd, Int_t id, GContext_t norm, UInt_t option) : TGButton(p, id, norm, option)
 Create a picture button widget and set action command. The picture is
 not adopted and must later be freed by the user once the picture button
 is deleted (a single picture reference might be used by other
 buttons).

TGPictureButton(const TGWindow *p, const char *pic, Int_t id, GContext_t norm, UInt_t option) : TGButton(p, id, norm, option)
 Create a picture button. Where pic is the file name of the picture.

~TGPictureButton()
 dtor

void SetPicture(const TGPicture *new_pic)
 Change a picture in a picture button. The picture is not adopted and
 must later be freed by the user once the picture button is deleted
 (a single picture reference might be used by other buttons).

void DoRedraw()
 Redraw picture button.

void CreateDisabledPicture()
 creates disabled picture

void SetDisabledPicture(const TGPicture *pic)
 changes disabled picture

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



Inline Functions


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


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.