digitalmars.D.learn - gtkd , addondraw is deprecated
- Alain De Vos (6/6) May 21 2021 What is the advised function to use instead of
- Mike Wey (8/14) May 21 2021 Change the `Context` passed to the drawCallback to a `Scoped!Context`
What is the advised function to use instead of
gtk.Widget.Widget.addOnDraw ?
```
this()
{ addOnDraw(&drawCallback);}
```
May 21 2021
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
May 21 2021








Mike Wey <mike-wey example.com>