mirror of
https://github.com/jroimartin/gocui.git
synced 2025-04-24 13:48:51 +08:00
Improve doc
This commit is contained in:
parent
7e313a536f
commit
82070fd113
16
doc.go
16
doc.go
@ -24,15 +24,15 @@ Set the layout function:
|
||||
|
||||
g.SetLayout(fcn)
|
||||
|
||||
On each iteration of the GUI's main loop, the "layout function" will be
|
||||
executed. These layout functions can be used to set-up and update the main
|
||||
application views, being possible to freely switch between them. Also, it is
|
||||
important to mention that a main loop iteration is executed on each reported
|
||||
event (key-press, mouse event, window resize, etc).
|
||||
On each iteration of the GUI's main loop, the "layout function" is executed.
|
||||
These layout functions can be used to set-up and update the application's main
|
||||
views, being possible to freely switch between them. Also, it is important to
|
||||
mention that a main loop iteration is executed on each reported event
|
||||
(key-press, mouse event, window resize, etc).
|
||||
|
||||
GUIs are composed by Views, you can think of it as free text buffers. Views
|
||||
implement the io.ReadWriter interface, so you can just write to them if you
|
||||
want to modify their content and the same is valid for reading.
|
||||
GUIs are composed by Views, you can think of it as buffers. Views implement the
|
||||
io.ReadWriter interface, so you can just write to them if you want to modify
|
||||
their content. The same is valid for reading.
|
||||
|
||||
Create and initialize a view with absolute coordinates:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user