view_get_wview

Returns the width of the current viewport.

Example, called from article1_update.gml:

// destroys articles out of the right view side:
if (x > view_get_xview() + view_get_wview()) {
instance_destroy();
}