[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] pygame display position
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] pygame display position
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Fri, 16 Sep 2005 07:07:32 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 15 Sep 2005 17:07:46 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=W8s6/TH7hnEn5xCKo1/MLe1xU/OK22aoPlv/FApg1NnZxHeY+RsvH29Mf6ayAGkiZo6+NVw4HKTw5c9uuItJh6lSIytNsUnAUTuM0o3N2/6mPYIoFLD4XQQs8yi+Ev28ZZ2DjpqJVtsyJTwXrCvu9xPXxxKuedht7s7P+jh7ZmU=
- In-reply-to: <BAY107-F242D4DB2517639DC62D4ADC09E0@phx.gbl>
- References: <BAY107-F242D4DB2517639DC62D4ADC09E0@phx.gbl>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.