<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsWindowGetCloseButtonSize?action=history&amp;feed=atom</id>
	<title>DgsWindowGetCloseButtonSize - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsWindowGetCloseButtonSize?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsWindowGetCloseButtonSize&amp;action=history"/>
	<updated>2026-05-19T03:40:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsWindowGetCloseButtonSize&amp;diff=63538&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{Client function}} __NOTOC__ This functions gets the size of dgs-dxwindow close(off) button.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsWindowGetCloseButtonSize( eleme...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsWindowGetCloseButtonSize&amp;diff=63538&amp;oldid=prev"/>
		<updated>2019-07-29T04:13:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This functions gets the size of dgs-dxwindow close(off) button.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsWindowGetCloseButtonSize( eleme...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This functions gets the size of dgs-dxwindow close(off) button.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsWindowGetCloseButtonSize( element dgsElement [, bool relative ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsElement:''' The DGS window element you wish to get close button size.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all width,height floats must be between 0 and 1, representing sizes/positions as a fraction of the window size. If ''false'', then the size and co-ordinates are based on client's resolution.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns two ''float''s, which indicate the length and height of the close button&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local dgsWindow = DGS:dgsCreateWindow(200,200,400,400,&amp;quot;dgs window&amp;quot;,false)&lt;br /&gt;
local width,height = DGS:dgsWindowGetCloseButtonSize(dgsWindow,false)&lt;br /&gt;
outputChatBox(&amp;quot;width:&amp;quot;..width..&amp;quot;; height:&amp;quot;..height)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>