andlabs / andlabs/ui

Force Draw() on an Area

Open
#343 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.4k
Forks
639
PR merge metrics
No merged PRs in 30d

Description

I'm trying to figure out how to call `Draw()` on a `ui.Area` because I'd like to animate a region based on a go Timer. Is this possible? I don't see anything in the docs about this, and the only reference I see in the code that's related to the `uiTimer` functionality of libui is a single line at the end of main.go:
```
// TODO Timer?
```

But perhaps there's an idiom I'm missing. So, is there any way to either explicitly drive the `Draw()` method from my code or attach a callback to a timer?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.