<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( https://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) INRIA - Serge Steer
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="gcf" xml:lang="pt">
    <refnamediv>
        <refname>gcf</refname>
        <refpurpose>Retorna o manipulador da janela GUI ou de gráficos
            corrente.
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Seqüência de Chamamento</title>
        <synopsis>h = gcf()</synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Parâmetros</title>
        <variablelist>
            <varlistentry>
                <term>h</term>
                <listitem>
                    <para>manipulador</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Descrição</title>
        <para>Esta função retorna o manipulador da janela gráfica corrente</para>
    </refsection>
    <refsection>
        <title>Exemplos</title>
        <programlisting role="example"><![CDATA[
f=gcf(); // criando uma figura
f.figure_size= [610,469]/2;
f.figure_name= "Foo";

f=figure(); // criando uma figura
h=uicontrol(f,"style","listbox","position", [10 10 150 160]); // criando um listbox
set(h, "string", "item 1|item 2|item3");// preenchendo a lista
set(h, "value", [1 3]); // selecionando os itens 1 e 3 na lista
gcf()

scf(0); // tornando a janela de gráficos 0 a figura corrente
gcf()  // obtendo o manipulador gráfico da figura corrente

figure(f) // tornando a janela GUI f a figura corrente
gcf() // retorna o manipulador gráfico da figura corrente
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>Ver Também</title>
        <simplelist type="inline">
            <member>
                <link linkend="gdf">gdf</link>
            </member>
            <member>
                <link linkend="gca">gca</link>
            </member>
            <member>
                <link linkend="gce">gce</link>
            </member>
            <member>
                <link linkend="get">get</link>
            </member>
            <member>
                <link linkend="scf">scf</link>
            </member>
            <member>
                <link linkend="set">set</link>
            </member>
            <member>
                <link linkend="graphics_entities">graphics_entities</link>
            </member>
            <member>
                <link linkend="uicontrol">uicontrol</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
