Logo ROOT  
Reference Guide
ROnFrameDrawable.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
3 * All rights reserved. *
4 * *
5 * For the licensing terms see $ROOTSYS/LICENSE. *
6 * For the list of contributors see $ROOTSYS/README/CREDITS. *
7 *************************************************************************/
8
9#ifndef ROOT7_ROnFrameDrawable
10#define ROOT7_ROnFrameDrawable
11
12#include <ROOT/RDrawable.hxx>
13#include <ROOT/RAttrValue.hxx>
14
15namespace ROOT {
16namespace Experimental {
17
18/** \class ROnFrameDrawable
19\ingroup GpadROOT7
20\brief Base class for drawable which can be drawn on frame or on pad. Introduces "onFrame" and "clipping" attributes. If onFrame = true, one can enable clipping of such drawables.
21Dedicated for classes like RLine, RText, RBox and similar
22\author Sergey Linev <s.linev@gsi.de>
23\date 2021-06-29
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
28protected:
31
32 explicit ROnFrameDrawable(const char *type) : RDrawable(type) {}
33
34public:
35 virtual ~ROnFrameDrawable() = default;
36
37 RAttrValue<bool> onFrame{this, "onFrame", false}; ///<! is drawn on the frame or not
38 RAttrValue<bool> clipping{this, "clipping", false}; ///<! is clipping on when drawn on the frame
39};
40
41} // namespace Experimental
42} // namespace ROOT
43
44#endif
int type
Definition: TGX11.cxx:121
Template class to access single value from drawable or other attributes.
Definition: RAttrValue.hxx:26
Base class for drawable entities: objects that can be painted on a RPad.
Definition: RDrawable.hxx:108
Base class for drawable which can be drawn on frame or on pad.
RAttrValue< bool > clipping
! is clipping on when drawn on the frame
RAttrValue< bool > onFrame
! is drawn on the frame or not
ROnFrameDrawable(const ROnFrameDrawable &)=delete
ROnFrameDrawable & operator=(const ROnFrameDrawable &)=delete
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...