예제 #1
0
파일: area_darwin.go 프로젝트: sjn1978/ui
func (a *area) SetSize(width, height int) {
	a.width = width
	a.height = height
	// set the frame size to set the area's effective size on the Cocoa side
	C.moveControl(a.id, 0, 0, C.intptr_t(a.width), C.intptr_t(a.height))
}
예제 #2
0
func dobasecommitResize(id C.id, c *allocation, d *sizing) {
	C.moveControl(id, C.intptr_t(c.x), C.intptr_t(c.y), C.intptr_t(c.width), C.intptr_t(c.height))
}
예제 #3
0
func (c *controlSingleObject) xresize(x int, y int, width int, height int, d *sizing) {
	C.moveControl(c.id, C.intptr_t(x), C.intptr_t(y), C.intptr_t(width), C.intptr_t(height))
}
예제 #4
0
func (s *spinbox) resize(x int, y int, width int, height int, d *sizing) {
	// TODO
	C.moveControl(s.textfield(), C.intptr_t(x), C.intptr_t(y), C.intptr_t(width-20), C.intptr_t(height))
	C.moveControl(s.stepper(), C.intptr_t(x+width-15), C.intptr_t(y), C.intptr_t(15), C.intptr_t(height))
}