ruby_meta_data.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Pingus - A free Lemmings clone
  2. // Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
  3. //
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. #ifndef HEADER_RUBY_META_DATA_HXX
  17. #define HEADER_RUBY_META_DATA_HXX
  18. #include <ClanLib/signals.h>
  19. #include <ClanLib/Display/color.h>
  20. #include "ruby.h"
  21. #include "../lib/meta_data.hpp"
  22. #include "../lib/objmap_object.hpp"
  23. #include "../lib/object_brush.hpp"
  24. MetaData make_metadata(VALUE obj);
  25. VALUE get_ruby_object(const MetaData& data);
  26. void connect(CL_Signal_v0& sig, VALUE obj);
  27. void connect_v1(CL_Signal_v1<int>& sig, VALUE obj);
  28. void connect_v1_float(CL_Signal_v1<float>& sig, VALUE obj);
  29. void connect_v2(CL_Signal_v2<int, int>& sig, VALUE obj);
  30. void connect_v2_graceful(CL_Signal_v2<int, int>& sig, VALUE obj);
  31. void connect_v1_Color(CL_Signal_v1<CL_Color>& sig, VALUE func);
  32. void connect_v1_ObjMapObject(CL_Signal_v1<ObjMapObject>& sig, VALUE func);
  33. void connect_v2_ObjectBrush_Point(CL_Signal_v2<ObjectBrush, CL_Point>& sig, VALUE func);
  34. #endif
  35. /* EOF */