jezek / xgb

The X Go Binding is a low-level API to communicate with the X server. It is modeled on XCB and supports many X extensions.
Other
130 stars 13 forks source link

/examples/shapes/main.go mentions Drawable function, but Drawable function isn't in the docs, only DrawableErrorNew #5

Closed IoIxD closed 2 years ago

jezek commented 2 years ago

I think, you mean the line here: https://github.com/jezek/xgb/blob/7a4fade77cf2a8406e63409d11ac844dfb150679/examples/shapes/main.go#L34

The xproto.Drawable is not a function, but a Drawable type. It is used in various xproto functions (CreateGC, PolyLine, CopyArea, ...) as an idicator of window where to draw (or do some drawing operation).

IoIxD commented 2 years ago

Ah, my bad.