mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
doc: rewrite references to preivous api to current
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
f29964fee1
commit
4bbc6379ed
+1
-1
@@ -22,7 +22,7 @@ For example:
|
|||||||
|
|
||||||
w := app.NewWindow()
|
w := app.NewWindow()
|
||||||
for e := range w.Events() {
|
for e := range w.Events() {
|
||||||
if e, ok := e.(app.FrameEvent); ok {
|
if e, ok := e.(system.FrameEvent); ok {
|
||||||
ops.Reset()
|
ops.Reset()
|
||||||
// Add operations to ops.
|
// Add operations to ops.
|
||||||
...
|
...
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ in an implicit Context to keep the Widget declaration short.
|
|||||||
|
|
||||||
For example, to add space above a widget:
|
For example, to add space above a widget:
|
||||||
|
|
||||||
gtx := layout.NewContext(...)
|
gtx := new(layout.Context)
|
||||||
gtx.Reset(...)
|
gtx.Reset(...)
|
||||||
|
|
||||||
// Configure a top inset.
|
// Configure a top inset.
|
||||||
|
|||||||
Reference in New Issue
Block a user