Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkpicture.h
Go to the documentation of this file.
1/*
2 * Copyright © 2018 Benjamin Otte
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library 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 GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authors: Benjamin Otte <otte@gnome.org>
18 */
19
20#pragma once
21
22
23#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gtk/gtk.h> can be included directly."
25#endif
26
27#include <gio/gio.h>
28#include <gtk/gtkwidget.h>
29
30
32
33#define GTK_TYPE_PICTURE (gtk_picture_get_type ())
34
36G_DECLARE_FINAL_TYPE (GtkPicture, gtk_picture, GTK, PICTURE, GtkWidget)
37
41GtkWidget* gtk_picture_new_for_paintable (GdkPaintable *paintable);
42GDK_DEPRECATED_IN_4_12_FOR(gtk_pixbuf_new_for_paintable)
49GtkWidget* gtk_picture_new_for_resource (const char *resource_path);
50
52void gtk_picture_set_paintable (GtkPicture *self,
53 GdkPaintable *paintable);
55GdkPaintable * gtk_picture_get_paintable (GtkPicture *self);
57void gtk_picture_set_file (GtkPicture *self,
58 GFile *file);
60GFile * gtk_picture_get_file (GtkPicture *self);
62void gtk_picture_set_filename (GtkPicture *self,
63 const char *filename);
65void gtk_picture_set_resource (GtkPicture *self,
66 const char *resource_path);
68void gtk_picture_set_pixbuf (GtkPicture *self,
69 GdkPixbuf *pixbuf);
70
72void gtk_picture_set_keep_aspect_ratio (GtkPicture *self,
73 gboolean keep_aspect_ratio);
77void gtk_picture_set_can_shrink (GtkPicture *self,
78 gboolean can_shrink);
81
83void gtk_picture_set_content_fit (GtkPicture *self,
84 GtkContentFit content_fit);
87
89void gtk_picture_set_alternative_text (GtkPicture *self,
90 const char *alternative_text);
92const char * gtk_picture_get_alternative_text (GtkPicture *self);
93
94
96
struct _GdkPixbuf GdkPixbuf
#define GDK_DEPRECATED_IN_4_8_FOR(f)
#define GDK_AVAILABLE_IN_4_8
#define GDK_DEPRECATED_IN_4_12_FOR(f)
#define GDK_AVAILABLE_IN_ALL
struct _GFile GFile
Definition giotypes.h:74
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GtkContentFit
Definition gtkenums.h:157
GDK_AVAILABLE_IN_ALL const char * gtk_picture_get_alternative_text(GtkPicture *self)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_filename(GtkPicture *self, const char *filename)
GtkWidget * gtk_picture_new_for_pixbuf(GdkPixbuf *pixbuf)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_alternative_text(GtkPicture *self, const char *alternative_text)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_file(GtkPicture *self, GFile *file)
GDK_AVAILABLE_IN_ALL GFile * gtk_picture_get_file(GtkPicture *self)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_picture_new_for_file(GFile *file)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_resource(GtkPicture *self, const char *resource_path)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_picture_new_for_filename(const char *filename)
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL GtkWidget * gtk_picture_new(void)
void gtk_picture_set_keep_aspect_ratio(GtkPicture *self, gboolean keep_aspect_ratio)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_picture_new_for_resource(const char *resource_path)
GDK_AVAILABLE_IN_ALL GdkPaintable * gtk_picture_get_paintable(GtkPicture *self)
void gtk_picture_set_pixbuf(GtkPicture *self, GdkPixbuf *pixbuf)
GDK_AVAILABLE_IN_4_8 GtkContentFit gtk_picture_get_content_fit(GtkPicture *self)
gboolean gtk_picture_get_keep_aspect_ratio(GtkPicture *self)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_can_shrink(GtkPicture *self, gboolean can_shrink)
GDK_AVAILABLE_IN_ALL gboolean gtk_picture_get_can_shrink(GtkPicture *self)
GDK_AVAILABLE_IN_ALL void gtk_picture_set_paintable(GtkPicture *self, GdkPaintable *paintable)
GDK_AVAILABLE_IN_4_8 void gtk_picture_set_content_fit(GtkPicture *self, GtkContentFit content_fit)
GDK_AVAILABLE_IN_ALL GtkWidget * gtk_picture_new_for_paintable(GdkPaintable *paintable)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56