#ifdef __cplusplus extern "C" { #endif #pragma once #include "HROOT-coreType.h" #include "STDDeletable.h" #include "stdcxxType.h" #define RECTANGLE_T_DECL_VIRT(Type) \ #define RECTANGLE_T_DECL_NONVIRT(Type) \ #define RECTANGLE_T_DECL_ACCESSOR(Type) \ unsigned short Type##_fHeight_get ( Type##_p p );\ void Type##_fHeight_set ( Type##_p p, unsigned short x );\ unsigned short Type##_fWidth_get ( Type##_p p );\ void Type##_fWidth_set ( Type##_p p, unsigned short x );\ short Type##_fX_get ( Type##_p p );\ void Type##_fX_set ( Type##_p p, short x );\ short Type##_fY_get ( Type##_p p );\ void Type##_fY_set ( Type##_p p, short x ); #define RECTANGLE_T_DEF_VIRT(Type) \ #define RECTANGLE_T_DEF_NONVIRT(Type) \ #define RECTANGLE_T_DEF_ACCESSOR(Type) \ unsigned short Type##_fHeight_get ( Type##_p p ) {\ return (from_nonconst_to_nonconst(p))->fHeight;\ }\ void Type##_fHeight_set ( Type##_p p, unsigned short x ) {\ ((from_nonconst_to_nonconst(p))->fHeight)=x;\ }\ unsigned short Type##_fWidth_get ( Type##_p p ) {\ return (from_nonconst_to_nonconst(p))->fWidth;\ }\ void Type##_fWidth_set ( Type##_p p, unsigned short x ) {\ ((from_nonconst_to_nonconst(p))->fWidth)=x;\ }\ short Type##_fX_get ( Type##_p p ) {\ return (from_nonconst_to_nonconst(p))->fX;\ }\ void Type##_fX_set ( Type##_p p, short x ) {\ ((from_nonconst_to_nonconst(p))->fX)=x;\ }\ short Type##_fY_get ( Type##_p p ) {\ return (from_nonconst_to_nonconst(p))->fY;\ }\ void Type##_fY_set ( Type##_p p, short x ) {\ ((from_nonconst_to_nonconst(p))->fY)=x;\ } DELETABLE_DECL_VIRT(Rectangle_t) RECTANGLE_T_DECL_VIRT(Rectangle_t) RECTANGLE_T_DECL_NONVIRT(Rectangle_t) RECTANGLE_T_DECL_ACCESSOR(Rectangle_t) #ifdef __cplusplus } #endif