blob: b3534a40898e61c8a923302ffc523a047ae41b69 [file] [log] [blame]
/**
* @file morpho_rect_int.h
* @brief ‹éŒ`ƒf[ƒ^‚̍\‘¢‘Ì’è‹`
* @version 1.0.0
* @date 2008-06-09
*
* Copyright (C) 2006-2012 Morpho, Inc.
*/
#ifndef MORPHO_RECT_INT_H
#define MORPHO_RECT_INT_H
#ifdef __cplusplus
extern "C" {
#endif
/** ‹éŒ`ƒf[ƒ^. */
typedef struct {
int sx; /**< left */
int sy; /**< top */
int ex; /**< right */
int ey; /**< bottom */
} morpho_RectInt;
/** ‹éŒ`—̈æ rect ‚̍¶ãÀ•W (l,t) ‚ƉE‰ºÀ•W (r,b) ‚ðÝ’è‚·‚é. */
#define morpho_RectInt_setRect(rect,l,t,r,b) do { \
(rect)->sx=(l);\
(rect)->sy=(t);\
(rect)->ex=(r);\
(rect)->ey=(b);\
} while(0)
#ifdef __cplusplus
}
#endif
#endif /* #ifndef MORPHO_RECT_INT_H */