Get/set window position?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Get/set window position?

Post by Someguynamedpie »

Is it possible to do this without recompiling LOVE? I need it for my project :(
User avatar
Zilarrezko
Party member
Posts: 345
Joined: Mon Dec 10, 2012 5:50 am
Location: Oregon

Re: Get/set window position?

Post by Zilarrezko »

love.window.getMode and love.window.setMode

I believe those functions are what you are looking for. :awesome:
User avatar
slime
Solid Snayke
Posts: 3160
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Get/set window position?

Post by slime »

You can select which monitor the window will appear in (if multiple monitors are available), but aside from that you can't change the window position.

What sort of thing are you making where you want to be able to do that?
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Re: Get/set window position?

Post by Someguynamedpie »

Custom frame w/ borderless
User avatar
Someguynamedpie
Citizen
Posts: 71
Joined: Wed Mar 31, 2010 10:59 pm

Re: Get/set window position?

Post by Someguynamedpie »

While we're at it, will there be bindings to SDL_CreateSystemCursor?
I goofed. There already is
User avatar
Zilarrezko
Party member
Posts: 345
Joined: Mon Dec 10, 2012 5:50 am
Location: Oregon

Re: Get/set window position?

Post by Zilarrezko »

Someguynamedpie wrote:Custom frame w/ borderless
Well you can just make the window borderless and make a frame inside the game and do your drawing within the confines of the frame. But I think I see what you mean now... Because from what I know you can't drag a window... that's borderless!

I'm sorry, I can't help you there. My bad, sorry man. :(
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests