File: xclick.xml

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (267 lines) | stat: -rw-r--r-- 7,263 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) ENPC - Jean-Philippe Chancelier
 * Copyright (C) 2008 - INRIA - Vincent COUVERT
 * 
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at    
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
 *
 -->
<refentry version="5.0-subset Scilab" xml:id="xclick" xml:lang="fr"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <pubdate>$LastChangedDate: 2008-03-26 09:50:39 +0100 (mer, 26 mar 2008)
    $</pubdate>
  </info>

  <refnamediv>
    <refname>xclick</refname>

    <refpurpose>Attend un appui sur un bouton de la souris.</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Séquence d'appel</title>

    <synopsis>[ibutton,xcoord,yxcoord,iwin,cbmenu]=xclick([flag])</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Paramètres</title>

    <variablelist>
      <varlistentry>
        <term>ibutton</term>

        <listitem>
          <para>Scalaire réel (valeur entière): numéro de bouton, code de
          touche clavier...(Voir description ci-dessous).</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>xccord</term>

        <listitem>
          <para>Scalaire réel: abscisse du pointeur de la souris au moment du
          clic, à l'échelle graphique courante.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ycoord</term>

        <listitem>
          <para>Scalaire réel: ordonnée du pointeur de la souris au moment du
          clic, à l'échelle graphique courante.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>iwin</term>

        <listitem>
          <para>Scalaire réel (valeur entière): numéro de la fenêtre où
          l'action s'est produite.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>cbmenu</term>

        <listitem>
          <para>Chaîne de caractères: callback associé à un menu dynamique si
          <literal>xclick</literal> se termine à cause d'un clic sur un menu.
          Dans ce cas, <literal>ibutton</literal>, <literal>xcoord</literal>,
          <literal>ycoord</literal>, et <literal>iwin</literal> prennent des
          valeurs arbitraires.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>flag</term>

        <listitem>
          <para>Scalaire réel (valeur entière): S'il est présent, la queue
          d'évènements des clics de souris n'est pas vidée
          préalablement.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Description</title>

    <para><literal>xclick</literal> attend l'appui sur un bouton de la
    souris.</para>

    <para>Appelée avec 3 arguments en sortie, cette fonction attend qu'un
    bouton de la souris soit pressé avec le pointeur dans la fenêtre graphique
    courante.</para>

    <para>Avec 4 ou 5 arguments en sortie, l'appui sur un bouton de la souris
    est attendu dans toutes les fenêtres graphiques.</para>

    <para>Les valeurs de <literal>ibutton</literal> sont décrites ci-dessous
    :</para>

    <variablelist>
      <varlistentry>
        <term>ibutton==0</term>

        <listitem>
          <para>Le bouton gauche a été pressé.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==1</term>

        <listitem>
          <para>Le bouton central a été pressé.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==2</term>

        <listitem>
          <para>Le bouton droit a été pressé.</para>

          <para></para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==3</term>

        <listitem>
          <para>Le bouton gauche a été cliqué.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==4</term>

        <listitem>
          <para>Le bouton central a été cliqué.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==5</term>

        <listitem>
          <para>Le bouton droit a été cliqué.</para>

          <para></para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==10</term>

        <listitem>
          <para>Le bouton gauche a été double-cliqué.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==11</term>

        <listitem>
          <para>Le bouton central a été double-cliqué.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==12</term>

        <listitem>
          <para>Le bouton droit a été double-cliqué.</para>

          <para></para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton &gt;=32</term>

        <listitem>
          <para>La touche de code ASCII <literal>ibutton</literal> a été
          pressée.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton &lt;=32</term>

        <listitem>
          <para>La touche de code ASCII <literal>-ibutton</literal> a été
          relachée.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton &gt;=1000+32</term>

        <listitem>
          <para>La touche de code ASCII <literal>ibutton-1000</literal> a été
          pressée avec la touche CTRL enfoncée.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==-1000</term>

        <listitem>
          <para>La fenêtre graphique a été fermée.</para>

          <para>ATTENTION : ibutton était égal à -100 pour la fermeture de la
          fenêtre graphique jusqu'à Scilab 4.1.2, mais ce code a été changé
          (dans Scilab 5.0) parce qu'il correspondait aussi au code retourné
          pour la touche <literal>d</literal> relachée.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>ibutton==-2</term>

        <listitem>
          <para>Un menu dynamique a été selectionné et son callback est
          retourné par <literal>cbmenu</literal>.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>

  <refsection>
    <title>Voir Aussi</title>

    <simplelist type="inline">
      <member><link linkend="locate">locate</link></member>

      <member><link linkend="xgetmouse">xgetmouse</link></member>

      <member><link linkend="seteventhandler">seteventhandler</link></member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Auteurs</title>

    <para>J.Ph.C.</para>

    <para>V.C.</para>
  </refsection>
</refentry>