ROOT
6.14/05
Reference Guide
graf2d
gpadv7
v7
src
TPadExtent.cxx
Go to the documentation of this file.
1
/// \file TPadExtent.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/TPadExtent.hxx
"
17
18
#include <
ROOT/TLogger.hxx
>
19
20
////////////////////////////////////////////////////////////////////////////////
21
/// Initialize a TPadExtent 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 `TPadExtent{100_px + 0.1_user, 0.5_normal}`.
27
28
void
ROOT::Experimental::InitializeAttrFromString
(
const
std::string &
/*name*/
,
const
std::string &
/*attrStrVal*/
,
29
ROOT::Experimental::TPadExtent
&
/*val*/
)
30
{
31
R__ERROR_HERE
(
"Gpad"
) <<
"Not yet implemented!"
;
32
}
33
TLogger.hxx
TPadExtent.hxx
ROOT::Experimental::TPadExtent
An extent / size (horizontal and vertical) in a TPad.
Definition:
TPadExtent.hxx:44
ROOT::Experimental::InitializeAttrFromString
void InitializeAttrFromString(const std::string &name, const std::string &attrStrVal, TPadExtent &val)
Initialize a TPadExtent from a style string.
Definition:
TPadExtent.cxx:28
R__ERROR_HERE
#define R__ERROR_HERE(GROUP)
Definition:
TLogger.hxx:182