**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
#ifdef HASH_MAP_H
#include HASH_MAP_H
+#include FUNCTIONAL_H
+
#ifndef __STRING_HASH__
#define __STRING_HASH__
class StringHash
{
+# ifdef FUNCTIONAL_HASH_ON_STRING
+ HASH_MAP_NAMESPACE::hash<synfig::String> hasher_;
+# else // FUNCTIONAL_HASH_ON_STRING
HASH_MAP_NAMESPACE::hash<const char*> hasher_;
+# endif // FUNCTIONAL_HASH_ON_STRING
public:
size_t operator()(const synfig::String& x)const
{
+# ifdef FUNCTIONAL_HASH_ON_STRING
+ return hasher_(x);
+# else // FUNCTIONAL_HASH_ON_STRING
return hasher_(x.c_str());
+# endif // FUNCTIONAL_HASH_ON_STRING
}
};
#endif
bool editable;
bool radius_;
bool tangent_;
+ bool hover_;
+ bool ignore_;
synfig::TransformStack transform_stack_;
//! \writeme
bool get_tangent()const { return tangent_; }
+ //! Sets whether to show the duck as if it is being hovered over
+ void set_hover(bool h) { hover_=h; }
+
+ //! Retrieves whether to show the duck as if it is being hovered over
+ bool get_hover()const { return hover_; }
+
+ //! Sets whether to ignore the duck when checking for user interaction
+ void set_ignore(bool i) { ignore_=i; }
+
+ //! Retrieves whether to ignore the duck when checking for user interaction
+ bool get_ignore()const { return ignore_; }
+
void set_connect_duck(const etl::handle<Duck>& x) { connect_duck=x; }
void set_box_duck(const etl::handle<Duck>& x) { box_duck=x; }