1
# Xlib.protocol.structs -- some common request structures
3
# Copyright (C) 2000 Peter Liljenberg <petli@ctrl-c.liu.se>
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
# Xlib.protocol modules
25
def WindowValues(arg):
26
return rq.ValueList( arg, 4, 0,
27
rq.Pixmap('background_pixmap'),
28
rq.Card32('background_pixel'),
29
rq.Pixmap('border_pixmap'),
30
rq.Card32('border_pixel'),
31
rq.Gravity('bit_gravity'),
32
rq.Gravity('win_gravity'),
33
rq.Set('backing_store', 1,
34
(X.NotUseful, X.WhenMapped, X.Always)),
35
rq.Card32('backing_planes'),
36
rq.Card32('backing_pixel'),
37
rq.Bool('override_redirect'),
38
rq.Bool('save_under'),
39
rq.Card32('event_mask'),
40
rq.Card32('do_not_propagate_mask'),
41
rq.Colormap('colormap'),
46
return rq.ValueList( arg, 4, 0,
48
(X.GXclear, X.GXand, X.GXandReverse,
49
X.GXcopy, X.GXandInverted, X.GXnoop,
50
X.GXxor, X.GXor, X.GXnor, X.GXequiv,
51
X.GXinvert, X.GXorReverse, X.GXcopyInverted,
52
X.GXorInverted, X.GXnand, X.GXset)),
53
rq.Card32('plane_mask'),
54
rq.Card32('foreground'),
55
rq.Card32('background'),
56
rq.Card16('line_width'),
57
rq.Set('line_style', 1,
58
(X.LineSolid, X.LineOnOffDash, X.LineDoubleDash)),
59
rq.Set('cap_style', 1,
60
(X.CapNotLast, X.CapButt,
61
X.CapRound, X.CapProjecting)),
62
rq.Set('join_style', 1,
63
(X.JoinMiter, X.JoinRound, X.JoinBevel)),
64
rq.Set('fill_style', 1,
65
(X.FillSolid, X.FillTiled,
66
X.FillStippled, X.FillOpaqueStippled)),
67
rq.Set('fill_rule', 1,
68
(X.EvenOddRule, X.WindingRule)),
71
rq.Int16('tile_stipple_x_origin'),
72
rq.Int16('tile_stipple_y_origin'),
74
rq.Set('subwindow_mode', 1,
75
(X.ClipByChildren, X.IncludeInferiors)),
76
rq.Bool('graphics_exposures'),
77
rq.Int16('clip_x_origin'),
78
rq.Int16('clip_y_origin'),
79
rq.Pixmap('clip_mask'),
80
rq.Card16('dash_offset'),
82
rq.Set('arc_mode', 1, (X.ArcChord, X.ArcPieSlice))
87
TimeCoord = rq.Struct(
94
rq.Set('family', 1, (X.FamilyInternet, X.FamilyDECnet, X.FamilyChaos)),
96
rq.LengthOf('name', 2),
97
rq.List('name', rq.Card8Obj)
100
CharInfo = rq.Struct(
101
rq.Int16('left_side_bearing'),
102
rq.Int16('right_side_bearing'),
103
rq.Int16('character_width'),
106
rq.Card16('attributes'),
109
FontProp = rq.Struct(
114
ColorItem = rq.Struct(
144
Rectangle = rq.Struct(