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

Re: [pygame] pygame display position



On 9/16/05, Roel Smulders <mstrblstrprdctns@xxxxxxxxxxx> wrote:
> Hi!
> 
> I am working on some zoomable objects, that react to the screen getting
> resized.
> 
> Is there a way to
> a) get the current desktopsize

Not that I know of...  you might need to get platform specific things
for this.  Not all platforms even have a desktop.  Perhaps search the
SDL mailing lists, or ask there.

> b) get the window-position on the desktop

same as above.

> c) react to the 'close' event of that window (little cross in the upper
> right corner has to actually work) and have a screen that is able to resize
> (and have some code fired when it does)?

A QUIT event happens.  Also check out the VIDEORESIZE event for when
the video size changes.

> 
> With kind regards, Roelie
> 
> 
> 


Cheer.