GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
graphics-utils.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2007-2025 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_graphics_utils_h)
27#define octave_graphics_utils_h 1
28
29// The functions defined here are private and should not be exported.
30// This header file should not be installed.
31
32#include "octave-config.h"
33
34#include <string>
35
36#include "graphics-handle.h"
37
38class caseless_str;
39class octave_value;
40class NDArray;
41
43
44// Flag to stop redraws due to callbacks while deletion is in progress.
45extern bool delete_executing;
46
47extern void xset (const graphics_handle& h, const caseless_str& pname,
48 const octave_value& val);
49
50extern void xset (const graphics_handle& h, const octave_value_list& args);
51
52extern octave_value xget (const graphics_handle& h, const caseless_str& pname);
53
54extern bool isfigure (double val);
55
56extern graphics_handle
57reparent (const octave_value& ov, const std::string& who,
58 const std::string& pname, const graphics_handle& new_parent,
59 bool adopt = true);
60
61extern void
62delete_graphics_object (const graphics_handle& h, bool from_root = false);
63
64extern void delete_graphics_object (double val, bool from_root = false);
65
66extern void
67delete_graphics_objects (const NDArray vals, bool from_root = false);
68
69extern void close_figure (const graphics_handle& h);
70
71extern void force_close_figure (const graphics_handle& h);
72
73OCTAVE_END_NAMESPACE(octave)
74
75#endif
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
graphics_handle reparent(const octave_value &ov, const std::string &who, const std::string &pname, const graphics_handle &new_parent, bool adopt=true)
void xset(const graphics_handle &h, const caseless_str &pname, const octave_value &val)
bool delete_executing
bool isfigure(double val)
void force_close_figure(const graphics_handle &h)
void delete_graphics_objects(const NDArray vals, bool from_root=false)
void close_figure(const graphics_handle &h)
void delete_graphics_object(const graphics_handle &h, bool from_root=false)
octave_value xget(const graphics_handle &h, const caseless_str &pname)