/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * st-icon.h: icon widget * * Copyright 2009, 2010 Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for * more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * * Written by: Thomas Wood * */ #if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION) #error "Only can be included directly.h" #endif #ifndef _ST_ICON #define _ST_ICON #include #include #include #include G_BEGIN_DECLS #define ST_TYPE_ICON st_icon_get_type() #define ST_ICON(obj) \ (G_TYPE_CHECK_INSTANCE_CAST ((obj), ST_TYPE_ICON, StIcon)) #define ST_ICON_CLASS(klass) \ (G_TYPE_CHECK_CLASS_CAST ((klass), ST_TYPE_ICON, StIconClass)) #define ST_IS_ICON(obj) \ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ST_TYPE_ICON)) #define ST_IS_ICON_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE ((klass), ST_TYPE_ICON)) #define ST_ICON_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), ST_TYPE_ICON, StIconClass)) typedef struct _StIconPrivate StIconPrivate; /** * StIcon: * * The contents of this structure are private and should only be accessed * through the public API. */ typedef struct { /*< private >*/ StWidget parent; StIconPrivate *priv; } StIcon; typedef struct { StWidgetClass parent_class; /* padding for future expansion */ void (*_padding_0) (void); void (*_padding_1) (void); void (*_padding_2) (void); void (*_padding_3) (void); void (*_padding_4) (void); } StIconClass; GType st_icon_get_type (void); ClutterActor* st_icon_new (void); const gchar *st_icon_get_icon_name (StIcon *icon); void st_icon_set_icon_name (StIcon *icon, const gchar *icon_name); gint st_icon_get_icon_size (StIcon *icon); void st_icon_set_icon_size (StIcon *icon, gint size); void st_icon_set_gicon (StIcon *icon, GIcon *gicon); GIcon *st_icon_get_gicon (StIcon *icon); G_END_DECLS #endif /* _ST_ICON */