[comp.windows.x] XQuery physical aspects and background pixmap?

ken@hpcvlo.UUCP (02/04/87)

1) Is it possible to inquire from a window as to it's background pixmap?

2) Is it possible to get info from the X server about the physical
dimension of the display, like the actual size (in meters, inches
etc.) of the display;  and/or the aspect ratio of the pixels?

I ask these questions because 1) THE HP toolkit requires the
application to tell the toolkit what background pattern is being used
by the window, even after having already told X at window create time.
It would be nice if the toolkit library could get this info from X.

2) The physical attributes would help in implementing libraries like a
GKS library.  How can one implement an isotropic graphics application
without knowing the true aspect ratio.  Also how can one really tell
the point size of a font without knowing physical dimensions.  There
are cases when a display should be able to exactly show the true
dimensions of an object, (perhaps a printed page emulator).

		-Ken "Xcited" Bronstein
		 hp-pcd!ken

jg@jumbo.UUCP (02/07/87)

In article <3940001@hpcvlo.HP.COM> ken@hpcvlo.HP.COM (Ken Bronstein) writes:

>2) Is it possible to get info from the X server about the physical
>dimension of the display, like the actual size (in meters, inches
>etc.) of the display;  and/or the aspect ratio of the pixels?

In my previous reply, I was being stupid (probably from working on V11
too hard); V11 will give you both the number of pixels and the size in 
millimeters of the display, so the aspect ratio of the pixels is implicit
in the ratio of these two numbers.  You are out of luck in V10 except
by looking at the vendor information and inferring it that way.
				-Jim