示例#1
0
文件: native.go 项目: zigapeda/raspui
func drawFilledBox(x1, y1, x2, y2, color int) {
	C.Text_Foreground_Color(C.uint8_t(color))
	C.Set_Geometric_Coordinate(C.uint16_t(x1), C.uint16_t(y1), C.uint16_t(x2), C.uint16_t(y2))
	C.RAIO_StartDrawing(C.SQUARE_FILL)
}
示例#2
0
文件: native.go 项目: zigapeda/raspui
func drawFilledCircle(x, y, rad, color int) {
	C.Text_Foreground_Color(C.uint8_t(color))
	C.Set_Geometric_Coordinate_circle(C.uint16_t(x), C.uint16_t(y), C.uint8_t(rad))
	C.RAIO_StartDrawing(C.CIRCLE_FILL)
}
示例#3
0
文件: native.go 项目: zigapeda/raspui
func drawLine(x1, y1, x2, y2, color int) {
	C.Text_Foreground_Color(C.uint8_t(color))
	C.Set_Geometric_Coordinate(C.uint16_t(x1), C.uint16_t(y1), C.uint16_t(x2), C.uint16_t(y2))
	C.RAIO_StartDrawing(C.LINE)
}