|
@@ -53,9 +53,9 @@ History:
|
|
chnaged it to "reocrd" only.
|
|
chnaged it to "reocrd" only.
|
|
2004/10/04 - 06 - Convertion from the c header of XKBgeom.h.
|
|
2004/10/04 - 06 - Convertion from the c header of XKBgeom.h.
|
|
2004/10/03 - Removed the XKBstr_UNIT compiler decleration. Afther the joined files,
|
|
2004/10/03 - Removed the XKBstr_UNIT compiler decleration. Afther the joined files,
|
|
- There is no need for it anymore.
|
|
|
|
- - There is a need to define (for now) XKBgeom (compiler define) in order
|
|
|
|
- to use the code of it. At this moment, I did not yet converted it to Pascal.
|
|
|
|
|
|
+ There is no need for it anymore.
|
|
|
|
+ - There is a need to define (for now) XKBgeom (compiler define) in order
|
|
|
|
+ to use the code of it. At this moment, I did not yet converted it to Pascal.
|
|
|
|
|
|
2004/09/17 - 10/04 - Convertion from the c header of XKBstr.
|
|
2004/09/17 - 10/04 - Convertion from the c header of XKBstr.
|
|
|
|
|
|
@@ -94,15 +94,15 @@ type
|
|
group : Byte;
|
|
group : Byte;
|
|
locked_group : Byte;
|
|
locked_group : Byte;
|
|
base_group : Word;
|
|
base_group : Word;
|
|
- latched_group : Word;
|
|
|
|
- mods : Byte;
|
|
|
|
|
|
+ latched_group : Word;
|
|
|
|
+ mods : Byte;
|
|
base_mods : Byte;
|
|
base_mods : Byte;
|
|
latched_mods : Byte;
|
|
latched_mods : Byte;
|
|
locked_mods : Byte;
|
|
locked_mods : Byte;
|
|
compat_state : Byte;
|
|
compat_state : Byte;
|
|
grab_mods : Byte;
|
|
grab_mods : Byte;
|
|
- compat_grab_mods : Byte;
|
|
|
|
- lookup_mods : Byte;
|
|
|
|
|
|
+ compat_grab_mods : Byte;
|
|
|
|
+ lookup_mods : Byte;
|
|
compat_lookup_mods : Byte;
|
|
compat_lookup_mods : Byte;
|
|
ptr_buttons : Word;
|
|
ptr_buttons : Word;
|
|
end;
|
|
end;
|
|
@@ -118,7 +118,7 @@ type
|
|
PXkbModsPtr = ^TXkbModsRec;
|
|
PXkbModsPtr = ^TXkbModsRec;
|
|
TXkbModsRec = record
|
|
TXkbModsRec = record
|
|
mask : Byte; // effective mods
|
|
mask : Byte; // effective mods
|
|
- real_mods : Byte;
|
|
|
|
|
|
+ real_mods : Byte;
|
|
vmods : Word;
|
|
vmods : Word;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -164,10 +164,10 @@ type
|
|
type
|
|
type
|
|
PXkbModAction = ^TXkbModAction;
|
|
PXkbModAction = ^TXkbModAction;
|
|
TXkbModAction = record
|
|
TXkbModAction = record
|
|
- _type : Byte;
|
|
|
|
|
|
+ _type : Byte;
|
|
flags : Byte;
|
|
flags : Byte;
|
|
mask : Byte;
|
|
mask : Byte;
|
|
- real_mods : Byte;
|
|
|
|
|
|
+ real_mods : Byte;
|
|
vmods1 : Byte;
|
|
vmods1 : Byte;
|
|
vmods2 : Byte;
|
|
vmods2 : Byte;
|
|
end;
|
|
end;
|
|
@@ -181,7 +181,7 @@ type
|
|
_type : Byte;
|
|
_type : Byte;
|
|
flags : Byte;
|
|
flags : Byte;
|
|
group_XXX : ShortInt;
|
|
group_XXX : ShortInt;
|
|
- end;
|
|
|
|
|
|
+ end;
|
|
|
|
|
|
function XkbSAGroup (a : PXkbGroupAction) : ShortInt;
|
|
function XkbSAGroup (a : PXkbGroupAction) : ShortInt;
|
|
procedure XkbSASetGroup (a : PXkbGroupAction; g : ShortInt);
|
|
procedure XkbSASetGroup (a : PXkbGroupAction; g : ShortInt);
|
|
@@ -194,7 +194,7 @@ type
|
|
mask : Byte;
|
|
mask : Byte;
|
|
real_mods : Byte;
|
|
real_mods : Byte;
|
|
group_XXX : ShortInt;
|
|
group_XXX : ShortInt;
|
|
- affect : Byte;
|
|
|
|
|
|
+ affect : Byte;
|
|
vmods1 : Byte;
|
|
vmods1 : Byte;
|
|
vmods2 : Byte;
|
|
vmods2 : Byte;
|
|
end;
|
|
end;
|
|
@@ -205,8 +205,8 @@ type
|
|
_type : Byte;
|
|
_type : Byte;
|
|
flags : Byte;
|
|
flags : Byte;
|
|
high_XXX : Byte;
|
|
high_XXX : Byte;
|
|
- low_XXX : Byte;
|
|
|
|
- high_YYY : Byte;
|
|
|
|
|
|
+ low_XXX : Byte;
|
|
|
|
+ high_YYY : Byte;
|
|
low_YYY : Byte;
|
|
low_YYY : Byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -218,7 +218,7 @@ procedure XkbSetPtrActionY (a : PXkbPtrAction; y : Byte);
|
|
type
|
|
type
|
|
PXkbPtrBtnAction = ^TXkbPtrBtnAction;
|
|
PXkbPtrBtnAction = ^TXkbPtrBtnAction;
|
|
TXkbPtrBtnAction = record
|
|
TXkbPtrBtnAction = record
|
|
- _type : Byte;
|
|
|
|
|
|
+ _type : Byte;
|
|
flags : Byte;
|
|
flags : Byte;
|
|
count : Byte;
|
|
count : Byte;
|
|
button : Byte;
|
|
button : Byte;
|
|
@@ -239,9 +239,9 @@ procedure XkbSASetPtrDfltValue (a : PXkbPtrDfltAction; const c);
|
|
type
|
|
type
|
|
PXkbSwitchScreenAction = ^TXkbSwitchScreenAction;
|
|
PXkbSwitchScreenAction = ^TXkbSwitchScreenAction;
|
|
TXkbSwitchScreenAction = record
|
|
TXkbSwitchScreenAction = record
|
|
- _type : Byte;
|
|
|
|
- flags : Byte;
|
|
|
|
- screenXXX : ShortInt;
|
|
|
|
|
|
+ _type : Byte;
|
|
|
|
+ flags : Byte;
|
|
|
|
+ screenXXX : ShortInt;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbSAScreen (a : PXkbSwitchScreenAction) : ShortInt;
|
|
function XkbSAScreen (a : PXkbSwitchScreenAction) : ShortInt;
|
|
@@ -254,7 +254,7 @@ type
|
|
flags : Byte;
|
|
flags : Byte;
|
|
ctrls3 : Byte;
|
|
ctrls3 : Byte;
|
|
ctrls2 : Byte;
|
|
ctrls2 : Byte;
|
|
- ctrls1 : Byte;
|
|
|
|
|
|
+ ctrls1 : Byte;
|
|
ctrls0 : Byte;
|
|
ctrls0 : Byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -272,14 +272,14 @@ type
|
|
type
|
|
type
|
|
PXkbRedirectKeyAction = ^TXkbRedirectKeyAction;
|
|
PXkbRedirectKeyAction = ^TXkbRedirectKeyAction;
|
|
TXkbRedirectKeyAction = record
|
|
TXkbRedirectKeyAction = record
|
|
- _type : Byte;
|
|
|
|
- new_key : Byte;
|
|
|
|
- mods_mask : Byte;
|
|
|
|
- mods : Byte;
|
|
|
|
- vmods_mask0 : Byte;
|
|
|
|
- vmods_mask1 : Byte;
|
|
|
|
- vmods0 : Byte;
|
|
|
|
- vmods1 : Byte;
|
|
|
|
|
|
+ _type : Byte;
|
|
|
|
+ new_key : Byte;
|
|
|
|
+ mods_mask : Byte;
|
|
|
|
+ mods : Byte;
|
|
|
|
+ vmods_mask0 : Byte;
|
|
|
|
+ vmods_mask1 : Byte;
|
|
|
|
+ vmods0 : Byte;
|
|
|
|
+ vmods1 : Byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbSARedirectVMods (a : PXkbRedirectKeyAction) : Word;
|
|
function XkbSARedirectVMods (a : PXkbRedirectKeyAction) : Word;
|
|
@@ -294,21 +294,21 @@ type
|
|
flags : Byte;
|
|
flags : Byte;
|
|
count : Byte;
|
|
count : Byte;
|
|
button : Byte;
|
|
button : Byte;
|
|
- device : Byte;
|
|
|
|
|
|
+ device : Byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbDeviceValuatorAction = ^TXkbDeviceValuatorAction;
|
|
PXkbDeviceValuatorAction = ^TXkbDeviceValuatorAction;
|
|
TXkbDeviceValuatorAction = record
|
|
TXkbDeviceValuatorAction = record
|
|
- _type : Byte;
|
|
|
|
- device : Byte;
|
|
|
|
- v1_what : Byte;
|
|
|
|
- v1_ndx : Byte;
|
|
|
|
- v1_value : Byte;
|
|
|
|
- v2_what : Byte;
|
|
|
|
- v2_ndx : Byte;
|
|
|
|
- v2_value : Byte;
|
|
|
|
- end;
|
|
|
|
|
|
+ _type : Byte;
|
|
|
|
+ device : Byte;
|
|
|
|
+ v1_what : Byte;
|
|
|
|
+ v1_ndx : Byte;
|
|
|
|
+ v1_value : Byte;
|
|
|
|
+ v2_what : Byte;
|
|
|
|
+ v2_ndx : Byte;
|
|
|
|
+ v2_value : Byte;
|
|
|
|
+ end;
|
|
|
|
|
|
{
|
|
{
|
|
Macros to classify key actions
|
|
Macros to classify key actions
|
|
@@ -330,7 +330,7 @@ function XkbIsPtrAction (a : PXkbAnyAction) : LongBool;
|
|
type
|
|
type
|
|
PXkbAction = ^TXkbAction;
|
|
PXkbAction = ^TXkbAction;
|
|
TXkbAction = record
|
|
TXkbAction = record
|
|
- any : TXkbAnyAction;
|
|
|
|
|
|
+ any : TXkbAnyAction;
|
|
mods : TXkbModAction;
|
|
mods : TXkbModAction;
|
|
group : TXkbGroupAction;
|
|
group : TXkbGroupAction;
|
|
iso : TXkbISOAction;
|
|
iso : TXkbISOAction;
|
|
@@ -578,7 +578,7 @@ const
|
|
|
|
|
|
XkbAllClientInfoMask = XkbKeyTypesMask or XkbKeySymsMask or XkbModifierMapMask;
|
|
XkbAllClientInfoMask = XkbKeyTypesMask or XkbKeySymsMask or XkbModifierMapMask;
|
|
XkbAllServerInfoMask = XkbExplicitComponentsMask or XkbKeyActionsMask or XkbKeyBehaviorsMask or
|
|
XkbAllServerInfoMask = XkbExplicitComponentsMask or XkbKeyActionsMask or XkbKeyBehaviorsMask or
|
|
- XkbVirtualModsMask or XkbVirtualModMapMask;
|
|
|
|
|
|
+ XkbVirtualModsMask or XkbVirtualModMapMask;
|
|
XkbAllMapComponentsMask = XkbAllClientInfoMask or XkbAllServerInfoMask;
|
|
XkbAllMapComponentsMask = XkbAllClientInfoMask or XkbAllServerInfoMask;
|
|
|
|
|
|
{
|
|
{
|
|
@@ -921,10 +921,10 @@ const
|
|
XkbSA_BreakLatch = (1 shl XkbSA_PtrBtn) or (1 shl XkbSA_LockPtrBtn) or (1 shl XkbSA_Terminate)
|
|
XkbSA_BreakLatch = (1 shl XkbSA_PtrBtn) or (1 shl XkbSA_LockPtrBtn) or (1 shl XkbSA_Terminate)
|
|
or
|
|
or
|
|
(1 shl XkbSA_SwitchScreen) or (1 shl XkbSA_SetControls) or (1 shl XkbSA_LockControls)
|
|
(1 shl XkbSA_SwitchScreen) or (1 shl XkbSA_SetControls) or (1 shl XkbSA_LockControls)
|
|
- or
|
|
|
|
- (1 shl XkbSA_ActionMessage) or (1 shl XkbSA_RedirectKey) or (1 shl XkbSA_DeviceBtn)
|
|
|
|
- or
|
|
|
|
- (1 shl XkbSA_LockDeviceBtn);
|
|
|
|
|
|
+ or
|
|
|
|
+ (1 shl XkbSA_ActionMessage) or (1 shl XkbSA_RedirectKey) or (1 shl XkbSA_DeviceBtn)
|
|
|
|
+ or
|
|
|
|
+ (1 shl XkbSA_LockDeviceBtn);
|
|
|
|
|
|
{
|
|
{
|
|
Key Behavior Qualifier:
|
|
Key Behavior Qualifier:
|
|
@@ -979,9 +979,9 @@ type
|
|
ax_timeout : Word;
|
|
ax_timeout : Word;
|
|
axt_opts_mask : Word;
|
|
axt_opts_mask : Word;
|
|
axt_opts_values : Word;
|
|
axt_opts_values : Word;
|
|
- axt_ctrls_mask : LongWord; // Word;
|
|
|
|
- axt_ctrls_values : LongWord; // Word;
|
|
|
|
- per_key_repeat : array [0..XkbPerKeyBitArraySize -1] of Byte;
|
|
|
|
|
|
+ axt_ctrls_mask : LongWord; // Word;
|
|
|
|
+ axt_ctrls_values : LongWord; // Word;
|
|
|
|
+ per_key_repeat : array [0..XkbPerKeyBitArraySize -1] of Byte;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbAX_AnyFeedback (c : PXkbControlsPtr) : Word;
|
|
function XkbAX_AnyFeedback (c : PXkbControlsPtr) : Word;
|
|
@@ -1014,17 +1014,17 @@ type
|
|
PXkbServerMapPtr = ^TXkbServerMapRec;
|
|
PXkbServerMapPtr = ^TXkbServerMapRec;
|
|
TXkbServerMapRec = record
|
|
TXkbServerMapRec = record
|
|
num_acts : Word;
|
|
num_acts : Word;
|
|
- size_acts : Word;
|
|
|
|
|
|
+ size_acts : Word;
|
|
acts : PXkbAction;
|
|
acts : PXkbAction;
|
|
behaviors : PXkbBehavior;
|
|
behaviors : PXkbBehavior;
|
|
key_acts : PWord;
|
|
key_acts : PWord;
|
|
- {$IF defined (__cplusplus) or defined (c_plusplus)}
|
|
|
|
- //explicit is a C++ reserved word
|
|
|
|
|
|
+ {$IF defined (__cplusplus) or defined (c_plusplus)}
|
|
|
|
+ //explicit is a C++ reserved word
|
|
c_explicit : PByte;
|
|
c_explicit : PByte;
|
|
- {$ELSE}
|
|
|
|
|
|
+ {$ELSE}
|
|
explicit : PByte;
|
|
explicit : PByte;
|
|
- {$ENDIF}
|
|
|
|
- vmods : array [0..XkbNumVirtualMods -1] of Byte;
|
|
|
|
|
|
+ {$ENDIF}
|
|
|
|
+ vmods : array [0..XkbNumVirtualMods -1] of Byte;
|
|
vmodmap : PWord;
|
|
vmodmap : PWord;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1041,7 +1041,7 @@ type
|
|
group_info : Byte;
|
|
group_info : Byte;
|
|
width : Byte;
|
|
width : Byte;
|
|
offset : Word;
|
|
offset : Word;
|
|
- end;
|
|
|
|
|
|
+ end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbClientMapPtr = ^TXkbClientMapRec;
|
|
PXkbClientMapPtr = ^TXkbClientMapRec;
|
|
@@ -1049,12 +1049,10 @@ type
|
|
size_types : Byte;
|
|
size_types : Byte;
|
|
num_types : Byte;
|
|
num_types : Byte;
|
|
types : PXkbKeyTypePtr;
|
|
types : PXkbKeyTypePtr;
|
|
-
|
|
|
|
size_syms : Word;
|
|
size_syms : Word;
|
|
num_syms : Word;
|
|
num_syms : Word;
|
|
syms : PKeySym;
|
|
syms : PKeySym;
|
|
key_sym_map : PXkbSymMapPtr;
|
|
key_sym_map : PXkbSymMapPtr;
|
|
-
|
|
|
|
modmap : PByte;
|
|
modmap : PByte;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1098,7 +1096,7 @@ type
|
|
which_groups : Byte;
|
|
which_groups : Byte;
|
|
groups : Byte;
|
|
groups : Byte;
|
|
which_mods : Byte;
|
|
which_mods : Byte;
|
|
- mods : TXkbModsRec;
|
|
|
|
|
|
+ mods : TXkbModsRec;
|
|
ctrls : Word;
|
|
ctrls : Word;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1127,7 +1125,7 @@ type
|
|
type
|
|
type
|
|
PXkbKeyAliasPtr = ^TXkbKeyAliasRec;
|
|
PXkbKeyAliasPtr = ^TXkbKeyAliasRec;
|
|
TXkbKeyAliasRec = record
|
|
TXkbKeyAliasRec = record
|
|
- real : array [0..XkbKeyNameLength -1] of AnsiChar;
|
|
|
|
|
|
+ real : array [0..XkbKeyNameLength -1] of AnsiChar;
|
|
alias : array [0..XkbKeyNameLength -1] of AnsiChar;
|
|
alias : array [0..XkbKeyNameLength -1] of AnsiChar;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1140,18 +1138,18 @@ type
|
|
keycodes : TAtom;
|
|
keycodes : TAtom;
|
|
geometry : TAtom;
|
|
geometry : TAtom;
|
|
symbols : TAtom;
|
|
symbols : TAtom;
|
|
- types : TAtom;
|
|
|
|
|
|
+ types : TAtom;
|
|
compat : TAtom;
|
|
compat : TAtom;
|
|
vmods : Array [0..XkbNumVirtualMods -1] of TAtom;
|
|
vmods : Array [0..XkbNumVirtualMods -1] of TAtom;
|
|
indicators : array [0..XkbNumIndicators -1] of TAtom;
|
|
indicators : array [0..XkbNumIndicators -1] of TAtom;
|
|
- groups : array [0..XkbNumKbdGroups -1] of TAtom;
|
|
|
|
|
|
+ groups : array [0..XkbNumKbdGroups -1] of TAtom;
|
|
keys : PXkbKeyNamePtr;
|
|
keys : PXkbKeyNamePtr;
|
|
key_aliases : PXkbKeyAliasPtr;
|
|
key_aliases : PXkbKeyAliasPtr;
|
|
radio_groups : PAtom;
|
|
radio_groups : PAtom;
|
|
phys_symbols : TAtom;
|
|
phys_symbols : TAtom;
|
|
num_keys : Byte;
|
|
num_keys : Byte;
|
|
- num_key_aliases : Byte;
|
|
|
|
- num_rg : Word;
|
|
|
|
|
|
+ num_key_aliases : Byte;
|
|
|
|
+ num_rg : Word;
|
|
end;
|
|
end;
|
|
|
|
|
|
{
|
|
{
|
|
@@ -1381,9 +1379,9 @@ type
|
|
num_outlines : Word;
|
|
num_outlines : Word;
|
|
sz_outlines : Word;
|
|
sz_outlines : Word;
|
|
outlines : PXkbOutlinePtr;
|
|
outlines : PXkbOutlinePtr;
|
|
- approx : PXkbOutlinePtr;
|
|
|
|
|
|
+ approx : PXkbOutlinePtr;
|
|
primary : PXkbOutlinePtr;
|
|
primary : PXkbOutlinePtr;
|
|
- bounds : TXkbBoundsRec;
|
|
|
|
|
|
+ bounds : TXkbBoundsRec;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbOutlineIndex (s : PXkbShapePtr; o : PXkbOutlinePtr) : longint;
|
|
function XkbOutlineIndex (s : PXkbShapePtr; o : PXkbOutlinePtr) : longint;
|
|
@@ -1395,10 +1393,10 @@ type
|
|
_type : Byte;
|
|
_type : Byte;
|
|
priority : Byte;
|
|
priority : Byte;
|
|
top : SmallInt;
|
|
top : SmallInt;
|
|
- left : SmallInt;
|
|
|
|
|
|
+ left : SmallInt;
|
|
angle : SmallInt;
|
|
angle : SmallInt;
|
|
color_ndx : Word;
|
|
color_ndx : Word;
|
|
- shape_ndx : Word;
|
|
|
|
|
|
+ shape_ndx : Word;
|
|
end;
|
|
end;
|
|
|
|
|
|
type
|
|
type
|
|
@@ -1420,21 +1418,21 @@ type
|
|
type
|
|
type
|
|
PXkbIndicatorDoodadPtr = ^TXkbIndicatorDoodadRec;
|
|
PXkbIndicatorDoodadPtr = ^TXkbIndicatorDoodadRec;
|
|
TXkbIndicatorDoodadRec = record
|
|
TXkbIndicatorDoodadRec = record
|
|
- name : TAtom;
|
|
|
|
- _type : Byte;
|
|
|
|
- priority : Byte;
|
|
|
|
- top : SmallInt;
|
|
|
|
- left : SmallInt;
|
|
|
|
- angle : SmallInt;
|
|
|
|
- shape_ndx : Word;
|
|
|
|
- on_color_ndx : Word;
|
|
|
|
- off_color_ndx : Word;
|
|
|
|
- end;
|
|
|
|
|
|
+ name : TAtom;
|
|
|
|
+ _type : Byte;
|
|
|
|
+ priority : Byte;
|
|
|
|
+ top : SmallInt;
|
|
|
|
+ left : SmallInt;
|
|
|
|
+ angle : SmallInt;
|
|
|
|
+ shape_ndx : Word;
|
|
|
|
+ on_color_ndx : Word;
|
|
|
|
+ off_color_ndx : Word;
|
|
|
|
+ end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbLogoDoodadPtr = ^TXkbLogoDoodadRec;
|
|
PXkbLogoDoodadPtr = ^TXkbLogoDoodadRec;
|
|
TXkbLogoDoodadRec = record
|
|
TXkbLogoDoodadRec = record
|
|
- name : TAtom;
|
|
|
|
|
|
+ name : TAtom;
|
|
_type : Byte;
|
|
_type : Byte;
|
|
priority : Byte;
|
|
priority : Byte;
|
|
top : SmallInt;
|
|
top : SmallInt;
|
|
@@ -1488,7 +1486,7 @@ type
|
|
TXkbRowRec = record
|
|
TXkbRowRec = record
|
|
top : SmallInt;
|
|
top : SmallInt;
|
|
left : SmallInt;
|
|
left : SmallInt;
|
|
- num_keys : Word;
|
|
|
|
|
|
+ num_keys : Word;
|
|
sz_keys : Word;
|
|
sz_keys : Word;
|
|
vertical : Integer; // SmallInt;
|
|
vertical : Integer; // SmallInt;
|
|
Keys : PXkbKeyPtr;
|
|
Keys : PXkbKeyPtr;
|
|
@@ -1515,7 +1513,7 @@ type
|
|
sz_doodads : Word;
|
|
sz_doodads : Word;
|
|
sz_overlays : Word;
|
|
sz_overlays : Word;
|
|
rows : PXkbRowPtr;
|
|
rows : PXkbRowPtr;
|
|
- doodads : PXkbDoodadPtr;
|
|
|
|
|
|
+ doodads : PXkbDoodadPtr;
|
|
bounds : TXkbBoundsRec;
|
|
bounds : TXkbBoundsRec;
|
|
overlays : PXkbOverlayPtr;
|
|
overlays : PXkbOverlayPtr;
|
|
end;
|
|
end;
|
|
@@ -1552,7 +1550,7 @@ type
|
|
TXkbGeometryRec = record
|
|
TXkbGeometryRec = record
|
|
name : TAtom;
|
|
name : TAtom;
|
|
width_mm : Word;
|
|
width_mm : Word;
|
|
- height_mm : Word;
|
|
|
|
|
|
+ height_mm : Word;
|
|
label_font : PAnsiChar;
|
|
label_font : PAnsiChar;
|
|
label_color : PXkbColorPtr;
|
|
label_color : PXkbColorPtr;
|
|
base_color : PXkbColorPtr;
|
|
base_color : PXkbColorPtr;
|
|
@@ -1561,19 +1559,19 @@ type
|
|
sz_shapes : Word;
|
|
sz_shapes : Word;
|
|
sz_sections : Word;
|
|
sz_sections : Word;
|
|
sz_doodads : Word;
|
|
sz_doodads : Word;
|
|
- sz_key_aliases : Word;
|
|
|
|
|
|
+ sz_key_aliases : Word;
|
|
num_properties : Word;
|
|
num_properties : Word;
|
|
num_colors : Word;
|
|
num_colors : Word;
|
|
num_shapes : Word;
|
|
num_shapes : Word;
|
|
- num_sections : Word;
|
|
|
|
- num_doodads : Word;
|
|
|
|
- num_key_aliases : Word;
|
|
|
|
- properties : PXkbPropertyPtr;
|
|
|
|
- colors : PXkbColorPtr;
|
|
|
|
- shapes : PXkbShapePtr;
|
|
|
|
- sections : PXkbSectionPtr;
|
|
|
|
- doodads : PXkbDoodadPtr;
|
|
|
|
- key_aliases : PXkbKeyAliasPtr;
|
|
|
|
|
|
+ num_sections : Word;
|
|
|
|
+ num_doodads : Word;
|
|
|
|
+ num_key_aliases : Word;
|
|
|
|
+ properties : PXkbPropertyPtr;
|
|
|
|
+ colors : PXkbColorPtr;
|
|
|
|
+ shapes : PXkbShapePtr;
|
|
|
|
+ sections : PXkbSectionPtr;
|
|
|
|
+ doodads : PXkbDoodadPtr;
|
|
|
|
+ key_aliases : PXkbKeyAliasPtr;
|
|
end;
|
|
end;
|
|
|
|
|
|
const
|
|
const
|
|
@@ -1590,14 +1588,14 @@ type
|
|
TXkbGeometrySizesRec = record
|
|
TXkbGeometrySizesRec = record
|
|
which : LongWord; // Word;
|
|
which : LongWord; // Word;
|
|
num_properties : Word;
|
|
num_properties : Word;
|
|
- num_colors : Word;
|
|
|
|
|
|
+ num_colors : Word;
|
|
num_shapes : Word;
|
|
num_shapes : Word;
|
|
num_sections : Word;
|
|
num_sections : Word;
|
|
num_doodads : Word;
|
|
num_doodads : Word;
|
|
num_key_aliases : Word;
|
|
num_key_aliases : Word;
|
|
- end;
|
|
|
|
|
|
+ end;
|
|
|
|
|
|
-{ End of KXBgeom.h }
|
|
|
|
|
|
+{ End of XKBgeom.h }
|
|
|
|
|
|
{
|
|
{
|
|
Tie it all together into one big keyboard description
|
|
Tie it all together into one big keyboard description
|
|
@@ -1668,17 +1666,17 @@ type
|
|
type
|
|
type
|
|
PXkbControlsChangesPtr = ^TXkbControlsChangesRec;
|
|
PXkbControlsChangesPtr = ^TXkbControlsChangesRec;
|
|
TXkbControlsChangesRec = record
|
|
TXkbControlsChangesRec = record
|
|
- changed_ctrls : LongWord; // Word;
|
|
|
|
- enabled_ctrls_changes : LongWord; // Word;
|
|
|
|
- num_groups_changed : TBool; // Boolean;
|
|
|
|
- end;
|
|
|
|
|
|
+ changed_ctrls : LongWord; // Word;
|
|
|
|
+ enabled_ctrls_changes : LongWord; // Word;
|
|
|
|
+ num_groups_changed : TBool; // Boolean;
|
|
|
|
+ end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbIndicatorChangesPtr = ^TXkbIndicatorChangesRec;
|
|
PXkbIndicatorChangesPtr = ^TXkbIndicatorChangesRec;
|
|
TXkbIndicatorChangesRec = record
|
|
TXkbIndicatorChangesRec = record
|
|
- state_changes : LongWord; // Word;
|
|
|
|
- map_changes : LongWord; // Word;
|
|
|
|
- end;
|
|
|
|
|
|
+ state_changes : LongWord; // Word;
|
|
|
|
+ map_changes : LongWord; // Word;
|
|
|
|
+ end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbNameChangesPtr = ^TXkbNameChangesRec;
|
|
PXkbNameChangesPtr = ^TXkbNameChangesRec;
|
|
@@ -1691,14 +1689,14 @@ type
|
|
num_aliases : Byte;
|
|
num_aliases : Byte;
|
|
num_rg : Byte;
|
|
num_rg : Byte;
|
|
first_key : Byte;
|
|
first_key : Byte;
|
|
- num_keys : Byte;
|
|
|
|
- changed_vmods : Word;
|
|
|
|
|
|
+ num_keys : Byte;
|
|
|
|
+ changed_vmods : Word;
|
|
{$If Defined(CPU64)}
|
|
{$If Defined(CPU64)}
|
|
changed_indicators : QWord;
|
|
changed_indicators : QWord;
|
|
{$ElseIf Defined(CPU32)}
|
|
{$ElseIf Defined(CPU32)}
|
|
changed_indicators : LongWord;
|
|
changed_indicators : LongWord;
|
|
{$Else}
|
|
{$Else}
|
|
- {$Error Only 64 or 32-bit systems supported.}
|
|
|
|
|
|
+ {$Error Only 64 or 32-bit systems supported.}
|
|
{$EndIf}
|
|
{$EndIf}
|
|
changed_groups : Byte;
|
|
changed_groups : Byte;
|
|
end;
|
|
end;
|
|
@@ -1706,7 +1704,7 @@ type
|
|
type
|
|
type
|
|
PXkbCompatChangesPtr = ^TXkbCompatChangesRec;
|
|
PXkbCompatChangesPtr = ^TXkbCompatChangesRec;
|
|
TXkbCompatChangesRec = record
|
|
TXkbCompatChangesRec = record
|
|
- changed_groups : Byte;
|
|
|
|
|
|
+ changed_groups : Byte;
|
|
first_si : Word;
|
|
first_si : Word;
|
|
num_si : Word;
|
|
num_si : Word;
|
|
end;
|
|
end;
|
|
@@ -1716,10 +1714,10 @@ type
|
|
TXkbChangesRec = record
|
|
TXkbChangesRec = record
|
|
device_spec : Word;
|
|
device_spec : Word;
|
|
state_changes : Word;
|
|
state_changes : Word;
|
|
- map : TXkbMapChangesRec;
|
|
|
|
|
|
+ map : TXkbMapChangesRec;
|
|
ctrls : TXkbControlsChangesRec;
|
|
ctrls : TXkbControlsChangesRec;
|
|
indicators : TXkbIndicatorChangesRec;
|
|
indicators : TXkbIndicatorChangesRec;
|
|
- names : TXkbNameChangesRec;
|
|
|
|
|
|
+ names : TXkbNameChangesRec;
|
|
compat : TXkbCompatChangesRec;
|
|
compat : TXkbCompatChangesRec;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1731,12 +1729,12 @@ type
|
|
type
|
|
type
|
|
PXkbComponentNamesPtr = ^TXkbComponentNamesRec;
|
|
PXkbComponentNamesPtr = ^TXkbComponentNamesRec;
|
|
TXkbComponentNamesRec = record
|
|
TXkbComponentNamesRec = record
|
|
- keymap : PShortInt;
|
|
|
|
- keycodes : PShortInt;
|
|
|
|
- types : PShortInt;
|
|
|
|
- compat : PShortInt;
|
|
|
|
- symbols : PShortInt;
|
|
|
|
- geometry : PShortInt;
|
|
|
|
|
|
+ keymap : PShortInt;
|
|
|
|
+ keycodes : PShortInt;
|
|
|
|
+ types : PShortInt;
|
|
|
|
+ compat : PShortInt;
|
|
|
|
+ symbols : PShortInt;
|
|
|
|
+ geometry : PShortInt;
|
|
end;
|
|
end;
|
|
|
|
|
|
type
|
|
type
|
|
@@ -1753,10 +1751,10 @@ type
|
|
num_keycodes : Integer; // SmallInt;
|
|
num_keycodes : Integer; // SmallInt;
|
|
num_types : Integer; // SmallInt;
|
|
num_types : Integer; // SmallInt;
|
|
num_compat : Integer; // SmallInt;
|
|
num_compat : Integer; // SmallInt;
|
|
- num_symbols : Integer; // SmallInt;
|
|
|
|
|
|
+ num_symbols : Integer; // SmallInt;
|
|
num_geometry : Integer; // SmallInt;
|
|
num_geometry : Integer; // SmallInt;
|
|
keymaps : PXkbComponentNamePtr;
|
|
keymaps : PXkbComponentNamePtr;
|
|
- keycodes : PXkbComponentNamePtr;
|
|
|
|
|
|
+ keycodes : PXkbComponentNamePtr;
|
|
types : PXkbComponentNamePtr;
|
|
types : PXkbComponentNamePtr;
|
|
compat : PXkbComponentNamePtr;
|
|
compat : PXkbComponentNamePtr;
|
|
symbols : PXkbComponentNamePtr;
|
|
symbols : PXkbComponentNamePtr;
|
|
@@ -1771,13 +1769,13 @@ type
|
|
PXkbDeviceLedInfoPtr = ^TXkbDeviceLedInfoRec;
|
|
PXkbDeviceLedInfoPtr = ^TXkbDeviceLedInfoRec;
|
|
TXkbDeviceLedInfoRec = record
|
|
TXkbDeviceLedInfoRec = record
|
|
led_class : Word;
|
|
led_class : Word;
|
|
- led_id : Word;
|
|
|
|
|
|
+ led_id : Word;
|
|
phys_indicators : LongWord; // Word;
|
|
phys_indicators : LongWord; // Word;
|
|
maps_present : LongWord; // Word;
|
|
maps_present : LongWord; // Word;
|
|
names_present : LongWord; // Word;
|
|
names_present : LongWord; // Word;
|
|
state : LongWord; // Word;
|
|
state : LongWord; // Word;
|
|
names : array [0..XkbNumIndicators -1] of TAtom;
|
|
names : array [0..XkbNumIndicators -1] of TAtom;
|
|
- maps : array [0..XkbNumIndicators -1] of TXkbIndicatorMapRec;
|
|
|
|
|
|
+ maps : array [0..XkbNumIndicators -1] of TXkbIndicatorMapRec;
|
|
end;
|
|
end;
|
|
|
|
|
|
type
|
|
type
|
|
@@ -1787,15 +1785,15 @@ type
|
|
_type : TAtom;
|
|
_type : TAtom;
|
|
device_spec : Word;
|
|
device_spec : Word;
|
|
has_own_state : TBool; // Boolean;
|
|
has_own_state : TBool; // Boolean;
|
|
- supported : Word;
|
|
|
|
|
|
+ supported : Word;
|
|
unsupported : Word;
|
|
unsupported : Word;
|
|
num_btns : Word;
|
|
num_btns : Word;
|
|
btn_acts : PXkbAction;
|
|
btn_acts : PXkbAction;
|
|
sz_leds : Word;
|
|
sz_leds : Word;
|
|
num_leds : Word;
|
|
num_leds : Word;
|
|
- dflt_kbd_fb : Word;
|
|
|
|
|
|
+ dflt_kbd_fb : Word;
|
|
dflt_led_fb : Word;
|
|
dflt_led_fb : Word;
|
|
- leds : PXkbDeviceLedInfoPtr;
|
|
|
|
|
|
+ leds : PXkbDeviceLedInfoPtr;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbXI_DevHasBtnActs (d : PXkbDeviceInfoPtr) : Boolean;
|
|
function XkbXI_DevHasBtnActs (d : PXkbDeviceInfoPtr) : Boolean;
|
|
@@ -1805,19 +1803,19 @@ function XkbXI_DevHasLeds (d : PXkbDeviceInfoPtr) : Boolean;
|
|
type
|
|
type
|
|
PXkbDeviceLedChangesPtr = ^TXkbDeviceLedChangesRec;
|
|
PXkbDeviceLedChangesPtr = ^TXkbDeviceLedChangesRec;
|
|
TXkbDeviceLedChangesRec = record
|
|
TXkbDeviceLedChangesRec = record
|
|
- led_class : Word;
|
|
|
|
- led_id : Word;
|
|
|
|
- defined : LongWord; // Word; //names or maps changed
|
|
|
|
- next : PXkbDeviceLedChangesPtr;
|
|
|
|
- end;
|
|
|
|
|
|
+ led_class : Word;
|
|
|
|
+ led_id : Word;
|
|
|
|
+ defined : LongWord; // Word; //names or maps changed
|
|
|
|
+ next : PXkbDeviceLedChangesPtr;
|
|
|
|
+ end;
|
|
|
|
|
|
type
|
|
type
|
|
PXkbDeviceChangesPtr = ^TXkbDeviceChangesRec;
|
|
PXkbDeviceChangesPtr = ^TXkbDeviceChangesRec;
|
|
TXkbDeviceChangesRec = record
|
|
TXkbDeviceChangesRec = record
|
|
changed : LongWord; // Word;
|
|
changed : LongWord; // Word;
|
|
- first_btn : Word;
|
|
|
|
|
|
+ first_btn : Word;
|
|
num_btns : Word;
|
|
num_btns : Word;
|
|
- leds : TXkbDeviceLedChangesRec;
|
|
|
|
|
|
+ leds : TXkbDeviceLedChangesRec;
|
|
end;
|
|
end;
|
|
|
|
|
|
function XkbShapeDoodadColor (g : PXkbGeometryPtr; d : PXkbShapeDoodadPtr) : PXkbColorPtr;
|
|
function XkbShapeDoodadColor (g : PXkbGeometryPtr; d : PXkbShapeDoodadPtr) : PXkbColorPtr;
|
|
@@ -1828,16 +1826,12 @@ procedure XkbSetShapeDoodadShape (g : PXkbGeometryPtr; d : PXkbShapeDoodadPtr; s
|
|
function XkbTextDoodadColor (g : PXkbGeometryPtr; d : PXkbTextDoodadPtr) : PXkbColorPtr;
|
|
function XkbTextDoodadColor (g : PXkbGeometryPtr; d : PXkbTextDoodadPtr) : PXkbColorPtr;
|
|
procedure XkbSetTextDoodadColor (g : PXkbGeometryPtr; d : PXkbTextDoodadPtr; c : PXkbColorPtr);
|
|
procedure XkbSetTextDoodadColor (g : PXkbGeometryPtr; d : PXkbTextDoodadPtr; c : PXkbColorPtr);
|
|
|
|
|
|
-function XkbIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr)
|
|
|
|
- : PXkbShapeDoodadPtr;
|
|
|
|
|
|
+function XkbIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr) : PXkbShapeDoodadPtr;
|
|
function XkbIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr) : PXkbColorPtr;
|
|
function XkbIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr) : PXkbColorPtr;
|
|
function XkbIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr) : PXkbColorPtr;
|
|
function XkbIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr) : PXkbColorPtr;
|
|
-procedure XkbSetIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- c : PXkbColorPtr);
|
|
|
|
-procedure XkbSetIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- c : PXkbColorPtr);
|
|
|
|
-procedure XkbSetIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- s : PXkbShapeDoodadPtr);
|
|
|
|
|
|
+procedure XkbSetIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; c : PXkbColorPtr);
|
|
|
|
+procedure XkbSetIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; c : PXkbColorPtr);
|
|
|
|
+procedure XkbSetIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; s : PXkbShapeDoodadPtr);
|
|
|
|
|
|
function XkbLogoDoodadColor (g : PXkbGeometryPtr; d : PXkbLogoDoodadPtr) : PXkbColorPtr;
|
|
function XkbLogoDoodadColor (g : PXkbGeometryPtr; d : PXkbLogoDoodadPtr) : PXkbColorPtr;
|
|
function XkbLogoDoodadShape (g : PXkbGeometryPtr; d : PXkbLogoDoodadPtr) : PXkbShapeDoodadPtr;
|
|
function XkbLogoDoodadShape (g : PXkbGeometryPtr; d : PXkbLogoDoodadPtr) : PXkbShapeDoodadPtr;
|
|
@@ -1872,9 +1866,8 @@ function XkbAddGeomKey (row : PXkbRowPtr) : PXkbKeyPtr;
|
|
function XkbAddGeomRow (section : PXkbSectionPtr; sz_keys : SmallInt) : PXkbRowPtr;
|
|
function XkbAddGeomRow (section : PXkbSectionPtr; sz_keys : SmallInt) : PXkbRowPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomRow';
|
|
cdecl; external libX11 name 'XkbAddGeomRow';
|
|
|
|
|
|
-function XkbAddGeomSection (geom : PXkbGeometryPtr; name : TAtom;
|
|
|
|
- sz_rows : SmallInt; sz_doodads : SmallInt;
|
|
|
|
- sz_overlays : SmallInt) : PXkbSectionPtr;
|
|
|
|
|
|
+function XkbAddGeomSection (geom : PXkbGeometryPtr; name : TAtom; sz_rows: SmallInt; sz_doodads : SmallInt;
|
|
|
|
+ sz_overlays : SmallInt) : PXkbSectionPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomSection';
|
|
cdecl; external libX11 name 'XkbAddGeomSection';
|
|
|
|
|
|
function XkbAddGeomOverlay (section : PXkbSectionPtr; name : TAtom; sz_rows : SmallInt) : PXkbOverlayPtr;
|
|
function XkbAddGeomOverlay (section : PXkbSectionPtr; name : TAtom; sz_rows : SmallInt) : PXkbOverlayPtr;
|
|
@@ -1884,15 +1877,15 @@ function XkbAddGeomOverlayRow (overlay : PXkbOverlayPtr; row_under : SmallInt;
|
|
sz_keys : SmallInt) : PXkbOverlayRowPtr;
|
|
sz_keys : SmallInt) : PXkbOverlayRowPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayRow';
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayRow';
|
|
|
|
|
|
-function XkbAddGeomOverlayKey (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr;
|
|
|
|
- over : PAnsiChar; under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
|
|
|
|
+function XkbAddGeomOverlayKey (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr; over : PAnsiChar;
|
|
|
|
+ under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
|
|
|
|
function XkbAddGeomDoodad (geom : PXkbGeometryPtr; section : PXkbSectionPtr; name : TAtom) : PXkbDoodadPtr;
|
|
function XkbAddGeomDoodad (geom : PXkbGeometryPtr; section : PXkbSectionPtr; name : TAtom) : PXkbDoodadPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomDoodad';
|
|
cdecl; external libX11 name 'XkbAddGeomDoodad';
|
|
|
|
|
|
procedure XkbFreeGeomKeyAliases (geom : PXkbGeometryPtr; first : SmallInt;
|
|
procedure XkbFreeGeomKeyAliases (geom : PXkbGeometryPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomKeyAliases';
|
|
cdecl; external libX11 name 'XkbFreeGeomKeyAliases';
|
|
|
|
|
|
procedure XkbFreeGeomColors (geom : PXkbGeometryPtr; first : SmallInt; count : SmallInt; freeAll : Boolean);
|
|
procedure XkbFreeGeomColors (geom : PXkbGeometryPtr; first : SmallInt; count : SmallInt; freeAll : Boolean);
|
|
@@ -1902,15 +1895,15 @@ procedure XkbFreeGeomDoodads (doodads : PXkbDoodadPtr; nDoodads : SmallInt; free
|
|
cdecl; external libX11 name 'XkbFreeGeomDoodads';
|
|
cdecl; external libX11 name 'XkbFreeGeomDoodads';
|
|
|
|
|
|
procedure XkbFreeGeomProperties (geom : PXkbGeometryPtr; first : SmallInt;
|
|
procedure XkbFreeGeomProperties (geom : PXkbGeometryPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomProperties';
|
|
cdecl; external libX11 name 'XkbFreeGeomProperties';
|
|
|
|
|
|
procedure XkbFreeGeomOverlayKeys (row : PXkbOverlayRowPtr; first : SmallInt;
|
|
procedure XkbFreeGeomOverlayKeys (row : PXkbOverlayRowPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayKeys';
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayKeys';
|
|
|
|
|
|
procedure XkbFreeGeomOverlayRows (overlay : PXkbOverlayPtr; first : SmallInt;
|
|
procedure XkbFreeGeomOverlayRows (overlay : PXkbOverlayPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayRows';
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayRows';
|
|
|
|
|
|
procedure XkbFreeGeomOverlays (section : PXkbSectionPtr; first : SmallInt;
|
|
procedure XkbFreeGeomOverlays (section : PXkbSectionPtr; first : SmallInt;
|
|
@@ -2021,7 +2014,7 @@ function SrvXkbAddGeomColor (geom : PXkbGeometryPtr; spec : PAnsiChar; pixel : W
|
|
cdecl; external libX11 name 'XkbAddGeomColor';
|
|
cdecl; external libX11 name 'XkbAddGeomColor';
|
|
|
|
|
|
function SrvXkbAddGeomDoodad (geom : PXkbGeometryPtr; section : PXkbSectionPtr;
|
|
function SrvXkbAddGeomDoodad (geom : PXkbGeometryPtr; section : PXkbSectionPtr;
|
|
- name : TAtom) : PXkbDoodadPtr;
|
|
|
|
|
|
+ name : TAtom) : PXkbDoodadPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomDoodad';
|
|
cdecl; external libX11 name 'XkbAddGeomDoodad';
|
|
|
|
|
|
function SrvXkbAddGeomKey (geom : PXkbGeometryPtr; alias : PAnsiChar; real : PAnsiChar) : PXkbKeyAliasPtr;
|
|
function SrvXkbAddGeomKey (geom : PXkbGeometryPtr; alias : PAnsiChar; real : PAnsiChar) : PXkbKeyAliasPtr;
|
|
@@ -2030,16 +2023,14 @@ function SrvXkbAddGeomKey (geom : PXkbGeometryPtr; alias : PAnsiChar; real : PAn
|
|
function SrvXkbAddGeomOutline (shape : PXkbShapePtr; sz_points : SmallInt) : PXkbOutlinePtr;
|
|
function SrvXkbAddGeomOutline (shape : PXkbShapePtr; sz_points : SmallInt) : PXkbOutlinePtr;
|
|
cdecl; external libX11 name 'XkbAddGeomOutline';
|
|
cdecl; external libX11 name 'XkbAddGeomOutline';
|
|
|
|
|
|
-function SrvXkbAddGeomOverlay (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr;
|
|
|
|
- over : PAnsiChar; under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
|
|
|
|
+function SrvXkbAddGeomOverlay (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr; over : PAnsiChar;
|
|
|
|
+ under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
|
|
|
|
-function SrvXkbAddGeomOverlayRow (overlay : PXkbOverlayPtr; row_under : SmallInt;
|
|
|
|
- sz_keys : SmallInt) : PXkbOverlayRowPtr
|
|
|
|
|
|
+function SrvXkbAddGeomOverlayRow (overlay : PXkbOverlayPtr; row_under : SmallInt; sz_keys : SmallInt) : PXkbOverlayRowPtr
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayRow';
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayRow';
|
|
|
|
|
|
-function SrvXkbAddGeomOverlayKey (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr;
|
|
|
|
- over : PAnsiChar; under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
|
|
|
|
+function SrvXkbAddGeomOverlayKey (overlay : PXkbOverlayPtr; row : PXkbOverlayRowPtr; over : PAnsiChar; under : PAnsiChar) : PXkbOverlayKeyPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
cdecl; external libX11 name 'XkbAddGeomOverlayKey';
|
|
|
|
|
|
function SrvXkbAddGeomProperty (geom : PXkbGeometryPtr; name : PAnsiChar; value : PAnsiChar) : PXkbPropertyPtr;
|
|
function SrvXkbAddGeomProperty (geom : PXkbGeometryPtr; name : PAnsiChar; value : PAnsiChar) : PXkbPropertyPtr;
|
|
@@ -2048,9 +2039,8 @@ function SrvXkbAddGeomProperty (geom : PXkbGeometryPtr; name : PAnsiChar; value
|
|
function SrvXkbAddGeomRow (section : PXkbSectionPtr; sz_keys : SmallInt) : PXkbRowPtr;
|
|
function SrvXkbAddGeomRow (section : PXkbSectionPtr; sz_keys : SmallInt) : PXkbRowPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomRow';
|
|
cdecl; external libX11 name 'XkbAddGeomRow';
|
|
|
|
|
|
-function SrvXkbAddGeomSection (geom : PXkbGeometryPtr; name : TAtom;
|
|
|
|
- sz_rows : SmallInt; sz_doodads : SmallInt;
|
|
|
|
- sz_overlays : SmallInt) : PXkbSectionPtr;
|
|
|
|
|
|
+function SrvXkbAddGeomSection (geom : PXkbGeometryPtr; name : TAtom; sz_rows : SmallInt; sz_doodads : SmallInt;
|
|
|
|
+ sz_overlays : SmallInt) : PXkbSectionPtr;
|
|
cdecl; external libX11 name 'XkbAddGeomSection';
|
|
cdecl; external libX11 name 'XkbAddGeomSection';
|
|
|
|
|
|
function SrvXkbAddGeomShape (geom : PXkbGeometryPtr; name : TAtom; sz_outlines : SmallInt) : PXkbShapePtr;
|
|
function SrvXkbAddGeomShape (geom : PXkbGeometryPtr; name : TAtom; sz_outlines : SmallInt) : PXkbShapePtr;
|
|
@@ -2102,7 +2092,7 @@ function SrvXkbAllocGeometry (xkb : PXkbDescPtr; sizes : PXkbGeometrySizesPtr) :
|
|
cdecl; external libX11 name 'XkbAllocGeometry';
|
|
cdecl; external libX11 name 'XkbAllocGeometry';
|
|
|
|
|
|
procedure SrvXkbFreeGeomKeyAliases (geom : PXkbGeometryPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomKeyAliases (geom : PXkbGeometryPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomKeyAliases';
|
|
cdecl; external libX11 name 'XkbFreeGeomKeyAliases';
|
|
|
|
|
|
procedure SrvXkbFreeGeomColors (geom : PXkbGeometryPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomColors (geom : PXkbGeometryPtr; first : SmallInt;
|
|
@@ -2113,15 +2103,15 @@ procedure SrvXkbFreeGeomDoodads (doodads : PXkbDoodadPtr; nDoodads : SmallInt; f
|
|
cdecl; external libX11 name 'XkbFreeGeomDoodads';
|
|
cdecl; external libX11 name 'XkbFreeGeomDoodads';
|
|
|
|
|
|
procedure SrvXkbFreeGeomProperties (geom : PXkbGeometryPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomProperties (geom : PXkbGeometryPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomProperties';
|
|
cdecl; external libX11 name 'XkbFreeGeomProperties';
|
|
|
|
|
|
procedure SrvXkbFreeGeomOverlayKeys (row : PXkbOverlayRowPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomOverlayKeys (row : PXkbOverlayRowPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayKeys';
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayKeys';
|
|
|
|
|
|
procedure SrvXkbFreeGeomOverlayRows (overlay : PXkbOverlayPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomOverlayRows (overlay : PXkbOverlayPtr; first : SmallInt;
|
|
- count : SmallInt; freeAll : Boolean);
|
|
|
|
|
|
+ count : SmallInt; freeAll : Boolean);
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayRows';
|
|
cdecl; external libX11 name 'XkbFreeGeomOverlayRows';
|
|
|
|
|
|
procedure SrvXkbFreeGeomOverlays (section : PXkbSectionPtr; first : SmallInt;
|
|
procedure SrvXkbFreeGeomOverlays (section : PXkbSectionPtr; first : SmallInt;
|
|
@@ -2174,7 +2164,7 @@ end;
|
|
function XkbLegalXIBellClass (c : Cardinal) : LongBool;
|
|
function XkbLegalXIBellClass (c : Cardinal) : LongBool;
|
|
begin
|
|
begin
|
|
{#define XkbLegalXIBellClass(c) (((c)==KbdFeedbackClass)||((c)==BellFeedbackClass)||
|
|
{#define XkbLegalXIBellClass(c) (((c)==KbdFeedbackClass)||((c)==BellFeedbackClass)||
|
|
- ((c)==XkbDfltXIClass)||((c)==XkbAllXIClasses))}
|
|
|
|
|
|
+ ((c)==XkbDfltXIClass)||((c)==XkbAllXIClasses))}
|
|
Result := (c = KbdFeedbackClass) or (c = BellFeedbackClass) or
|
|
Result := (c = KbdFeedbackClass) or (c = BellFeedbackClass) or
|
|
(c = XkbDfltXIClass) or (c = XkbAllXIClasses);
|
|
(c = XkbDfltXIClass) or (c = XkbAllXIClasses);
|
|
end;
|
|
end;
|
|
@@ -2462,7 +2452,7 @@ end;
|
|
procedure XkbActionSetCtrls (a : PXkbCtrlsAction; c : Byte);
|
|
procedure XkbActionSetCtrls (a : PXkbCtrlsAction; c : Byte);
|
|
begin
|
|
begin
|
|
{#define XkbActionSetCtrls(a,c) (((a)->ctrls3=(((c)>>24)&0xff)),((a)->ctrls2=(((c)>>16)&0xff)),
|
|
{#define XkbActionSetCtrls(a,c) (((a)->ctrls3=(((c)>>24)&0xff)),((a)->ctrls2=(((c)>>16)&0xff)),
|
|
- ((a)->ctrls1=(((c)>>8)&0xff)),((a)->ctrls0=((c)&0xff))) }
|
|
|
|
|
|
+ ((a)->ctrls1=(((c)>>8)&0xff)),((a)->ctrls0=((c)&0xff))) }
|
|
a^.ctrls3 := ((c shr 24) and $ff);
|
|
a^.ctrls3 := ((c shr 24) and $ff);
|
|
a^.ctrls2 := ((c shr 16) and $ff);
|
|
a^.ctrls2 := ((c shr 16) and $ff);
|
|
a^.ctrls1 := ((c shr 8) and $ff);
|
|
a^.ctrls1 := ((c shr 8) and $ff);
|
|
@@ -2482,8 +2472,7 @@ end;
|
|
function XkbSARedirectVMods (a : PXkbRedirectKeyAction) : Word;
|
|
function XkbSARedirectVMods (a : PXkbRedirectKeyAction) : Word;
|
|
begin
|
|
begin
|
|
{#define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|((unsigned int)(a)->vmods0))}
|
|
{#define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|((unsigned int)(a)->vmods0))}
|
|
- Result := (a^.vmods1 shl 8) or
|
|
|
|
- a^.vmods0;
|
|
|
|
|
|
+ Result := (a^.vmods1 shl 8) or a^.vmods0;
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure XkbSARedirectSetVMods (a : PXkbRedirectKeyAction; m : Byte);
|
|
procedure XkbSARedirectSetVMods (a : PXkbRedirectKeyAction; m : Byte);
|
|
@@ -2496,7 +2485,7 @@ end;
|
|
function XkbSARedirectVModsMask (a : PXkbRedirectKeyAction) : Word;
|
|
function XkbSARedirectVModsMask (a : PXkbRedirectKeyAction) : Word;
|
|
begin
|
|
begin
|
|
{#define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask1)<<8)|
|
|
{#define XkbSARedirectVModsMask(a) ((((unsigned int)(a)->vmods_mask1)<<8)|
|
|
- ((unsigned int)(a)->vmods_mask0))}
|
|
|
|
|
|
+ ((unsigned int)(a)->vmods_mask0))}
|
|
Result := (a^.vmods_mask1 shl 8) or
|
|
Result := (a^.vmods_mask1 shl 8) or
|
|
a^.vmods_mask0;
|
|
a^.vmods_mask0;
|
|
end;
|
|
end;
|
|
@@ -2674,7 +2663,7 @@ end;
|
|
function XkbKeyActionEntry (d : PXkbDescPtr; k : Word; sl : Word; g : Byte) : Byte;
|
|
function XkbKeyActionEntry (d : PXkbDescPtr; k : Word; sl : Word; g : Byte) : Byte;
|
|
begin
|
|
begin
|
|
{#define XkbKeyActionEntry(d,k,sl,g) (XkbKeyHasActions(d,k) ?
|
|
{#define XkbKeyActionEntry(d,k,sl,g) (XkbKeyHasActions(d,k) ?
|
|
- XkbKeyAction(d, k, ((XkbKeyGroupsWidth(d, k) * (g))+(sl))):NULL)}
|
|
|
|
|
|
+ XkbKeyAction(d, k, ((XkbKeyGroupsWidth(d, k) * (g))+(sl))):NULL)}
|
|
if (XkbKeyHasActions(d, k)) then
|
|
if (XkbKeyHasActions(d, k)) then
|
|
Result := (XkbKeyGroupsWidth(d, k) * g) + sl
|
|
Result := (XkbKeyGroupsWidth(d, k) * g) + sl
|
|
else
|
|
else
|
|
@@ -2806,22 +2795,19 @@ begin
|
|
Result := @g^.colors [d^.off_color_ndx];
|
|
Result := @g^.colors [d^.off_color_ndx];
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure XkbSetIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- c : PXkbColorPtr);
|
|
|
|
|
|
+procedure XkbSetIndicatorDoodadOnColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; c : PXkbColorPtr);
|
|
begin
|
|
begin
|
|
{#define XkbSetIndicatorDoodadOnColor(g,d,c) ((d)->on_color_ndx= (c)-&(g)->colors[0])}
|
|
{#define XkbSetIndicatorDoodadOnColor(g,d,c) ((d)->on_color_ndx= (c)-&(g)->colors[0])}
|
|
d^.on_color_ndx := c - @g^.colors [0];
|
|
d^.on_color_ndx := c - @g^.colors [0];
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure XkbSetIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- c : PXkbColorPtr);
|
|
|
|
|
|
+procedure XkbSetIndicatorDoodadOffColor (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; c : PXkbColorPtr);
|
|
begin
|
|
begin
|
|
{#define XkbSetIndicatorDoodadOffColor(g,d,c) ((d)->off_color_ndx= (c)-&(g)->colors[0])}
|
|
{#define XkbSetIndicatorDoodadOffColor(g,d,c) ((d)->off_color_ndx= (c)-&(g)->colors[0])}
|
|
d^.off_color_ndx := c - @g^.colors [0];
|
|
d^.off_color_ndx := c - @g^.colors [0];
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure XkbSetIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr;
|
|
|
|
- s : PXkbShapeDoodadPtr);
|
|
|
|
|
|
+procedure XkbSetIndicatorDoodadShape (g : PXkbGeometryPtr; d : PXkbIndicatorDoodadPtr; s : PXkbShapeDoodadPtr);
|
|
begin
|
|
begin
|
|
{#define XkbSetIndicatorDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])}
|
|
{#define XkbSetIndicatorDoodadShape(g,d,s) ((d)->shape_ndx= (s)-&(g)->shapes[0])}
|
|
d^.shape_ndx := PXkbShapePtr(s) - @g^.shapes [0];
|
|
d^.shape_ndx := PXkbShapePtr(s) - @g^.shapes [0];
|