Logo ROOT   6.14/05
Reference Guide
TPadPos.cxx
Go to the documentation of this file.
1 /// \file TPadPos.cxx
2 /// \ingroup Gpad ROOT7
3 /// \author Axel Naumann <axel@cern.ch>
4 /// \date 2018-02-08
5 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6 /// is welcome!
7 
8 /*************************************************************************
9  * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
10  * All rights reserved. *
11  * *
12  * For the licensing terms see $ROOTSYS/LICENSE. *
13  * For the list of contributors see $ROOTSYS/README/CREDITS. *
14  *************************************************************************/
15 
16 #include "ROOT/TPadPos.hxx"
17 
18 #include <ROOT/TLogger.hxx>
19 
20 ////////////////////////////////////////////////////////////////////////////////
21 /// Initialize a TPadPos from a style string.
22 /// Syntax: X, Y
23 /// where X and Y are a series of numbers separated by "+", where each number is
24 /// followed by one of `px`, `user`, `normal` to specify an extent in pixel,
25 /// user or normal coordinates. Spaces between any part is allowed.
26 /// Example: `100 px + 0.1 user, 0.5 normal` is a `TPadPos{100_px + 0.1_user, 0.5_normal}`.
27 
28 void ROOT::Experimental::InitializeAttrFromString(const std::string & /*name*/,
29  const std::string & /*attrStrVal*/, TPadPos & /*val*/)
30 {
31  // Use InitializeAttrFromString(TPadExtent)!
32  R__ERROR_HERE("Gpad") << "Not yet implemented!";
33 }
A position (horizontal and vertical) in a TPad.
Definition: TPadPos.hxx:27
void InitializeAttrFromString(const std::string &name, const std::string &attrStrVal, TPadExtent &val)
Initialize a TPadExtent from a style string.
Definition: TPadExtent.cxx:28
#define R__ERROR_HERE(GROUP)
Definition: TLogger.hxx:182