Beispiel #1
0
func NewRect(left, top, right, bottom int) *Rect {
	var newRect Rect
	w32.SetRectEmpty(&newRect.rect)
	newRect.Set(left, top, right, bottom)

	return &newRect
}
Beispiel #2
0
func NewEmptyRect() *Rect {
	var newRect Rect
	w32.SetRectEmpty(&newRect.rect)

	return &newRect
}
Beispiel #3
0
func NewEmptyRect() *Rect {
	var newRect Rect
	w32.SetRectEmpty((*w32.RECT)(&newRect))

	return &newRect
}