r1475: Wrap long icon names onto multiple lines.
[rox-filer.git] / ROX-Filer / src / wrapped.h
blob2044dfd8ae96666c2485417c48ff42842bb78600
1 /*
2 * $Id$
5 * ROX-Filer, filer for the ROX desktop project
6 * By Thomas Leonard, <tal197@users.sourceforge.net>.
7 */
9 #ifndef __WRAPPED_H__
10 #define __WRAPPED_H__
12 #include <gtk/gtk.h>
14 typedef struct _WrappedLabelClass WrappedLabelClass;
15 typedef struct _WrappedLabel WrappedLabel;
17 struct _WrappedLabelClass {
18 GtkWidgetClass parent;
21 struct _WrappedLabel {
22 GtkWidget widget;
23 PangoLayout *layout;
24 gint width;
25 int x_off, y_off;
28 #define WRAPPED_LABEL(obj) (GTK_CHECK_CAST((obj), WRAPPED_LABEL, WrappedLabel))
30 GtkWidget *wrapped_label_new(const char *text, gint width);
31 void wrapped_label_set_text(WrappedLabel *wl, const char *text);
33 #endif /* __WRAPPED_H__ */