sharplispers / clx

a fork of crhodes' fork of danb's fork of the CLX library, an X11 client for Common Lisp
Other
114 stars 46 forks source link

xrender: add a convenience function #177

Closed dkochmanski closed 3 years ago

dkochmanski commented 3 years ago

Exported symbols are: render-make-color, render-color, render-color-p, render-color-{red,green,blue,alpha}.

This class is similar to xlib:color however it also contains the alpha component. It is used in the function RENDER-FILL-RECTANGLES.

RENDER-FILL-RECTANGLES handles also a sequence as a color for backward compatibility.

JMC-design commented 3 years ago

Why impose a colour construct on users? There's a reason why they shifted from xlib to xcb.

dkochmanski commented 3 years ago

I remember these headlines: "mass exodus from xlib due to introducing data encapsulation" ;) the old way of using a sequence is still available, this change realizes one of numerous todos in this file.

Wysłano z aplikacji ProtonMail

-------- Oryginalna wiadomość -------- ‎ 15 sty 2021, 23:08, Johannes Martinez Calzada napisał(a):

Why impose a colour construct on users? There's a reason why they shifted from xlib to xcb.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.