annotate libinterp/corefcn/graphics-utils.h @ 32060:1203a2d81a42

Add BIST tests for Matlab compatibility for functions which accept negative dimensions. * data.cc (Fones, Finf, Feps, Feye): Add BIST test for negative dimensions. * rand.cc (Frand): Add BIST test for negative dimensions. * ov-cell.cc (Fcell): Add BIST test for negative dimensions.
author Rik <rik@octave.org>
date Wed, 26 Apr 2023 16:26:32 -0700
parents 93744e3823a6
children 2e484f9f1f18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31662
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 ////////////////////////////////////////////////////////////////////////
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 //
31708
93744e3823a6 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 31662
diff changeset
3 // Copyright (C) 2007-2023 The Octave Project Developers
31662
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 // See the file COPYRIGHT.md in the top-level directory of this
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 // distribution or <https://octave.org/copyright/>.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 // This file is part of Octave.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 // Octave is free software: you can redistribute it and/or modify it
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 // under the terms of the GNU General Public License as published by
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 // the Free Software Foundation, either version 3 of the License, or
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 // (at your option) any later version.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 // Octave is distributed in the hope that it will be useful, but
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 // GNU General Public License for more details.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 // You should have received a copy of the GNU General Public License
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 // along with Octave; see the file COPYING. If not, see
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 // <https://www.gnu.org/licenses/>.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 //
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 ////////////////////////////////////////////////////////////////////////
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 #if ! defined (octave_graphics_utils_h)
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 #define octave_graphics_utils_h 1
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29 // The functions defined here are private and should not be exported.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 // This header file should not be installed.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 #include "octave-config.h"
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 #include <string>
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 #include "graphics-handle.h"
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 class caseless_str;
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 class octave_value;
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 class NDArray;
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 OCTAVE_BEGIN_NAMESPACE(octave)
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 // Flag to stop redraws due to callbacks while deletion is in progress.
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 extern bool delete_executing;
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 extern void xset (const graphics_handle& h, const caseless_str& pname,
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 const octave_value& val);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 extern void xset (const graphics_handle& h, const octave_value_list& args);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 extern octave_value xget (const graphics_handle& h, const caseless_str& pname);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 extern bool isfigure (double val);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 extern graphics_handle
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 reparent (const octave_value& ov, const std::string& who,
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 const std::string& pname, const graphics_handle& new_parent,
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 bool adopt = true);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 extern void
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 delete_graphics_object (const graphics_handle& h, bool from_root = false);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 extern void delete_graphics_object (double val, bool from_root = false);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 extern void
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 delete_graphics_objects (const NDArray vals, bool from_root = false);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 extern void close_figure (const graphics_handle& h);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 extern void force_close_figure (const graphics_handle& h);
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 OCTAVE_END_NAMESPACE(octave)
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74
a36035adefeb prep for moving gh_manager class to separate file
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75 #endif