Blame clutter-gtk/gtk-clutter-texture.h

Packit Service 6a0f92
/* gtk-clutter-texture.h
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Copyright (C) 2010  Intel Corp.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * This library is free software; you can redistribute it and/or
Packit Service 6a0f92
 * modify it under the terms of the GNU Lesser General Public
Packit Service 6a0f92
 * License as published by the Free Software Foundation; either
Packit Service 6a0f92
 * version 2 of the License, or (at your option) any later version.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * This library is distributed in the hope that it will be useful,
Packit Service 6a0f92
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 6a0f92
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 6a0f92
 * Lesser General Public License for more details.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * You should have received a copy of the GNU Lesser General Public
Packit Service 6a0f92
 * License along with this library. If not see <http://www.fsf.org/licensing>.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Authors:
Packit Service 6a0f92
 *   Emmanuele Bassi  <ebassi@linux.intel.com>
Packit Service 6a0f92
 */
Packit Service 6a0f92
Packit Service 6a0f92
#if !defined(__CLUTTER_GTK_H_INSIDE__) && !defined(CLUTTER_GTK_COMPILATION)
Packit Service 6a0f92
#error "Only <clutter-gtk/clutter-gtk.h> can be included directly."
Packit Service 6a0f92
#endif
Packit Service 6a0f92
Packit Service 6a0f92
#ifndef __GTK_CLUTTER_TEXTURE_H__
Packit Service 6a0f92
#define __GTK_CLUTTER_TEXTURE_H__
Packit Service 6a0f92
Packit Service 6a0f92
#include <gdk-pixbuf/gdk-pixbuf.h>
Packit Service 6a0f92
#include <gtk/gtk.h>
Packit Service 6a0f92
#include <clutter/clutter.h>
Packit Service 6a0f92
#include <clutter-gtk/gtk-clutter-version.h>
Packit Service 6a0f92
Packit Service 6a0f92
G_BEGIN_DECLS
Packit Service 6a0f92
Packit Service 6a0f92
#define GTK_CLUTTER_TYPE_TEXTURE                (gtk_clutter_texture_get_type ())
Packit Service 6a0f92
#define GTK_CLUTTER_TEXTURE(obj)                (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_CLUTTER_TYPE_TEXTURE, GtkClutterTexture))
Packit Service 6a0f92
#define GTK_CLUTTER_IS_TEXTURE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_CLUTTER_TYPE_TEXTURE))
Packit Service 6a0f92
#define GTK_CLUTTER_TEXTURE_CLASS(klass)        (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_CLUTTER_TYPE_TEXTURE, GtkClutterTextureClass))
Packit Service 6a0f92
#define GTK_CLUTTER_IS_TEXTURE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_CLUTTER_TYPE_TEXTURE))
Packit Service 6a0f92
#define GTK_CLUTTER_TEXTURE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_CLUTTER_TYPE_TEXTURE, GtkClutterTextureClass))
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * GTK_CLUTTER_TEXTURE_ERROR:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Error domain for #GtkClutterTexture
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Since: 1.0
Packit Service 6a0f92
 */
Packit Service 6a0f92
#define GTK_CLUTTER_TEXTURE_ERROR               (gtk_clutter_texture_error_quark ())
Packit Service 6a0f92
Packit Service 6a0f92
typedef struct _GtkClutterTexture               GtkClutterTexture;
Packit Service 6a0f92
typedef struct _GtkClutterTextureClass          GtkClutterTextureClass;
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * GtkClutterTextureError:
Packit Service 6a0f92
 * @GTK_CLUTTER_TEXTURE_ERROR_INVALID_STOCK_ID: Invalid stock id
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Error enumeration for #GtkClutterTexture
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Since: 1.0
Packit Service 6a0f92
 */
Packit Service 6a0f92
typedef enum {
Packit Service 6a0f92
  GTK_CLUTTER_TEXTURE_ERROR_INVALID_STOCK_ID
Packit Service 6a0f92
} GtkClutterTextureError;
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * GtkClutterTexture:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The <structname>GtkClutterTexture</structname> structure contains
Packit Service 6a0f92
 * only private data and should be accessed using the provided API.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Since: 1.0
Packit Service 6a0f92
 */
Packit Service 6a0f92
struct _GtkClutterTexture
Packit Service 6a0f92
{
Packit Service 6a0f92
  /*< private >*/
Packit Service 6a0f92
  ClutterTexture parent_instance;
Packit Service 6a0f92
};
Packit Service 6a0f92
Packit Service 6a0f92
/**
Packit Service 6a0f92
 * GtkClutterTextureClass:
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * The <structname>GtkClutterTextureClass</structname> structure contains
Packit Service 6a0f92
 * only private data.
Packit Service 6a0f92
 *
Packit Service 6a0f92
 * Since: 1.0
Packit Service 6a0f92
 */
Packit Service 6a0f92
struct _GtkClutterTextureClass
Packit Service 6a0f92
{
Packit Service 6a0f92
  /*< private >*/
Packit Service 6a0f92
  ClutterTextureClass parent_class;
Packit Service 6a0f92
};
Packit Service 6a0f92
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
GQuark gtk_clutter_texture_error_quark (void);
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
GType gtk_clutter_texture_get_type (void) G_GNUC_CONST;
Packit Service 6a0f92
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
ClutterActor *  gtk_clutter_texture_new (void);
Packit Service 6a0f92
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
gboolean        gtk_clutter_texture_set_from_pixbuf     (GtkClutterTexture *texture,
Packit Service 6a0f92
                                                         GdkPixbuf         *pixbuf,
Packit Service 6a0f92
                                                         GError           **error);
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
gboolean        gtk_clutter_texture_set_from_stock      (GtkClutterTexture *texture,
Packit Service 6a0f92
                                                         GtkWidget         *widget,
Packit Service 6a0f92
                                                         const gchar       *stock_id,
Packit Service 6a0f92
                                                         GtkIconSize        icon_size,
Packit Service 6a0f92
                                                         GError           **error);
Packit Service 6a0f92
CLUTTER_GTK_EXTERN
Packit Service 6a0f92
gboolean        gtk_clutter_texture_set_from_icon_name  (GtkClutterTexture *texture,
Packit Service 6a0f92
                                                         GtkWidget         *widget,
Packit Service 6a0f92
                                                         const gchar       *icon_name,
Packit Service 6a0f92
                                                         GtkIconSize        icon_size,
Packit Service 6a0f92
                                                         GError           **error);
Packit Service 6a0f92
Packit Service 6a0f92
G_END_DECLS
Packit Service 6a0f92
Packit Service 6a0f92
#endif /* __GTK_CLUTTER_TEXTURE_H__ */