Macaw OS C reference

Function screenwidth

#include <macaw.h>
int screenwidth(void);

Tells you how wide your window's picture is. Ask again after the window is resized, because it gets a new picture.

Parameters

It takes nothing.

Returns int

The width in pixels.

In The window's memory, with screenmem, screenheight.