39 |
Server to Client Operations |
Server to Client Operations |
40 |
=========================== |
=========================== |
41 |
|
|
42 |
CREATE1 |
CREATE |
43 |
------- |
------ |
44 |
|
|
45 |
Allocate structures for a new window. |
Allocate structures for a new window. |
46 |
|
|
47 |
Syntax: |
Syntax: |
48 |
CREATE1,<ID>,<FLAGS> |
CREATE,<ID>,<FLAGS> |
49 |
|
|
50 |
Note that very little information is included in this message. Things like |
Note that very little information is included in this message. Things like |
51 |
title and state will come in subsequent messages. This message should only |
title and state will come in subsequent messages. This message should only |
52 |
be used to allocate data structures for the new window. |
be used to allocate data structures for the new window. |
53 |
|
|
54 |
DESTROY1 |
DESTROY |
55 |
-------- |
------- |
56 |
|
|
57 |
Remove a window. |
Remove a window. |
58 |
|
|
59 |
Syntax: |
Syntax: |
60 |
DESTROY1,<ID>,<FLAGS> |
DESTROY,<ID>,<FLAGS> |
61 |
|
|
62 |
Remove the window and deallocate all associated structures. |
Remove the window and deallocate all associated structures. |
63 |
|
|
64 |
POSITION1 |
POSITION |
65 |
--------- |
-------- |
66 |
|
|
67 |
Move a window. |
Move and/or resize a window. |
68 |
|
|
69 |
Syntax: |
Syntax: |
70 |
POSITION1,<ID>,<X>,<Y>,<WIDTH>,<HEIGHT>,<FLAGS> |
POSITION,<ID>,<X>,<Y>,<WIDTH>,<HEIGHT>,<FLAGS> |
71 |
|
|
72 |
Move and/or resize a window. If the window isn't visible yet (because a |
If the window isn't visible yet (because a |
73 |
SETSTATE1 hasn't been set or because it's minimised), you must store the |
STATE hasn't been set or because it's minimised), you must store the position |
74 |
position and size. A new POSITION1 is not guaranteed to be sent when the |
and size. A new POSITION is not guaranteed to be sent when the window changes |
75 |
window changes state. |
state. |
76 |
|
|
77 |
|
TITLE |
78 |
|
----- |
79 |
|
|
80 |
|
Sets a window title. |
81 |
|
|
82 |
|
Syntax: |
83 |
|
TITLE,<ID>,<TITLE>,<FLAGS> |
84 |
|
|
85 |
|
The text is guaranteed to be stripped of control characters (< 0x20). |
86 |
|
|
87 |
|
Note that this has the same requirement as POSITION, that the title needs to |
88 |
|
be stored for newly created windows until a STATE is sent. |
89 |
|
|
90 |
ZCHANGE1 |
|
91 |
-------- |
ZCHANGE |
92 |
|
------- |
93 |
|
|
94 |
The window moved in z order. |
The window moved in z order. |
95 |
|
|
96 |
Syntax: |
Syntax: |
97 |
ZCHANGE1,<ID>,<BEHIND>,<FLAGS> |
ZCHANGE,<ID>,<BEHIND>,<FLAGS> |
98 |
|
|
99 |
The window with the id ID is behind the window with the id BEHIND. If |
The window with the id ID is behind the window with the id BEHIND. If |
100 |
BEHIND is 0, then this window should be brought to the front. |
BEHIND is 0, then this window should be brought to the front. |
101 |
|
|
102 |
SETSTATE1 |
STATE |
103 |
--------- |
----- |
104 |
|
|
105 |
Changes the window's state and/or title. |
Changes the window's state and/or title. |
106 |
|
|
107 |
Syntax: |
Syntax: |
108 |
SETSTATE1,<ID>,<TITLE>,<STATE>,<FLAGS> |
STATE,<ID>,<STATE>,<FLAGS> |
109 |
|
|
110 |
State can have one of three values: |
State can have one of three values: |
111 |
0 : "Normal" window. |
0 : "Normal" window. |
113 |
2 : Maximised. |
2 : Maximised. |
114 |
|
|
115 |
|
|
116 |
DEBUG1 |
DEBUG |
117 |
------ |
----- |
118 |
|
|
119 |
Debug output from the server component. |
Debug output from the server component. |
120 |
|
|
121 |
Syntax: |
Syntax: |
122 |
DEBUG1,<STRING> |
DEBUG,<STRING> |
123 |
|
|
124 |
Used for debugging. |
Used for debugging. |
125 |
|
|
157 |
Syntax: |
Syntax: |
158 |
SYNC,<FLAGS> |
SYNC,<FLAGS> |
159 |
|
|
160 |
For each window, the server will send CREATE1, POSITION1 and SETSTATE1 just as |
For each window, the server will send CREATE, POSITION and SETSTATE just as |
161 |
if the window was created. |
if the window was created. |
162 |
|
|
163 |
|
POSITION |
164 |
|
-------- |
165 |
|
|
166 |
|
Identical to the command sent from server to client. |
167 |
|
|
168 |
|
TITLE |
169 |
|
----- |
170 |
|
|
171 |
|
Identical to the command sent from server to client. |
172 |
|
|
173 |
|
ZCHANGE |
174 |
|
------- |
175 |
|
|
176 |
|
Identical to the command sent from server to client. |
177 |
|
|
178 |
|
STATE |
179 |
|
----- |
180 |
|
|
181 |
|
Identical to the command sent from server to client. |
182 |
|
|
183 |
|
FOCUS |
184 |
|
----- |
185 |
|
|
186 |
|
Sets which window has input focus. |
187 |
|
|
188 |
|
Syntax: |
189 |
|
FOCUS,<ID>,<FLAGS> |
190 |
|
|
191 |
|
Changes which window that will recieve the keyboard events. Note that this |
192 |
|
might cause the window to change z order. |