26 #if ! defined (octave_gtk_manager_h)
27 #define octave_gtk_manager_h 1
29 #include "octave-config.h"
48 unload_all_toolkits ();
53 void register_toolkit (
const std::string& name);
55 void unregister_toolkit (
const std::string& name);
59 m_loaded_toolkits[tk.
get_name ()] = tk;
64 m_loaded_toolkits.erase (name);
69 auto p = m_loaded_toolkits.find (name);
71 if (p != m_loaded_toolkits.end ())
79 Cell m (1, m_available_toolkits.size ());
82 for (
const auto& tkit : m_available_toolkits)
90 Cell m (1, m_loaded_toolkits.size ());
93 for (
const auto& nm_tkit_p : m_loaded_toolkits)
94 m(i++) = nm_tkit_p.first;
101 while (! m_loaded_toolkits.empty ())
103 auto p = m_loaded_toolkits.begin ();
105 std::string name = p->first;
110 if (m_loaded_toolkits.find (name) != m_loaded_toolkits.end ())
111 unload_toolkit (name);
std::string default_toolkit(void) const
void load_toolkit(const graphics_toolkit &tk)
void unload_all_toolkits(void)
Cell available_toolkits_list(void) const
std::map< std::string, graphics_toolkit > m_loaded_toolkits
Cell loaded_toolkits_list(void) const
void unload_toolkit(const std::string &name)
graphics_toolkit find_toolkit(const std::string &name) const
std::set< std::string > m_available_toolkits
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn