Garry's Mod Wiki

Revision Difference

Panel:GWEN_SetDock#517738

<function name="GWEN_SetDock" parent="Panel" type="classfunc"> <description><internal></internal> Used by <page>Panel:ApplyGWEN</page> to apply the `Dock` property to a panel object. This calls <page>Panel:Dock</page>.</description> <realm>Client</realm> <args> <arg name="dockState" type="string">The dock mode to pass to the panel&#x27;s `Dock` method. This reads a string and applies the approriate &lt;page&gt;DOCK&lt;/page&gt;.&#xA;* `Right`: Dock right.&#xA;* `Left`: Dock left.&#xA;* `Bottom`: Dock at the bottom.&#xA;* `Top`: Dock at the top.&#xA;* `Fill`: Fill the parent panel.</arg>⤶ <arg name="dockState" type="string">The dock mode to pass to the panel's `Dock` method. This reads a string and applies the approriate <page>DOCK</page>.* `Right`: Dock right.⤶ * `Left`: Dock left.⤶ * `Bottom`: Dock at the bottom.⤶ * `Top`: Dock at the top.⤶ * `Fill`: Fill the parent panel.</arg>⤶ </args> </function>