2011-11-30 03:26:19 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2011 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* Authors: Cosimo Cecchi <cosimoc@gnome.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-11-30 03:26:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_ICON_HELPER_H__
|
|
|
|
#define __GTK_ICON_HELPER_H__
|
|
|
|
|
2015-11-21 16:38:48 +00:00
|
|
|
#include "gtk/gtkimage.h"
|
|
|
|
#include "gtk/gtktypes.h"
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2017-06-17 06:39:43 +00:00
|
|
|
#include "gtkcssnodeprivate.h"
|
2015-11-25 14:59:44 +00:00
|
|
|
#include "gtkimagedefinitionprivate.h"
|
|
|
|
|
2011-11-30 03:26:19 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2018-03-14 00:56:30 +00:00
|
|
|
#define GTK_TYPE_ICON_HELPER (gtk_icon_helper_get_type())
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2018-03-14 00:56:30 +00:00
|
|
|
G_DECLARE_FINAL_TYPE(GtkIconHelper, gtk_icon_helper, GTK, ICON_HELPER, GObject)
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2018-03-14 00:56:30 +00:00
|
|
|
GtkIconHelper *gtk_icon_helper_new (GtkCssNode *css_node,
|
|
|
|
GtkWidget *owner);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
|
|
|
void _gtk_icon_helper_clear (GtkIconHelper *self);
|
|
|
|
|
|
|
|
gboolean _gtk_icon_helper_get_is_empty (GtkIconHelper *self);
|
|
|
|
|
2015-11-25 14:59:44 +00:00
|
|
|
void _gtk_icon_helper_set_definition (GtkIconHelper *self,
|
|
|
|
GtkImageDefinition *def);
|
2011-11-30 03:26:19 +00:00
|
|
|
void _gtk_icon_helper_set_gicon (GtkIconHelper *self,
|
2017-11-15 00:43:13 +00:00
|
|
|
GIcon *gicon);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
|
|
|
void _gtk_icon_helper_set_icon_name (GtkIconHelper *self,
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *icon_name);
|
2018-02-16 09:50:49 +00:00
|
|
|
void _gtk_icon_helper_set_paintable (GtkIconHelper *self,
|
|
|
|
GdkPaintable *paintable);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2014-06-09 12:58:05 +00:00
|
|
|
gboolean _gtk_icon_helper_set_pixel_size (GtkIconHelper *self,
|
2020-07-24 13:54:49 +00:00
|
|
|
int pixel_size);
|
2014-06-09 12:58:05 +00:00
|
|
|
gboolean _gtk_icon_helper_set_use_fallback (GtkIconHelper *self,
|
|
|
|
gboolean use_fallback);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
|
|
|
GtkImageType _gtk_icon_helper_get_storage_type (GtkIconHelper *self);
|
2020-07-24 13:54:49 +00:00
|
|
|
int _gtk_icon_helper_get_pixel_size (GtkIconHelper *self);
|
2011-11-30 03:26:19 +00:00
|
|
|
gboolean _gtk_icon_helper_get_use_fallback (GtkIconHelper *self);
|
|
|
|
|
|
|
|
GIcon *_gtk_icon_helper_peek_gicon (GtkIconHelper *self);
|
2018-02-16 09:50:49 +00:00
|
|
|
GdkPaintable *_gtk_icon_helper_peek_paintable (GtkIconHelper *self);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2015-12-01 01:25:17 +00:00
|
|
|
GtkImageDefinition *gtk_icon_helper_get_definition (GtkIconHelper *self);
|
2020-07-24 18:40:36 +00:00
|
|
|
const char *_gtk_icon_helper_get_icon_name (GtkIconHelper *self);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2018-06-09 22:38:06 +00:00
|
|
|
int gtk_icon_helper_get_size (GtkIconHelper *self);
|
2011-11-30 03:26:19 +00:00
|
|
|
|
2016-11-15 05:36:34 +00:00
|
|
|
void gtk_icon_helper_invalidate (GtkIconHelper *self);
|
2016-02-06 08:24:36 +00:00
|
|
|
void gtk_icon_helper_invalidate_for_change (GtkIconHelper *self,
|
|
|
|
GtkCssStyleChange *change);
|
|
|
|
|
2017-11-15 03:29:31 +00:00
|
|
|
void gtk_icon_size_set_style_classes (GtkCssNode *cssnode,
|
|
|
|
GtkIconSize icon_size);
|
|
|
|
|
2011-11-30 03:26:19 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_ICON_HELPER_H__ */
|