aboutsummaryrefslogtreecommitdiff
path: root/core/.view.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-08-09 03:45:47 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-08-09 03:45:47 -0400
commitb708fa97b490c351f237d22397b8b562d7fb9950 (patch)
tree24a9e569d3c82f61ce1c0e274c99f33438aa80a1 /core/.view.lua
parenta0ae12838a95c88be4ea1ca83af905a25563faff (diff)
downloadtextadept-b708fa97b490c351f237d22397b8b562d7fb9950.tar.gz
textadept-b708fa97b490c351f237d22397b8b562d7fb9950.zip
Added new LuaDoc, updated existing LuaDoc to be more consistent.
Diffstat (limited to 'core/.view.lua')
-rw-r--r--core/.view.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/core/.view.lua b/core/.view.lua
new file mode 100644
index 00000000..dba85ad7
--- /dev/null
+++ b/core/.view.lua
@@ -0,0 +1,41 @@
+-- Copyright 2007 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+-- This is a DUMMY FILE used for making LuaDoc for built-in functions in the
+-- global view table.
+
+---
+-- The currently focused view.
+-- It also represents the structure of any view table in 'views'.
+-- [Dummy file]
+module('view')
+
+---
+-- The currently focused view.
+-- It also represents the structure of any view table in 'views'.
+-- @class table
+-- @name view
+-- @field size The integer position of the split resizer (if this view is part
+-- of a split view).
+view = { size = nil }
+
+---
+-- Splits the indexed view vertically or horizontally and focuses the new view.
+-- @param vertical Flag indicating a vertical split. False for horizontal.
+-- @return old view and new view tables.
+function view:split(vertical) end
+
+---
+-- Unsplits the indexed view if possible.
+-- @return boolean if the view was unsplit or not.
+function view:unsplit() end
+
+---
+-- Goes to the specified buffer in the indexed view.
+-- Activates the 'buffer_switch' signal.
+-- @param n A relative or absolute buffer index.
+-- @param absolute Flag indicating if n is an absolute index or not.
+function view:goto_buffer(n, absolute) end
+
+---
+-- Focuses the indexed view if it hasn't been already.
+function view:focus() end
+