forked from Ponup/php-sdl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrect.stub.php
More file actions
76 lines (63 loc) · 2.39 KB
/
Copy pathrect.stub.php
File metadata and controls
76 lines (63 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/** @generate-class-entries */
function SDL_PointInRect(SDL_Point $p, SDL_Rect $r): bool {}
function SDL_RectEmpty(SDL_Rect $r): bool {}
function SDL_RectEquals(SDL_Rect $a, SDL_Rect $b): bool {}
function SDL_HasIntersection(SDL_Rect $A, SDL_Rect $B): bool {}
function SDL_IntersectRect(SDL_Rect $A, SDL_Rect $B, ?SDL_Rect &$result): bool {}
function SDL_UnionRect(SDL_Rect $A, SDL_Rect $B, ?SDL_Rect &$result): void {}
function SDL_EnclosePoints(SDL_Point $points, int $count, SDL_Rect $clip, ?SDL_Rect &$result): bool {}
function SDL_IntersectRectAndLine(SDL_Rect $rect, int &$X1, int &$Y1, int &$X2, int &$Y2): bool {}
function SDL_FRectEmpty(SDL_FRect $r): bool {}
function SDL_HasIntersectionF(SDL_FRect $A, SDL_FRect $B): bool {}
function SDL_IntersectFRect(SDL_FRect $A, SDL_FRect $B, ?SDL_FRect &$result): bool {}
class SDL_Point
{
public int $x;
public int $y;
public function __construct(int $x, int $y) {}
public function __toString(): string {}
}
class SDL_Rect
{
public int $x;
public int $y;
public int $w;
public int $h;
public function __construct(int $x, int $y, int $w, int $h) {}
public function __toString(): string {}
/** @alias SDL_RectEmpty */
public function Empty(): bool {}
/** @alias SDL_RectEquals */
public function Equal(SDL_Rect $b): bool {}
/** @alias SDL_HasIntersection */
public function HasIntersection(SDL_Rect $B): bool {}
/** @alias SDL_IntersectRect */
public function Intersect(SDL_Rect $B, ?SDL_Rect &$result): bool {}
/** @alias SDL_UnionRect */
public function Union(SDL_Rect $B, ?SDL_Rect &$result): void {}
/** @alias SDL_IntersectRectAndLine */
public function IntersectLine(int &$X1, int &$Y1, int &$X2, int &$Y2): bool {}
}
class SDL_FPoint
{
public float $x;
public float $y;
public function __construct(float $x, float $y) {}
public function __toString(): string {}
}
class SDL_FRect
{
public float $x;
public float $y;
public float $w;
public float $h;
public function __construct(float $x, float $y, float $w, float $h) {}
public function __toString(): string {}
/** @alias SDL_FRectEmpty */
public function Empty(): bool {}
/** @alias SDL_HasIntersectionF */
public function HasIntersection(SDL_FRect $B): bool {}
/** @alias SDL_IntersectFRect */
public function Intersect(SDL_FRect $B, ?SDL_FRect &$result): bool {}
}