Mercurial > hg > octave-thorsten
diff src/graphics.h.in @ 10722:755fcb5baad3
Add the reset built function
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 23 Jun 2010 11:23:32 +0200 |
parents | 9d4a198614ab |
children | f0236b444356 |
line wrap: on
line diff
--- a/src/graphics.h.in +++ b/src/graphics.h.in @@ -2223,6 +2223,17 @@ virtual void remove_all_listeners (void); + virtual void reset_default_properties (void) + { + if (valid_object ()) + { + std::string msg = (type () + "::reset_default_properties"); + gripe_not_implemented (msg.c_str ()); + } + else + error ("base_graphics_object::default: invalid graphics object"); + } + protected: // A reference count. int count; @@ -2409,6 +2420,9 @@ listener_mode mode = POSTSET) { rep->delete_property_listener (nm, v, mode); } + void reset_default_properties (void) + { rep->reset_default_properties (); } + private: base_graphics_object *rep; }; @@ -2548,6 +2562,8 @@ bool valid_object (void) const { return true; } + void reset_default_properties (void); + private: property_list default_properties; @@ -2752,6 +2768,8 @@ bool valid_object (void) const { return true; } + void reset_default_properties (void); + private: property_list default_properties; }; @@ -3199,6 +3217,8 @@ bool valid_object (void) const { return true; } + void reset_default_properties (void); + private: property_list default_properties; };