Re: Question/Suggestion for gdk



On 09/21/98 Owen Taylor uttered the following other thing:
> 
> Brandon Long <blong@fiction.net> writes:
> 
> > I note that gdk 1.1.1 adds a way to get the height of a string using
> > XTextExtents().  Is there a way to get this information using 1.0.5?
> 
> #include <gdk/gdkx.h>
> 
> XTextExtents (GDK_FONT_XFONT (some_font), ....);
>  
> is about as good as it gets.

Perhaps this should be added to the FAQ?

Q. If GDK doesn't wrapper the XLIB function I want, how to I work around
this?

A. See the defines in gdk/gdkx.h, they should allow you access to the
parts of the gdk objects which are required to grant access.

Brandon
-- 
Brandon Long (blong@fiction.net)             [http://www.fiction.net/blong/]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]