Details
struct GnomeIconTextInfoRow
typedef struct {
char *text;
int width;
} GnomeIconTextInfoRow; |
struct GnomeIconTextInfo
typedef struct {
GList *rows;
GdkFont *font;
int width;
int height;
int baseline_skip;
} GnomeIconTextInfo; |
gnome_icon_layout_text ()
GnomeIconTextInfo* gnome_icon_layout_text (GdkFont *font,
char *text,
char *separators,
int max_width,
int confine); |
Wraps the specified text and returns a new GnomeIconTextInfo
structure. text is word-wrapped as defined by the specified
separators characters (or just at spaces if separators is NULL).
The max_width parameter specifies the width at which text will be
wrapped. If a word is too long to be wrapped and confine is TRUE,
it will be force-split somewhere in the middle; if confine is
FALSE, then the text may exceed the specified max_width.
gnome_icon_paint_text ()
void gnome_icon_paint_text (GnomeIconTextInfo *ti,
GdkDrawable *drawable,
GdkGC *gc,
int x,
int y,
GtkJustification just); |
Paints text that was laid out by gnome_icon_layout_text(). The
text is painted at the specified coordinates, with the specified
justification. This is just a sample implementation, other are possible.
gnome_icon_text_info_free ()
Frees a GnomeIconTextInfo structure.
You should call this instead of freeing it yourself.