File canvas-draw/api/native.wiki artifact 907ab1647b part of check-in b1dcd0ebc6


<h1><tt>native</tt> Module</h1>

<h2>Synopsis</h2>

<table>
	<tr>
		<th>Racket</th>
		<td><code>(require (planet murphy/canvas-draw:1:0/native))</code></td>
	</tr>
	<tr>
		<th>CHICKEN</th>
		<td><code>(require-extension canvas-draw-native)</code></td>
	</tr>
</table>

Native context support. Initializes context+ support when loaded.

<h2>Context Types</h2>

<h3><a id="context:native"><code><nowiki>[context:native context?]</nowiki></code></a></h3>

Context type for native windows.

<h2>Auxiliary Functions<h2>

<h3><a id="screen-size"><code><nowiki>(screen-size) → (values integer? integer? real? real?)</nowiki></code></a></h3>

Determines the width and height of the whole screen in pixels and millimeters.