Packages
sdl
SDL
Surface
Surface.RGB
Surface.from_RGB
Surface.load
blit
convert
do_lock
fill
flip
get_cliprect
save
set_alpha
set_cliprect
set_colorkey
set_colors
set_palette
unlock
update_rect
update_rects
flags
format
h
pitch
pixels
ref_count
w
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
Surface
Object Hierarchy:
Description:
[
Compact
]
public
class
Surface
All known sub-classes:
Screen
Namespace:
SDL
Package:
sdl
Content:
Creation methods:
public
Surface.RGB
(
uint32
flags,
int
width,
int
height,
int
depth,
uint32
rmask,
uint32
gmask,
uint32
bmask,
uint32
amask)
public
Surface.from_RGB
(
void
* pixels,
int
width,
int
height,
int
depth,
int
pitch,
uint32
rmask,
uint32
gmask,
uint32
bmask,
uint32
amask)
public
Surface.load
(
RWops
src,
int
freesrc =
0
)
Methods:
public
void
update_rects
(
Rect
[] rects)
public
void
update_rect
(
int32
x,
int32
y,
uint32
w,
uint32
h)
public
int
flip
()
public
int
set_colors
(
Color
[] colors,
int
firstcolor =
0
)
public
int
set_palette
(
PaletteFlags
flags,
Color
[] colors,
int
firstcolor =
0
)
public
int
do_lock
()
public
void
unlock
()
public
int
save
(
RWops
dst,
int
freedst =
0
)
public
int
set_colorkey
(
uint32
flag,
uint32
key)
public
int
set_alpha
(
uint32
flag,
uchar
alpha)
public
bool
set_cliprect
(
Rect
? rect)
public
void
get_cliprect
(
out
Rect
rect)
public
Surface
?
convert
(
PixelFormat
? fmt,
uint32
flags)
public
int
blit
(
Rect
? srcrect,
Surface
dst,
Rect
? dstrect)
public
int
fill
(
Rect
? dst,
uint32
color)
Fields:
public
uint32
flags
public
PixelFormat
format
public
int
w
public
int
h
public
uint16
pitch
public
void
*
pixels
public
int
ref_count