ctrlutil.go
func CalcClipper(c Control) (int, int, int, int) {
	w, h := c.Size()
	x, y := c.Pos()
	px, py := c.Paddings()

	x = x + px
	y = y + py
	w = w - 2*px
	h = h - 2*py

	return x, y, w, h
}
func CalcClipper(c Control) (int, int, int, int) {
	w, h := c.Size()
	x, y := c.Pos()
	px, py := c.Paddings()

	x = x + px
	y = y + py
	w = w - 2*px
	h = h - 2*py

	return x, y, w, h
}
func CalcClipper ( c Control ) ( int , int , int , int ) { w , h := c . Size ( ) x , y := c . Pos ( ) px , py := c . Paddings ( ) x = x + px y = y + py w = w - 2 * px h = h - 2 * py return x , y , w , h }
// CalcClipper calculates the clipper size based on the control's size, position
// and paddings
CalcClipper calculates the clipper size based on the control s size position and paddings