Ardour  9.0-pre0-427-gd2a3450e2f
gtklinkbutton.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * gtklinkbutton.h - an hyperlink-enabled button
3  *
4  * Copyright (C) 2005 Emmanuele Bassi <ebassi@gmail.com>
5  * All rights reserved.
6  *
7  * Based on gnome-href code by:
8  * James Henstridge <james@daa.com.au>
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Cambridge, MA 02139, USA.
23  */
24 
25 #ifndef __GTK_LINK_BUTTON_H__
26 #define __GTK_LINK_BUTTON_H__
27 
28 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29 #error "Only <gtk/gtk.h> can be included directly."
30 #endif
31 
32 #include <gtk/gtkbutton.h>
33 
34 G_BEGIN_DECLS
35 
36 #define GTK_TYPE_LINK_BUTTON (gtk_link_button_get_type ())
37 #define GTK_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButton))
38 #define GTK_IS_LINK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LINK_BUTTON))
39 #define GTK_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass))
40 #define GTK_IS_LINK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LINK_BUTTON))
41 #define GTK_LINK_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LINK_BUTTON, GtkLinkButtonClass))
42 
43 typedef struct _GtkLinkButton GtkLinkButton;
45 typedef struct _GtkLinkButtonPrivate GtkLinkButtonPrivate;
46 
47 typedef void (*GtkLinkButtonUriFunc) (GtkLinkButton *button,
48  const gchar *link_,
49  gpointer user_data);
50 
52 {
54 
56 };
57 
59 {
61 
62  void (*_gtk_padding1) (void);
63  void (*_gtk_padding2) (void);
64  void (*_gtk_padding3) (void);
65  void (*_gtk_padding4) (void);
66 };
67 
68 GType gtk_link_button_get_type (void) G_GNUC_CONST;
69 
70 GtkWidget * gtk_link_button_new (const gchar *uri);
72  const gchar *label);
73 
74 const gchar * gtk_link_button_get_uri (GtkLinkButton *link_button);
76  const gchar *uri);
77 
78 #ifndef GTK_DISABLE_DEPRECATED
80  gpointer data,
81  GDestroyNotify destroy);
82 #endif
83 
86  gboolean visited);
87 
88 
89 G_END_DECLS
90 
91 #endif /* __GTK_LINK_BUTTON_H__ */
void(* GtkLinkButtonUriFunc)(GtkLinkButton *button, const gchar *link_, gpointer user_data)
Definition: gtklinkbutton.h:47
GtkLinkButtonUriFunc gtk_link_button_set_uri_hook(GtkLinkButtonUriFunc func, gpointer data, GDestroyNotify destroy)
void gtk_link_button_set_visited(GtkLinkButton *link_button, gboolean visited)
gboolean gtk_link_button_get_visited(GtkLinkButton *link_button)
void gtk_link_button_set_uri(GtkLinkButton *link_button, const gchar *uri)
const gchar * gtk_link_button_get_uri(GtkLinkButton *link_button)
GtkWidget * gtk_link_button_new_with_label(const gchar *uri, const gchar *label)
GtkWidget * gtk_link_button_new(const gchar *uri)
GType gtk_link_button_get_type(void) G_GNUC_CONST
struct _GtkLinkButtonPrivate GtkLinkButtonPrivate
Definition: gtklinkbutton.h:45
void(* _gtk_padding2)(void)
Definition: gtklinkbutton.h:63
void(* _gtk_padding4)(void)
Definition: gtklinkbutton.h:65
void(* _gtk_padding1)(void)
Definition: gtklinkbutton.h:62
GtkButtonClass parent_class
Definition: gtklinkbutton.h:60
void(* _gtk_padding3)(void)
Definition: gtklinkbutton.h:64
GtkButton parent_instance
Definition: gtklinkbutton.h:53
GtkLinkButtonPrivate * GSEAL(priv)