File: rect.h

package info (click to toggle)
maelstrom 3.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,952 kB
  • sloc: cpp: 10,947; sh: 3,406; ansic: 2,781; makefile: 175
file content (23 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#ifndef _rect_h
#define _rect_h

/* Avoid collisions with Mac data structures */
#define Rect MaelstromRect
#define SetRect SetMaelstromRect
#define OffsetRect OffsetMaelstromRect
#define InsetRect InsetMaelstromRect

typedef struct {
	short top;
	short left;
	short bottom;
	short right;
} Rect;

/* Functions exported from rect.cpp */
extern void SetRect(Rect *R, int left, int top, int right, int bottom);
extern void OffsetRect(Rect *R, int x, int y);
extern void InsetRect(Rect *R, int x, int y);

#endif /* _rect_h */