Re: How to call Xlib function inside gtk library?
- From: Havoc Pennington <hp redhat com>
- To: hwang up elctech com
- Cc: gtk-list gnome org, Jonathan Siegel <jsiegel bresystems com>
- Subject: Re: How to call Xlib function inside gtk library?
- Date: 29 Aug 2002 01:12:14 -0400
hwang up elctech com writes:
> 1. Does anyone have such experience with the xlib and gdk
> interaction?
Yes, it should work fine.
> 2. Does anyone know the reason why gdkrgb library function is slow?
It is converting the RGB data to the X visual, potentially dithering
to preserve image quality. Your Xlib program probably doesn't do that.
> 3. Does anyone have any code example of calling xlib from gdk?
Look around on cvs.gnome.org/lxr - lots of code there. Basically just
#include <gdk/gdkx.h> and use the functions and macros in there.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]