<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../docs.xsl"?>

<docs type="symbol" project="SIEGE" version="0.8.2" rpath="../..">
	<file root="siege/core" name="window.h">
		<group key="Window" name="Window">
			<symbol id="14" kind="function" internal="false" cname="sgWindow*Size">
				<index>
					<centry key="Window*Size">sgWindow*Size</centry>
					<centry key="Window*Width">sgWindow*Width</centry>
					<centry key="Window*Height">sgWindow*Height</centry>
					<entry key="WindowSetSize">sgWindowSetSize</entry>
					<entry key="WindowGetSize">sgWindowGetSize</entry>
					<entry key="WindowSetWidth">sgWindowSetWidth</entry>
					<entry key="WindowGetWidth">sgWindowGetWidth</entry>
					<entry key="WindowSetHeight">sgWindowSetHeight</entry>
					<entry key="WindowGetHeight">sgWindowGetHeight</entry>
				</index>
				<section name="Name">
					<names>
						<name>sgWindowSetSize</name>
						<name>sgWindowGetSize</name>
						<descr>Set/get the window's size</descr>
					</names>
					<names>
						<name>sgWindowSetWidth</name>
						<name>sgWindowGetWidth</name>
						<descr>Set/get the window's width or height</descr>
					</names>
				</section>
				<section name="Synopsis">
					<code-block lang="C">void <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetSize</ref>(SGuint width, SGuint height);
void <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetSize</ref>(SGuint* width, SGuint* height);

void <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetWidth</ref>(SGuint width);
SGuint <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetWidth</ref>(void);

void <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetHeight</ref>(SGuint height);
SGuint <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetHeight</ref>(void);</code-block>
				</section>
				<section name="Parameters">
					<params>
						<name>width</name>
						<name>height</name>
						<descr>sets/gets the size; either argument can be NULL where it is a pointer</descr>
					</params>
				</section>
				<section name="Description">
					<p>
						The width and/or height of the window are modified or queried. <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetWidth</ref>/<ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetHeight</ref> are roughly equivalent to:
					</p>
						<code-block lang="C"><ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetSize</ref>(width, <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetHeight</ref>()); // for SetWidth
<ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowSetSize</ref>(<ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetWidth</ref>(), height); // for SetHeight</code-block>
					<p>
						The function <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetSize</ref> is:
					</p>
						<code-block lang="C">if(width) *width = <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetWidth</ref>();
if(height) *height = <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetHeight</ref>();</code-block>
				</section>
				<section name="Return Values">
					<p>
						<ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetWidth</ref> and <ref local="true" path="." file="window" group="Window" name="sgWindow*Size" id="14">sgWindowGetHeight</ref> return the appropriate dimension.
					</p>
				</section>
				<section name="TODO">
						<ul>
							<li>
								<p>
									DOC: Document which callbacks get called
								</p>
							</li>
						</ul>
				</section>
			</symbol>
		</group>
	</file>
</docs>
