Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 ~ROnFrameDrawable() override = 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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Template class to access single value from drawable or other attributes.
Base class for drawable entities: objects that can be painted on a RPad.
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...