Did the previous commit, but for the Windows backend.

This commit is contained in:
Pietro Gagliardi 2014-08-03 20:42:45 -04:00
parent a4fac48192
commit 0fb45ba84d
7 changed files with 12 additions and 7 deletions

View File

@ -91,5 +91,5 @@ func (b *button) commitResize(a *allocation, d *sizing) {
}
func (b *button) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(b, d)
}

View File

@ -94,5 +94,5 @@ func (c *checkbox) commitResize(a *allocation, d *sizing) {
}
func (c *checkbox) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(c, d)
}

View File

@ -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
}

View File

@ -80,5 +80,5 @@ func (l *label) commitResize(c *allocation, d *sizing) {
}
func (l *label) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(l, d)
}

View File

@ -116,5 +116,5 @@ func (t *tab) commitResize(c *allocation, d *sizing) {
}
func (t *tab) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(t, d)
}

View File

@ -84,5 +84,5 @@ func (t *table) commitResize(a *allocation, d *sizing) {
}
func (t *table) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(t, d)
}

View File

@ -69,5 +69,5 @@ func (t *textField) commitResize(a *allocation, d *sizing) {
}
func (t *textField) getAuxResizeInfo(d *sizing) {
basegetAuxResizeInfo(d)
basegetAuxResizeInfo(t, d)
}