Ardour  9.0-pre0-384-ga76afae0e9
gtktoolitem.h
Go to the documentation of this file.
1 /* gtktoolitem.c
2  *
3  * Copyright (C) 2002 Anders Carlsson <andersca@gnome.org>
4  * Copyright (C) 2002 James Henstridge <james@daa.com.au>
5  * Copyright (C) 2003 Soeren Sandmann <sandmann@daimi.au.dk>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef __GTK_TOOL_ITEM_H__
24 #define __GTK_TOOL_ITEM_H__
25 
26 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
27 #error "Only <gtk/gtk.h> can be included directly."
28 #endif
29 
30 #include <gtk/gtkbin.h>
31 #include <gtk/gtktooltips.h>
32 #include <gtk/gtkmenuitem.h>
33 #include <gtk/gtksizegroup.h>
34 
35 G_BEGIN_DECLS
36 
37 #define GTK_TYPE_TOOL_ITEM (gtk_tool_item_get_type ())
38 #define GTK_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_TOOL_ITEM, GtkToolItem))
39 #define GTK_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOL_ITEM, GtkToolItemClass))
40 #define GTK_IS_TOOL_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_TOOL_ITEM))
41 #define GTK_IS_TOOL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOL_ITEM))
42 #define GTK_TOOL_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS((o), GTK_TYPE_TOOL_ITEM, GtkToolItemClass))
43 
44 typedef struct _GtkToolItem GtkToolItem;
45 typedef struct _GtkToolItemClass GtkToolItemClass;
46 typedef struct _GtkToolItemPrivate GtkToolItemPrivate;
47 
49 {
51 
52  /*< private >*/
54 };
55 
57 {
59 
60  /* signals */
61  gboolean (* create_menu_proxy) (GtkToolItem *tool_item);
62  void (* toolbar_reconfigured) (GtkToolItem *tool_item);
63 #ifndef GTK_DISABLE_DEPRECATED
64  gboolean (* set_tooltip) (GtkToolItem *tool_item,
65  GtkTooltips *tooltips,
66  const gchar *tip_text,
67  const gchar *tip_private);
68 #else
69  gpointer _set_tooltip;
70 #endif
71 
72  /* Padding for future expansion */
73  void (* _gtk_reserved1) (void);
74  void (* _gtk_reserved2) (void);
75  void (* _gtk_reserved3) (void);
76  void (* _gtk_reserved4) (void);
77 };
78 
79 GType gtk_tool_item_get_type (void) G_GNUC_CONST;
81 
83  gboolean homogeneous);
85 
87  gboolean expand);
88 gboolean gtk_tool_item_get_expand (GtkToolItem *tool_item);
89 
90 #ifndef GTK_DISABLE_DEPRECATED
92  GtkTooltips *tooltips,
93  const gchar *tip_text,
94  const gchar *tip_private);
95 #endif /* GTK_DISABLE_DEPRECATED */
97  const gchar *text);
99  const gchar *markup);
100 
102  gboolean use_drag_window);
104 
106  gboolean visible_horizontal);
108 
110  gboolean visible_vertical);
112 
115  gboolean is_important);
116 
117 PangoEllipsizeMode gtk_tool_item_get_ellipsize_mode (GtkToolItem *tool_item);
125 
128  const gchar *menu_item_id);
130  const gchar *menu_item_id,
131  GtkWidget *menu_item);
133 
135 
136 /* private */
137 
139 
140 G_END_DECLS
141 
142 #endif /* __GTK_TOOL_ITEM_H__ */
GtkOrientation
Definition: gtkenums.h:263
GtkReliefStyle
Definition: gtkenums.h:330
GtkToolbarStyle
Definition: gtkenums.h:426
GtkIconSize
Definition: gtkenums.h:143
void gtk_tool_item_set_use_drag_window(GtkToolItem *tool_item, gboolean use_drag_window)
void gtk_tool_item_set_tooltip_markup(GtkToolItem *tool_item, const gchar *markup)
gboolean gtk_tool_item_get_visible_vertical(GtkToolItem *tool_item)
void gtk_tool_item_set_homogeneous(GtkToolItem *tool_item, gboolean homogeneous)
GtkOrientation gtk_tool_item_get_orientation(GtkToolItem *tool_item)
void gtk_tool_item_set_visible_horizontal(GtkToolItem *tool_item, gboolean visible_horizontal)
void gtk_tool_item_rebuild_menu(GtkToolItem *tool_item)
GtkWidget * gtk_tool_item_retrieve_proxy_menu_item(GtkToolItem *tool_item)
GType gtk_tool_item_get_type(void) G_GNUC_CONST
void gtk_tool_item_set_expand(GtkToolItem *tool_item, gboolean expand)
GtkReliefStyle gtk_tool_item_get_relief_style(GtkToolItem *tool_item)
GtkIconSize gtk_tool_item_get_icon_size(GtkToolItem *tool_item)
gboolean gtk_tool_item_get_homogeneous(GtkToolItem *tool_item)
void gtk_tool_item_set_visible_vertical(GtkToolItem *tool_item, gboolean visible_vertical)
GtkWidget * gtk_tool_item_get_proxy_menu_item(GtkToolItem *tool_item, const gchar *menu_item_id)
gfloat gtk_tool_item_get_text_alignment(GtkToolItem *tool_item)
gboolean gtk_tool_item_get_visible_horizontal(GtkToolItem *tool_item)
GtkToolbarStyle gtk_tool_item_get_toolbar_style(GtkToolItem *tool_item)
void gtk_tool_item_set_proxy_menu_item(GtkToolItem *tool_item, const gchar *menu_item_id, GtkWidget *menu_item)
struct _GtkToolItemPrivate GtkToolItemPrivate
Definition: gtktoolitem.h:46
GtkToolItem * gtk_tool_item_new(void)
gboolean gtk_tool_item_get_use_drag_window(GtkToolItem *tool_item)
gboolean gtk_tool_item_get_expand(GtkToolItem *tool_item)
GtkSizeGroup * gtk_tool_item_get_text_size_group(GtkToolItem *tool_item)
GtkOrientation gtk_tool_item_get_text_orientation(GtkToolItem *tool_item)
gboolean _gtk_tool_item_create_menu_proxy(GtkToolItem *tool_item)
PangoEllipsizeMode gtk_tool_item_get_ellipsize_mode(GtkToolItem *tool_item)
gboolean gtk_tool_item_get_is_important(GtkToolItem *tool_item)
void gtk_tool_item_toolbar_reconfigured(GtkToolItem *tool_item)
void gtk_tool_item_set_is_important(GtkToolItem *tool_item, gboolean is_important)
void gtk_tool_item_set_tooltip_text(GtkToolItem *tool_item, const gchar *text)
void gtk_tool_item_set_tooltip(GtkToolItem *tool_item, GtkTooltips *tooltips, const gchar *tip_text, const gchar *tip_private)
Definition: gtkbin.h:52
void(* _gtk_reserved3)(void)
Definition: gtktoolitem.h:75
void(* _gtk_reserved2)(void)
Definition: gtktoolitem.h:74
void(* _gtk_reserved4)(void)
Definition: gtktoolitem.h:76
void(* toolbar_reconfigured)(GtkToolItem *tool_item)
Definition: gtktoolitem.h:62
GtkBinClass parent_class
Definition: gtktoolitem.h:58
gboolean(* set_tooltip)(GtkToolItem *tool_item, GtkTooltips *tooltips, const gchar *tip_text, const gchar *tip_private)
Definition: gtktoolitem.h:64
void(* _gtk_reserved1)(void)
Definition: gtktoolitem.h:73
gboolean(* create_menu_proxy)(GtkToolItem *tool_item)
Definition: gtktoolitem.h:61
GtkToolItemPrivate * GSEAL(priv)
GtkBin parent
Definition: gtktoolitem.h:50