class TGLOverlayButton: public TGLOverlayElement, public TQObject



 GL-overaly button.


Function Members (Methods)

public:
TGLOverlayButton(TGLViewerBase* parent, const char* text, Float_t posx, Float_t posy, Float_t width, Float_t height)
virtual~TGLOverlayButton()
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
static TClass*Class()
virtual voidClicked(TGLViewerBase* viewer)SIGNAL
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidTQObject::Destroyed()SIGNAL
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual Pixel_tGetBackColor() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const char*GetText() const
virtual Pixel_tGetTextColor() const
virtual Bool_tHandle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual TClass*IsA() const
static voidTQObject::LoadRQ_OBJECT()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual Bool_tMouseEnter(TGLOvlSelectRecord& selRec)
virtual voidMouseLeave()
virtual Bool_tTGLOverlayElement::MouseStillInside(TGLOvlSelectRecord& selRec)
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual voidRender(TGLRnrCtx& rnrCtx)
virtual voidResetState()
virtual voidSetAlphaValues(Float_t norm, Float_t high)
virtual voidSetBackColor(Pixel_t col)
virtual voidSetPosition(Float_t x, Float_t y)
virtual voidSetSize(Float_t w, Float_t h)
virtual voidSetText(const char* text)
virtual voidSetTextColor(Pixel_t col)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual void*TQObject::GetSender()
virtual const char*TQObject::GetSenderClassName() const
private:
TGLOverlayButton(const TGLOverlayButton&)
TGLOverlayButton&operator=(const TGLOverlayButton&)

Data Members

protected:
Int_tfActiveIDactive item identifier
Pixel_tfBackColorbutton background color
TGLFontfFontfont used to render text
Float_tfHeightbutton height
Float_tfHighAlphabutton alpha value (transparency) in highlight state
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
Float_tfNormAlphabutton alpha value (transparency) in normal state
Float_tfPosXbutton x position
Float_tfPosYbutton y position
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
TStringfTextbutton text
Pixel_tfTextColortext color
Float_tfWidthbutton width
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLOverlayButton(TGLViewerBase* parent, const char* text, Float_t posx, Float_t posy, Float_t width, Float_t height)
 Constructor.
void Render(TGLRnrCtx& rnrCtx)
 Render the overlay elements.
void Clicked(TGLViewerBase* viewer)
 Emits "Clicked(TGLViewerBase*)" signal.
 Called when user click on the GL button.
Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec, Event_t* event)
 Handle overlay event.
 Return TRUE if event was handled.
Bool_t MouseEnter(TGLOvlSelectRecord& selRec)
 Mouse has entered overlay area.
void MouseLeave()
 Mouse has left overlay area.
TGLOverlayButton(const TGLOverlayButton& )
TGLOverlayButton& operator=(const TGLOverlayButton& )
virtual ~TGLOverlayButton()
{ }
void ResetState()
{ fActiveID = -1; }
const char * GetText()
{ return fText.Data(); }
Pixel_t GetBackColor()
{ return fBackColor; }
Pixel_t GetTextColor()
{ return fTextColor; }
void SetText(const char* text)
{ fText = text; }
void SetPosition(Float_t x, Float_t y)
{ fPosX = x; fPosY = y; }
void SetSize(Float_t w, Float_t h)
{ fWidth = w; fHeight = h; }
void SetAlphaValues(Float_t norm, Float_t high)
{ fNormAlpha = norm; fHighAlpha = high; }
void SetBackColor(Pixel_t col)
{ fBackColor = col; }
void SetTextColor(Pixel_t col)
{ fTextColor = col; }

Author: Bertrand Bellenot 2008
Last change: root/gl:$Id: TGLOverlayButton.h 26367 2008-11-21 18:08:30Z matevz $
Last generated: 2008-11-24 08:19
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

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.