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.
 
 
 
 

70 lines
2.7 KiB

  1. /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
  2. /*
  3. * Copyright (C) 2008 Matthew Allum
  4. * Copyright (C) 2007 Iain Holmes
  5. * Based on xcompmgr - (c) 2003 Keith Packard
  6. * xfwm4 - (c) 2005-2007 Olivier Fourdan
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street - Suite 500, Boston, MA
  21. * 02110-1335, USA.
  22. */
  23. #ifndef META_WINDOW_ACTOR_H_
  24. #define META_WINDOW_ACTOR_H_
  25. #include <clutter/clutter.h>
  26. #include <X11/Xlib.h>
  27. #include <meta/compositor.h>
  28. /*
  29. * MetaWindowActor object (ClutterGroup sub-class)
  30. */
  31. #define META_TYPE_WINDOW_ACTOR (meta_window_actor_get_type ())
  32. #define META_WINDOW_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_WINDOW_ACTOR, MetaWindowActor))
  33. #define META_WINDOW_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_WINDOW_ACTOR, MetaWindowActorClass))
  34. #define META_IS_WINDOW_ACTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_WINDOW_ACTOR))
  35. #define META_IS_WINDOW_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW_ACTOR))
  36. #define META_WINDOW_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW_ACTOR, MetaWindowActorClass))
  37. typedef struct _MetaWindowActor MetaWindowActor;
  38. typedef struct _MetaWindowActorClass MetaWindowActorClass;
  39. typedef struct _MetaWindowActorPrivate MetaWindowActorPrivate;
  40. struct _MetaWindowActorClass
  41. {
  42. ClutterGroupClass parent_class;
  43. };
  44. struct _MetaWindowActor
  45. {
  46. ClutterGroup parent;
  47. MetaWindowActorPrivate *priv;
  48. };
  49. GType meta_window_actor_get_type (void);
  50. Window meta_window_actor_get_x_window (MetaWindowActor *self);
  51. gint meta_window_actor_get_workspace (MetaWindowActor *self);
  52. MetaWindow * meta_window_actor_get_meta_window (MetaWindowActor *self);
  53. ClutterActor * meta_window_actor_get_texture (MetaWindowActor *self);
  54. gboolean meta_window_actor_is_override_redirect (MetaWindowActor *self);
  55. gboolean meta_window_actor_showing_on_its_workspace (MetaWindowActor *self);
  56. gboolean meta_window_actor_is_destroyed (MetaWindowActor *self);
  57. #endif /* META_WINDOW_ACTOR_H */