Garry's Mod Wiki

Revision Difference

Panel:GWEN_SetMargin#517739

<function name="GWEN_SetMargin" parent="Panel" type="classfunc"> <description><internal></internal> Used by <page>Panel:ApplyGWEN</page> to apply the `Margin` property to a panel object. This calls <page>Panel:DockMargin</page>.</description> <realm>Client</realm> <args> <arg name="margins" type="table">A four-membered table containing the margins as numbers:&#xA;* &lt;page&gt;number&lt;/page&gt; left - The left margin.&#xA;* &lt;page&gt;number&lt;/page&gt; top - The top margin.&#xA;* &lt;page&gt;number&lt;/page&gt; right - The right margin.&#xA;* &lt;page&gt;number&lt;/page&gt; bottom - The bottom margin.</arg>⤶ <arg name="margins" type="table">A four-membered table containing the margins as numbers:⤶ * <page>number</page> left - The left margin.⤶ * <page>number</page> top - The top margin.⤶ * <page>number</page> right - The right margin.⤶ * <page>number</page> bottom - The bottom margin.</arg>⤶ </args> </function>