813da3376928c007c5fbb7b7606ad76b7710e3d3
[scilab.git] / scilab / modules / xcos / help / en_US / scilab_utilities_functions / standard_origin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="standard_origin">
3     <refnamediv>
4         <refname>standard_origin</refname>
5         <refpurpose>Get the position of a block in the Xcos editor.</refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>Calling Sequence</title>
9         <synopsis>[x,y] = standard_origin(block)
10         </synopsis>
11     </refsynopsisdiv>
12     <refsection>
13         <title>Arguments</title>
14         <variablelist>
15             <varlistentry>
16                 <term>block</term>
17                 <listitem>
18                     <para>xcos block.</para>
19                 </listitem>
20             </varlistentry>
21             <varlistentry>
22                 <term>x</term>
23                 <listitem>
24                     <para>x position of the block.</para>
25                 </listitem>
26             </varlistentry>
27             <varlistentry>
28                 <term>y</term>
29                 <listitem>
30                     <para>y position of the block.</para>
31                 </listitem>
32             </varlistentry>
33         </variablelist>
34     </refsection>
35     <refsection>
36         <title>Description</title>
37         <para>
38             This Scilab function is used to get the origin position (<varname>x</varname>,<varname>y</varname>) of a Xcos block.
39         </para>
40     </refsection>
41     <refsection>
42         <title>Example</title>
43         <programlisting role="example"><![CDATA[
44 loadXcosLibs();
45 o = CSCOPE("define");
46 [x,y] = standard_origin(o)
47     ]]></programlisting>
48     </refsection>
49     <refsection role="see also">
50         <title>See Also</title>
51         <simplelist type="inline">
52             <member>
53                 <link linkend="standard_inputs">standard_inputs</link>
54             </member>
55             <member>
56                 <link linkend="standard_outputs">standard_outputs</link>
57             </member>
58         </simplelist>
59     </refsection>
60 </refentry>