Added gdk_text_extents_wc()
Tue Dec 15 14:30:35 1998 Owen Taylor <otaylor@redhat.com> * gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc() * Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping to label. (Based on patch from Jeff Dairiki <dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0) - Adds new function gtk_label_set_line_wrap() - implement GTK_JUSTIFY_FILL. - rename gtk_label_set to gtk_label_set_text() add gtk_label_set() to gtkcompat.h. * Use an internal wc representation in the label, so that we handle underlining and line breaks correctly for multi-byte strings.
This commit is contained in:
		| @ -604,6 +604,14 @@ void     gdk_text_extents   (GdkFont     *font, | ||||
| 			     gint        *width, | ||||
| 			     gint        *ascent, | ||||
| 			     gint        *descent); | ||||
| void    gdk_text_extents_wc (GdkFont        *font, | ||||
| 			     const GdkWChar *text, | ||||
| 			     gint            text_length, | ||||
| 			     gint           *lbearing, | ||||
| 			     gint           *rbearing, | ||||
| 			     gint           *width, | ||||
| 			     gint           *ascent, | ||||
| 			     gint           *descent); | ||||
| void     gdk_string_extents (GdkFont     *font, | ||||
| 			     const gchar *string, | ||||
| 			     gint        *lbearing, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Owen Taylor
					Owen Taylor