summaryrefslogtreecommitdiffstats
path: root/src/nautilus-view-item.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:39:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:39:48 +0000
commit3ade071f273aaa973e44bf95d6b1d4913a18f03b (patch)
treee2f99d267ae18427645404f215b984afbe73098d /src/nautilus-view-item.h
parentInitial commit. (diff)
downloadnautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.tar.xz
nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.zip
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nautilus-view-item.h')
-rw-r--r--src/nautilus-view-item.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/nautilus-view-item.h b/src/nautilus-view-item.h
new file mode 100644
index 0000000..9bdaff1
--- /dev/null
+++ b/src/nautilus-view-item.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2022 The GNOME project contributors
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+#include "nautilus-file.h"
+
+G_BEGIN_DECLS
+
+#define NAUTILUS_TYPE_VIEW_ITEM (nautilus_view_item_get_type())
+
+G_DECLARE_FINAL_TYPE (NautilusViewItem, nautilus_view_item, NAUTILUS, VIEW_ITEM, GObject)
+
+NautilusViewItem * nautilus_view_item_new (NautilusFile *file,
+ guint icon_size);
+
+void nautilus_view_item_set_icon_size (NautilusViewItem *self,
+ guint icon_size);
+
+guint nautilus_view_item_get_icon_size (NautilusViewItem *self);
+void nautilus_view_item_set_cut (NautilusViewItem *self,
+ gboolean is_cut);
+void nautilus_view_item_set_drag_accept (NautilusViewItem *self,
+ gboolean drag_accept);
+
+NautilusFile * nautilus_view_item_get_file (NautilusViewItem *self);
+
+void nautilus_view_item_set_item_ui (NautilusViewItem *self,
+ GtkWidget *item_ui);
+
+GtkWidget * nautilus_view_item_get_item_ui (NautilusViewItem *self);
+void nautilus_view_item_file_changed (NautilusViewItem *self);
+
+G_END_DECLS