window_pos

Desktop-Position der oberen linken Ecke des Engine-Fensters.

Bemerkungen:

Wertebereich:

0 .. Desktopgrösse

Typ:

VECTOR*, read-only

Beispiel:

// Move the engine window by clicking anywhere on a panel and dragging it over the screen
// Assign this to a panel on_click event

function kMoveWindow()
{
var vOldPos[3];
var vDiff[3];
vec_set(vOldPos,mouse_cursor);
// move the window so that the mouse is always at the same panel position
while(mouse_left && window_focus)
{
vec_diff(vDiff,mouse_cursor,vOldPos);
vec_add(vDiff,window_pos);
video_window(vDiff,NULL,0,NULL);
wait(1);
}
}

Siehe auch:

screen_size, video_window, window_focus

► Aktuelle Version Online