Example #1
0
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))
}
Example #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))
}
Example #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))
}
Example #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))
}