vg4->window->size_extend()
Switch on or off size-extension for opening window.
SYNTAX
FUNCTION PARAMETERS
| on | Address to boolean: whether switch on or off, or NULL don't change |
RETURN VALUE
Returns boolean: previous value
DESCRIPTION
Switch on or off size-extension for opening window.
Must be called before vg4->window->open() to take effect.
This value is responsible for the size of the window.
If the window is opened with:
- VG_WINDOW_SIZE_LOW
- off: 320x200 pixels
- on: 320x240 pixels
- VG_WINDOW_SIZE_HIGH
- off: 640x480 pixels
- on: 800x600 pixels
EXAMPLE
VG_BOOL on; /* open with 320x240 */ on = VG_TRUE; vg4->window->size_extend(&on); vg4->window->open(VG_WINDOW_SIZE_LOW, VG_WINDOW_SCALE_NONE); vg4->window->close(); /* open with 640x480 */ on = VG_FALSE; vg4->window->size_extend(&on); vg4->window->open(VG_WINDOW_SIZE_HIGH, VG_WINDOW_SCALE_NONE);
SEE ALSO