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.
 
 
 
 
 

56 lines
2.3 KiB

  1. /*
  2. * Copyright (C) 2008-2009 Nick Schermer <nick@xfce.org>
  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 2 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 along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #ifndef __WRAPPER_PLUG_H__
  19. #define __WRAPPER_PLUG_H__
  20. #include <gtk/gtk.h>
  21. #include <libxfce4panel/libxfce4panel.h>
  22. #include <libxfce4panel/xfce-panel-plugin-provider.h>
  23. G_BEGIN_DECLS
  24. typedef struct _WrapperPlugClass WrapperPlugClass;
  25. typedef struct _WrapperPlug WrapperPlug;
  26. #define WRAPPER_TYPE_PLUG (wrapper_plug_get_type ())
  27. #define WRAPPER_PLUG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WRAPPER_TYPE_PLUG, WrapperPlug))
  28. #define WRAPPER_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WRAPPER_TYPE_PLUG, WrapperPlugClass))
  29. #define WRAPPER_IS_PLUG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WRAPPER_TYPE_PLUG))
  30. #define WRAPPER_IS_PLUG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WRAPPER_TYPE_PLUG))
  31. #define WRAPPER_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WRAPPER_TYPE_PLUG, WrapperPlugClass))
  32. extern gchar *wrapper_name;
  33. GType wrapper_plug_get_type (void) G_GNUC_CONST;
  34. WrapperPlug *wrapper_plug_new (GdkNativeWindow socket_id);
  35. void wrapper_plug_set_background_alpha (WrapperPlug *plug,
  36. gdouble alpha);
  37. void wrapper_plug_set_background_color (WrapperPlug *plug,
  38. const gchar *color_string);
  39. void wrapper_plug_set_background_image (WrapperPlug *plug,
  40. const gchar *image);
  41. G_END_DECLS
  42. #endif /* !__WRAPPER_PLUG_H__ */