From 335b98de0dd7f0b94e47f6a5a32b61aead551623 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Mon, 20 Jan 2020 22:16:50 +0000 Subject: [PATCH] Add docs for view:{app_id, pid, title} --- lua_docs.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua_docs.md b/lua_docs.md index a07b1b4..503c5f2 100644 --- a/lua_docs.md +++ b/lua_docs.md @@ -196,6 +196,11 @@ Represents a view (a window in kiwmi terms). ### Methods +#### view:app_id() + +Returns the app id of the view. +This is comparable to the window class of X windows. + #### view:close() Closes the view. @@ -220,6 +225,10 @@ Moves the view to the specified position. Used to register event listeners. +#### view:pid() + +Returns the process ID of the client associated with the view. + #### view:pos() Returns the position of the view (top-left corner). @@ -242,6 +251,10 @@ Returns the size of the view. Takes a table containing all edges that are tiled, or a bool to indicate all 4 edges. +#### view:title() + +Returns the title of the view. + ### Events #### destroy