What is the advised function to use instead of gtk.Widget.Widget.addOnDraw ?
this()
{ addOnDraw(&drawCallback);}
May 21, 2021 gtkd , addondraw is deprecated | ||||
---|---|---|---|---|
| ||||
What is the advised function to use instead of gtk.Widget.Widget.addOnDraw ?
|
May 21, 2021 Re: gtkd , addondraw is deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alain De Vos | On 21-05-2021 12:35, Alain De Vos wrote: > What is the advised function to use instead of gtk.Widget.Widget.addOnDraw ? > ``` > this() > { addOnDraw(&drawCallback);} > ``` Change the `Context` passed to the drawCallback to a `Scoped!Context` only the non scoped overload is deprecated. ``` bool drawCallback(Scoped!Context cr, Widget widget) ``` -- Mike Wey |