ULIS  dev4.0.7
Utility Library for Imaging Systems
Macros
LayerUtils.h File Reference

Macros

#define ULIS_DECLARE_PIC_SIMPLE(__Class__, __Type__, __Default__, __Getter__, __Setter__)
 
#define ULIS_DEFINE_PIC_SIMPLE(__Class__, __Type__, __Getter__, __Setter__)
 

Macro Definition Documentation

◆ ULIS_DECLARE_PIC_SIMPLE

#define ULIS_DECLARE_PIC_SIMPLE (   __Class__,
  __Type__,
  __Default__,
  __Getter__,
  __Setter__ 
)
Value:
ULIS_DECLARE_SIMPLE_DELEGATE( FOn_ ## __Type__ ## _Changed, void, __Type__ ) \
class ULIS_API __Class__ \
: public FOn_ ## __Type__ ## _Changed \
{ \
protected: \
__Class__ ( \
__Type__ i = __Default__ \
, const FOn_ ## __Type__ ## _Changed & d = FOn_ ## __Type__ ## _Changed () \
); \
public: \
__Type__ __Getter__ () const; \
void __Setter__ ( __Type__ i ); \
private: \
__Type__ m; \
};

◆ ULIS_DEFINE_PIC_SIMPLE

#define ULIS_DEFINE_PIC_SIMPLE (   __Class__,
  __Type__,
  __Getter__,
  __Setter__ 
)
Value:
__Class__ :: __Class__ ( \
__Type__ i \
, const FOn_ ## __Type__ ## _Changed & d \
) \
: FOn_ ## __Type__ ## _Changed( d ) \
, m( i ) {} \
__Type__ __Class__ :: __Getter__ () const { return m; } \
void __Class__ :: __Setter__ ( __Type__ i ) { m = i; Invoke( m ); }
ULIS_DECLARE_SIMPLE_DELEGATE
#define ULIS_DECLARE_SIMPLE_DELEGATE(__Name__, __Ret__,...)
Definition: CallbackCapable.h:102
ULIS_API
#define ULIS_API
Definition: Platform.h:165