More Area planning document changes.
This commit is contained in:
parent
347681f225
commit
957018728f
|
@ -43,6 +43,8 @@ func myAreaGoroutine(area *ui.Area, start <-chan bool) {
|
||||||
|
|
||||||
TODO is there a race on `area.SetSize()`?
|
TODO is there a race on `area.SetSize()`?
|
||||||
|
|
||||||
|
TODO for all of the following: verify API call data types before moving code
|
||||||
|
|
||||||
## Windows
|
## Windows
|
||||||
We create another custom window class that does `WM_PAINT` and handles input events thereof.
|
We create another custom window class that does `WM_PAINT` and handles input events thereof.
|
||||||
|
|
||||||
|
@ -70,7 +72,8 @@ func repaint(s *sysData) HRESULT {
|
||||||
Out: imgret,
|
Out: imgret,
|
||||||
}
|
}
|
||||||
i := <-imgret
|
i := <-imgret
|
||||||
// TODO DRAW
|
|
||||||
|
// drawing code here; see below
|
||||||
|
|
||||||
EndPaint(s.hwnd, &ps)
|
EndPaint(s.hwnd, &ps)
|
||||||
return 0
|
return 0
|
||||||
|
@ -121,7 +124,9 @@ Disregarding the RGBA issue, the draw code would be
|
||||||
|
|
||||||
We must also initialize and shut down GDI+ in uitask:
|
We must also initialize and shut down GDI+ in uitask:
|
||||||
```go
|
```go
|
||||||
var gdiplustoken uintptr
|
var (
|
||||||
|
gdiplustoken uintptr
|
||||||
|
)
|
||||||
|
|
||||||
// init
|
// init
|
||||||
startupinfo := &GdiplusStartupInput{
|
startupinfo := &GdiplusStartupInput{
|
||||||
|
|
Loading…
Reference in New Issue