library: libGui
#include "TGIcon.h"

TGIcon


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

class TGIcon : public TGFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGIcon
<-
TGMdiTitleIcon

    protected:
TGIcon(const TGIcon& p) virtual void DoRedraw() TGIcon& operator=(const TGIcon&) public:
TGIcon(const TGWindow* p, const TGPicture* pic, UInt_t w, UInt_t h, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()) TGIcon(const TGWindow* p = 0, const char* image = "0") virtual ~TGIcon() virtual void ChangeBackgroundColor() static TClass* Class() virtual TGDimension GetDefaultSize() const TImage* GetImage() const const TGPicture* GetPicture() const virtual TClass* IsA() const virtual void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0) virtual void Reset() virtual void Resize(UInt_t w = 0, UInt_t h = 0) virtual void Resize(TGDimension size) virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetImage(const char* img) virtual void SetImage(TImage* img) virtual void SetImagePath(const char* path) virtual void SetPicture(const TGPicture* pic) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
const TGPicture* fPic icon picture TImage* fImage image TString fPath directory of image

Class Description

                                                                      
 TGIcon                                                               
                                                                      
 This class handles GUI icons.                                        
                                                                      

TGIcon(const TGWindow *p, const char *image)
 Create icon.
TGIcon(const TGIcon &p)
 Copy constructor
TGIcon& operator=(const TGIcon &p)
assignment operator
~TGIcon()
 Delete icon and free picture.
void SetPicture(const TGPicture *pic)
 Set icon picture.
void SetImage(const char *img)
 Set icon image.
void SetImage(TImage *img)
 Change icon image.
TGDimension GetDefaultSize()
 Return size of icon.
void DoRedraw()
 Redraw picture.
void Resize(UInt_t w, UInt_t h)
 Resize.
void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Move icon to (x,y) and resize it to (w,h).
void Reset()
 Reset icon to original image. It can be used only via context menu.
void SetImagePath(const char *path)
 Set directory where image is located
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save an icon widget as a C++ statement(s) on output stream out.
TGIcon(const TGIcon &p)
void Resize(UInt_t w = 0, UInt_t h = 0)
void ChangeBackgroundColor()

Author: Fons Rademakers 05/01/98
Last update: root/gui:$Name: $:$Id: TGIcon.cxx,v 1.19 2006/07/09 05:27:54 brun 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.