Exemplo n.º 1
0
Arquivo: image.go Projeto: d3x0r/SACK
func FillRect(image Image, x, y int, w, h uint, c Color) {
	fmt.Println("image is ", image, " color is ", c.rgba)
	C._BlatColor(image, C.S_32(x), C.S_32(y), C._32(w), C._32(h), C.CDATA(c.rgba))
}
Exemplo n.º 2
0
Arquivo: image.go Projeto: d3x0r/SACK
func Clear(image Image) {
	C._BlatColor(image, 0, 0, C._32(image.width), C._32(image.height), 0)
}
Exemplo n.º 3
0
Arquivo: image.go Projeto: d3x0r/SACK
func ClearTo(image Image, c Color) {
	C._BlatColor(image, 0, 0, C._32(image.width), C._32(image.height), C.CDATA(c.rgba))
}
Exemplo n.º 4
0
Arquivo: psi.go Projeto: d3x0r/SACK
func CreateFrame(caption string, x int, y int, w uint, h uint, border_flags uint) *Control {
	c_caption := C.CString(caption)
	c := Control{control: C.CreateFrame(c_caption, C.int(x), C.int(y), C.int(w), C.int(h), C._32(border_flags), nil)}
	C.free(unsafe.Pointer(c_caption))
	return &c
}