blob: 9bdaff158bd0b051e17e074f3cc747d435c40cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
|