/usr/include/libbonoboui-2.0/bonobo/bonobo-dock-item.h is in libbonoboui2-dev 2.24.5-2.
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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | /* WARNING ____ IMMATURE API ____ liable to change */
/* bonobo-dock-item.h
*
* Copyright (C) 1998 Ettore Perazzoli
* Copyright (C) 1998 Elliot Lee
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
@NOTATION@
*/
#ifndef _BONOBO_DOCK_ITEM_H
#define _BONOBO_DOCK_ITEM_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define BONOBO_TYPE_DOCK_ITEM (bonobo_dock_item_get_type())
#define BONOBO_DOCK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BONOBO_TYPE_DOCK_ITEM, BonoboDockItem))
#define BONOBO_DOCK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BONOBO_TYPE_DOCK_ITEM, BonoboDockItemClass))
#define BONOBO_IS_DOCK_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BONOBO_TYPE_DOCK_ITEM))
#define BONOBO_IS_DOCK_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BONOBO_TYPE_DOCK_ITEM))
#define BONOBO_DOCK_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BONOBO_TYPE_DOCK_ITEM, BonoboDockItemClass))
typedef enum
{
BONOBO_DOCK_ITEM_BEH_NORMAL = 0,
BONOBO_DOCK_ITEM_BEH_EXCLUSIVE = 1 << 0,
BONOBO_DOCK_ITEM_BEH_NEVER_FLOATING = 1 << 1,
BONOBO_DOCK_ITEM_BEH_NEVER_VERTICAL = 1 << 2,
BONOBO_DOCK_ITEM_BEH_NEVER_HORIZONTAL = 1 << 3,
BONOBO_DOCK_ITEM_BEH_LOCKED = 1 << 4
/* MAINT: Update the size of the bit field in the BonoboDockItem structure if you add items to this */
} BonoboDockItemBehavior;
/* obsolete, for compatibility; don't use */
#define BONOBO_DOCK_ITEM_BEH_NEVER_DETACH BONOBO_DOCK_ITEM_BEH_NEVER_FLOATING
#define BONOBO_DOCK_ITEM_NOT_LOCKED(x) (! (BONOBO_DOCK_ITEM(x)->behavior \
& BONOBO_DOCK_ITEM_BEH_LOCKED))
typedef struct _BonoboDockItem BonoboDockItem;
typedef struct _BonoboDockItemPrivate BonoboDockItemPrivate;
typedef struct _BonoboDockItemClass BonoboDockItemClass;
struct _BonoboDockItem
{
GtkBin bin;
gchar *name;
/* <private> */
GdkWindow *bin_window; /* parent window for children */
GdkWindow *float_window; /* always NULL */
GtkShadowType shadow_type;
/* Start drag position (wrt widget->window). */
gint16 dragoff_x, dragoff_y;
/* Position of the floating window. */
gint16 float_x, float_y;
guint behavior : 5;
guint orientation : 1;
guint float_window_mapped : 1;
guint is_floating : 1;
guint in_drag : 1;
/* If TRUE, the pointer must be grabbed on "map_event". */
guint grab_on_map_event : 1;
/*< private >*/
BonoboDockItemPrivate *_priv;
};
struct _BonoboDockItemClass
{
GtkBinClass parent_class;
void (* dock_drag_begin) (BonoboDockItem *item);
void (* dock_drag_motion) (BonoboDockItem *item, gint x, gint y);
void (* dock_drag_end) (BonoboDockItem *item);
void (* dock_detach) (BonoboDockItem *item);
void (* orientation_changed) (BonoboDockItem *item, GtkOrientation new_orientation);
gpointer dummy[4];
};
/* Public methods. */
GType bonobo_dock_item_get_type (void) G_GNUC_CONST;
GtkWidget *bonobo_dock_item_new (const gchar *name,
BonoboDockItemBehavior behavior);
void bonobo_dock_item_construct (BonoboDockItem *new_dock_item,
const gchar *name,
BonoboDockItemBehavior behavior);
GtkWidget *bonobo_dock_item_get_child (BonoboDockItem *dock_item);
char *bonobo_dock_item_get_name (BonoboDockItem *dock_item);
void bonobo_dock_item_set_shadow_type (BonoboDockItem *dock_item,
GtkShadowType type);
GtkShadowType bonobo_dock_item_get_shadow_type (BonoboDockItem *dock_item);
gboolean bonobo_dock_item_set_orientation (BonoboDockItem *dock_item,
GtkOrientation orientation);
GtkOrientation bonobo_dock_item_get_orientation (BonoboDockItem *dock_item);
BonoboDockItemBehavior
bonobo_dock_item_get_behavior (BonoboDockItem *dock_item);
void bonobo_dock_item_set_behavior (BonoboDockItem *dock_item,
BonoboDockItemBehavior behavior);
/* Private methods. */
#ifdef BONOBO_UI_INTERNAL
void bonobo_dock_item_set_locked (BonoboDockItem *dock_item,
gboolean locked);
gboolean bonobo_dock_item_detach (BonoboDockItem *item,
gint x, gint y);
void bonobo_dock_item_attach (BonoboDockItem *item,
GtkWidget *parent,
gint x, gint y);
void bonobo_dock_item_unfloat (BonoboDockItem *item);
void bonobo_dock_item_grab_pointer (BonoboDockItem *item);
void bonobo_dock_item_drag_floating (BonoboDockItem *item,
gint x, gint y);
void bonobo_dock_item_handle_size_request
(BonoboDockItem *item,
GtkRequisition *requisition);
void bonobo_dock_item_get_floating_position
(BonoboDockItem *item,
gint *x, gint *y);
GtkWidget *bonobo_dock_item_get_grip (BonoboDockItem *item);
#endif /* BONOBO_UI_INTERNAL */
G_END_DECLS
#endif /* _BONOBO_DOCK_ITEM_H */
|