gisignalinfo.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
  2. * GObject introspection: Signal
  3. *
  4. * Copyright (C) 2005 Matthias Clasen
  5. * Copyright (C) 2008,2009 Red Hat, Inc.
  6. *
  7. * SPDX-License-Identifier: LGPL-2.1-or-later
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 of the License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the
  21. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  22. * Boston, MA 02111-1307, USA.
  23. */
  24. #pragma once
  25. #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
  26. #error "Only <girepository.h> can be included directly."
  27. #endif
  28. #include <glib-object.h>
  29. #include <girepository/gitypes.h>
  30. G_BEGIN_DECLS
  31. #define GI_TYPE_SIGNAL_INFO (gi_signal_info_get_type ())
  32. /**
  33. * GI_SIGNAL_INFO:
  34. * @info: Info object which is subject to casting.
  35. *
  36. * Casts a [type@GIRepository.SignalInfo] or derived pointer into a
  37. * `(GISignalInfo*)` pointer.
  38. *
  39. * Depending on the current debugging level, this function may invoke
  40. * certain runtime checks to identify invalid casts.
  41. *
  42. * Since: 2.80
  43. */
  44. #define GI_SIGNAL_INFO(info) (G_TYPE_CHECK_INSTANCE_CAST ((info), GI_TYPE_SIGNAL_INFO, GISignalInfo))
  45. /**
  46. * GI_IS_SIGNAL_INFO:
  47. * @info: an info structure
  48. *
  49. * Checks if @info is a [class@GIRepository.SignalInfo] (or a derived type).
  50. *
  51. * Since: 2.80
  52. */
  53. #define GI_IS_SIGNAL_INFO(info) (G_TYPE_CHECK_INSTANCE_TYPE ((info), GI_TYPE_SIGNAL_INFO))
  54. GI_AVAILABLE_IN_ALL
  55. GSignalFlags gi_signal_info_get_flags (GISignalInfo *info);
  56. GI_AVAILABLE_IN_ALL
  57. GIVFuncInfo * gi_signal_info_get_class_closure (GISignalInfo *info);
  58. GI_AVAILABLE_IN_ALL
  59. gboolean gi_signal_info_true_stops_emit (GISignalInfo *info);
  60. G_END_DECLS