/usr/include/libdazzle-1.0/tree/dzl-tree.h is in libdazzle-1.0-dev 3.28.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /* dzl-tree.h
*
* Copyright (C) 2011-2017 Christian Hergert <christian@hergert.me>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DZL_TREE_H
#define DZL_TREE_H
#include <gtk/gtk.h>
#include "dzl-version-macros.h"
#include "tree/dzl-tree-builder.h"
#include "tree/dzl-tree-node.h"
#include "tree/dzl-tree-types.h"
G_BEGIN_DECLS
/**
* DzlTreeFindFunc:
*
* Callback to check @child, a child of @node, matches a lookup
* request. Returns %TRUE if @child matches, %FALSE if not.
*
* Returns: %TRUE if @child matched
*/
typedef gboolean (*DzlTreeFindFunc) (DzlTree *tree,
DzlTreeNode *node,
DzlTreeNode *child,
gpointer user_data);
/**
* DzlTreeFilterFunc:
*
* Callback to check if @node should be visible.
*
* Returns: %TRUE if @node should be visible.
*/
typedef gboolean (*DzlTreeFilterFunc) (DzlTree *tree,
DzlTreeNode *node,
gpointer user_data);
struct _DzlTreeClass
{
GtkTreeViewClass parent_class;
void (*action) (DzlTree *self,
const gchar *action_group,
const gchar *action_name,
const gchar *param);
void (*populate_popup) (DzlTree *self,
GtkWidget *widget);
/*< private >*/
gpointer _padding[12];
};
DZL_AVAILABLE_IN_ALL
void dzl_tree_add_builder (DzlTree *self,
DzlTreeBuilder *builder);
DZL_AVAILABLE_IN_ALL
void dzl_tree_remove_builder (DzlTree *self,
DzlTreeBuilder *builder);
DZL_AVAILABLE_IN_ALL
DzlTreeNode *dzl_tree_find_item (DzlTree *self,
GObject *item);
DZL_AVAILABLE_IN_ALL
DzlTreeNode *dzl_tree_find_custom (DzlTree *self,
GEqualFunc equal_func,
gpointer key);
DZL_AVAILABLE_IN_ALL
DzlTreeNode *dzl_tree_get_selected (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_unselect_all (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_rebuild (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_set_root (DzlTree *self,
DzlTreeNode *node);
DZL_AVAILABLE_IN_ALL
DzlTreeNode *dzl_tree_get_root (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_set_show_icons (DzlTree *self,
gboolean show_icons);
DZL_AVAILABLE_IN_ALL
gboolean dzl_tree_get_show_icons (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_scroll_to_node (DzlTree *self,
DzlTreeNode *node);
DZL_AVAILABLE_IN_ALL
void dzl_tree_expand_to_node (DzlTree *self,
DzlTreeNode *node);
DZL_AVAILABLE_IN_ALL
DzlTreeNode *dzl_tree_find_child_node (DzlTree *self,
DzlTreeNode *node,
DzlTreeFindFunc find_func,
gpointer user_data);
DZL_AVAILABLE_IN_ALL
void dzl_tree_set_filter (DzlTree *self,
DzlTreeFilterFunc filter_func,
gpointer filter_data,
GDestroyNotify filter_data_destroy);
DZL_AVAILABLE_IN_ALL
GMenuModel *dzl_tree_get_context_menu (DzlTree *self);
DZL_AVAILABLE_IN_ALL
void dzl_tree_set_context_menu (DzlTree *self,
GMenuModel *context_menu);
G_END_DECLS
#endif /* DZL_TREE_H */
|