#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-coreType.h" #include "STDDeletable.h" #include "stdcxxType.h" #define TATTFILL_DECL_VIRT(Type) \ void Type##_SetFillColor ( Type##_p p, int color );\ void Type##_SetFillStyle ( Type##_p p, int style ); #define TATTFILL_DECL_NONVIRT(Type) \ Type##_p Type##_newTAttFill ( short fcolor, short fstyle ); #define TATTFILL_DECL_ACCESSOR(Type) \ #define TATTFILL_DEF_VIRT(Type) \ void Type##_SetFillColor ( Type##_p p, int color ) {\ ((TYPECASTMETHOD(Type, SetFillColor, TAttFill))(p))->SetFillColor(color);\ }\ \ void Type##_SetFillStyle ( Type##_p p, int style ) {\ ((TYPECASTMETHOD(Type, SetFillStyle, TAttFill))(p))->SetFillStyle(style);\ } #define TATTFILL_DEF_NONVIRT(Type) \ Type##_p Type##_newTAttFill ( short fcolor, short fstyle ) {\ Type* newp=new Type(fcolor, fstyle);return from_nonconst_to_nonconst(newp);\ } #define TATTFILL_DEF_ACCESSOR(Type) \ DELETABLE_DECL_VIRT(TAttFill) TATTFILL_DECL_VIRT(TAttFill) TATTFILL_DECL_NONVIRT(TAttFill) TATTFILL_DECL_ACCESSOR(TAttFill) #ifdef __cplusplus } #endif