DrawingSurface* DialogOptionsRenderingInfo.Surface;
Gets the drawing surface that can be used to draw the dialog options.
This can only be used within the dialog_options_render function; in all other
functions it will return null.
Unlike most other uses of the DrawingSurface, you do NOT have to release this one.
AGS will automatically do that for you after the dialog_options_render function
has completed.
The size of the surface should correspond to the Width and Height requested in
the dialog_options_get_dimensions function.
Example:
function dialog_options_render(DialogOptionsRenderingInfo *info)
{
info.Surface.Clear(14);
}
clears the dialog options area to yellow.
Compatibility: Supported by AGS 3.1.0 and later versions.
See Also: DrawingSurface functions
|