summaryrefslogtreecommitdiff
path: root/camera/hdr/include/morpho_rect_int.h
blob: b3534a40898e61c8a923302ffc523a047ae41b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
 * @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 */