home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sa104os2.zip
/
SATHR104.ZIP
/
SATHER
/
CONTRIB
/
SCHNETTR
/
XLIB
/
KEY.SA
< prev
next >
Wrap
Text File
|
1994-11-28
|
2KB
|
63 lines
-- -*-Sather-*-
-- access to the X window system routines
-- (c) 1994/11/28 - 1994/11/28 by Erik Schnetter
class X_KEYSYM is
readonly attr c_keysym: INT;
private const void_c_keysym := -1;
create(c_keysym: INT) pre Void post ~Void is
res::=new; res.c_keysym:=c_keysym; return res
end;
Void: BOOL is return void(self) or c_keysum=void_c_keysym end;
-- is this a cursor key?
IsCursorKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsCursorKey(c_keysym)
end; -- IsCursorKey
-- is this a function key?
IsFunctionKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsFunctionKey(c_keysym)
end; -- IsFunctionKey
-- is this a keypad key?
IsKeypadKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsKeypadKey(c_keysym)
end; -- IsKeypadKey
-- is this a miscellaneous function key?
IsMiscFunctionKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsMiscFunctionKey(c_keysym)
end; -- IsMiscFunctionKey
-- is this a modifier key?
IsModifierKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsModifierKey(c_keysym)
end; -- IsModifierKey
-- is this a PF key?
IsPFKey: BOOL pre ~Void is
return C_X_KEYSYM::X_IsPFKey(c_keysym)
end; -- IsPFKey
end; -- class X_KEYSYM
external class C_X_KEYSYM is
X_IsCursorKey(keysym:INT):BOOL;
X_IsFunctionKey(keysym:INT):BOOL;
X_IsKeypadKey(keysym:INT):BOOL;
X_IsMiscFuntionKey(keysym:INT):BOOL;
X_IsModifierKey(keysym:INT):BOOL;
X_IsPFKey(keysym:INT):BOOL;
end; -- class C_X_KEYSYM