home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sa104os2.zip
/
SATHR104.ZIP
/
SATHER
/
CONTRIB
/
SCHNETTR
/
XLIB
/
PIXMAP.SA
< prev
next >
Wrap
Text File
|
1994-11-14
|
1KB
|
42 lines
-- -*-Sather-*-
-- access to the X window system routines
-- (c) 1994/11/03 - 1994/11/14 by Erik Schnetter
class X_PIXMAP < $X_DRAWABLE is
-- handle a pixmap
include X_DRAWABLE;
-- create a pixmap
Create (disp: X_DISPLAY, drawable: $X_DRAWABLE,
width, height: INT, depth: INT) pre Void post ~Void is
display := disp;
c_drawable := C_X_PIXMAP::X_CreatePixmap
(display.c_display, drawable.c_drawable,
width, height, depth);
end; -- Create
Create (disp: X_DISPLAY, drawable: $X_DRAWABLE,
offset: X_OFFSET, depth: INT) pre Void post ~Void is
Create (disp, drawable, offset.width, offset.height, depth) end;
-- destroy the pixmap
Destroy pre ~Void post Void is
C_X_PIXMAP::X_FreePixmap (display.c_display, c_drawable);
c_drawable := void_c_drawable;
end; -- Destroy
end; -- class X_PIXMAP
external class C_X_PIXMAP is
X_CreatePixmap (display: EXT_OB, drawable: INT,
width, height: INT, depth: INT): INT;
X_FreePixmap (display: EXT_OB, pixmap: INT);
end; -- class C_X_PIXMAP