Panel/GWEN SetHorizontalAlign

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=GWEN_SetHorizontalAlign |Parent=Panel |Description= |Realm=Client |IsClass=Yes }}")
 
(Completed: Filled in description, args.)
 
Line 2: Line 2:
 
|Name=GWEN_SetHorizontalAlign
 
|Name=GWEN_SetHorizontalAlign
 
|Parent=Panel
 
|Parent=Panel
|Description=
+
|Description={{Internal}} Used by {{ClassFunction|Panel|ApplyGWEN}} to apply the ''HorizontalAlign'' property to a  panel object. This calls {{ClassFunction|Panel|SetContentAlignment}}.
 
|Realm=Client
 
|Realm=Client
 
|IsClass=Yes
 
|IsClass=Yes
 +
}}
 +
{{Arg
 +
|type=string
 +
|name=hAlign
 +
|desc=The alignment, as a string, to pass to {{ClassFunction|Panel|SetContentAlignment}}. Accepts:
 +
* ''Right'': Align mid-right.
 +
* ''Left'': Align mid-left.
 +
* ''Center'': Align mid-center.
 
}}
 
}}

Latest revision as of 19:58, 10 December 2014

 Panel:GWEN_SetHorizontalAlign( )

Description

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.
Used by Panel:ApplyGWEN to apply the HorizontalAlign property to a panel object. This calls Panel:SetContentAlignment.

Arguments

string hAlign

The alignment, as a string, to pass to Panel:SetContentAlignment. Accepts:

  • Right: Align mid-right.
  • Left: Align mid-left.
  • Center: Align mid-center.
Personal tools
Navigation