Re: How to get Width and height..

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

 



Il giorno Wed, 16 Jun 2010 15:42:09 +0530
Lohitha R <lohitha.r@xxxxxxxxxxxxxxxxxx> ha scritto:

> Hi all,
> 
>           Is there any way to get the screen resolution(monitor) in 
> gtk..??

If by resolution you mean size in pixels, you could use
gdk_screen_get_{width,height}() with the default screen.

http://library.gnome.org/devel/gdk/stable/GdkScreen.html

> or is there any way to get the size of the maximized gtk 
> window(gtk widget) in gtk.

If you need to read the size after the window is mapped, you can
connect a callback to the GtkWidget:configure-event signal:

http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-configure-event

You'll get also a notification whenever the window is resized for
free.
-- 
Nicola
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux