Home | History | Annotate | Download | only in include
      1 /**
      2  * @file     morpho_rect_int.h
      3  * @brief    `f[^\`
      4  * @version  1.0.0
      5  * @date     2008-06-09
      6  *
      7  * Copyright (C) 2006-2012 Morpho, Inc.
      8  */
      9 
     10 #ifndef MORPHO_RECT_INT_H
     11 #define MORPHO_RECT_INT_H
     12 
     13 #ifdef __cplusplus
     14 extern "C" {
     15 #endif
     16 
     17 /** `f[^. */
     18 typedef struct {
     19     int sx; /**< left */
     20     int sy; /**< top */
     21     int ex; /**< right */
     22     int ey; /**< bottom */
     23 } morpho_RectInt;
     24 
     25 /** ` rect W (l,t) EW (r,b) . */
     26 #define morpho_RectInt_setRect(rect,l,t,r,b) do { \
     27 	(rect)->sx=(l);\
     28 	(rect)->sy=(t);\
     29 	(rect)->ex=(r);\
     30 	(rect)->ey=(b);\
     31     } while(0)
     32 
     33 #ifdef __cplusplus
     34 }
     35 #endif
     36 
     37 #endif /* #ifndef MORPHO_RECT_INT_H */
     38