libyui-gtk  2.43.7
 All Classes
ygtkhtmlwrap.h
1 /********************************************************************
2  * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
3  ********************************************************************/
4 
5 /* YGtkHtmlWrap is a wrapper around either GtkHtml and YGtkRichText, as
6  set at compilation time. GtkHtml is superior, but to avoid dependencies,
7  we use our customized in case it isn't installed.
8  If you flag it as plain_text, it will simply wrap GtkTextView.
9 */
10 
11 #ifndef YGTK_HTML_WRAP_H
12 #define YGTK_HTML_WRAP_H
13 
14 #include <gtk/gtk.h>
15 G_BEGIN_DECLS
16 
17 GtkWidget *ygtk_html_wrap_new (void);
18 
19 GType ygtk_html_wrap_get_type (void);
20 void ygtk_html_wrap_init (GtkWidget *widget); // if you use g_object_new(), call this
21 
22 void ygtk_html_wrap_set_text (GtkWidget *widget, const gchar* text, gboolean plain_mode);
23 void ygtk_html_wrap_scroll (GtkWidget *widget, gboolean top /* or bottom */);
24 
25 typedef void (*LinkClickedCb) (GtkWidget *htmlwrap, const gchar *url, gpointer data);
26 void ygtk_html_wrap_connect_link_clicked (GtkWidget *widget, LinkClickedCb callback, gpointer data);
27 
28 // not supported on plain text
29 gboolean ygtk_html_wrap_search (GtkWidget *widget, const gchar *text);
30 gboolean ygtk_html_wrap_search_next (GtkWidget *widget, const gchar *text); // F3
31 
32 void ygtk_html_wrap_set_background (GtkWidget *widget, GdkPixbuf *pixbuf, const gchar *filename);
33 
34 G_END_DECLS
35 #endif /* YGTK_HTML_WRAP_H */
36