Revision 23839a6cb5c6ce1890674b83787f024bfdbf0c83 authored by Sergey Linev on 03 March 2015, 16:23:43 UTC, committed by Bertrand Bellenot on 04 March 2015, 08:35:14 UTC
1. Introduce central method where all kind of text drawings are handled. At this place decide which kind of rendering - plain text, simplify latex or normal MathJax is used 2. Implement correct size adjustment and alignment for all kinds of text output (with and without MathJax) 3. Support TMathText class - always MathJax will be used 4. Draw label in TPabeText 5. Avoid concurent calls of JSROOT.AssertPrerequisities Signed-off-by: Bertrand Bellenot <bertrand.bellenot@cern.ch>
1 parent 3cb3124
btmplt.cxx
/* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
// From berlich@pc66.mppmu.mpg.de Mon May 13 11:44 JST 1996
#ifdef __hpux
#include <iostream.h>
#else
#include <iostream>
using namespace std;
#endif
template <class tp>
void printstatement(tp stm)
{
cout << "Argument is : " << stm << endl;
}
class test
{
public:
test(void){printstatement("This is a very long string");}
};
template <class tp2>
class test2
{
public:
test2(tp2);
};
template <class tp2>
test2<tp2>::test2(tp2 stm)
{
cout << "Argument is : " << stm << endl;
}
int main(void) {
test *Test=new test;
delete Test;
test2<const char*>* Test2=new test2<const char*>("This is another long string");
delete Test2;
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...