XenevaOS
Loading...
Searching...
No Matches
clip.h
Go to the documentation of this file.
1
32#ifndef __CLIP_H__
33#define __CLIP_H__
34
35#include "deodxr.h"
36
37
38/* Check if two rectangle intersects
39* @param r1 -- rectangle one
40* @param r2 -- rectangle two
41*/
42extern bool ClipCheckIntersect(Rect* r1, Rect* r2);
43
44/*
45* ClipCalculateRect -- calculate visible rectanlges of current window
46* @param sub_rect -- subject rectangle
47* @param cut_rect -- cutting rectangle
48* @param list -- pointer to the list, where to store all
49* visible rectangles
50* @param count -- number of rectangles stored in the list
51*/
52extern void ClipCalculateRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int* count);
53
54/*
55* ClipSubtractRect -- calculate visible rectanlges of current window
56* @param sub_rect -- subject rectangle
57* @param cut_rect -- cutting rectangle
58* @param list -- pointer to the list, where to store all
59* visible rectangles
60* @param count -- number of rectangles stored in the list
61*/
62extern void ClipSubtractRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int r_count);
63
64extern void ClipGetBehindRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int* r_count);
65
66#endif
void ClipGetBehindRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int *r_count)
Definition clip.cpp:250
void ClipCalculateRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int *count)
ClipCalculateRect – calculate visible rectanlges of current window.
Definition clip.cpp:64
void ClipSubtractRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int r_count)
ClipSubtractRect – calculate visible rectanlges of current window.
Definition clip.cpp:164
bool ClipCheckIntersect(Rect *r1, Rect *r2)
Check if two rectangle intersects.
Definition clip.cpp:44
Definition deodhai.h:69