video_window(VECTOR* pos,VECTOR* size,var style,STRING* title)
Changes the position, size, style or title of the engine window.
Parameters:
| pos |
vector containing the new x and y position in pixels, or NULL for
no change |
| size |
vector containing the new x and y size in pixels, or NULL for no
change |
| title |
new title of the window, or NULL for no change |
| style |
0 for no change, or a combination of the following modes:
| 1 |
no border |
| 2 |
thin border |
| 4 |
thick border
that allows resizing the window |
| 16 |
title bar and border |
| 48 |
title bar with system menu |
| 112 |
title bar with system menu and minimize button |
| 256 |
hide the window |
|
Remarks:
- Changing the window size does not change the resolution. Use
video_switch() or video_set() for changing
the window resolution.
Speed:
Medium
Example:
// place the window at position (500,300) and remove the border
video_window(vector(500,300,0),vector(800,600,0),1,NULL);
See also:
video_switch, video_set,
window_pos
► latest
version online