12#ifndef ROOT_TGLLockable_H
13#define ROOT_TGLLockable_H
56 virtual const char*
LockIdStr()
const {
return "<unknown>"; }
#define ClassDef(name, id)
TUnlocker(const TGLLockable *l)
TUnlocker & operator=(const TUnlocker &)=delete
const TGLLockable * fLockable
TUnlocker(const TUnlocker &)=delete
Simple locking interface used by viewer and scene.
TGLLockable(const TGLLockable &)=delete
Bool_t TakeLock(ELock lock) const
Lock the object in mode 'lock'.
ELock CurrentLock() const
Bool_t ReleaseLock(ELock lock) const
Release current lock, make sure it the same as the 'lock' argument.
static const char * LockName(ELock lock)
Return name-string for given lock-type.
TGLLockable & operator=(const TGLLockable &)=delete
virtual const char * LockIdStr() const
static Bool_t LockValid(ELock lock)
Test if lock is a valid type to take/release.
Bool_t IsDrawOrSelectLock() const