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
Raw File
switch.cxx
#include <stdio.h>

void switch_test()
{
   for (int i = 0; i < 4; ++i) {
      switch (i) {
         case 0:
         case 1:
            printf("i: %d, case 0 or 1\n", i);
            break;
         case 2:
            printf("i: %d, case 2\n", i);
            break;
         default:
            printf("i: %d, case default\n", i);
      }
   }
   int j = 1;
   switch(j){
   case (0):
      printf("Outer Case (0)\n");
      break;
   case(1):
      printf("Outer Case (1)\n");
      break;
   case(2):
      printf("Outer Case (2)\n");
      break;
   case(3):
      printf("Outer Case (3)\n");
      break;
   default:
      printf("Outer Case with parenthesis failed to find %d\n",j);
   }
   for (int type = 0; type < 4; ++type) {
      switch(type){
         case (0):
            printf("Case (0)\n");
            break;
         case(1):
            printf("Case (1)\n");
            break;
         case(2):
            printf("Case (2)\n");
            break;
         case(3):
            printf("Case (3)\n");
            break;
         default:
            printf("Case with parenthesis failed to find %d\n",type);
      }
   }
   
}

int main()
{
   switch_test();
   return 0;
}

back to top