You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xapp-monitor-blanker.h 1.7 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __XAPP_MONITOR_BLANKER_H__
  2. #define __XAPP_MONITOR_BLANKER_H__
  3. #include <stdio.h>
  4. #include <gtk/gtk.h>
  5. #include <glib-object.h>
  6. G_BEGIN_DECLS
  7. #define XAPP_TYPE_MONITOR_BLANKER (xapp_monitor_blanker_get_type ())
  8. #define XAPP_MONITOR_BLANKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XAPP_TYPE_MONITOR_BLANKER, XAppMonitorBlanker))
  9. #define XAPP_MONITOR_BLANKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XAPP_TYPE_MONITOR_BLANKER, XAppMonitorBlankerClass))
  10. #define XAPP_IS_MONITOR_BLANKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XAPP_TYPE_MONITOR_BLANKER))
  11. #define XAPP_IS_MONITOR_BLANKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XAPP_TYPE_MONITOR_BLANKER))
  12. #define XAPP_MONITOR_BLANKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XAPP_TYPE_MONITOR_BLANKER, XAppMonitorBlankerClass))
  13. typedef struct _XAppMonitorBlankerPrivate XAppMonitorBlankerPrivate;
  14. typedef struct _XAppMonitorBlanker XAppMonitorBlanker;
  15. typedef struct _XAppMonitorBlankerClass XAppMonitorBlankerClass;
  16. struct _XAppMonitorBlanker
  17. {
  18. GObject parent_object;
  19. XAppMonitorBlankerPrivate *priv;
  20. };
  21. struct _XAppMonitorBlankerClass
  22. {
  23. GObjectClass parent_class;
  24. };
  25. GType xapp_monitor_blanker_get_type (void);
  26. XAppMonitorBlanker *xapp_monitor_blanker_new (void);
  27. void xapp_monitor_blanker_blank_other_monitors (XAppMonitorBlanker *self,
  28. GtkWindow *window);
  29. void xapp_monitor_blanker_unblank_monitors (XAppMonitorBlanker *self);
  30. gboolean xapp_monitor_blanker_are_monitors_blanked (XAppMonitorBlanker *self);
  31. G_END_DECLS
  32. #endif /* __XAPP_MONITOR_BLANKER_H__ */