Garry's Mod Wiki

Revision Difference

Panel:GWEN_SetMargin#550782

<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>⤶ <realm>Client and Menu</realm>⤶ <args> <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>