Difference between revisions of "Lua:getWorkAreaWidth"
Jump to navigation
Jump to search
(Created page with "Category:Lua {{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}} Returns the work area width. ===Function Parameters=== This function has no parameters. ===Re...") |
m (→Examples: Syntax Highlight.) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}} | {{CodeBox|'''function''' getWorkAreaWidth() ''':''' integer}} | ||
| − | Returns the work area width. | + | Returns the work area width. (Excludes taskbars) |
===Function Parameters=== | ===Function Parameters=== | ||
| − | This function has no parameters. | + | This function has no parameters. |
===Returns=== | ===Returns=== | ||
| Line 11: | Line 11: | ||
===Examples=== | ===Examples=== | ||
| − | + | <syntaxhighlight lang="lua" line> | |
| − | < | ||
local width = getWorkAreaWidth() | local width = getWorkAreaWidth() | ||
print("Work area width: " .. width) | print("Work area width: " .. width) | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Latest revision as of 00:09, 27 June 2026
Returns the work area width. (Excludes taskbars)
Function Parameters[edit]
This function has no parameters.
Returns[edit]
integer — The width of the screen work area in pixels.
Examples[edit]
1 local width = getWorkAreaWidth()
2 print("Work area width: " .. width)