Packages
sdl2
SDL
Video
Rect
enclose_points
contains_point
intersection_rect
intersects_withline
is_empty
is_equal
is_intersecting
union_rect
h
w
x
y
Rect
Object Hierarchy:
SDL.Video.Rect
SDL.Video.Rect
SDL.Video.Rect
Description:
[
CCode
( cname =
"SDL_Rect"
, has_type_id =
false
) ]
public
struct
Rect
Namespace:
SDL.Video
Package:
sdl2
Content:
Static methods:
public
static
bool
enclose_points
(
Point
[] points,
Rect
clip,
out
Rect
result)
Methods:
public
bool
contains_point
(
Point
? p)
public
bool
intersection_rect
(
Rect
other_rect,
out
Rect
result)
public
bool
intersects_withline
(
out
int
x1,
out
int
y1,
out
int
x2,
out
int
y2)
public
bool
is_empty
()
public
bool
is_equal
(
Rect
other_rect)
public
bool
is_intersecting
(
Rect
other_rect)
public
void
union_rect
(
Rect
other_rect,
out
Rect
result)
Fields:
public
int
x
public
int
y
public
uint
w
public
uint
h