Did the previous commit, but for the Windows backend.
This commit is contained in:
parent
a4fac48192
commit
0fb45ba84d
|
@ -91,5 +91,5 @@ func (b *button) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (b *button) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(b, d)
|
||||
}
|
||||
|
|
|
@ -94,5 +94,5 @@ func (c *checkbox) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (c *checkbox) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(c, d)
|
||||
}
|
||||
|
|
|
@ -5,6 +5,11 @@ package ui
|
|||
// #include "winapi_windows.h"
|
||||
import "C"
|
||||
|
||||
type controlPrivate interface {
|
||||
// TODO
|
||||
Control
|
||||
}
|
||||
|
||||
type controlbase struct {
|
||||
hwnd C.HWND
|
||||
parent C.HWND // for Tab and Group
|
||||
|
@ -43,7 +48,7 @@ func basecommitResize(c *controlbase, a *allocation, d *sizing) {
|
|||
C.moveWindow(c.hwnd, C.int(a.x), C.int(a.y), C.int(a.width), C.int(a.height))
|
||||
}
|
||||
|
||||
func basegetAuxResizeInfo(d *sizing) {
|
||||
func basegetAuxResizeInfo(c controlPrivate, d *sizing) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
|
|
@ -80,5 +80,5 @@ func (l *label) commitResize(c *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (l *label) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(l, d)
|
||||
}
|
||||
|
|
|
@ -116,5 +116,5 @@ func (t *tab) commitResize(c *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (t *tab) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(t, d)
|
||||
}
|
||||
|
|
|
@ -84,5 +84,5 @@ func (t *table) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (t *table) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(t, d)
|
||||
}
|
||||
|
|
|
@ -69,5 +69,5 @@ func (t *textField) commitResize(a *allocation, d *sizing) {
|
|||
}
|
||||
|
||||
func (t *textField) getAuxResizeInfo(d *sizing) {
|
||||
basegetAuxResizeInfo(d)
|
||||
basegetAuxResizeInfo(t, d)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue