MCPcopy Index your code
hub / github.com/lxn/walk / rectangleFromRECT

Function rectangleFromRECT

rectangle.go:23–30  ·  view source on GitHub ↗
(r win.RECT)

Source from the content-addressed store, hash-verified

21}
22
23func rectangleFromRECT(r win.RECT) Rectangle {
24 return Rectangle{
25 X: int(r.Left),
26 Y: int(r.Top),
27 Width: int(r.Right - r.Left),
28 Height: int(r.Bottom - r.Top),
29 }
30}
31
32func (r Rectangle) Left() int {
33 return r.X

Callers 8

BoundsPixelsMethod · 0.85
windowClientBoundsFunction · 0.85
WndProcMethod · 0.85
lvWndProcMethod · 0.85
tableViewHdrWndProcFunction · 0.85
WndProcMethod · 0.85
WndProcMethod · 0.85
fitRectToScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…