Add docs for view:{app_id, pid, title}
This commit is contained in:
parent
22f12dc506
commit
335b98de0d
1 changed files with 13 additions and 0 deletions
13
lua_docs.md
13
lua_docs.md
|
@ -196,6 +196,11 @@ Represents a view (a window in kiwmi terms).
|
||||||
|
|
||||||
### Methods
|
### Methods
|
||||||
|
|
||||||
|
#### view:app_id()
|
||||||
|
|
||||||
|
Returns the app id of the view.
|
||||||
|
This is comparable to the window class of X windows.
|
||||||
|
|
||||||
#### view:close()
|
#### view:close()
|
||||||
|
|
||||||
Closes the view.
|
Closes the view.
|
||||||
|
@ -220,6 +225,10 @@ Moves the view to the specified position.
|
||||||
|
|
||||||
Used to register event listeners.
|
Used to register event listeners.
|
||||||
|
|
||||||
|
#### view:pid()
|
||||||
|
|
||||||
|
Returns the process ID of the client associated with the view.
|
||||||
|
|
||||||
#### view:pos()
|
#### view:pos()
|
||||||
|
|
||||||
Returns the position of the view (top-left corner).
|
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.
|
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
|
### Events
|
||||||
|
|
||||||
#### destroy
|
#### destroy
|
||||||
|
|
Loading…
Reference in a new issue