greenhouse
a creative coding toolkit for spatial interfaces

Convenience

Convenience methods for the ‘activation’ of an object by multiple pointers. When used, the default (or unstimulated) state of an object is defined in Chill ().

  • Tickle ()
  • Thrilled ()
  • Chilled ()

Example

#include "Greenhouse.h"

class CustomText  :  public Text
{ public:

  CustomText (const Str &s)  :  Text (s)
    { }

  void PointingInsideMove (PointingEvent *e)
    { Tickle (0.2); } // Called repeatedly, for each move

  void Thrilled ()
    { SetString ("I am Thrilled ()!!!"); }

  void Chilled ()
    { SetString ("I am Chilled ()..."); }

};

void Setup ()
{ CustomText *ct = new CustomText ("I am Chilled ()...");
  ct -> SlapOnFeld ();
}