Mercurial > octave
comparison src/graphics.h.in @ 9972:d32a6cc0193b
unshare dynamic properties
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Dec 2009 21:42:02 -0500 |
parents | 29f4f8c9b3f1 |
children | 33ba83a06a42 |
comparison
equal
deleted
inserted
replaced
9971:d0680ace5fcb | 9972:d32a6cc0193b |
---|---|
1640 p.set_name (name); | 1640 p.set_name (name); |
1641 p.set_parent (__myhandle__); | 1641 p.set_parent (__myhandle__); |
1642 all_props[name] = p; | 1642 all_props[name] = p; |
1643 } | 1643 } |
1644 | 1644 |
1645 virtual void set (const caseless_str&, const octave_value&) | 1645 virtual void set (const caseless_str&, const octave_value&); |
1646 { | |
1647 panic_impossible (); | |
1648 } | |
1649 | |
1650 void set (const caseless_str& pname, const std::string& cname, | |
1651 const octave_value& val); | |
1652 | 1646 |
1653 virtual octave_value get (const caseless_str& pname) const; | 1647 virtual octave_value get (const caseless_str& pname) const; |
1654 | 1648 |
1655 virtual octave_value get (const std::string& pname) const | 1649 virtual octave_value get (const std::string& pname) const |
1656 { | 1650 { |
1742 bool is_handle_visible (void) const | 1736 bool is_handle_visible (void) const |
1743 { | 1737 { |
1744 return ! handlevisibility.is ("off"); | 1738 return ! handlevisibility.is ("off"); |
1745 } | 1739 } |
1746 | 1740 |
1747 static std::map<std::string, std::set<std::string> > all_dynamic_properties; | 1741 std::set<std::string> dynamic_property_names (void) const; |
1742 | |
1743 bool has_dynamic_property (const std::string& pname); | |
1744 | |
1745 protected: | |
1746 std::set<std::string> dynamic_properties; | |
1748 | 1747 |
1749 static std::set<std::string> dynamic_property_names (const std::string& cname); | 1748 void set_dynamic (const caseless_str& pname, const octave_value& val); |
1750 | |
1751 static bool has_dynamic_property (const std::string& pname, | |
1752 const std::string& cname); | |
1753 | |
1754 protected: | |
1755 void set_dynamic (const caseless_str& pname, const std::string& cname, | |
1756 const octave_value& val); | |
1757 | 1749 |
1758 octave_value get_dynamic (const caseless_str& pname) const; | 1750 octave_value get_dynamic (const caseless_str& pname) const; |
1759 | 1751 |
1760 octave_value get_dynamic (bool all = false) const; | 1752 octave_value get_dynamic (bool all = false) const; |
1761 | 1753 |