Picotron Windows

Back


Picotron allows you to have both windowed and fullscreen apps, seeing as it is a workspace


By default, picotron apps are fullscreen, but this can be changed with window{}


The main inputs for window{} are:
window{
x=number,
y=number,
width=number,
height=number,
cursor=(podded sprite, integer <sprite index>, "pointer", "grab", "dial","edit", "crosshair"),
has_frame=bool, --does it have a frame (the top bar with the title, menubar and close window button)
pauseable=bool, --can the app be paused (works fullscreen)
video_mode=(integer 0-4),
z=(number), --window z-order
background_updates=bool, --does the window run _update() in the background?
background_draws=bool, --does the window run _draw() in the background?
tabbed=bool,
moveable=bool, --can the window be dragged
resizeable=true, --can the window be resized
fullscreen=bool --is the window fullscreen
}


Along side the window{} function, you can also receive events, e.g:
"resize" event:
gives {width,height}
"move" event:
gives {x,y}
"drop_items" event:
gives {items (table of files)}



Examples can be seen within the downloadable file

Download