add AxisView::remove_gui_property()

This commit is contained in:
Paul Davis 2020-02-06 14:39:30 -07:00
parent c791d5970f
commit 39e0c0a084
2 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,13 @@ AxisView::get_gui_property (const std::string& property_name, std::string& value
return false;
}
void
AxisView::remove_gui_property (const std::string& property_name)
{
property_hashtable.erase (property_name);
gui_object_state().remove_property (state_id(), property_name);
}
void
AxisView::set_gui_property (const std::string& property_name, const std::string& value)
{

View File

@ -84,6 +84,7 @@ public:
}
void set_gui_property (const std::string& property_name, const std::string& value);
void remove_gui_property (const std::string& property_name);
void set_gui_property (const std::string& property_name, const char* value) {
set_gui_property (property_name, std::string(value));