GuiPicButton Class Reference

#include <GuiButton.h>

Inheritance diagram for GuiPicButton:
GuiButtonBase GuiBase

List of all members.

Public Member Functions

 GuiPicButton (const TGWindow &p, const char *pic_name)
virtual ~GuiPicButton ()
virtual TGDimension GetDefaultSize () const
virtual UInt_t GetDefaultWidth () const
virtual UInt_t GetDefaultHeight () const

Protected Member Functions

void Pressed ()
void Released ()
void Clicked ()

Detailed Description

Definition at line 33 of file GuiButton.h.


Constructor & Destructor Documentation

GuiPicButton::GuiPicButton ( const TGWindow &  p,
const char *  pic_name 
) [inline]

Definition at line 36 of file GuiButton.h.

References GuiBase::SetLayoutHints().

00037         : TGPictureButton(&p,gClient->GetPicture(pic_name)) 
00038         { SetLayoutHints(0); }

virtual GuiPicButton::~GuiPicButton (  )  [inline, virtual]

Definition at line 39 of file GuiButton.h.

00039 { }


Member Function Documentation

void GuiPicButton::Clicked (  )  [inline, protected]

Definition at line 57 of file GuiButton.h.

References GuiButtonBase::clicked.

00057 { this->TGButton::Clicked(); clicked(); }

virtual UInt_t GuiPicButton::GetDefaultHeight (  )  const [inline, virtual]

Definition at line 50 of file GuiButton.h.

References GetDefaultSize().

00050 { return GetDefaultSize().fHeight;}

virtual TGDimension GuiPicButton::GetDefaultSize (  )  const [inline, virtual]

Definition at line 42 of file GuiButton.h.

Referenced by GetDefaultHeight(), and GetDefaultWidth().

00042                                                        { 
00043         UInt_t w = (fPic) ? fPic->GetWidth() : fWidth;
00044         UInt_t h = (fPic) ? fPic->GetHeight() : fHeight;
00045         //cerr << "GuiPicButton: " << w << " x " << h << endl;
00046         return TGDimension(w,h);
00047     }

virtual UInt_t GuiPicButton::GetDefaultWidth (  )  const [inline, virtual]

Definition at line 49 of file GuiButton.h.

References GetDefaultSize().

00049 { return GetDefaultSize().fWidth;}

void GuiPicButton::Pressed (  )  [inline, protected]

Definition at line 55 of file GuiButton.h.

References GuiButtonBase::pressed.

00055 { this->TGButton::Pressed(); pressed(); }

void GuiPicButton::Released (  )  [inline, protected]

Definition at line 56 of file GuiButton.h.

References GuiButtonBase::released.

00056 { this->TGButton::Released(); released(); }


The documentation for this class was generated from the following file:

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1