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
t1049.cxx
/* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
// t1049.cxx
#include <stdio.h>
class A{
int x,y;
public:
A(int a,int b) : x(a), y(b) { }
void disp() const { printf("x=%d y=%d\n",x,y); }
};
void fit(A* i, int j) {
int a[1]={1};
printf("fit(%d) %d ",j,a[0]);
i->disp();
}
void fit2(A* i, int j) {
printf("fit2(%d) ",j);
i->disp();
}
int main(){
A* h[3][5];
int k,m;
for(k=0;k<3;k++) for(m=0;m<5;m++) h[k][m] = new A(k,m);
for(k=0;k<3;k++) for(m=0;m<5;m++) fit(h[k][m],10);
for(k=0;k<3;k++) for(m=0;m<5;m++) fit2(h[k][m],10);
for(k=0;k<3;k++) for(m=0;m<5;m++) delete h[k][m];
return 0;
}
Computing file changes ...