TGVSlider Class Reference

#include <TGSlider.h>

Inheritance diagram for TGVSlider:

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

Public Member Functions

 TGVSlider (const TGWindow *p=0, UInt_t h=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kVerticalFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGVSlider ()
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="")
 TGVSlider (const TGWindow *p=0, UInt_t h=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kVerticalFrame, Pixel_t back=GetDefaultFrameBackground())
virtual ~TGVSlider ()
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 fYp

Detailed Description

Definition at line 125 of file TGSlider.h.


Constructor & Destructor Documentation

TGVSlider::TGVSlider ( const TGWindow p = 0,
UInt_t  h = 40,
UInt_t  type = kSlider1|kScaleBoth,
Int_t  id = -1,
UInt_t  options = kVerticalFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

TGVSlider::~TGVSlider (  )  [virtual]

Definition at line 149 of file TGSlider.cxx.

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

TGVSlider::TGVSlider ( const TGWindow p = 0,
UInt_t  h = 40,
UInt_t  type = kSlider1|kScaleBoth,
Int_t  id = -1,
UInt_t  options = kVerticalFrame,
Pixel_t  back = GetDefaultFrameBackground() 
)

virtual TGVSlider::~TGVSlider (  )  [virtual]


Member Function Documentation

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

Reimplemented from TGFrame.

Definition at line 158 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 y.

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

Implements TGSlider.

Definition at line 201 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, Event_t::fY, fYp, gVirtualX, TGWidget::IsEnabled(), kButton1, kButton2, kButtonPress, kButtonPressMask, kButtonReleaseMask, kC_VSLIDER, 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 TGVSlider::HandleConfigureNotify ( Event_t event  )  [virtual]

Implements TGSlider.

Definition at line 284 of file TGSlider.cxx.

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

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

Implements TGSlider.

Definition at line 260 of file TGSlider.cxx.

References TGObject::fClient, TGWidget::fCommand, TGSlider::fDragging, TGFrame::fHeight, TGWidget::fMsgWindow, TGSlider::fPos, TGSlider::fVmax, TGSlider::fVmin, TGWidget::fWidgetId, Event_t::fY, fYp, kC_VSLIDER, kSL_POS, kTRUE, MK_MSG(), TGClient::NeedRedraw(), TGSlider::PositionChanged(), TGClient::ProcessLine(), and TGFrame::SendMessage().

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

Reimplemented from TGFrame.

Definition at line 142 of file TGSlider.h.

References TGFrame::fHeight, and kSliderWidth.

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

Reimplemented from TGFrame.

Definition at line 144 of file TGSlider.h.

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

Referenced by Resize().

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

Reimplemented from TGFrame.

Definition at line 145 of file TGSlider.h.

References Resize(), and size.

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

Reimplemented from TGFrame.

Definition at line 534 of file TGSlider.cxx.

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

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

Reimplemented from TGFrame.

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

Implements TGSlider.

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

Implements TGSlider.

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

Implements TGSlider.

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

Reimplemented from TGFrame.

Definition at line 142 of file TGSlider.h.

References TGFrame::fHeight, and kSliderWidth.

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

Reimplemented from TGFrame.

Definition at line 144 of file TGSlider.h.

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

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

Reimplemented from TGFrame.

Definition at line 145 of file TGSlider.h.

References Resize(), and size.

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

Reimplemented from TGFrame.


Member Data Documentation

Int_t TGVSlider::fYp [protected]

Definition at line 128 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:41:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1