diff options
author | Sebastian Geerken <devnull@localhost> | 2014-05-06 20:23:53 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-05-06 20:23:53 +0200 |
commit | 5e8dec509c8402a8f761e3156bd22278c332c5fc (patch) | |
tree | 41a62bd0d660b93a5758a9b36cbfb6e6046f741d /lout/object.hh | |
parent | e0d27594996a9aca98ae1c25b64f14ff2dfeb1de (diff) |
New signal "resizeQueued" for Layout. It is used by ComplexButtonResource, instead of "canvasSizeChange"; this seems to fix a CPU hogging problem.
Diffstat (limited to 'lout/object.hh')
-rw-r--r-- | lout/object.hh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lout/object.hh b/lout/object.hh index 5a4935c5..3ba7b590 100644 --- a/lout/object.hh +++ b/lout/object.hh @@ -138,6 +138,23 @@ public: /** + * \brief An object::Object wrapper for bool's. + */ +class Boolean: public Comparable +{ + bool value; + +public: + Boolean(bool value) { this->value = value; } + bool equals(Object *other); + int hashValue(); + void intoStringBuffer(misc::StringBuffer *sb); + int compareTo(Comparable *other); + inline bool getValue() { return value; } +}; + + +/** * \brief An object::Object wrapper for constant strings (char*). * * As opposed to object::String, the char array is not copied. |