On 9 Jul 2010, at 11:26, Tadej Borovšak wrote:
>
> From API docs about gdk_window_get_origin():
> ---
> Obtains the position of a window in root window coordinates. (Compare
> with gdk_window_get_position() and gdk_window_get_geometry() which
> return the position of a window relative to its par
Hi.
> Thanks Tadej. I looked at gdk_window_get_origin() but it seems to return x
> and y co-ordinates relative to the parent window. What I'm trying to find
> out is which monitor contains (or mostly contains) a given window. Therefore
> I need the screen co-ordinates. I'll try get_frame_ex
On 9 Jul 2010, at 11:09, Tadej Borovšak wrote:
>
> I would probably use gdk_window_get_origin() and
> gdk_drawable_get_size() to obtain the geometry of the window, since
> _get_frame_extents() may include window manager decorations if they
> are present.
>
Thanks Tadej. I looked at gdk_window
Hi.
> Suppose I have two monitors, each of resolution 1024x768. The monitors are
> placed side-by-side to cover a total screen size of 2048x768. I have a
> GdkWindow of some description situated at co-ordinates 900 pixels (x) and 0
> pixels (y).
>
> If the window is (say) 600x600 pixels, it's
On 9 Jul 2010, at 10:24, Tor Lillqvist wrote:
>> Ah, maybe I've misunderstood is that in fact what
>> gdk_screen_get_monitor_geometry() will tell me?
>
> Yes. Also note that there can be "holes" in the screen that no monitor covers.
>
Thanks Tor. One more question if I may
Suppose
> Ah, maybe I've misunderstood is that in fact what
> gdk_screen_get_monitor_geometry() will tell me?
Yes. Also note that there can be "holes" in the screen that no monitor covers.
--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome
Many thanks guys. I think I understand it now.
John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi.
> "Can I tell how many monitors span the screen horizontally and vertically?"
>
> I've found a function called get_screen_n_monitors() but if it returned (say)
> 4 monitors, would it be possible to tell if they were in a 2x2 array or a 4x1
> array?
You can get the layout of monitors by insp
On 9 Jul 2010, at 10:11, John Emmas wrote:
> Thanks for the quick replies. Actually, I did mean the full geometry of the
> screen, regardless of how many physical monitors it spanned. However, my
> next question was going to be:- "Can I tell how many monitors span the screen
> horizontally a
Thanks for the quick replies. Actually, I did mean the full geometry of the
screen, regardless of how many physical monitors it spanned. However, my next
question was going to be:- "Can I tell how many monitors span the screen
horizontally and vertically?"
I've found a function called get_scr
> Does gtk+ have an API call for obtaining the user's screen resolution (in
> pixels) ?
(Please, avoid the terms "screen" or "display", as they have specific
meanings in X11 and gtk+ which don't match what you probably mean,
which I assume is an individual mon
On 9.7.2010, at 10:18, John Emmas wrote:
> Does gtk+ have an API call for obtaining the user's screen resolution (in
> pixels) ?
Do you mean this?
http://library.gnome.org/devel/gdk/2.90/GdkScreen.html#gdk-screen-get-width
Jaroslav
Does gtk+ have an API call for obtaining the user's screen resolution (in
pixels) ?
John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Sandy K wrote:
When i add an image in a window, it is displayed
properly only in some screen resolution. I have a
screen resolution of 1024 * 768. The window is
displayed properly in this resolution. But when the
resolution is changed to either 800*600 or 640*480,
then the window screen goes
Hello everyone,
I am new to this group. I am learning GTK now..
When i add an image in a window, it is displayed
properly only in some screen resolution. I have a
screen resolution of 1024 * 768. The window is
displayed properly in this resolution. But when the
resolution is changed to
On Sat, 26 Feb 2005, ALLs soft wrote:
how to get screen resolution?
Have a look at http://www.gtk.org/api/2.6/gdk/GdkScreen.html, specifially
gdk_screen_get_width() and gdk_screen_get_height().
HTH
JV
___
gtk-app-devel-list mailing list
gtk-app-devel
how to get screen resolution?
thanks.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22.2.2005
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
17 matches
Mail list logo