Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkiconview.h
Go to the documentation of this file.
1/* gtkiconview.h
2 * Copyright (C) 2002, 2004 Anders Carlsson <andersca@gnome.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 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 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gtk/gtk.h> can be included directly."
22#endif
23
24#include <gtk/gtkwidget.h>
25#include <gtk/gtktooltip.h>
29
31
32#define GTK_TYPE_ICON_VIEW (gtk_icon_view_get_type ())
33#define GTK_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ICON_VIEW, GtkIconView))
34#define GTK_IS_ICON_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ICON_VIEW))
35
36typedef struct _GtkIconView GtkIconView;
37
38/**
39 * GtkIconViewForeachFunc:
40 * @icon_view: a `GtkIconView`
41 * @path: The `GtkTreePath` of a selected row
42 * @data: (closure): user data
43 *
44 * A function used by gtk_icon_view_selected_foreach() to map all
45 * selected rows.
46 *
47 * It will be called on every selected row in the view.
48 */
49typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view,
50 GtkTreePath *path,
51 gpointer data);
52
53/**
54 * GtkIconViewDropPosition:
55 * @GTK_ICON_VIEW_NO_DROP: no drop possible
56 * @GTK_ICON_VIEW_DROP_INTO: dropped item replaces the item
57 * @GTK_ICON_VIEW_DROP_LEFT: dropped item is inserted to the left
58 * @GTK_ICON_VIEW_DROP_RIGHT: dropped item is inserted to the right
59 * @GTK_ICON_VIEW_DROP_ABOVE: dropped item is inserted above
60 * @GTK_ICON_VIEW_DROP_BELOW: dropped item is inserted below
61 *
62 * An enum for determining where a dropped item goes.
63 */
73
82
85 GtkTreeModel *model);
90 int column);
95 int column);
100 int column);
103
106 GtkOrientation orientation);
111 int columns);
116 int item_width);
121 int spacing);
126 int row_spacing);
131 int column_spacing);
136 int margin);
141 int item_padding);
144
147 int x,
148 int y);
151 int x,
152 int y,
153 GtkTreePath **path,
154 GtkCellRenderer **cell);
157 GtkTreePath **start_path,
158 GtkTreePath **end_path);
161 gboolean single);
164
168 gpointer data);
171 GtkSelectionMode mode);
176 GtkTreePath *path);
179 GtkTreePath *path);
182 GtkTreePath *path);
185 GtkTreePath *path);
188 GtkTreePath *path);
197 GtkTreePath *path);
200 GtkTreePath *path,
201 GtkCellRenderer *cell,
202 gboolean start_editing);
205 GtkTreePath **path,
206 GtkCellRenderer **cell);
209 GtkTreePath *path,
210 gboolean use_align,
211 float row_align,
212 float col_align);
213
214/* Drag-and-Drop support */
217 GdkModifierType start_button_mask,
218 GdkContentFormats *formats,
219 GdkDragAction actions);
222 GdkContentFormats *formats,
223 GdkDragAction actions);
230 gboolean reorderable);
233
234
235/* These are useful to implement your own custom stuff. */
238 GtkTreePath *path,
242 GtkTreePath **path,
246 int drag_x,
247 int drag_y,
248 GtkTreePath **path,
252 GtkTreePath *path);
253
256 GtkTreePath *path,
257 GtkCellRenderer *cell,
258 GdkRectangle *rect);
259
260
263 GtkTooltip *tooltip,
264 GtkTreePath *path);
267 GtkTooltip *tooltip,
268 GtkTreePath *path,
269 GtkCellRenderer *cell);
272 int x,
273 int y,
274 gboolean keyboard_tip,
275 GtkTreeModel **model,
276 GtkTreePath **path,
277 GtkTreeIter *iter);
280 int column);
283
285
287
#define GDK_DEPRECATED_IN_4_10_FOR(f)
#define GDK_AVAILABLE_IN_ALL
GdkDragAction
Definition gdkenums.h:287
GdkModifierType
Definition gdkenums.h:116
struct _GdkContentFormats GdkContentFormats
Definition gdktypes.h:79
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GtkOrientation
Definition gtkenums.h:438
GtkSelectionMode
Definition gtkenums.h:556
struct _GtkGridView GtkGridView
Definition gtkgridview.h:37
void gtk_icon_view_set_row_spacing(GtkIconView *icon_view, int row_spacing)
gboolean gtk_icon_view_get_cursor(GtkIconView *icon_view, GtkTreePath **path, GtkCellRenderer **cell)
void gtk_icon_view_set_drag_dest_item(GtkIconView *icon_view, GtkTreePath *path, GtkIconViewDropPosition pos)
gboolean gtk_icon_view_path_is_selected(GtkIconView *icon_view, GtkTreePath *path)
void gtk_icon_view_set_spacing(GtkIconView *icon_view, int spacing)
void gtk_icon_view_set_reorderable(GtkIconView *icon_view, gboolean reorderable)
void gtk_icon_view_enable_model_drag_source(GtkIconView *icon_view, GdkModifierType start_button_mask, GdkContentFormats *formats, GdkDragAction actions)
void gtk_icon_view_set_tooltip_item(GtkIconView *icon_view, GtkTooltip *tooltip, GtkTreePath *path)
GtkWidget * gtk_icon_view_new_with_area(GtkCellArea *area)
GtkTreePath * gtk_icon_view_get_path_at_pos(GtkIconView *icon_view, int x, int y)
struct _GtkIconView GtkIconView
Definition gtkiconview.h:36
gboolean gtk_icon_view_get_tooltip_context(GtkIconView *icon_view, int x, int y, gboolean keyboard_tip, GtkTreeModel **model, GtkTreePath **path, GtkTreeIter *iter)
void gtk_icon_view_set_tooltip_cell(GtkIconView *icon_view, GtkTooltip *tooltip, GtkTreePath *path, GtkCellRenderer *cell)
void(* GtkIconViewForeachFunc)(GtkIconView *icon_view, GtkTreePath *path, gpointer data)
Definition gtkiconview.h:49
void gtk_icon_view_unset_model_drag_dest(GtkIconView *icon_view)
int gtk_icon_view_get_markup_column(GtkIconView *icon_view)
void gtk_icon_view_set_pixbuf_column(GtkIconView *icon_view, int column)
void gtk_icon_view_item_activated(GtkIconView *icon_view, GtkTreePath *path)
void gtk_icon_view_unselect_all(GtkIconView *icon_view)
GtkOrientation gtk_icon_view_get_item_orientation(GtkIconView *icon_view)
void gtk_icon_view_unselect_path(GtkIconView *icon_view, GtkTreePath *path)
int gtk_icon_view_get_text_column(GtkIconView *icon_view)
GtkIconViewDropPosition
Definition gtkiconview.h:65
@ GTK_ICON_VIEW_NO_DROP
Definition gtkiconview.h:66
@ GTK_ICON_VIEW_DROP_INTO
Definition gtkiconview.h:67
@ GTK_ICON_VIEW_DROP_ABOVE
Definition gtkiconview.h:70
@ GTK_ICON_VIEW_DROP_BELOW
Definition gtkiconview.h:71
@ GTK_ICON_VIEW_DROP_LEFT
Definition gtkiconview.h:68
@ GTK_ICON_VIEW_DROP_RIGHT
Definition gtkiconview.h:69
int gtk_icon_view_get_item_column(GtkIconView *icon_view, GtkTreePath *path)
void gtk_icon_view_select_path(GtkIconView *icon_view, GtkTreePath *path)
void gtk_icon_view_set_tooltip_column(GtkIconView *icon_view, int column)
void gtk_icon_view_set_model(GtkIconView *icon_view, GtkTreeModel *model)
gboolean gtk_icon_view_get_cell_rect(GtkIconView *icon_view, GtkTreePath *path, GtkCellRenderer *cell, GdkRectangle *rect)
void gtk_icon_view_get_drag_dest_item(GtkIconView *icon_view, GtkTreePath **path, GtkIconViewDropPosition *pos)
GdkPaintable * gtk_icon_view_create_drag_icon(GtkIconView *icon_view, GtkTreePath *path)
gboolean gtk_icon_view_get_dest_item_at_pos(GtkIconView *icon_view, int drag_x, int drag_y, GtkTreePath **path, GtkIconViewDropPosition *pos)
void gtk_icon_view_set_item_orientation(GtkIconView *icon_view, GtkOrientation orientation)
int gtk_icon_view_get_columns(GtkIconView *icon_view)
void gtk_icon_view_set_activate_on_single_click(GtkIconView *icon_view, gboolean single)
GtkTreeModel * gtk_icon_view_get_model(GtkIconView *icon_view)
GDK_AVAILABLE_IN_ALL GType gtk_icon_view_get_type(void) G_GNUC_CONST
GtkWidget * gtk_icon_view_new_with_model(GtkTreeModel *model)
int gtk_icon_view_get_pixbuf_column(GtkIconView *icon_view)
int gtk_icon_view_get_row_spacing(GtkIconView *icon_view)
gboolean gtk_icon_view_get_activate_on_single_click(GtkIconView *icon_view)
gboolean gtk_icon_view_get_item_at_pos(GtkIconView *icon_view, int x, int y, GtkTreePath **path, GtkCellRenderer **cell)
GtkWidget * gtk_icon_view_new(void)
void gtk_icon_view_selected_foreach(GtkIconView *icon_view, GtkIconViewForeachFunc func, gpointer data)
void gtk_icon_view_enable_model_drag_dest(GtkIconView *icon_view, GdkContentFormats *formats, GdkDragAction actions)
void gtk_icon_view_set_column_spacing(GtkIconView *icon_view, int column_spacing)
void gtk_icon_view_unset_model_drag_source(GtkIconView *icon_view)
GtkSelectionMode gtk_icon_view_get_selection_mode(GtkIconView *icon_view)
int gtk_icon_view_get_item_row(GtkIconView *icon_view, GtkTreePath *path)
int gtk_icon_view_get_item_width(GtkIconView *icon_view)
gboolean gtk_icon_view_get_reorderable(GtkIconView *icon_view)
void gtk_icon_view_scroll_to_path(GtkIconView *icon_view, GtkTreePath *path, gboolean use_align, float row_align, float col_align)
int gtk_icon_view_get_spacing(GtkIconView *icon_view)
void gtk_icon_view_set_item_padding(GtkIconView *icon_view, int item_padding)
void gtk_icon_view_set_cursor(GtkIconView *icon_view, GtkTreePath *path, GtkCellRenderer *cell, gboolean start_editing)
void gtk_icon_view_set_columns(GtkIconView *icon_view, int columns)
void gtk_icon_view_set_selection_mode(GtkIconView *icon_view, GtkSelectionMode mode)
int gtk_icon_view_get_margin(GtkIconView *icon_view)
gboolean gtk_icon_view_get_visible_range(GtkIconView *icon_view, GtkTreePath **start_path, GtkTreePath **end_path)
void gtk_icon_view_set_item_width(GtkIconView *icon_view, int item_width)
void gtk_icon_view_select_all(GtkIconView *icon_view)
void gtk_icon_view_set_margin(GtkIconView *icon_view, int margin)
int gtk_icon_view_get_tooltip_column(GtkIconView *icon_view)
void gtk_icon_view_set_text_column(GtkIconView *icon_view, int column)
int gtk_icon_view_get_item_padding(GtkIconView *icon_view)
void gtk_icon_view_set_markup_column(GtkIconView *icon_view, int column)
int gtk_icon_view_get_column_spacing(GtkIconView *icon_view)
GList * gtk_icon_view_get_selected_items(GtkIconView *icon_view)
struct _GtkTreePath GtkTreePath
struct _GtkTreeModel GtkTreeModel
struct _GtkTooltip GtkTooltip
Definition gtktypes.h:62
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109