CTWM
Toggle main menu visibility
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/r_area.h
Go to the documentation of this file.
1
/*
2
* Copyright notice...
3
*/
4
5
#ifndef _CTWM_R_AREA_H
6
#define _CTWM_R_AREA_H
7
8
#include "
r_structs.h
"
9
10
11
RArea
*
RAreaNewStatic
(
int
x,
int
y,
int
width,
int
height);
12
RArea
RAreaNew
(
int
x,
int
y,
int
width,
int
height);
13
14
RArea
RAreaInvalid
(
void
);
15
bool
RAreaIsValid
(
const
RArea
*self);
16
17
int
RAreaX2
(
const
RArea
*self);
18
int
RAreaY2
(
const
RArea
*self);
19
int
RAreaArea
(
const
RArea
*self);
20
RArea
RAreaIntersect
(
const
RArea
*self,
const
RArea
*other);
21
bool
RAreaIsIntersect
(
const
RArea
*self,
const
RArea
*other);
22
bool
RAreaContainsXY
(
const
RArea
*self,
int
x,
int
y);
23
RAreaList
*
RAreaHorizontalUnion
(
const
RArea
*self,
const
RArea
*other);
24
RAreaList
*
RAreaVerticalUnion
(
const
RArea
*self,
const
RArea
*other);
25
26
void
RAreaPrint
(
const
RArea
*self);
27
28
#endif
/* _CTWM_R_AREA_H */
RAreaInvalid
RArea RAreaInvalid(void)
Return a facially-invalid RArea.
Definition
r_area.c:49
RAreaNew
RArea RAreaNew(int x, int y, int width, int height)
Construct an RArea from given components.
Definition
r_area.c:19
RAreaIntersect
RArea RAreaIntersect(const RArea *self, const RArea *other)
Return an RArea describing the intersection of two RArea's.
Definition
r_area.c:103
RAreaArea
int RAreaArea(const RArea *self)
Return the area of an RArea.
Definition
r_area.c:93
RAreaHorizontalUnion
RAreaList * RAreaHorizontalUnion(const RArea *self, const RArea *other)
Create a list of maximal horizontal stripes of two RArea's.
Definition
r_area.c:179
RAreaIsIntersect
bool RAreaIsIntersect(const RArea *self, const RArea *other)
Do two areas intersect?
Definition
r_area.c:127
RAreaNewStatic
RArea * RAreaNewStatic(int x, int y, int width, int height)
Return a pointer to a static newly constructed RArea.
Definition
r_area.c:35
RAreaIsValid
bool RAreaIsValid(const RArea *self)
Is an RArea facially valid?
Definition
r_area.c:63
RAreaPrint
void RAreaPrint(const RArea *self)
Pretty-print an RArea.
Definition
r_area.c:411
RAreaY2
int RAreaY2(const RArea *self)
Return the bottom edge of an RArea.
Definition
r_area.c:83
RAreaX2
int RAreaX2(const RArea *self)
Return the right edge of an RArea.
Definition
r_area.c:73
RAreaVerticalUnion
RAreaList * RAreaVerticalUnion(const RArea *self, const RArea *other)
Create a list of maximal vertical stripes of two RArea's.
Definition
r_area.c:304
RAreaContainsXY
bool RAreaContainsXY(const RArea *self, int x, int y)
Is a given coordinate inside a RArea?
Definition
r_area.c:159
r_structs.h
RAreaList
A set of RArea's.
Definition
r_structs.h:30
RArea
A particular extent of space.
Definition
r_structs.h:16
r_area.h
Generated by
1.18.0