TGHSlider Class Reference

#include <TGSlider.h>

Inheritance diagram for TGHSlider:

TGSlider TGSlider TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame TGWidget TGFrame List of all members.

Public Member Functions

 TGHSlider (const TGWindow *p=0, UInt_t w=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGHSlider ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleConfigureNotify (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual TGDimension GetDefaultSize () const
virtual void Resize (UInt_t w, UInt_t h)
virtual void Resize (TGDimension size)
virtual void SavePrimitive (ostream &out, Option_t *option="")
 TGHSlider (const TGWindow *p=0, UInt_t w=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGHSlider ()
virtual Bool_t HandleButton (Event_t *event)
virtual Bool_t HandleConfigureNotify (Event_t *event)
virtual Bool_t HandleMotion (Event_t *event)
virtual TGDimension GetDefaultSize () const
virtual void Resize (UInt_t w, UInt_t h)
virtual void Resize (TGDimension size)
virtual void SavePrimitive (ostream &out, Option_t *option="")

Protected Member Functions

virtual void DoRedraw ()
virtual void DoRedraw ()

Protected Attributes

Int_t fXp

Detailed Description

Definition at line 152 of file TGSlider.h.


Constructor & Destructor Documentation

TGHSlider::TGHSlider ( const TGWindow p = 0,
UInt_t  w = 40,
UInt_t  type = kSlider1|kScaleBoth,
Int_t  id = -1,
UInt_t  options = kHorizontalFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

TGHSlider::~TGHSlider (  )  [virtual]

Definition at line 325 of file TGSlider.cxx.

References TGObject::fClient, TGSlider::fDisabledPic, TGClient::FreePicture(), and TGSlider::fSliderPic.

TGHSlider::TGHSlider ( const TGWindow p = 0,
UInt_t  w = 40,
UInt_t  type = kSlider1|kScaleBoth,
Int_t  id = -1,
UInt_t  options = kHorizontalFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

virtual TGHSlider::~TGHSlider (  )  [virtual]


Member Function Documentation

void TGHSlider::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

Definition at line 334 of file TGSlider.cxx.

References TGSlider::CreateDisabledPicture(), TGPicture::Draw(), TGSlider::fDisabledPic, TGFrame::fHeight, TGObject::fId, TGSlider::fPos, TGSlider::fRelPos, TGSlider::fScale, TGSlider::fSliderPic, TGSlider::fType, TGSlider::fVmax, TGSlider::fVmin, TGFrame::fWidth, TGFrame::GetBckgndGC(), TGFrame::GetBlackGC(), TGFrame::GetHilightGC(), TGFrame::GetShadowGC(), gVirtualX, i, int, TGWidget::IsEnabled(), kScaleBoth, kScaleNo, kSlider2, and x.

Bool_t TGHSlider::HandleButton ( Event_t event  )  [virtual]

Implements TGSlider.

Definition at line 376 of file TGSlider.cxx.

References TGObject::fClient, Event_t::fCode, TGWidget::fCommand, TGSlider::fDragging, TGFrame::fHeight, TGObject::fId, TGWidget::fMsgWindow, TGSlider::fPos, TGSlider::fRelPos, Event_t::fType, TGSlider::fVmax, TGSlider::fVmin, TGWidget::fWidgetId, TGFrame::fWidth, Event_t::fX, fXp, Event_t::fY, gVirtualX, TGWidget::IsEnabled(), kButton1, kButton2, kButtonPress, kButtonPressMask, kButtonReleaseMask, kC_HSLIDER, kFALSE, kNone, kPointerMotionMask, kSL_POS, kSL_PRESS, kSL_RELEASE, kTRUE, m, MK_MSG(), TGClient::NeedRedraw(), TGSlider::PositionChanged(), TGSlider::Pressed(), TGClient::ProcessLine(), TGSlider::Released(), and TGFrame::SendMessage().

Bool_t TGHSlider::HandleConfigureNotify ( Event_t event  )  [virtual]

Implements TGSlider.

Definition at line 455 of file TGSlider.cxx.

References TGObject::fClient, TGFrame::HandleConfigureNotify(), kTRUE, and TGClient::NeedRedraw().

Bool_t TGHSlider::HandleMotion ( Event_t event  )  [virtual]

Implements TGSlider.

Definition at line 431 of file TGSlider.cxx.

References TGObject::fClient, TGWidget::fCommand, TGSlider::fDragging, TGWidget::fMsgWindow, TGSlider::fPos, TGSlider::fVmax, TGSlider::fVmin, TGWidget::fWidgetId, TGFrame::fWidth, Event_t::fX, fXp, kC_HSLIDER, kSL_POS, kTRUE, MK_MSG(), TGClient::NeedRedraw(), TGSlider::PositionChanged(), TGClient::ProcessLine(), and TGFrame::SendMessage().

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

Reimplemented from TGFrame.

Definition at line 169 of file TGSlider.h.

References TGFrame::fWidth, and kSliderHeight.

virtual void TGHSlider::Resize ( UInt_t  w,
UInt_t  h 
) [inline, virtual]

Reimplemented from TGFrame.

Definition at line 171 of file TGSlider.h.

References TGFrame::fWidth, and TGFrame::Resize().

Referenced by TH1Editor::CreateBinTab(), TH2Editor::CreateBinTab(), and Resize().

virtual void TGHSlider::Resize ( TGDimension  size  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 172 of file TGSlider.h.

References Resize(), and size.

void TGHSlider::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGFrame.

Definition at line 497 of file TGSlider.cxx.

References TGFrame::fBackground, TGWindow::fParent, TGSlider::fPos, TGSlider::fScale, TGSlider::fVmax, TGSlider::fVmin, TGFrame::fWidth, TGFrame::GetDefaultFrameBackground(), TGWindow::GetName(), TGFrame::GetOptions(), TGFrame::GetOptionString(), TGSlider::GetPosition(), TGSlider::GetTypeString(), TGFrame::GetWidth(), TGWidget::IsEnabled(), TGFrame::SaveUserColor(), and TGWidget::WidgetId().

virtual void TGHSlider::DoRedraw (  )  [protected, virtual]

Reimplemented from TGFrame.

virtual Bool_t TGHSlider::HandleButton ( Event_t event  )  [virtual]

Implements TGSlider.

virtual Bool_t TGHSlider::HandleConfigureNotify ( Event_t event  )  [virtual]

Implements TGSlider.

virtual Bool_t TGHSlider::HandleMotion ( Event_t event  )  [virtual]

Implements TGSlider.

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

Reimplemented from TGFrame.

Definition at line 169 of file TGSlider.h.

References TGFrame::fWidth, and kSliderHeight.

virtual void TGHSlider::Resize ( UInt_t  w,
UInt_t  h 
) [inline, virtual]

Reimplemented from TGFrame.

Definition at line 171 of file TGSlider.h.

References TGFrame::fWidth, and TGFrame::Resize().

virtual void TGHSlider::Resize ( TGDimension  size  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 172 of file TGSlider.h.

References Resize(), and size.

virtual void TGHSlider::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TGFrame.


Member Data Documentation

Int_t TGHSlider::fXp [protected]

Definition at line 155 of file TGSlider.h.

Referenced by HandleButton(), and HandleMotion().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1