Ardour
9.0-pre0-582-g084a23a80d
gtkmenutoolbutton.h
Go to the documentation of this file.
1
/* GTK - The GIMP Toolkit
2
*
3
* Copyright (C) 2003 Ricardo Fernandez Pascual
4
* Copyright (C) 2004 Paolo Borelli
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*/
21
22
#ifndef __GTK_MENU_TOOL_BUTTON_H__
23
#define __GTK_MENU_TOOL_BUTTON_H__
24
25
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
26
#error "Only <gtk/gtk.h> can be included directly."
27
#endif
28
29
#include <
gtk/gtkmenu.h
>
30
#include <
gtk/gtktoolbutton.h
>
31
32
G_BEGIN_DECLS
33
34
#define GTK_TYPE_MENU_TOOL_BUTTON (gtk_menu_tool_button_get_type ())
35
#define GTK_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButton))
36
#define GTK_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass))
37
#define GTK_IS_MENU_TOOL_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_MENU_TOOL_BUTTON))
38
#define GTK_IS_MENU_TOOL_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_MENU_TOOL_BUTTON))
39
#define GTK_MENU_TOOL_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_MENU_TOOL_BUTTON, GtkMenuToolButtonClass))
40
41
typedef
struct
_GtkMenuToolButtonClass
GtkMenuToolButtonClass
;
42
typedef
struct
_GtkMenuToolButton
GtkMenuToolButton
;
43
typedef
struct
_GtkMenuToolButtonPrivate
GtkMenuToolButtonPrivate
;
44
45
struct
_GtkMenuToolButton
46
{
47
GtkToolButton
parent
;
48
49
/*< private >*/
50
GtkMenuToolButtonPrivate
*
GSEAL
(priv);
51
};
52
53
struct
_GtkMenuToolButtonClass
54
{
55
GtkToolButtonClass
parent_class
;
56
57
void (*
show_menu
) (
GtkMenuToolButton
*button);
58
59
/* Padding for future expansion */
60
void (*
_gtk_reserved1
) (void);
61
void (*
_gtk_reserved2
) (void);
62
void (*
_gtk_reserved3
) (void);
63
void (*
_gtk_reserved4
) (void);
64
};
65
66
GType
gtk_menu_tool_button_get_type
(
void
) G_GNUC_CONST;
67
GtkToolItem
*
gtk_menu_tool_button_new
(
GtkWidget
*icon_widget,
68
const
gchar *label);
69
GtkToolItem
*
gtk_menu_tool_button_new_from_stock
(
const
gchar *stock_id);
70
71
void
gtk_menu_tool_button_set_menu
(
GtkMenuToolButton
*button,
72
GtkWidget
*menu);
73
GtkWidget
*
gtk_menu_tool_button_get_menu
(
GtkMenuToolButton
*button);
74
75
#ifndef GTK_DISABLE_DEPRECATED
76
void
gtk_menu_tool_button_set_arrow_tooltip
(
GtkMenuToolButton
*button,
77
GtkTooltips
*tooltips,
78
const
gchar *tip_text,
79
const
gchar *tip_private);
80
#endif
/* GTK_DISABLE_DEPRECATED */
81
82
void
gtk_menu_tool_button_set_arrow_tooltip_text
(
GtkMenuToolButton
*button,
83
const
gchar *text);
84
void
gtk_menu_tool_button_set_arrow_tooltip_markup
(
GtkMenuToolButton
*button,
85
const
gchar *markup);
86
87
G_END_DECLS
88
89
#endif
/* __GTK_MENU_TOOL_BUTTON_H__ */
gtkmenu.h
gtk_menu_tool_button_new
GtkToolItem * gtk_menu_tool_button_new(GtkWidget *icon_widget, const gchar *label)
GtkMenuToolButtonPrivate
struct _GtkMenuToolButtonPrivate GtkMenuToolButtonPrivate
Definition:
gtkmenutoolbutton.h:43
gtk_menu_tool_button_new_from_stock
GtkToolItem * gtk_menu_tool_button_new_from_stock(const gchar *stock_id)
gtk_menu_tool_button_set_arrow_tooltip
void gtk_menu_tool_button_set_arrow_tooltip(GtkMenuToolButton *button, GtkTooltips *tooltips, const gchar *tip_text, const gchar *tip_private)
gtk_menu_tool_button_set_menu
void gtk_menu_tool_button_set_menu(GtkMenuToolButton *button, GtkWidget *menu)
gtk_menu_tool_button_set_arrow_tooltip_markup
void gtk_menu_tool_button_set_arrow_tooltip_markup(GtkMenuToolButton *button, const gchar *markup)
gtk_menu_tool_button_get_type
GType gtk_menu_tool_button_get_type(void) G_GNUC_CONST
gtk_menu_tool_button_set_arrow_tooltip_text
void gtk_menu_tool_button_set_arrow_tooltip_text(GtkMenuToolButton *button, const gchar *text)
gtk_menu_tool_button_get_menu
GtkWidget * gtk_menu_tool_button_get_menu(GtkMenuToolButton *button)
gtktoolbutton.h
_GtkMenuToolButtonClass
Definition:
gtkmenutoolbutton.h:54
_GtkMenuToolButtonClass::show_menu
void(* show_menu)(GtkMenuToolButton *button)
Definition:
gtkmenutoolbutton.h:57
_GtkMenuToolButtonClass::_gtk_reserved3
void(* _gtk_reserved3)(void)
Definition:
gtkmenutoolbutton.h:62
_GtkMenuToolButtonClass::_gtk_reserved1
void(* _gtk_reserved1)(void)
Definition:
gtkmenutoolbutton.h:60
_GtkMenuToolButtonClass::_gtk_reserved2
void(* _gtk_reserved2)(void)
Definition:
gtkmenutoolbutton.h:61
_GtkMenuToolButtonClass::_gtk_reserved4
void(* _gtk_reserved4)(void)
Definition:
gtkmenutoolbutton.h:63
_GtkMenuToolButtonClass::parent_class
GtkToolButtonClass parent_class
Definition:
gtkmenutoolbutton.h:55
_GtkMenuToolButton
Definition:
gtkmenutoolbutton.h:46
_GtkMenuToolButton::GSEAL
GtkMenuToolButtonPrivate * GSEAL(priv)
_GtkMenuToolButton::parent
GtkToolButton parent
Definition:
gtkmenutoolbutton.h:47
_GtkToolButtonClass
Definition:
gtktoolbutton.h:54
_GtkToolButton
Definition:
gtktoolbutton.h:46
_GtkToolItem
Definition:
gtktoolitem.h:49
_GtkTooltips
Definition:
gtktooltips.h:59
_GtkWidget
Definition:
gtkwidget.h:531
libs
tk
ytk
ytk
gtk
gtkmenutoolbutton.h
Generated on Wed Dec 25 2024 05:44:32 for Ardour by
1.9.1