Garry's Mod Wiki

Panel:GWEN_SetMargin

  Panel:GWEN_SetMargin( table margins )

Description

This is used internally - although you're able to use it you probably shouldn't.

Used by Panel:ApplyGWEN to apply the Margin property to a panel object. This calls Panel:DockMargin.

Arguments

1 table margins
A four-membered table containing the margins as numbers:
  • number left - The left margin.
  • number top - The top margin.
  • number right - The right margin.
  • number bottom - The bottom margin.