#ifdef __cplusplus extern "C" { #endif #include "HROOTType.h" #include "HROOTDeletable.h" #undef ROOT_TATTTEXT_DECLARATIONVIRT #define ROOT_TATTTEXT_DECLARATIONVIRT(Type) \ int Type ## _GetTextAlign ( Type ## _p p ); \ double Type ## _GetTextAngle ( Type ## _p p ); \ int Type ## _GetTextColor ( Type ## _p p ); \ int Type ## _GetTextFont ( Type ## _p p ); \ double Type ## _GetTextSize ( Type ## _p p ); \ void Type ## _ResetAttText ( Type ## _p p, const char * toption ); \ void Type ## _SetTextAttributes ( Type ## _p p ); \ void Type ## _SetTextAlign ( Type ## _p p, int align ); \ void Type ## _SetTextAngle ( Type ## _p p, double tangle ); \ void Type ## _SetTextColor ( Type ## _p p, int tcolor ); \ void Type ## _SetTextFont ( Type ## _p p, int tfont ); \ void Type ## _SetTextSize ( Type ## _p p, double tsize ); \ void Type ## _SetTextSizePixels ( Type ## _p p, int npixels ) #undef ROOT_TATTTEXT_DECLARATIONNONVIRT #define ROOT_TATTTEXT_DECLARATIONNONVIRT(Type) \ Type ## _p Type ## _newTAttText ( int align, double angle, int color, int font, double tsize ) #undef ROOT_TATTTEXT_DEFINITIONVIRT #define ROOT_TATTTEXT_DEFINITIONVIRT(Type)\ int Type ## _GetTextAlign ( Type ## _p p )\ {\ return to_nonconst(p)->GetTextAlign();\ }\ double Type ## _GetTextAngle ( Type ## _p p )\ {\ return to_nonconst(p)->GetTextAngle();\ }\ int Type ## _GetTextColor ( Type ## _p p )\ {\ return to_nonconst(p)->GetTextColor();\ }\ int Type ## _GetTextFont ( Type ## _p p )\ {\ return to_nonconst(p)->GetTextFont();\ }\ double Type ## _GetTextSize ( Type ## _p p )\ {\ return to_nonconst(p)->GetTextSize();\ }\ void Type ## _ResetAttText ( Type ## _p p, const char * toption )\ {\ to_nonconst(p)->ResetAttText(toption);\ }\ void Type ## _SetTextAttributes ( Type ## _p p )\ {\ to_nonconst(p)->SetTextAttributes();\ }\ void Type ## _SetTextAlign ( Type ## _p p, int align )\ {\ to_nonconst(p)->SetTextAlign(align);\ }\ void Type ## _SetTextAngle ( Type ## _p p, double tangle )\ {\ to_nonconst(p)->SetTextAngle(tangle);\ }\ void Type ## _SetTextColor ( Type ## _p p, int tcolor )\ {\ to_nonconst(p)->SetTextColor(tcolor);\ }\ void Type ## _SetTextFont ( Type ## _p p, int tfont )\ {\ to_nonconst(p)->SetTextFont(tfont);\ }\ void Type ## _SetTextSize ( Type ## _p p, double tsize )\ {\ to_nonconst(p)->SetTextSize(tsize);\ }\ void Type ## _SetTextSizePixels ( Type ## _p p, int npixels )\ {\ to_nonconst(p)->SetTextSizePixels(npixels);\ } #undef ROOT_TATTTEXT_DEFINITIONNONVIRT #define ROOT_TATTTEXT_DEFINITIONNONVIRT(Type)\ Type ## _p Type ## _newTAttText ( int align, double angle, int color, int font, double tsize )\ {\ Type * newp = new Type (align, angle, color, font, tsize); \ return to_nonconst(newp);\ } ROOT_DELETABLE_DECLARATIONVIRT(TAttText); ROOT_TATTTEXT_DECLARATIONVIRT(TAttText); ROOT_TATTTEXT_DECLARATIONNONVIRT(TAttText); #ifdef __cplusplus } #endif