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/* Check if two rectangle intersects
38* @param r1 -- rectangle one
39* @param r2 -- rectangle two
40*/
41extern bool ClipCheckIntersect(Rect* r1, Rect* r2);
42
43/*
44* ClipCalculateRect -- calculate visible rectanlges of current window
45* @param sub_rect -- subject rectangle
46* @param cut_rect -- cutting rectangle
47* @param list -- pointer to the list, where to store all
48* visible rectangles
49* @param count -- number of rectangles stored in the list
50*/
51extern void ClipCalculateRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int* count);
52
53/*
54* ClipSubtractRect -- calculate visible rectanlges of current window
55* @param sub_rect -- subject rectangle
56* @param cut_rect -- cutting rectangle
57* @param list -- pointer to the list, where to store all
58* visible rectangles
59* @param count -- number of rectangles stored in the list
60*/
61extern void ClipSubtractRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int r_count);
62
63extern void ClipGetBehindRect(Rect* sub_rect, Rect* cut_rect, Rect* list, int* r_count);
64
65#endif
void ClipGetBehindRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int *r_count)
Definition clip.cpp:229
void ClipCalculateRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int *count)
ClipCalculateRect – calculate visible rectanlges of current window.
Definition clip.cpp:62
void ClipSubtractRect(Rect *sub_rect, Rect *cut_rect, Rect *list, int r_count)
ClipSubtractRect – calculate visible rectanlges of current window.
Definition clip.cpp:154
bool ClipCheckIntersect(Rect *r1, Rect *r2)
Check if two rectangle intersects.
Definition clip.cpp:44
XEProcessList * list
Definition main.cpp:27
Definition deodhai.h:66